瀏覽代碼

Fixes #212. (#213)

tags/2.53
Jesse 5 年之前
父節點
當前提交
287b3ff5e9
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5
    3
      layouts/_default/baseof.html

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

@@ -28,10 +28,12 @@
{{ end }}

{{ if .OutputFormats.Get "RSS" }}
<link href="{{ .OutputFormats.Get "RSS" }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .OutputFormats.Get "RSS" }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ with .OutputFormats.Get "RSS" }}
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ end }}
{{ 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/schema.html" . -}}

Loading…
取消
儲存