Browse Source

Add simple content layout and use Markdown to implement Download page

Daniel Rudolf 9 năm trước cách đây
mục cha
commit
0d954a8d43
3 tập tin đã thay đổi với 49 bổ sung18 xóa
  1. 34 0
      _layouts/simple-content.html
  2. 0 18
      download.html
  3. 15 0
      download.md

+ 34 - 0
_layouts/simple-content.html

@@ -0,0 +1,34 @@
+{% include documentHeader.html %}
+<head>
+
+    {% include headInclude.html %}
+    <title>{% if page.title %}{{ page.title }} | {{ site.title }}{% else %}{{ site.title }} - {{ site.description }}{% endif %}</title>
+
+</head>
+<body class="full-layout">
+
+    <div class="body-wrapper">
+        <div class="top-wrapper">
+            {% include pageHeader.html %}
+        </div>
+
+        <div class="light-wrapper">
+            <div class="inner">
+                {% if page.headline or page.title %}
+                    <h1 class="aligncenter">{% if page.headline %}{{ page.headline | markdownify }}{% else %}{{ page.title }}{% endif %}</h1>
+                {% endif %}
+                {% if page.description %}
+                    <p class="description aligncenter">
+                        {{ page.description | markdownify }}
+                    </p><br />
+                {% endif %}
+
+                {{ content }}
+            </div>
+        </div>
+
+        {% include pageFooter.html %}
+    </div>
+
+</body>
+{% include documentFooter.html %}

+ 0 - 18
download.html

@@ -1,18 +0,0 @@
----
-layout: default
-title: Download
-nav: 5
----
-
-<div class="light-wrapper">
-    <div class="inner">
-        <h1 class="aligncenter">Download Pico</h1>
-        <p class="description aligncenter">
-            Download the latest version of Pico or <a href="https://github.com/picocms/Pico">clone on GitHub</a>.<br /><br />
-            <a href="https://github.com/picocms/Pico/archive/master.zip" class="button red">Download Pico</a>
-        </p><br />
-
-        <h3>Changelog</h3>
-        <p>See the <a href="https://github.com/picocms/Pico/blob/master/changelog.txt">full changelog</a>.</p>
-    </div>
-</div>

+ 15 - 0
download.md

@@ -0,0 +1,15 @@
+---
+layout: simple-content
+title: Download
+hadline: Download Pico
+description: Download the latest version of Pico or [clone on GitHub](https://github.com/picocms/Pico).
+nav: 5
+---
+
+<p class="aligncenter">
+    <a href="https://github.com/picocms/Pico/releases/latest" class="button red">Download Pico</a>
+</p>
+
+### Changelog
+
+See the [full changelog](https://github.com/picocms/Pico/blob/master/changelog.txt).