mirror of https://gitea.com/gitea/theme.git
Hugo Deprecations (#85)
Merge branch 'master' into hugo-deps Hugo Deprecations Fix #83 Reviewed-on: https://gitea.com/gitea/theme/pulls/85 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: 6543 <6543@noreply.gitea.io>
This commit is contained in:
parent
325d7f0ef0
commit
7d5c374e4a
|
@ -12,16 +12,16 @@
|
|||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}"></meta>
|
||||
<meta property="og:url" content="{{ .Permalink }}"></meta>
|
||||
<meta property="og:image" content="https://docs.gitea.io/images/gitea.png"></meta>
|
||||
{{ .Hugo.Generator }}
|
||||
{{ hugo.Generator }}
|
||||
|
||||
<title>{{ if and (not .IsHome) .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
|
||||
|
||||
{{ with .Params.goimport }}<meta name="go-import" content="{{ . }}">{{ end }}
|
||||
{{ with .Params.gosource }}<meta name="go-source" content="{{ . }}">{{ end }}
|
||||
|
||||
{{ with .RSSLink }}
|
||||
<link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||
<link href="{{ . }}" 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 }}
|
||||
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
|
Loading…
Reference in New Issue