diff options
-rw-r--r-- | templates/index.html | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/templates/index.html b/templates/index.html index 8de7317..1f2d933 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,12 +7,15 @@ <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="robots" content="noindex" /> <title> - {% if this.title %}{{ this.title }} -{% endif %} - {{ config.title }} + {% set this = page | default(value=section) %} + {% set len = this.components | length %} + {%- if len > 0 -%} + {{ this.title }} - {{ config.title }} + {%- else -%} + {{ config.title }} + {%- endif -%} </title> - <link rel="icon" type="image/png" href="/avatar.png" /> - <meta name="description" - content="{{ section.description | default(value=config.description) }}" /> + <meta name="description" content="{{ config.description }}" /> <meta name="keywords" content="blog" /> <link rel="alternate" type="application/rss+xml" |