Browse Source

Add RSS autodiscovery tag

.RSSLink uses the RSS URL for the given context: the site feed for the home page, the tag feed for tag pages, no URL given for single pages.
master
Adrian Short 6 years ago
parent
commit
7c3134ca08
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      layouts/partials/header.html

+ 2
- 0
layouts/partials/header.html View File

@@ -6,6 +6,8 @@
{{ "<!-- Tumble theme for Hugo: https://github.com/adrianshort/tumble -->" | safeHTML }} {{ "<!-- Tumble theme for Hugo: https://github.com/adrianshort/tumble -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ relURL "/css/main.css" }}"> <link rel="stylesheet" href="{{ relURL "/css/main.css" }}">
<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}"
href="{{ .RSSLink }}">
</head> </head>
<body> <body>
<h1 id="site-title"><a href="{{ relURL "/" }}">{{ .Site.Title }}</a></h1> <h1 id="site-title"><a href="{{ relURL "/" }}">{{ .Site.Title }}</a></h1>

Loading…
Cancel
Save