From cc4b6388fd2989d3830f35619873717cf932eb1e Mon Sep 17 00:00:00 2001 From: RealOrangeOne Date: Thu, 14 Jul 2016 16:11:04 +0100 Subject: [PATCH] externalise header - add support for image --- theme/templates/article.html | 7 +------ theme/templates/blog.html | 9 ++------- theme/templates/extras/header.html | 6 ++++++ theme/templates/page.html | 7 +------ theme/templates/projects.html | 7 +------ 5 files changed, 11 insertions(+), 25 deletions(-) create mode 100644 theme/templates/extras/header.html diff --git a/theme/templates/article.html b/theme/templates/article.html index 7c60897..d4b44b7 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -11,12 +11,7 @@ {% endblock %} {% block content %} -
-
-

{{ article.title }}

-
-
-
+ {% include 'extras/header.html' with context %}
{{ article.content }} diff --git a/theme/templates/blog.html b/theme/templates/blog.html index e903c51..5514565 100644 --- a/theme/templates/blog.html +++ b/theme/templates/blog.html @@ -11,16 +11,11 @@ {% endblock %} {% block content %} -
-
-

{{ article.title }}

-
-
-
+ {% include 'extras/header.html' with context %}

- Published: {{ article.date|datetime }} + Published: {{ article.date|datetime }}

{{ article.content }}
diff --git a/theme/templates/extras/header.html b/theme/templates/extras/header.html new file mode 100644 index 0000000..6aff59e --- /dev/null +++ b/theme/templates/extras/header.html @@ -0,0 +1,6 @@ + diff --git a/theme/templates/page.html b/theme/templates/page.html index 3764cfa..b5c8f53 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -12,12 +12,7 @@ {% block content %} {% if not page.no_container %} -
-
-

{{ page.title }}

-
-
-
+ {% include 'extras/header.html' with context %}
{{ page.content }} diff --git a/theme/templates/projects.html b/theme/templates/projects.html index d1717d5..a1f8636 100644 --- a/theme/templates/projects.html +++ b/theme/templates/projects.html @@ -11,12 +11,7 @@ {% endblock %} {% block content %} -
-
-

{{ article.title }}

-
-
-
+ {% include 'extras/header.html' with context %}