88 Commits

Author SHA1 Message Date
Patrick Kollitsch
36503c4f9d
refactor: sort css classes
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2025-03-29 08:51:01 +07:00
Patrick Kollitsch
c789473802
theme(fix): hyperlink text color on home different from other pages (on more layouts)
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2025-03-29 08:26:32 +07:00
Patrick Kollitsch
180471112e
refactor: move all template methods to proper GoHugo methods
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2025-03-10 16:29:18 +07:00
Patrick Kollitsch
3fc0dba401
theme(fix): add author bylines and fix author generation
closes #623

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2025-02-09 15:55:24 +07:00
Patrick Kollitsch
2bd232b5ec
refactor(codestyle): rewrite author meta tag generation
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2025-02-09 15:54:05 +07:00
Patrick Kollitsch
5ab0adb0e1
refactor: using full file names for partials
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2025-02-01 06:58:46 +07:00
Patrick Kollitsch
f672979149
theme(fix): move by.html into single.html
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2025-01-31 08:22:40 +07:00
Patrick Kollitsch
e726c8b70f
docs: remove comments about HUGO_ENV
we use internal methods like  and

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-29 14:25:37 +07:00
Patrick Kollitsch
cc6da237ea
theme(fix): use internal methods to evaluate environment
closes #625
closes #733
closes #453
closes #574

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-21 10:03:45 +07:00
Patrick Kollitsch
d9f9cb513f
theme(feat): social share links (wip)
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-21 05:46:32 +07:00
Joe Mooring
0b0fe2fd45 refactor: Simplify lang attribute in html element 2024-10-17 09:36:37 -07:00
Johannes Arnold
0d068637cc
Include authors meta tag (#634) 2024-04-18 11:23:24 -04:00
Joe Mooring
91df000ca8
Access Disqus shortname from canonical location (#660) 2023-11-22 11:05:23 -05:00
mathew
bd759431a9
Add missing "read more" link to summary.html (#658)
* Add missing "read more" link to summary.html

* Fix layouts/post/summary to add read more link
2023-11-21 15:08:47 -05:00
mathew
64dc2b6dea
Fix capitalization of single header for a11y (#657)
Thank you!
2023-11-21 15:06:16 -05:00
Joris Conijn
221a0d8817
feat: add canonical url support (#650)
When you want to publish content that is already published on a different site. You need to reference a canonical url of the original content.
By defining the `canonicalUrl` in the front matter definition the canonical url is set in the headers.
2023-11-21 14:41:58 -05:00
Regis Philibert
c62bf44379
html[lang]: use site.Language.Lang when languageCode is not set. (#617)
Fixes #613
2023-02-03 14:55:04 -05:00
Aren Siekmeier
6affbfb0dd
fix permissions (#581) 2022-12-14 09:56:24 -05:00
James Henstridge
5a8b531a7c
Improve links for sitemap and taxonomies (#569)
* layouts: use absURL to construct absolute URLs instead of concatenating with .Site.BaseURL

* layouts: let hugo generate URLs to taxonomy terms

* layouts: link to current language's home page in the site footer
2022-09-07 08:36:32 -04:00
Steven Solomon
26a78654fa
Add support for GA4 (#572)
Use new default Hugo GA template
2022-09-06 10:05:55 -04:00
Regis Philibert
470ea40982
Only apply the absURL on images served through satic directory (#557)
This will solve the subdirectory edge case without communication

Fixes #556
2022-06-10 15:36:57 -04:00
Regis Philibert
c49009b823 Only add html[dir] attr if languageDirection is explicitly set 2022-04-21 14:23:44 -04:00
Meir Kriheli
19242fd2f8
Added support for Right-To-Left languages (#532)
* Added support for Right-To-Left languages

* Added language-direction partial
2022-04-21 14:17:49 -04:00
Charles Brunet
5520ed119f
use time.Format to format dates. It allows dates to be localized. (#537)
* use time.Format to format dates. It allows dates to be localized.

* Keep old default format, to remain compatible with older versions of hugo
2022-04-21 13:15:53 -04:00
Regis Philibert
8915e56e6e
Localize "By" (#530)
* Localize "By" for some languages (En/De/Es/Fr/It/Pt/No) and wrap string in a dedicated template.

Fixes #528
2022-04-07 13:34:56 -04:00
Robert
0e73c5b18c
Change section name to section title in summary (#520)
* Change section name to section title

Mimics functionality in page.html. Fix #519

* Keep title as specified

* Include span in conditional
2022-02-28 11:00:00 -05:00
Regis Philibert
87f97e55bb Allow certain pages to not be indexed by SE
Fixes #499
2022-02-02 13:42:05 -05:00
Troy Lindsay
5de8db332c
Fix support for img width (#480) (#481)
Co-authored-by: Regis Philibert <login@regisphilibert.com>
2022-02-02 12:51:43 -05:00
Jack Jackson
f6329f3e37
Use i18n string for taxonomy layout (#500)
This allows for overriding of the string (without overriding the whole
layout), such as
[here](23240c3367)
2022-02-02 11:05:42 -05:00
Regis Philibert
8cd36f504e
Use .Render for summary and summary-with-image throughout (#498) 2022-01-19 11:24:13 -05:00
Regis Philibert
d644dfbe42 User summary template file for taxonomy.html
Fixes #496
2022-01-18 16:13:14 -05:00
Regis Philibert
3592ce1c03 Re-introducing site-scripts partial for user to overwrite
Fixes #464
2021-12-23 16:33:51 -05:00
Tanner Smith
3b30dfbac3
Add option to change content font color (#286)
Co-authored-by: Regis Philibert <login@regisphilibert.com>
2021-12-23 15:01:14 -05: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
Regis Philibert
ffd9d903c9
Add optional processing of styles with Hugo Pipes (#387)
* Using resources.PostCSS to handle stylesheets

* Allow optional processing of assets through Hugo Pipes

* We can settle with 0.64.0
2021-01-19 15:43:02 -05:00
Enguerran
f5cdf1f3a6
Update baseof template (#348)
* Update comments about internal templates

* Add missing meta description for SEO

* Add variable scoping to partial

See https://gohugo.io/templates/partials/#variable-scoping
2020-10-06 08:15:01 -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
Zihang Ye
506175f56f
Add translation for taxonomy page (#299) 2020-06-17 18:31:05 -04:00
Tanner Smith
9752a70c09
Add head partial (#285)
* Add head-additions partial
2020-06-03 16:01:01 -05:00
nickjwhite
cfbd40cd86
Fix relURL for custom_css (#252)
The way relURL was used meant that one needed to preface the custom_css
entries with a slash, or the href would be incorrectly set to
subdircss/mycss.css rather than subdir/css/mycss.css, in the case of
a baseURL in a subdir.

Co-authored-by: Nick White <git@njw.name>
2020-06-03 10:16:59 -04:00
Tanner Smith
252a11baa7
Swap the page title and site title in page <title> elements (#272) 2020-04-28 12:53:57 -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