Skip to content
This repository has been archived by the owner on May 30, 2018. It is now read-only.

Commit

Permalink
docs(howtos): change wiki section to howtos
Browse files Browse the repository at this point in the history
  • Loading branch information
Naylin15 committed Dec 20, 2017
1 parent 3adb0f1 commit 8b34aea
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
14 changes: 14 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@ prose:
element: "text"
label: "Title"
value: ""
- name: "howtos"
field:
element: "checkbox"
label: "howtos"
value: false
- name: "published"
field:
element: "checkbox"
label: "Published"
value: false
- name: "description"
field:
element: "textarea"
label: "Description"
- name: "permalink"
field:
element: "text"
Expand Down
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</li>

<li>
<a class="color-type-secondary" href="{{ '/wiki' | absolute_url }}">Wiki</a>
<a class="color-type-secondary" href="{{ '/howtos' | absolute_url }}">How-tos</a>
</li>

<li>
Expand Down
4 changes: 2 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
</div>

<p class="goHome container">
{% if page.wiki %}
<a href="{{ "wiki" | absolute_url }}">
{% if page.howtos %}
<a href="{{ "howtos" | absolute_url }}">
{% else %}
<a href="{{ "news" | absolute_url }}">
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions wiki/index.html → howtos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
layout: container
---

<h2>Wiki</h2>
<h2>How tos</h2>

{% assign articles = site.posts %}
{% for article in articles %}
{% if article.wiki %}
{% if article.howtos %}
<div class="article-wiki">
<h3>
<a class="post-link" href="{{ article.url | absolute_url }}">{{ article.title | escape }}</a>
Expand Down
2 changes: 1 addition & 1 deletion news.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<h1>News post</h1>
<ul class="post-list">
{% for post in site.posts %}
{% if post.wiki != true %}
{% if post.howtos != true %}
<li>
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
<span class="post-meta">{{ post.date | date: date_format }}</span>
Expand Down

0 comments on commit 8b34aea

Please sign in to comment.