diff options
Diffstat (limited to 'templates/base.html')
| -rw-r--r-- | templates/base.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html index 15f1dd7..c2fd24d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,7 +4,7 @@ {% block rss %} <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}"> {% endblock %} - {% set sub_title = section.title | default(value=page.title | default(value='')) %} + {% set sub_title = section?.title | default(value=page?.title | default(value='')) %} {% if sub_title %} {% set title = sub_title ~ ' - ' ~ trans(key="title") %} {% else %} @@ -28,7 +28,7 @@ <title>{{ title }}</title> <meta charset="utf-8"> <meta name="title" content="{{ title }}"> - <meta name="description" content="{{ section.description | default(value=page.description | default(value=config.description)) }}"> + <meta name="description" content="{{ section?.description | default(value=page?.description | default(value=config.description)) }}"> <meta property="og:image:width" content="200" /> <meta property="og:image:height" content="200" /> <link rel="stylesheet" href="{{ config.base_url }}/style.css"> |
