Add simple content layout and use Markdown to implement Download page
This commit is contained in:
parent
cd9a43abab
commit
0d954a8d43
3 changed files with 49 additions and 18 deletions
34
_layouts/simple-content.html
Normal file
34
_layouts/simple-content.html
Normal file
|
@ -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 %}
|
|
@ -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
download.md
Normal file
15
download.md
Normal file
|
@ -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).
|
Loading…
Add table
Reference in a new issue