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

How tos and Development sections #112

Merged
merged 3 commits into from
Dec 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
</li>

<li>
<a class="color-type-secondary" href="{{ '/docs' | absolute_url }}">Documentation</a>
<a class="color-type-secondary" href="{{ '/docs' | absolute_url }}">Development</a>
</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 _posts/static/2017-12-05-Getting-Started.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
layout: post
wiki: true
howtos: true
published: true
title: Getting Started
permalink: wiki/getting-started
permalink: howtos/getting-started
description: Welcome to Flyve MDM
---

Expand Down
4 changes: 2 additions & 2 deletions _posts/static/2017-12-13-how-it-works.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
layout: post
wiki: true
howtos: true
published: true
title: How it works
permalink: wiki/how-it-works
permalink: howtos/how-it-works
description: What you need to know
---

Expand Down
4 changes: 2 additions & 2 deletions _posts/static/2017-12-13-how-to-install.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
layout: post
wiki: true
howtos: true
published: true
title: How to Install
permalink: wiki/installation
permalink: howtos/installation
description: Step by step
---

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