Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/brycematheson/allegiant.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeichi Takahashi <keichi.t@me.com>2015-05-12 15:56:37 +0300
committerKeichi Takahashi <keichi.t@me.com>2015-05-12 15:56:37 +0300
commit4d7a1fb6212b3267f8ea614d479152dbacbddbe0 (patch)
treeeedd7df88aa57d6f5af1ea48904b7da00d6cd98e
parent5b0645d194bb38ce7acd952c2c7f55fe82fdab3d (diff)
parenta741672bdfee1f864c58b2ba5415e639b5eff731 (diff)
Merge pull request #8 from ethanmad/themecolor
Add theme-color tag in header (defined by themecolor param)
-rw-r--r--README.md1
-rw-r--r--layouts/partials/header.html3
2 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2b1ddc1..c62d90b 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,7 @@ copyright = "&copy; 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 }} &middot; {{ end }} {{ .Site.Title }}" />
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:url" content="{{ .Permalink }}" />