diff --git a/layouts/404.html b/layouts/404.html.twig similarity index 95% rename from layouts/404.html rename to layouts/404.html.twig index 0271053..02befbe 100644 --- a/layouts/404.html +++ b/layouts/404.html.twig @@ -1,15 +1,11 @@ - {% include 'include/head.html' %} - -

{{ page.title }}

- - \ No newline at end of file + diff --git a/layouts/_default/list.html b/layouts/_default/list.html.twig similarity index 66% rename from layouts/_default/list.html rename to layouts/_default/list.html.twig index 58aefaa..98592d9 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html.twig @@ -1,29 +1,20 @@ - {% include 'include/head.html' %} - - {% include 'include/sidebar.html' %} -
- {% for post in site.pages|filterBySection(page.pathname)|sortByDate %} +{% for post in site.pages|filterBySection(page.pathname)|sortByDate %}

- - {{ post.title }} - + {{ post.title }}

- - - {{ post.content|excerpt }} +{{ post.content|excerpt }}
{% endfor %}
- diff --git a/layouts/_default/page.html b/layouts/_default/page.html.twig similarity index 88% rename from layouts/_default/page.html rename to layouts/_default/page.html.twig index fc7bad0..3edce5a 100644 --- a/layouts/_default/page.html +++ b/layouts/_default/page.html.twig @@ -1,16 +1,11 @@ - {% include 'include/head.html' %} - - {% include 'include/sidebar.html' %} -

{{ page.title }}

- {{ page.content }} +{{ page.content }}
- - \ No newline at end of file + diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html.twig similarity index 85% rename from layouts/_default/taxonomy.html rename to layouts/_default/taxonomy.html.twig index 3cff744..c2cbf4a 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html.twig @@ -1,22 +1,17 @@ - {% include 'include/head.html' %} - - {% include 'include/sidebar.html' %} -

{{ page.singular|title }} "{{ page.title }}"

- diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html.twig similarity index 77% rename from layouts/_default/terms.html rename to layouts/_default/terms.html.twig index 836560f..88b5451 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html.twig @@ -1,26 +1,21 @@ - - + {% include 'include/head.html' %} - - {% include 'include/sidebar.html' %} -

{{ page.plural }}

- diff --git a/layouts/blog/page.html b/layouts/blog/page.html.twig similarity index 76% rename from layouts/blog/page.html rename to layouts/blog/page.html.twig index e53412d..f00ffef 100644 --- a/layouts/blog/page.html +++ b/layouts/blog/page.html.twig @@ -1,24 +1,19 @@ - {% include 'include/head.html' %} - - {% include 'include/sidebar.html' %} -

{{ page.title }}

- {% if page.date %} +{% if page.date %} {{ page.date|date("j M Y") }} - {% endif %} - {{ page.content }} +{% endif %} +{{ page.content }}

- {% for tag in page.tags %} +{% for tag in page.tags %} #{{ tag }}  - {% endfor %} +{% endfor %}

- - \ No newline at end of file + diff --git a/layouts/include/head.html b/layouts/include/head.html.twig similarity index 71% rename from layouts/include/head.html rename to layouts/include/head.html.twig index 061d07a..1206bb2 100644 --- a/layouts/include/head.html +++ b/layouts/include/head.html.twig @@ -2,32 +2,27 @@ - - - {% if page.title == "Home" %} - {{ site.title }} · {{ site.baseline }} - {% else %} - {{ page.title }} · {{ site.title }} - {% endif %} +{% if page.title == "Home" %} +{{ site.title }} · {{ site.baseline }} +{% else %} +{{ page.title }} · {{ site.title }} +{% endif %} - - - - + + + - - - + - \ No newline at end of file + diff --git a/layouts/include/sidebar.html b/layouts/include/sidebar.html.twig similarity index 87% rename from layouts/include/sidebar.html rename to layouts/include/sidebar.html.twig index c76e142..378ac25 100644 --- a/layouts/include/sidebar.html +++ b/layouts/include/sidebar.html.twig @@ -6,15 +6,11 @@

{{ site.description }}

- -

Powered by {{ phpoole.poweredby }} & Hyde.

diff --git a/layouts/index.html b/layouts/index.html.twig similarity index 62% rename from layouts/index.html rename to layouts/index.html.twig index e013794..273d73f 100644 --- a/layouts/index.html +++ b/layouts/index.html.twig @@ -1,29 +1,20 @@ - {% include 'include/head.html' %} - - {% include 'include/sidebar.html' %} -
- {% for post in site.pages|filterBySection('blog')|sortByDate|slice(0, 5) %} +{% for post in site.pages|filterBySection('blog')|sortByDate|slice(0, 5) %}

- - {{ post.title }} - + {{ post.title }}

- - - {{ post.content|excerpt }} +{{ post.content|excerpt }}
- {% endfor %} +{% endfor %}
- diff --git a/layouts/sitemap.html b/layouts/sitemap.xml.twig similarity index 100% rename from layouts/sitemap.html rename to layouts/sitemap.xml.twig