From 2b482f1e3990cbe2c06b3bb46846331a29fda2a2 Mon Sep 17 00:00:00 2001 From: Morgan Sutherland Date: Thu, 16 Nov 2017 16:42:49 +0100 Subject: [PATCH] add 'tutorials' page type (incomplete), add sections to /guides --- _config.yml | 3 ++ .../tutorial-car-telemetry-app.md | 2 +- _src/guides.html | 44 +++++++++++++++++++ _src/index.html | 2 +- 4 files changed, 49 insertions(+), 2 deletions(-) rename _src/{_guides => _tutorials}/tutorial-car-telemetry-app.md (99%) diff --git a/_config.yml b/_config.yml index 08c00ab..a5e5af1 100644 --- a/_config.yml +++ b/_config.yml @@ -93,6 +93,9 @@ collections: guides: output: true permalink: /:collection/:path/ + tutorials: + output: true + permalink: /:collection/:path/ # Plugins diff --git a/_src/_guides/tutorial-car-telemetry-app.md b/_src/_tutorials/tutorial-car-telemetry-app.md similarity index 99% rename from _src/_guides/tutorial-car-telemetry-app.md rename to _src/_tutorials/tutorial-car-telemetry-app.md index 7560fe7..8d19342 100644 --- a/_src/_guides/tutorial-car-telemetry-app.md +++ b/_src/_tutorials/tutorial-car-telemetry-app.md @@ -1,5 +1,5 @@ --- -layout: guide +layout: guide title: Tutorial: Car Telemetry App description: Build your own car telemetry application diff --git a/_src/guides.html b/_src/guides.html index 0b3e405..aae0e6c 100644 --- a/_src/guides.html +++ b/_src/guides.html @@ -25,3 +25,47 @@ title: Guides + +
+
+
+

Tutorials

+
+
+
+
+ {% for tutorial in site.tutorials %} + + {% endfor %} +
+
+
+ +
+
+
+

Examples

+
+
+
+
+ {% for tutorial in site.tutorials %} + + {% endfor %} +
+
+
\ No newline at end of file diff --git a/_src/index.html b/_src/index.html index 3535618..1e75d69 100644 --- a/_src/index.html +++ b/_src/index.html @@ -73,7 +73,7 @@ intro:
- {% for guide in site.guides | limit: 4 %} + {% for guide in site.guides| limit: 4 %}