diff options
author | Ethan Madison <ethan@ethanmad.com> | 2015-05-11 09:47:02 +0300 |
---|---|---|
committer | Ethan Madison <ethan@ethanmad.com> | 2015-05-11 10:13:57 +0300 |
commit | a741672bdfee1f864c58b2ba5415e639b5eff731 (patch) | |
tree | 3e35186c6b29ca61e2e8dd68c924a88d6624a28f | |
parent | 883da9dc3adce02bebf82157737845f59c98a1d6 (diff) |
Add theme-color tag in header (defined by themecolor param)
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | layouts/partials/header.html | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -53,6 +53,7 @@ copyright = "© Copyright notice" bio = "Your short bio/tagline" # Short subtitle/tagline. This is displayed in the header. subtitle = "is a software developer, hardware hacker and a beer lover. He believes in the power of code." + themecolor = "#hexcolor" # Defines the tab color in Chrome for Android. ``` ## Usage diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 1d870d9..bba7b63 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,6 +3,9 @@ <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" /> + {{ 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 }}" /> |