Use <link> to refer to the Atom feed

This commit is contained in:
Mathias Bynens 2018-01-19 07:32:20 +01:00
parent ccd8f03b70
commit c62acac3df
No known key found for this signature in database
GPG Key ID: B6A1C4401A39330B

View File

@ -6,10 +6,11 @@
<title>{{ title }}</title> <title>{{ title }}</title>
<link rel="stylesheet" href="/css/index.css"> <link rel="stylesheet" href="/css/index.css">
<link rel="stylesheet" href="/posts/posts.css"> <link rel="stylesheet" href="/posts/posts.css">
<link rel="alternate" href="/feed/" type="application/atom+xml" title="{{ title }}">
</head> </head>
<body> <body>
<header> <header>
<a href="/""><img src="/img/logo.png" class="logo"></a> <a href="/"><img src="/img/logo.png" class="logo"></a>
<ul class="nav"> <ul class="nav">
{%- for nav in collections.nav | reverse -%} {%- for nav in collections.nav | reverse -%}
<li class="nav-item"><a href="{{ nav.url | url }}">{{ nav.data.navtitle }}</a></li> <li class="nav-item"><a href="{{ nav.url | url }}">{{ nav.data.navtitle }}</a></li>
@ -19,7 +20,6 @@
{{ layoutContent | safe }} {{ layoutContent | safe }}
<footer> <footer>
<p><em><a href="/feed/">Subscribe to my feed</a></em></p>
<p><em>Current page: <code>{{ page.url | url }}</code></em></p> <p><em>Current page: <code>{{ page.url | url }}</code></em></p>
</footer> </footer>
</body> </body>