diff options
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r-- | layouts/partials/header.html | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8475157..15ad7eb 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -5,7 +5,7 @@ <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <meta property="og:title" content="{{ if ne .URL "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }}" /> + <meta property="og:title" content="{{ if ne .RelPermalink "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }}" /> <meta property="og:site_name" content="{{ .Site.Title }}" /> <meta property="og:url" content="{{ .Permalink }}" /> @@ -22,7 +22,7 @@ {{ end }} <title> - {{ if ne .URL "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }} + {{ if ne .RelPermalink "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }} </title> <meta name="description" content="{{ .Site.Params.description }}" /> @@ -37,17 +37,17 @@ <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400|Inconsolata" /> - {{ if .Site.Params.RSSLink}} - <link href="{{.Site.Params.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + {{ if .Site.Params.RSSLink }} + <link href="{{ .Site.Params.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> {{else}} - {{ if ne .URL "/" }} + {{ if ne .RelPermalink "/" }} <link href="{{ .Site.BaseURL }}index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> {{ end }} {{if .IsNode}} - <link href="{{.RSSLink}}" rel="alternate" type="application/rss+xml" title="{{ if ne .URL "/" }}{{ .Title }} · {{ end }}{{ .Site.Title }}" /> + <link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ if ne .RelPermalink "/" }}{{ .Title }} · {{ end }}{{ .Site.Title }}" /> {{end}} {{end}} - {{.Hugo.Generator}} + {{hugo.Generator}} <link rel="canonical" href="{{ .Permalink }}" /> @@ -62,13 +62,10 @@ ga('send', 'pageview'); </script> - {{end}} -<div id="particles-js"></div> -<script src="{{ .Site.BaseURL }}js/particles.min.js"></script> -<script src="{{ .Site.BaseURL }}js/particles.js"></script> + {{end}} </head> <body class="nav-closed"> - +<div id="particles-js"></div> {{ partial "navigation.html" . }} <div class="site-wrapper"> |