Merge pull request #36 from go-gitea/bugs

fix render bug
This commit is contained in:
Kim "BKC" Carlbäcker 2017-06-13 17:19:43 +02:00 committed by GitHub
commit fec7939c0f
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta property="og:title" content="{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}"></meta>
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
{{ if .IsPage }}
<meta property="og:description" content="{{ if .IsPage }}{{ .Description }}{{end}}" />
{{ end }}
<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>