From 028f23e96dd4c6a86465cb616be84480ac3a7a1e Mon Sep 17 00:00:00 2001 From: Ahmed M Alaa Date: Sat, 3 Dec 2022 21:01:01 +0200 Subject: init: just ported the theme --- templates/base.html | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 templates/base.html (limited to 'templates/base.html') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..e50dc0a --- /dev/null +++ b/templates/base.html @@ -0,0 +1,99 @@ + + + + + + + + + {% if page.title %} + {% set title = page.title %} + {% else %} + {% set title = config.title %} + {% endif %} + + {% if page.extra.author %} + {% set author = page.extra.author %} + {% else %} + {% set author = config.extra.author %} + {% endif %} + + {% if page.description %} + {% set description = page.description | truncate(length=150) %} + {% else %} + {% set description = config.description | truncate(length=150) %} + {% endif %} + + {% if page.extra.image %} + {% set image = get_url(path=page.extra.image, trailing_slash=false) %} + {% else %} + {% set image = get_url(path=config.extra.logo, trailing_slash=false) %} + {% endif %} + + {% if page.permalink %} + {% set url = page.permalink %} + {% else %} + {% set url = config.base_url %} + {% endif %} + + {% if title %}{{ title }}{% endif %} + {% block metatags %} + {% if title %}{% endif %} + {% if author %}{% endif %} + {% if description %}{% endif %} + + + + + {% if title %}{% endif %} + {% if title %}{% endif %} + {% if description %}{% endif %} + {% if image %}{% endif %} + + + + {% if title %}{% endif %} + {% if description %}{% endif %} + {% if image %}{% endif %} + + + {% if image %}{% endif %} + + {% endblock metatags %} + {% if config.generate_feed %} + {% block feed %} + + {% endblock feed %} + {% endif %} + {% block css %} + + {% endblock css %} + + +
+
+ {% block header %}{% if title %}

{{ config.title }}

{% endif %}{% endblock header %} +
+
+ {% block content %}{% endblock content %} +
+ +
+ + + \ No newline at end of file -- cgit v1.2.3