X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/032688e5cf147ccfc85c892eb9c34a4fae488a1f..42eac9248bf3de3922cd526a3fd6c6554b4b0640:/personal/_layouts/default.html?ds=sidebyside diff --git a/personal/_layouts/default.html b/personal/_layouts/default.html index 897abcc..08ae220 100644 --- a/personal/_layouts/default.html +++ b/personal/_layouts/default.html @@ -5,16 +5,15 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> - {% assign title = page.title %} - {% assign pretitle = page.pretitle %} - {% if page.vars %}{% include {{ page.vars | prepend: "vars/" }} %}{% endif %} - - <title>{% if pretitle %}{{ pretitle }} ⢠{% endif %}{{ title }}</title> - {% if page.excerpt %}<meta name="description" content="{{ page.excerpt | newline_to_br | replace:'<br />',' ' | strip_html | strip_newlines | truncate: 160 }}">{% endif %} + <title>{{ page.title }}</title> + {% if page.excerpt %}<meta name="description" content="{{ page.excerpt | newline_to_br | replace:'<br />',' ' | strip_html | strip_newlines | truncate: 192 }}">{% endif %} <link rel="stylesheet" href="{{ site.baseurl }}/style.css"> - <link rel="canonical" href="{{ site.url }}{{ site.baseurl }}{{ page.url | replace:'/index.html','/' }}"> - {% if page.rss %}<link rel="alternate" type="application/rss+xml" title="{{ site.blog.title }}" href="{{ site.baseurl }}/blog/feed.xml" />{% endif %} + <link rel="canonical" href="{{ site.url }}{{ site.baseurl }}{{ page.url }}"> + {% if page.rss %} + <link rel="alternate" type="application/atom+xml" title="{{ site.blog.title }}" href="{{ site.baseurl }}/blog/feed.xml" /> + {% if page.category %}<link rel="alternate" type="application/atom+xml" title="{{ page.title }}" href="{{ site.baseurl }}{{ page.url | replace: '.html','.xml' }}" />{% endif %} + {% endif %} </head> <body><div id="-frame"> @@ -25,23 +24,15 @@ </nav> <article id="-content"> - {% comment %} Unfortunately, the variables we set above are not preserved for sub-layouts. So, we have to have all the layout here. {% endcomment %} - {% if pretitle %} - <header class="pretitle"> - {% if page.date %} - <div class="side"><a href="{{ site.baseurl }}{{ page.url }}">Permalink</a> ⢠{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} ⢠{{ page.author }}{% endif %}{% if page.meta %} ⢠{{ page.meta }}{% endif %}</div> - {% endif %} - <h1>{{ pretitle }}</h1> - </header> - {% endif %} - - <header class="title"> - <h1>{{ title }}</h1> - </header> - {{ content }} </article> + {% if site.mpi_sws_imprint %} + <div id="-footer"><small> + <a href="https://imprint.mpi-klsb.mpg.de/sws/people/jung">Imprint</a> | + <a href="https://data-protection.mpi-klsb.mpg.de/sws/people/jung">Data Protection</a> + </small></div> + {% endif %} </div></body> </html>