瀏覽代碼

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 7 年之前
父節點
當前提交
7c3134ca08
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      layouts/partials/header.html

+ 2
- 0
layouts/partials/header.html 查看文件

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

Loading…
取消
儲存