Merge pull request #1 from mathiasbynens/link

Use <link> to refer to the Atom feed
This commit is contained in:
Zach Leatherman 2018-01-19 05:43:25 -06:00 committed by GitHub
commit 283df5ef4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>