diff options
author | Durand D'souza <durand1@gmail.com> | 2018-06-22 09:57:52 +0300 |
---|---|---|
committer | Durand D'souza <durand1@gmail.com> | 2018-06-22 09:57:52 +0300 |
commit | 8b2714c934c7198fd58e3d24dbc26f3f7de4bc8f (patch) | |
tree | a553c1862e3eb312abc57dd29010ed809362f815 | |
parent | 5e90cf41042be51280eef4e5dff8274b1fd83d24 (diff) |
Added default data folder
-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 --> |