From 231964080b26b3b3cab91b2c6144a784d3bef99d Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Sun, 14 Jun 2020 00:06:35 +0800 Subject: In-post APlayer now support multiple files --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/partials/head.html') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0603c4d..6470262 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -41,7 +41,7 @@ {{ end }} -{{ if .Params.playerURL }} +{{ if .Params.player }} {{ end }} {{ if .Site.Params.useDisqusJS }} -- cgit v1.2.3 From 398ca6e2f300cce5c7bf7fa69fde42b4b592f5a4 Mon Sep 17 00:00:00 2001 From: Jiawei Huang Date: Sun, 14 Jun 2020 14:05:14 -0700 Subject: Add preliminary Google AdSense support When `googleAdsense` is set in `config.toml`, the AdSense code snippet will be inserted between the `` tags of your site. Only Google AdSense Auto ads is supported at the moment. --- layouts/partials/head.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'layouts/partials/head.html') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0603c4d..b953cd8 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -41,6 +41,15 @@ {{ end }} +{{ if .Site.Params.googleAdsense }} + + +{{ end}} {{ if .Params.playerURL }} {{ end }} -- cgit v1.2.3 From 03750a600a71df1276ccfcc7c817de5cb86e3e9f Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Tue, 16 Jun 2020 15:42:19 +0800 Subject: Fix meta text align in archives and search page --- layouts/partials/head.html | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'layouts/partials/head.html') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 88f398f..88d3d19 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -9,7 +9,6 @@ {{ partial "favicon.html" . }} - {{ if and (.IsHome) (.Site.Params.subTitle) }} {{ .Site.Title }} - {{ .Site.Params.subTitle }} @@ -22,16 +21,13 @@ {{ end }} {{ if or (.Params.description) (.Site.Params.description) }} - + {{ end }} {{ if .Params.tags }} {{ end }} - {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }} - {{ if .Site.Params.useHugoPipes }} {{ $options := (dict "targetPath" "assets/css/fuji-custom.min.css" "outputStyle" "compressed") }} @@ -40,17 +36,14 @@ {{ else }} {{ end }} - {{ with .Site.Params.googleAdsense }} {{ end}} - {{ if .Params.player }} {{ end }} {{ if .Site.Params.useDisqusJS }} {{ end }} - {{ partial "analytic-gtag.html" . }} {{ partial "analytic-cfga.html" . }} \ No newline at end of file -- cgit v1.2.3 From bcd4d3fdb1b5e6a6ede2dbc4ea64fc47642a2173 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Tue, 16 Jun 2020 16:29:16 +0800 Subject: Option darken image --- layouts/partials/head.html | 1 + 1 file changed, 1 insertion(+) (limited to 'layouts/partials/head.html') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 88d3d19..1bcdf85 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -29,6 +29,7 @@ {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }} +{{ partial "styles.html" . }} {{ if .Site.Params.useHugoPipes }} {{ $options := (dict "targetPath" "assets/css/fuji-custom.min.css" "outputStyle" "compressed") }} {{ $style := resources.Get "scss/fuji.scss" | resources.ToCSS $options }} -- cgit v1.2.3