12 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
Jan Steinke
e3f7fbe39d
enable hosting the website also on other domains (#355) 2021-07-14 09:29:08 -04:00
Sean
5001b28387
Add automatic cover image support (#303)
* Add support for auto-detection of featured images.

* Rename Partial, Add Documentation

Renamed the partial to func/GetFeaturedImage.html.

Additionally added more documentation in the partial to explain how it
worked, and what values were returned.

Co-authored-by: Sean Zimmermann <sz2243@columbia.edu>
2020-06-23 09:34:09 -04:00
Josh Lubaway
0d9656d939 Replace {{ .URL }} with {{ .Permalink }} (#216)
Using the `{{ .URL }}` token results in a warning:

    WARN 2019/10/13 15:12:12 Page's .URL is deprecated and will be removed in a
    future release. Use .Permalink or .RelPermalink. If what you want is the
    front matter URL value, use .Params.url.

Steps to reproduce
==================

Follow along with the Quick Start guide at
https://gohugo.io/getting-started/quick-start/

Running `hugo server -D` emits a warning that `.URL` is deprecated.
2019-10-26 13:00:59 -04:00
Bud Parr
6c05a67995
Improve semantic structure of pages (#151)
Fixes #149
2019-01-07 19:41:02 -05: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
Developer Davo
2a1495aaa5 Fix typo in single.html (#67) 2017-10-31 08:30:32 -04:00
Bud Parr
5fc34b0a4e
remove silly tag h/t @jhabdas 2017-04-18 20:16:27 -04:00
Bud Parr
95af995e96
remove p tags from .Summary 2017-04-17 19:02:51 -04:00
Bud Parr
f720177809
add some readme and annotations 2017-04-14 23:08:11 -04:00
Bud Parr
9e5401d0fa
change article to post 2017-04-14 22:23:18 -04:00