site_logo = "img/logo.svg" | 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 | ### Nearly finished | ||||
filename = "sitemap.xml" | filename = "sitemap.xml" | ||||
[params] | [params] | ||||
text_color = "" | |||||
favicon = "" | favicon = "" | ||||
site_logo = "" | site_logo = "" | ||||
description = "The last theme you'll ever need. Maybe." | description = "The last theme you'll ever need. Maybe." |
{{ define "main" }} | {{ define "main" }} | ||||
<article class="pa3 pa4-ns nested-copy-line-height nested-img"> | <article class="pa3 pa4-ns nested-copy-line-height nested-img"> | ||||
<section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray"> | |||||
<section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}"> | |||||
{{- .Content -}} | {{- .Content -}} | ||||
</section> | </section> | ||||
<section class="flex-ns flex-wrap justify-around mt5"> | <section class="flex-ns flex-wrap justify-around mt5"> |
<span class="f6 mv4 dib tracked"> - {{ .WordCount}} words</span> | <span class="f6 mv4 dib tracked"> - {{ .WordCount}} words</span> | ||||
{{ end }} | {{ end }} | ||||
</header> | </header> | ||||
<div class="nested-copy-line-height lh-copy {{ $.Param "post_content_classes" | default "serif"}} f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l"> | |||||
<div class="nested-copy-line-height lh-copy {{ $.Param "post_content_classes" | default "serif"}} f4 nested-links nested-img {{ $.Param "text_color" | default "mid-gray" }} pr4-l w-two-thirds-l"> | |||||
{{- .Content -}} | {{- .Content -}} | ||||
{{- partial "tags.html" . -}} | {{- partial "tags.html" . -}} | ||||
<div class="mt6 instapaper_ignoref"> | <div class="mt6 instapaper_ignoref"> |
{{ define "main" }} | {{ define "main" }} | ||||
<article class="cf pa3 pa4-m pa4-l"> | <article class="cf pa3 pa4-m pa4-l"> | ||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray"> | |||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img {{ $.Param "text_color" | default "mid-gray" }}"> | |||||
<p>Below you will find pages that utilize the taxonomy term “{{ .Title }}”</p> | <p>Below you will find pages that utilize the taxonomy term “{{ .Title }}”</p> | ||||
</div> | </div> | ||||
</article> | </article> |
{{ define "main" }} | {{ define "main" }} | ||||
{{ $data := .Data }} | {{ $data := .Data }} | ||||
<article class="cf pa3 pa4-m pa4-l"> | <article class="cf pa3 pa4-m pa4-l"> | ||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray"> | |||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img {{ $.Param "text_color" | default "mid-gray" }}"> | |||||
{{ .Content }} | {{ .Content }} | ||||
</div> | </div> | ||||
</article> | </article> |
{{ define "main" }} | {{ define "main" }} | ||||
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray"> | |||||
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}"> | |||||
{{ .Content }} | {{ .Content }} | ||||
</article> | </article> | ||||
{{/* Define a section to pull recent posts from. For Hugo 0.20 this will default to the section with the most number of pages. */}} | {{/* Define a section to pull recent posts from. For Hugo 0.20 this will default to the section with the most number of pages. */}} |
{{ .Title }} | {{ .Title }} | ||||
</h1> | </h1> | ||||
</header> | </header> | ||||
<div class="nested-copy-line-height lh-copy f4 nested-links nested-img mid-gray"> | |||||
<div class="nested-copy-line-height lh-copy f4 nested-links nested-img {{ $.Param "text_color" | default "mid-gray" }}"> | |||||
{{ .Content }} | {{ .Content }} | ||||
</div> | </div> | ||||
</article> | </article> |
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. | 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. | ||||
*/}} | */}} | ||||
<article class="pa3 pa4-ns nested-copy-line-height nested-img"> | <article class="pa3 pa4-ns nested-copy-line-height nested-img"> | ||||
<section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray"> | |||||
<section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}"> | |||||
{{ .Content }} | {{ .Content }} | ||||
</section> | </section> | ||||
<aside class="flex-ns flex-wrap justify-around mt5"> | <aside class="flex-ns flex-wrap justify-around mt5"> |
<div class="mb3 pa4 mid-gray overflow-hidden"> | |||||
<div class="mb3 pa4 {{ $.Param "text_color" | default "mid-gray" }} overflow-hidden"> | |||||
{{ if .Date }} | {{ if .Date }} | ||||
<div class="f6"> | <div class="f6"> | ||||
{{ .Date.Format "January 2, 2006" }} | {{ .Date.Format "January 2, 2006" }} |