X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/d3c771bb7374a6611cbd8e564f4e7bd4ea740660..3a5d12fe9799efa07088e976c80717212ca3be64:/personal/_layouts/default.html?ds=sidebyside diff --git a/personal/_layouts/default.html b/personal/_layouts/default.html index 5d27d6c..47fc337 100644 --- a/personal/_layouts/default.html +++ b/personal/_layouts/default.html @@ -1,17 +1,19 @@ <!DOCTYPE html> -<html> +<html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> - <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 %} + <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="{% 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 %}<link rel="alternate" type="application/rss+xml" title="{{ site.blog.title }}" href="/blog/feed.xml" />{% endif %} + <link rel="stylesheet" href="{{ site.baseurl }}/style.css"> + <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"> @@ -22,9 +24,15 @@ </nav> <article id="-content"> - {{ content }} + {{ 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>