Commit graph

192 commits

Author SHA1 Message Date
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
Patrick Kollitsch 8762f563f9
theme(fix): making sure the noopener rel attribute stays even with other configurations
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-20 17:23:51 +07:00
Patrick Kollitsch 7913086a0f
theme(fix): add labels and label override functionality
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-20 15:58:53 +07:00
Patrick Kollitsch 9254c455c9
theme(fix): override profile link generation with full link
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-20 15:27:19 +07:00
Patrick Kollitsch 4f3e709d83
theme(feat): social media follow links
documentation will follow at https://github.com/theNewDynamic/gohugo-theme-ananke/wiki/Social-media-network-setup

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-20 12:47:56 +07:00
Joe Mooring 0b0fe2fd45 refactor: Simplify lang attribute in html element 2024-10-17 09:36:37 -07:00
Patrick Kollitsch 321680f6ee
theme(fix): replace deprecated resources.ToCSS with css.Sass
fixes #712

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-09-17 23:31:24 +07:00
Ramiro Morales 33fbda0e9d
Fix render breakage introduced in #665 (#685)
A bare bones setup of two pages and two posts gets broken because of a
template change missed in #665

Fatal error message in readable form:
```
ERROR render:
failed to render pages:
render of "home" failed: "/themes/ananke/layouts/index.html:48:23":
execute of template failed:
template:
index.html:48:23:
executing "main" at <.Site.GetPage>: can't evaluate field Site in type string
```

Steps to reproduce:

```shell
hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo "theme = 'ananke'" >> hugo.toml
echo -e "+++\ntitle='Home'\n+++\n\nMain page" > content/_index.md
echo Foo. > content/page1.md
echo Bar > content/page2.md
mkdir -p content/post
echo "First post." > content/post/post1.md
echo "Second post." > content/post/post2.md
hugo server
Watching for changes in .../quickstart/{archetypes,assets,content,data,i18n,layouts,static,themes}
Watching for config changes in .../quickstart/hugo.toml, ...quickstart/themes/ananke/config.yaml
Start building sites …
hugo v0.125.3-474c4c02212cf97712c6fbf4159c68822ea6e078+extended darwin/amd64 BuildDate=2024-04-22T17:18:35Z VendorInfo=brew

Built in 67 ms
Error: error building site: render: failed to render pages: render of "home" failed: ".../quickstart/themes/ananke/layouts/index.html:48:23": execute of template failed: template: index.html:48:23: executing "main" at <.Site.GetPage>: can't evaluate field Site in type string
```
2024-05-03 13:43:35 -04:00
Blackeye f34c219436
Contribution: fix hard-coded link to section #664 (#665)
* allow_multiple_mainsection

* removed comment

---------

Co-authored-by: Blackeye <>
2024-04-18 11:26:30 -04: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
Melroy van den Berg c086834f0e
Change to /intent/tweet (#652)
Change from /share to /intent/tweet.
2023-09-19 11:47:32 -04: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 5f5dfb15e8
assets: update mastodon logo in social links (#597)
* assets: replace Mastodon logo

The new version is based on the logo-black.svg file distributed from
https://joinmastodon.org/branding, adjusted to match the metrics of the
other social logos.

* layouts: change the color for the mastodon social link

I've picked a purple from https://joinmastodon.org/branding.
2022-12-14 09:55:14 -05:00
Regis Philibert a0c7382c59
Fix duplicate rel attributes on social-follow 2022-12-02 16:32:01 -05:00
Regis Philibert 6b66dc32d4
Add a rel option to social registers (#596)
* Add a `rel` option to social registers

Fixes #417

* Fix typo
2022-12-02 14:22:06 -05:00
Regis Philibert b393088d09
Make sure only the title closest to content is an h1, (#585)
not the hero's.

Fixes #584
2022-10-31 11:34:59 -04: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 a98a70782c
Enable/Disable Social follow/share per service (#550)
* This allows user to set `follow: false` on a service to see it removed from the list of socials throughout.

Fixes #547

* Update README
2022-05-06 11:26:54 -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 751ac93c1b
Upgrade "minVersion" of theme to 84 (#543)
* Upgrade "minVersion" of theme to 84

Check hugo.IsExtended before trying to process scss files

Fixes #541
2022-04-21 11:48:54 -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
Regis Philibert c3f177ebd4
Remove Section mention from single/page (#531)
Fixes #522
2022-03-21 13:36:15 -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 d4e5a698a8 Update exampleSite 2022-02-11 14:54:39 -05:00
Regis Philibert ca04e6b567 Revert 36c029abb9 2022-02-11 14:51:50 -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 6045d7891c
433 fix tags layout (#472)
* Added tags class to tags list

* display tags inline

* Added di class to list

* Removed tags class
2022-02-02 11:45:48 -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 baaf9476db Remove template tags from socials SVGs
Fixes #505
2022-02-02 10:15:01 -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
Troy Lindsay 36c029abb9
Fix support for site config featured image (#489) (#490)
* Unintentionally caused by #474
2022-01-12 12:16:02 -05:00
Troy Lindsay 3789b8edae
Standardize featured_image logic (#473) (#474) 2022-01-10 15:24:14 -05:00
Regis Philibert 57e38aad38
Make disable_share settings on both page and site level (#465)
Fixes #438
2021-12-23 16:50:08 -05:00
Regis Philibert 3592ce1c03 Re-introducing site-scripts partial for user to overwrite
Fixes #464
2021-12-23 16:33:51 -05:00
Regis Philibert 73a363ca52
Fix _styles.css bad reference in GetMainCSS (#463)
Fixes #459
2021-12-23 16:02:15 -05:00
Regis Philibert 1f11fbe012
Featured image detection refactoring: (#462)
We look for .Params.featured_image
If found > we use that as URL
If we find a Page resource matching the value of the above, we use its .RelPermalink
If none of the above we look for an resource whose filepath contains `featured` or `cover` and use its .RelPermalink if found

Fixes #233
Fixes #407
2021-12-23 15:45:27 -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
Regis Philibert f078a2b4d9 Fixes #332
Fixes #333
2021-12-23 14:52:38 -05:00
Regis Philibert c7b9901e01
Refactor social service logic and UX (#425)
* Start of work

* Refactor social service logic

Update README

Fixes #422

* Add URL to contributors instuctions

* Add tiktok
2021-12-02 15:22:18 -05:00