Browse Source

Add the post_content_classes param for changing post content font (#260)

tags/2.6.0
Tanner Smith 4 years ago
parent
commit
c289a90c13
No account linked to committer's email address
2 changed files with 3 additions and 1 deletions
  1. 2
    0
      README.md
  2. 1
    1
      layouts/_default/single.html

+ 2
- 0
README.md View File

<body class="avenir bg-near-white"> <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). 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). And a list of background colors [here](https://github.com/tachyons-css/tachyons/blob/v4.7.0/src/_skins.css#L96).

+ 1
- 1
layouts/_default/single.html View File

<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 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 -}} {{- .Content -}}
{{- partial "tags.html" . -}} {{- partial "tags.html" . -}}
<div class="mt6 instapaper_ignoref"> <div class="mt6 instapaper_ignoref">

Loading…
Cancel
Save