Merge branch 'master' of github.com:budparr/gohugo-theme-ananke into 118-fix-long-urls

This commit is contained in:
mountainbug95 2020-04-29 11:29:42 -05:00
commit cc60c8b32c
No known key found for this signature in database
GPG Key ID: 3EEE76B99FDF9A40
3 changed files with 10 additions and 2 deletions

View File

@ -115,6 +115,8 @@ which will give you a body class like this:
<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).
@ -155,6 +157,12 @@ To run in production (e.g. to have Google Analytics show up), run `HUGO_ENV=prod
HUGO_ENV=production hugo HUGO_ENV=production hugo
``` ```
Note: The above command will not work on Windows. If you are running a Windows OS, use the below command:
```
hugo --environment production
```
## Contributing ## Contributing
If you find a bug or have an idea for a feature, feel free to use the [issue tracker](https://github.com/budparr/gohugo-theme-ananke/issues) to let me know. If you find a bug or have an idea for a feature, feel free to use the [issue tracker](https://github.com/budparr/gohugo-theme-ananke/issues) to let me know.

View File

@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
{{/* NOTE: the Site's title, and if there is a page title, that is set too */}} {{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
<title>{{ block "title" . }}{{ .Site.Title }} {{ with .Params.Title }} | {{ . }}{{ end }}{{ end }}</title> <title>{{ block "title" . }}{{ with .Params.Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
<meta name="viewport" content="width=device-width,minimum-scale=1"> <meta name="viewport" content="width=device-width,minimum-scale=1">
{{ hugo.Generator }} {{ hugo.Generator }}
{{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}} {{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}}

View File

@ -45,7 +45,7 @@
<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">