peruna/layouts/partials/head.html

52 lines
1.9 KiB
HTML
Raw Permalink Normal View History

2018-04-03 09:51:11 +00:00
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
{{ with .Title | default .Site.Title }}
<title>{{ . }}</title>
<meta property="og:title" content="{{ . }}" />
<meta name="twitter:title" content="{{ . }}" />
{{ end }}
{{ with .Description | default .Site.Params.subtitle }}
<meta name="description" content="{{ . }}">
<meta property="og:description" content="{{ . }}">
<meta name="twitter:description" content="{{ . | truncate 200 }}">
{{ end }}
<meta name="author" content="{{ .Site.Params.author }}"/>
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:url" content="{{ .Permalink }}" />
{{ with .Params.thumbnail }}
<meta property="og:image" content="{{ . | absURL }}" />
<meta name="twitter:image" content="{{ . | absURL }}" />
{{ end }}
<meta name="twitter:card" content="summary" />
{{ with .Site.Params.twitter }}
<meta name="twitter:site" content="@{{ . }}" />
<meta name="twitter:creator" content="@{{ . }}" />
{{ end }}
{{ if .IsPage }}
<meta property="og:type" content="article" />
{{ with .Site.Params.facebook }}
<meta property="og:article:author" content="https://facebook.com/{{ . }}" />
{{ end }}
{{ else }}
<meta property="og:type" content="website" />
{{ end }}
<!-- Hugo Version number -->
{{ .Hugo.Generator -}}
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600" rel="stylesheet">
2018-04-03 16:01:55 +00:00
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
2018-04-03 09:51:11 +00:00
{{- with .Site.Params.favicon }}
<link rel='icon' type='image/x-icon' href="{{ . | absURL }}" />
{{- end -}}
{{ if eq .URL "/" }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
2018-04-03 16:01:55 +00:00
<script type="text/javascript" src="{{ .Site.BaseURL }}/js/bundle.js"></script>
2018-04-03 09:51:11 +00:00
{{ partial "head_custom.html" . }}
</head>