diff --git a/README.md b/README.md index 6dfdedd..71e44c4 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,22 @@ You can replace the title of your site in the top left corner of each page with site_logo = "img/logo.svg" ``` +### Set Content Font Color + +You can set the font color of the main content both globally and on individual pages: + +Globally: +Set the `text_color` param in the `config.toml` file. +``` +[params] + text_color = "green" +``` + +Individual Page (prioritized over global): +Set the `text_color` param in a page's markdown file front matter. + +note: The value of `text_color` must be a valid tachyons color class. Alist can be found [here](http://tachyons.io/docs/themes/skins/). + ### Nearly finished diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9f83574..2812b44 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -17,6 +17,7 @@ enableRobotsTXT = true filename = "sitemap.xml" [params] + text_color = "" favicon = "" site_logo = "" description = "The last theme you'll ever need. Maybe." diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 130a357..b4bc8de 100755 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,6 +1,6 @@ {{ define "main" }}
-
+
{{- .Content -}}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e63f129..382366c 100755 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -45,7 +45,7 @@ - {{ .WordCount}} words {{ end }} -
+
{{- .Content -}} {{- partial "tags.html" . -}}
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index e2d1505..cba785a 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -1,6 +1,6 @@ {{ define "main" }}
-
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 87275c7..e448fca 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,7 +1,7 @@ {{ define "main" }} {{ $data := .Data }}
-
diff --git a/layouts/index.html b/layouts/index.html index 148525e..20c899f 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,5 +1,5 @@ {{ define "main" }} -
+
{{ .Content }}
{{/* Define a section to pull recent posts from. For Hugo 0.20 this will default to the section with the most number of pages. */}} diff --git a/layouts/page/single.html b/layouts/page/single.html index ac9d199..fff3754 100644 --- a/layouts/page/single.html +++ b/layouts/page/single.html @@ -10,7 +10,7 @@ {{ .Title }} -
diff --git a/layouts/post/list.html b/layouts/post/list.html index 73c9b5c..5d05240 100644 --- a/layouts/post/list.html +++ b/layouts/post/list.html @@ -3,7 +3,7 @@ This template is the same as the default and is here to demonstrate that if you have a content directory called "post" you can create a layouts directory, just for that section. */}}
-
+
{{ .Content }}