diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2021-06-05 01:21:59 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2021-06-05 01:21:59 -0600 |
commit | 0e91926ff40b3df1914375165633bb703c176558 (patch) | |
tree | e324842456b2651f5bf384f9c91222de975c3f03 /blog/plt/base.html | |
parent | b171347f739b2ada7960ad50bcba47e898d890d2 (diff) |
simplify templates
Diffstat (limited to 'blog/plt/base.html')
-rw-r--r-- | blog/plt/base.html | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/blog/plt/base.html b/blog/plt/base.html index 9919829..3350593 100644 --- a/blog/plt/base.html +++ b/blog/plt/base.html @@ -1,20 +1,10 @@ <!DOCTYPE html> -{%if page is defined%} -<html lang="{{page.lang}}"> -{%else%} -<html lang="en"> -{%endif%} +<html lang="{%block html_lang%}{%endblock html_lang%}"> <head> <base href="{{site_base_static_url}}"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> - {%if page is defined%} - <title>{{page.title}} -- {{site_title}}</title> - {%elif tag is defined%} - <title>Posts filtered by {{tag[0]}} -- {{site_title}}</title> - {%else%} - <title>Index -- {{site_title}}</title> - {%endif%} + <title>{%block head_title%}{%endblock head_title%} -- {{site_title}}</title> <link rel="alternate" type="application/rss+xml" href="{{site_base_url}}/rss.xml" title="{{site_title}} RSS"> <link rel="icon" href="images/icons/favicon.ico"> |