26 Commits

Author SHA1 Message Date
John Pursey
a70c2a11f3 Add tachyons-style class overrides for layouts
This change adds overrides for text scale, color, alignment, and padding
in all layouts. This can be configured in site or page parameters, and
can target the default for all layouts (mostly useful for scale and
color), or for a specific layout (home, post, list, page, or terms).

The parameters are named in the following way: <type>_<style>:
- default_scale: Defines default scale for content (aka f5)
- default_color: Defines default color for content (aka mid-gray)
- default_padding: Defines default padding for content (aka ph*/pv*)
- default_align: Defines default alignment for content (aka tc/tj)

This can be overridden for "home", "post", "list", "page", or "terms" by
using instead of "default". If a type-specific style is not specified,
then it will fall back on "default", and if default is not specified, it
will fall back on the Ananke theme default.

Of course, theme users may put whatever classes they want in these
settings, but it still is valuable to specify what will be overridden
from the theme.
2021-12-12 10:15:24 -08:00
Lars Kruse
b0bf3ccca1
Allow override of date format (#291)
Previously the default date format (`January 2, 2006` ) was used for
blog and single page date visualizations.

The new parameter `date_format` can be used to override this format.
This allows the visualization of localized dates or a changed precision
(down to the minute or up to the month or year of publication).

Co-authored-by: Regis Philibert <login@regisphilibert.com>
2021-10-01 13:45:22 -04:00
Marco Kinski
775277039e
i18n made WordCount and ReadingTime singular/plural aware (#363)
Co-authored-by: Regis Philibert <login@regisphilibert.com>
2021-10-01 13:23:28 -04:00
Ian Anderson
1ae24ada38
Only print article date if it is non-zero (#397) 2021-10-01 13:14:07 -04:00
diamon
597a631988
add default author (#408) 2021-10-01 13:11:40 -04:00
Adam.S
5e250268bd
Fix + character being written as &#43; (#317)
The existing template code results in the + chartering being written in a form that is not valid for the datetime element when used in and <time> tag.

This patch fixes this issue.
references:
https://discourse.gohugo.io/t/date-lastmod-return-43-in-place-of/27033
https://github.com/gohugoio/hugo/issues/7488
2020-07-20 09:43:05 -04:00
Tanner Smith
c289a90c13
Add the post_content_classes param for changing post content font (#260) 2020-02-18 10:23:11 +01:00
mountainbug95
2e7e343ce2
Add social media share buttons to the post layout 2020-02-05 10:25:46 -06:00
Regis Philibert
925262ebbd Ignore comments on reader 2020-02-05 09:39:28 -05:00
mountainbug95
acf3e2b0a6
Fix posts to allow content to be displayed in safari reader view 2020-02-04 17:09:00 -06:00
frankieliu
813de5ccd6 Fix to take care of multiple author list, or for setting the (#221)
author parameter to a []string, which is the default for ox-hugo
output.
2020-01-05 15:16:57 -05:00
Robin van Boven
7cb108bd54 Adds an author to blog posts. (#209)
* Adds an author to blog posts.

See #113

* Feedback #209, fully contain author in {{with}}

Co-authored-by: Bud Parr <budparr@gmail.com>
2019-09-30 09:34:06 -04:00
Kirill K
a460bf8838 Add commento (#178)
* feat: add commento block

Signed-off-by: Kirill K <kovalev.kirill.a@gmail.com>

* fix: use params section in config example

Signed-off-by: Kirill K <kovalev.kirill.a@gmail.com>

* fix: use defer to execute script after page load

Signed-off-by: Kirill K <kovalev.kirill.a@gmail.com>
2019-06-09 15:46:06 -04:00
Bud Parr
4eacddaea3
Keep article padding throughout widths (#152)
Fixes #130
2019-01-07 19:48:55 -05:00
Bud Parr
6c05a67995
Improve semantic structure of pages (#151)
Fixes #149
2019-01-07 19:41:02 -05:00
budparr
fd22513cf1
Add optional reading time/word count indication
via PR #134 @looer

Added config variable so this doesn't show up

Show "reading time" and "word count" but only if one of the following are true:
1) A global config `params` value is set `show_reading_time = true`
 2) A section front matter value is set `show_reading_time = true`
3) A page front matter value is set `show_reading_time = true`
2018-11-03 23:40:51 -04:00
budparr
8c1280c2a3
Fix article padding on mobile
Fixes #115
2018-07-08 19:05:33 -04:00
Bud Parr
1f3b6f5598
Pre-2.0 Enhancements (#94)
2.0 Enhancements

- Improve template structure
- Fixed issue where flexbox was configured improperly and the side column expanded with longer content.
- No longer assume that posts are called "post"
- Simplify tag handling
- Improve related posts handling
- Support native Table of contents (if declared in params)
- Add DISQUS commenting (if disqusShortname added to config)
- Uses Hugo's Related content feature 
- Add asset hashing to Webpack for performance
2018-04-09 12:33:10 -04:00
Bud Parr
8f4c3b571d
use better class names 2017-05-02 08:16:53 -04:00
Bud Parr
f720177809
add some readme and annotations 2017-04-14 23:08:11 -04:00
Bud Parr
2dfd957296
clean up 2017-04-14 21:58:31 -04:00
Bud Parr
53df85690d
wip clean up and annotations 2017-04-14 12:37:12 -04:00
Bud Parr
6331805b90
clean up layouts 2017-04-13 23:01:23 -04:00
Bud Parr
426676fd3c
page layout [wip] 2017-04-11 22:22:06 -04:00
Bud Parr
77514eab9e
wip layout mobile 2017-04-10 23:48:09 -04:00
Bud Parr
98bc281a57
first commit 2017-04-10 21:27:13 -04:00