瀏覽代碼

add Hugo RSS Link

tags/v1.1
Bud Parr 7 年之前
父節點
當前提交
1871755a89
No account linked to committer's email address
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      layouts/_default/baseof.html

+ 5
- 0
layouts/_default/baseof.html 查看文件

@@ -19,6 +19,11 @@

<link href='{{ "dist/main.css" | absURL }}' rel='stylesheet' type="text/css" />

{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}

{{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/google_news.html" . -}}

Loading…
取消
儲存