diff options
author | misumi <mismith0227@users.noreply.github.com> | 2019-12-19 15:29:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-19 15:29:53 +0300 |
commit | 9676dc18a2698647c556a528c71f1a9e4b331023 (patch) | |
tree | 409c26b87fa7703c8a6c6bb593735db5ce171e1a /layouts/partials/head.html | |
parent | c0e697fed7232ae216fc3f98195130532260e07f (diff) | |
parent | 9cb98b1a28d50174b1be0a53302390937cd86217 (diff) |
Merge pull request #123 from mismith0227/develop
release
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 16e1b98..1bdc9db 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -7,13 +7,13 @@ <meta name="twitter:title" content="{{ . }}" /> {{ end }} - {{ with .Description | default .Site.Params.subtitle }} + {{ with .Description | default ($.Param "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 name="author" content="{{ $.Param "author" }}"/> <meta property="og:site_name" content="{{ .Site.Title }}" /> <meta property="og:url" content="{{ .Permalink }}" /> @@ -23,14 +23,14 @@ {{ end }} <meta name="twitter:card" content="summary" /> - {{ with .Site.Params.twitter }} + {{ with ($.Param "twitter") }} <meta name="twitter:site" content="@{{ . }}" /> <meta name="twitter:creator" content="@{{ . }}" /> {{ end }} {{ if .IsPage }} <meta property="og:type" content="article" /> - {{ with .Site.Params.facebook }} + {{ with ($.Param "facebook") }} <meta property="og:article:author" content="https://facebook.com/{{ . }}" /> {{ end }} {{ else }} @@ -41,10 +41,10 @@ <link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css" /> <!-- Custom css files as define in config.toml --> - {{ range .Site.Params.custom_css -}} + {{ range ($.Param "custom_css") -}} <link rel="stylesheet" href="{{ . | absURL }}"> {{- end }} - {{- with .Site.Params.favicon }} + {{- with ($.Param "favicon") }} <link rel='icon' type='image/x-icon' href="{{ . | absURL }}" /> {{- end -}} {{ if eq .RelPermalink "/" }} |