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

github.com/budparr/gohugo-theme-ananke.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanner Smith <tannersmithtn95@gmail.com>2020-02-18 12:23:11 +0300
committerGitHub <noreply@github.com>2020-02-18 12:23:11 +0300
commitc289a90c134a344a3a039480ebf251ba910e0ff0 (patch)
tree1dcd6cfbd659a89429cba1cb4141f797c69621ca
parent81bc231eb49904abff6657c92ce472b6af4b069a (diff)
Add the post_content_classes param for changing post content font (#260)
-rw-r--r--README.md2
-rwxr-xr-xlayouts/_default/single.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 673539b..583d199 100644
--- a/README.md
+++ b/README.md
@@ -115,6 +115,8 @@ which will give you a body class like this:
<body class="avenir bg-near-white">
```
+note: The `body_classes` parameter will not change the font used in post content. To do this, you must use the `post_content_classes` parameter.
+
You can find a list of available typefaces [here](https://github.com/tachyons-css/tachyons/blob/v4.7.0/src/_font-family.css).
And a list of background colors [here](https://github.com/tachyons-css/tachyons/blob/v4.7.0/src/_skins.css#L96).
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index a940308..e63f129 100755
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -45,7 +45,7 @@
<span class="f6 mv4 dib tracked"> - {{ .WordCount}} words</span>
{{ end }}
</header>
- <div class="nested-copy-line-height lh-copy 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 mid-gray pr4-l w-two-thirds-l">
{{- .Content -}}
{{- partial "tags.html" . -}}
<div class="mt6 instapaper_ignoref">