From 8a84ded36057bf67176891f7b612d2ce0bf11f11 Mon Sep 17 00:00:00 2001 From: Stanley Nguyen Date: Fri, 22 May 2020 20:47:53 +0800 Subject: [PATCH] feat(meta_tags) Add meta tags --- README.md | 1 + archetypes/default.md | 6 +++ layouts/partials/extended_head.html | 4 ++ layouts/partials/head.html | 58 +++++++++++++++++++++++++---- 4 files changed, 61 insertions(+), 8 deletions(-) create mode 100644 layouts/partials/extended_head.html diff --git a/README.md b/README.md index b136e33..bae81dd 100644 --- a/README.md +++ b/README.md @@ -53,4 +53,5 @@ copyright = "© 2019. Theme by \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3577427..8391b18 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,17 +1,59 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + {{ if isset .Params "date" }} + + {{ end }} + + + {{ with .OutputFormats.Get "RSS" }} + + {{ end }} + + + {{ with .OutputFormats.Get "json" }} + + {{ end }} {{ if .IsHome }}{{ else }}{{ .Title }} - {{ end }}{{ .Site.Title }} + + + {{ partial "extended_head.html" . }} + {{ template "_internal/google_analytics_async.html" . }} - \ No newline at end of file +