diff options
-rw-r--r-- | data/navigation.toml | 8 | ||||
-rw-r--r-- | data/sections.toml | 6 | ||||
-rw-r--r-- | layouts/partials/head.html | 3 |
3 files changed, 16 insertions, 1 deletions
diff --git a/data/navigation.toml b/data/navigation.toml new file mode 100644 index 0000000..5dab9be --- /dev/null +++ b/data/navigation.toml @@ -0,0 +1,8 @@ + +[[links]] +title = "Theme Setup" +url = "/theme-setup/" + +[[links]] +title = "External Link" +url = "http://mademistakes.com" diff --git a/data/sections.toml b/data/sections.toml new file mode 100644 index 0000000..3fc0e4c --- /dev/null +++ b/data/sections.toml @@ -0,0 +1,6 @@ +[posts] + title = "All posts" +[posts.image] + feature = "abstract-2.jpg" + credit = "dargadgetz" + creditlink = "http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 728afa6..794128f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -10,10 +10,11 @@ {{ if .IsHome }} {{ $.Scratch.Set "Params" .Site.Params }} {{ else if .IsNode }} - {{ $.Scratch.Set "Params" (index .Site.Data.sections (lower .Title)) }} + {{ $.Scratch.Set "Params" (index (.Site.Data.sections) (lower .Title)) }} {{ else }} {{ $.Scratch.Set "Params" .Params }} {{ end }} + {{ if .Params.tags }}<meta name="keywords" content="{{ delimit .Params.tags ", " }}">{{ end }} <!-- Open Graph and Twitter cards --> |