David Guillot
e2e1011bde
[FEATURE] new opengraph 'fediverse:creator' meta ( #1619 )
...
Deploy Hugo PaperMod Demo to Pages / build (push) Has been cancelled
Deploy Hugo PaperMod Demo to Pages / deploy (push) Has been cancelled
**Usage**
Site level:
params:
social:
fediverse_creator: "@username@mastodon.social"
Page (Overrides Site level value):
---
title: "My Page"
social:
fediverse_creator: "@username@mastodon.social"
---
Closes #1618 #1642
---------
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2025-03-01 20:51:06 +05:30
Joe Mooring
5a2a88cab1
[PATCH] tpl/tplimpl: Fix double-escaping in opengraph template
...
Deploy Hugo PaperMod Demo to Pages / build (push) Waiting to run
Deploy Hugo PaperMod Demo to Pages / deploy (push) Blocked by required conditions
cherry-picked from gohugoio/hugo@fb51b69
2024-11-09 11:48:39 +05:30
Aditya Telange
d360267d4e
Re-add support for cover images in OpenGraph
...
4a4d0c0
2024-11-09 11:46:39 +05:30
Joe Mooring
8c5833bad0
[PATCH] tpl/tplimpl: Improve embedded opengraph template
...
Changes:
- Add tags per documentation
- Prefer site.Title over site.Params.title
- Plainify titles, tags, and descriptions
- Add fallback values for locale
- Fix pages related by series
- Improve readability
Co-authored-by: tomy0000000 <git@tomy.me>
Co-authored-by: sean-au <sean@powerfulwebdesign.com.au>
2024-11-09 11:39:26 +05:30
Aditya Telange
aebcc92712
JSON Schema uses 'image' for a Person and 'logo' for an Organization.
Deploy Hugo PaperMod Demo to Pages / build (push) Waiting to run
Deploy Hugo PaperMod Demo to Pages / deploy (push) Blocked by required conditions
2024-11-08 21:35:34 +05:30
Hong Xu
0234865f62
Replace thumbnailUrl with logo for json schema ( #1488 )
...
thumbnailUrl is not part of Organization: https://schema.org/Organization
2024-11-08 21:20:24 +05:30
Joe Mooring
862630533c
[PATCH] tpl/tplimpl: Remove trailing slash from void elements
...
Deploy Hugo PaperMod Demo to Pages / build (push) Has been cancelled
Deploy Hugo PaperMod Demo to Pages / deploy (push) Has been cancelled
cherry-picked from gohugoio/hugo@2f7df4b
2024-11-03 13:58:35 +05:30
Joe Mooring
65bd711a3b
[PATCH] hugolib: Deprecate site methods Author, Authors, and Social
...
cherry-picked from gohugoio/hugo@d4d49e0
2024-11-03 13:57:32 +05:30
sebin babu
3b0a811fb9
Fix hugo build fail due to "expected comma" error ( #1461 )
...
fixes adityatelange/hugo-PaperMod#1458
2024-03-16 21:34:55 +05:30
Aditya Telange
f5c737f872
Utilize page resources on the images page parameter on schema_json
2024-03-10 13:00:33 +05:30
Razon Yang
df330a05b5
[PATCH] tpl: Allow using page resources on the images page parameter
...
for `opengraph`, `schema` and `twitter_cards` templates
The page images selection order as follows:
1. Page's images parameter, image resources are supported.
2. Page's image resources that naming in *feature*, *cover* or *thumbnail* pattern.
3. If no page images specified, then the first one of site's images will be used as the fallback, supports site resources.
cherry-picked from 14d85ec136
++ compatibility fixes for PaperMod
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2024-03-10 12:48:37 +05:30
flexxindicomplex
71ce72b1bf
Use site.Home.Permalink
instead of site.BaseURL
in templates ( #1368 )
...
* Update schema_json.html
* Update breadcrumbs.html
---------
Co-authored-by: mumuramuri <149406589+mumuramuri@users.noreply.github.com>
2024-01-07 16:11:23 +05:30
Joe Mooring
87df659c18
[PATCH] tpl/tplimpl: Fix deprecation logic in embedded templates
...
cherry-picked from cb98e9061b
2023-12-16 19:43:59 +05:30
Joe Mooring
3fb112bc85
[PATCH] tpl/tplimpl: Deprecate .Site.Social usage with internal templates
...
cherry-picked from 4910312ee7
2023-12-16 19:43:59 +05:30
Razon Yang
102e089bc3
[PATCH] tpl/embedded: Make Open Graph's series optional
...
cherry-picked from b82b547acb
2023-12-16 19:43:59 +05:30
Andreas Deininger
61bf918a0d
socialIcons, fix: apply safeURL to make all URI schemes work ( #1266 )
2023-07-23 14:02:18 +05:30
Joe Mooring
3a0a4811cb
[PATCH] Fix date format in schema and opengraph templates
...
cherry-picked from 34e4742f0c
2022-09-03 16:29:45 +05:30
Aditya Telange
575cc0ca8c
Use site
function instead of .Site
or $.Site
...
- The site function provides global access to the same data as the .Site page method.
- Current context (`.`) is never considered.
2022-03-27 18:44:06 +05:30
Aditya Telange
0e3f44ff17
Use title
instead of humanize
...
- https://gohugo.io/functions/title/
2021-05-01 22:13:54 +05:30
Aditya Telange
24e5d82ecb
Update hugo internal templates
...
Remove .Site.Authors from embedded templates
f6745ad358
2021-05-01 11:32:45 +05:30
Aditya Telange
196b82645e
Fix Spacing in overall repo
2021-03-30 18:26:43 +05:30
Aditya Telange
fe94d7f347
Revert "Remove trailing and leading slashes off the $url for Breadcrumb gen;"
...
This reverts commit 0f0e027def
.
2021-03-28 20:14:11 +05:30
Aditya Telange
0f0e027def
Remove trailing and leading slashes off the $url for Breadcrumb gen;
...
so that no empty values remain in []interface
fixes : #331
2021-03-28 19:25:09 +05:30
Daniel Atwood
772f571161
Update internal tempplate from hugo
...
cp from ffd9dac4218b8f1709de04f7131ca661715fc481 & fe77f7434bc0d7a9b54af69014eb28dbea2b236b
tpl: Update date logic of opengraph and schema internal
templates
* Fix: updated date logic in opengraph template
* Updated date logic in schema template
* Reformatted opengraph and schema
* Wrapped PublishDate and Lastmod in with
tpl: Make the build green again
Co-authored-by: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= <bjorn.erik.pedersen@gmail.com>
Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2021-03-23 15:45:10 +05:30
Aditya Telange
0ca760a9b3
add Description and Summary in JSON schema as in other templates
2021-03-23 15:10:40 +05:30
Jason Lavoie
5e05ed6543
Enforce language url subsitution on path boundary for breadcrumbs ( #254 )
...
* Without this, the section name gets mangled when the language was a
sub-string of the section. For example, under 'en', a section named
"fragment" changes to "fragmt".
2021-02-22 11:30:04 +05:30
Aditya Telange
e53bfe514a
fix json schema parsing error on pages not having a section
2021-02-16 18:37:55 +05:30
Aditya Telange
17d48ce9bb
add structured data for breadcrumb nav
...
https://developers.google.com/search/docs/data-types/breadcrumb
2021-02-12 13:13:33 +05:30
Maciej Sawicki
d6b2282582
templates: Fix series detection in opengraph
...
When inside front matter you specified series with spaces,
then the opengraph template wouldn't detect other articles,
because in `.Site.Taxonomies.series` they are stored by
urlized key.
Example:
```yaml
series:
- My Series
```
```gohtml
{{/* in a template */}}
{{- $series := index .Site.Taxonomies.series$name }}
{{/* was resolved to */}}
{{- $series := index {'my-series': ...} "MySeries" }}
```
(cherry picked from commit d2d493ab5d6a054001a8448ea0de2949dac4b30e)
2020-12-16 18:07:59 +05:30
Aditya Telange
14c524539b
Remove whitespace around urls wherever applicable
...
- corrects mistyped urls with leading or trailing whitespaces
2020-12-13 16:56:41 +05:30
Aditya Telange
1256f353e5
json-schema:fix multiple authors in config displayed incorrectly
...
* is of type `[]interface {}` and not `[]string`
2020-10-25 13:08:03 +05:30
Aditya Telange
44bc299ca3
json-schema: add support for multiple authors
2020-10-25 12:49:58 +05:30
Aditya Telange
fb945ba3c1
json-schema: add support for Rich Results: Json schema for structured data ( #36 )
...
* json-schema: init
* sameAs can be set through .Site.Params.schema.sameAs
* if it is not specified but social-icons exsists, we use social-icons for sameAs vars
* .Site.Params.schema.sameAs overrides social-icons
* publisherType can be changed via .Site.Params.schema.publisherType
2020-10-15 10:21:33 +05:30
Aditya Telange
23636ab326
templates: social-meta: prefer cover image over other images
2020-10-12 17:26:45 +05:30
Aditya Telange
4a4d0c009c
templates: add cover image to be linked into meta
...
for opengraph, schema and twitter
2020-10-11 21:04:17 +05:30
Aditya Telange
6c4e094c91
templates: Add Twitter Cards, OpenGraph, Schema
...
This code is licensed under Apache License 2.0
and is part of https://github.com/gohugoio/hugo
2020-10-11 20:07:43 +05:30