X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/24fe480eba0379246fb3299dab1cfb46fcd923b5..f6a28d3d78e45861aa6522e7e22522877908a76b:/personal/_layouts/default.html diff --git a/personal/_layouts/default.html b/personal/_layouts/default.html index 721c6f0..97795d7 100644 --- a/personal/_layouts/default.html +++ b/personal/_layouts/default.html @@ -1,20 +1,19 @@ <!DOCTYPE html> -<html> +<html lang="en"> <head> <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,25 +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.post %} - {% include post-header.html item=page %} - {% endif %} - <h1>{{ pretitle }}</h1> - </header> - {% endif %} - - <header class="title"> - <h1>{{ title }}</h1> - </header> - {{ content }} - - {% if page.post %}<p class="comment">Comments? <a href="mailto:post-AT-ralfj-DOT-de">Drop me a mail</a>!</p>{% endif %} </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>