X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/075f6ea9838afa4f9888f8d58a5b7e7ed128a045..33e80d85e602c0771d3403c9740ae7972bef55ae:/_layouts/default.html?ds=inline diff --git a/_layouts/default.html b/_layouts/default.html index 5fe8d4d..5d27d6c 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -5,26 +5,22 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> - <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title> + <title>{% if page.pretitle %}{{ page.pretitle }} ⢠{% endif %}{{ page.title }}</title> {% if page.excerpt %}<meta name="description" content="{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}">{% endif %} - <link rel="stylesheet" href="/style.css"> + <link rel="stylesheet" href="{% if page.absolute_urls %}{{ site.url }}{% endif %}/style.css"> {% capture canonicalurl %}{{ page.url | replace:'index.html','' }}{% endcapture %} <link rel="canonical" href="{{ canonicalurl | prepend: site.url }}"> - {% if page.rss or page.layout == 'post' %}<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.url }}" />{% endif %} + {% if page.rss %}<link rel="alternate" type="application/rss+xml" title="{{ site.blog.title }}" href="/blog/feed.xml" />{% endif %} </head> - <body><div id="-frame"> - - <header id="-title"> - <h1>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</h1> - </header> <nav id="-navi"> - {% include menu-level.html menu=site.structure base="" above=true %} + {% assign menu = site.pages | menu: page.url %} + {% include menu-level.html menu=menu %} </nav> - + <article id="-content"> {{ content }} </article>