24 Commits

Author SHA1 Message Date
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
Jeremy Mayeres
e64f74c492
theme(fix): social follow/share using new config (#821)
A recent commit changed the config for social to use a map instead of a
list, this broke the social share/follow, though a quick fix seems to
restore it and removes the need for sorting.

Closes #808

I checked the wikipedia example from the original issue and it seems
like this will also fix that. I'm not sure if you had anything else to
fix, feel free to push to my branch.
2025-02-09 15:03:52 +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
1f4ac20f4f
theme(fix): remove additional config load and some refactoring
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-12-15 13:00:09 +07:00
Ramiro Morales
58e742ef62
theme(fix): share link building when params particle is present (#769)
In these cases the site permalink is used instead of the social network
URL for sharing as defined in the `link` value
(https://www.linkedin.com/shareArticle in the below example)

Most visible case is LinkedIn but all social networks that have

```toml
[ananke.social.networks.particles]
...
params = "..."
```

in `config/_default/params.toml` are affected by this bug.

Closes #768.
2024-10-26 06:05:18 +07:00
Patrick Kollitsch
ae14ccf407
docs(fix): update theme.toml with min version and authors
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-24 15:28:55 +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
825ea52af9
theme(fix): cleanup unused functions
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-21 06:02:43 +07:00
Patrick Kollitsch
14eeb655ce
theme(fix): hover color for social icons
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2024-10-21 05:59:52 +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
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
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
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
ca04e6b567 Revert 36c029abb9 2022-02-11 14:51:50 -05:00
Regis Philibert
8cd36f504e
Use .Render for summary and summary-with-image throughout (#498) 2022-01-19 11:24:13 -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
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
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
Jan Steinke
e3f7fbe39d
enable hosting the website also on other domains (#355) 2021-07-14 09:29:08 -04:00
Regis Philibert
6a8f9511aa Fix resource transformation
Fixes #426
2021-06-17 09:21:34 -04:00
Regis Philibert
6eb54ab5fd
Refactor styling to drop PostCSS (#424)
Update custom_css logic (ensure retrocompat)

Fixes #423
2021-06-15 09:58:27 -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