diff options
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r-- | layouts/partials/header.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index bba7b63..8546a94 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,10 +3,10 @@ <head prefix="og: http://ogp.me/ns#"> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" /> + <meta property="og:title" content="{{ if ne .URL "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }}" /> {{ with .Site.Params.themecolor }} <meta name="theme-color" content="{{ . }}" /> {{ end }} - <meta property="og:title" content="{{ if ne .Url "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }}" /> <meta property="og:site_name" content="{{ .Site.Title }}" /> <meta property="og:url" content="{{ .Permalink }}" /> {{ with .Params.images }}{{ range first 5 . }} @@ -17,7 +17,7 @@ {{ with .Site.Params.facebook }} <meta property="og:article:author" content="https://facebook.com/{{ . }}" /> {{ end }} - <meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHtml }}" /> + <meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" /> {{ range .Params.tags }} <meta property="og:article:tag" content="{{ . }}" /> {{ end }} @@ -26,32 +26,32 @@ {{ end }} <title> - {{ if ne .Url "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }} + {{ if ne .URL "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }} </title> - <link rel="stylesheet" href="{{ .Site.BaseUrl }}css/bootstrap.min.css" /> - <link rel="stylesheet" href="{{ .Site.BaseUrl }}css/main.css" /> - <link rel="stylesheet" href="{{ .Site.BaseUrl }}css/font-awesome.min.css" /> - <link rel="stylesheet" href="{{ .Site.BaseUrl }}css/github.css" /> + <link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap.min.css" /> + <link rel="stylesheet" href="{{ .Site.BaseURL }}css/main.css" /> + <link rel="stylesheet" href="{{ .Site.BaseURL }}css/font-awesome.min.css" /> + <link rel="stylesheet" href="{{ .Site.BaseURL }}css/github.css" /> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400" type="text/css"> - <link rel="shortcut icon" href="{{ .Site.BaseUrl }}images/favicon.ico" /> - <link rel="apple-touch-icon" href="{{ .Site.BaseUrl }}images/apple-touch-icon.png" /> - {{ if eq .Url "/" }} + <link rel="shortcut icon" href="{{ .Site.BaseURL }}images/favicon.ico" /> + <link rel="apple-touch-icon" href="{{ .Site.BaseURL }}images/apple-touch-icon.png" /> + {{ if eq .URL "/" }} <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> {{ end }} </head> <body> <header class="global-header"> <section class="header-text"> - <h1><a href="{{ .Site.BaseUrl }}">{{ .Site.Title }}</a></h1> + <h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1> {{ with .Site.Params.subtitle }} <div class="tag-line"> {{ . }} </div> {{ end }} {{ partial "link.html" . }} - {{ if ne .Url "/" }} - <a href="{{ .Site.BaseUrl }}" class="btn-header btn-back hidden-xs"> + {{ if ne .URL "/" }} + <a href="{{ .Site.BaseURL }}" class="btn-header btn-back hidden-xs"> <i class="fa fa-angle-left"></i> Home </a> |