Compare commits

...

7 commits
v2.1.1 ... main

Author SHA1 Message Date
Francesco Tomaselli
3b958dcaf5
Merge pull request #128 from runofthemillgeek/refactor/make-opengraph-normal-partial
Make opengraph.html a normal partial
2025-04-26 13:02:32 +02:00
Sangeeth Sudheer
51cbe9e3d5
Include og-image.html in all pages
Not sure why I added those checks earlier, but it's good to have
og-image.html in all pages, like sections for tags/content categories.
2025-04-26 09:37:17 +05:30
Sangeeth Sudheer
6166d5345e
Make opengraph.html a normal partial
Moves `opengraph.html` under `layout/partials` and updates `head.html`
to include from the updated path. This change is needed to make things
work with Hugo >=v0.144.0 as they moved templates like
`opengraph.html` from `_internals` breaking existing usage. The doc also recommends doing this: https://gohugo.io/templates/embedded/#open-graph

This change shouldn't affect existing users of Typo unless they override
`head.html`.
2025-04-25 22:09:40 +05:30
Francesco Tomaselli
fdfbe02612
Merge pull request #123 from linh-n/patch-1 2025-04-24 11:22:22 +02:00
Linh Nguyen
1e0a08e276
Add an entry to USERS.md 2025-04-23 17:22:42 +02:00
Francesco Tomaselli
4a782a06da
Merge pull request #122 from evenlangas/patch-1
Update USERS.md
2025-04-23 12:15:24 +02:00
Even Falkenberg Langås
c27d513e2c
Update USERS.md 2025-04-23 09:32:08 +02:00
3 changed files with 8 additions and 6 deletions

View file

@ -11,3 +11,5 @@
- https://nykenik24.github.io, **Nykenik24**, Hobby programmer - https://nykenik24.github.io, **Nykenik24**, Hobby programmer
- https://rahulpat1l.github.io/, **Rahul Patil**, Student - https://rahulpat1l.github.io/, **Rahul Patil**, Student
- https://blog.borber.top, **Borber**, Software Engineer - https://blog.borber.top, **Borber**, Software Engineer
- https://evenlangas.no, **Even Falkenberg Langås**, Mechatronics Software Engineer
- https://linh.nguyen.be, **Linh Nguyen**, Software Engineer

View file

@ -36,7 +36,7 @@
<link rel="canonical" href="{{ .Permalink }}"/> <link rel="canonical" href="{{ .Permalink }}"/>
{{ template "_internal/opengraph.html" . }} {{ template "partials/opengraph.html" . }}
{{ partialCached "head/css.html" . }} {{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }} {{ partialCached "head/js.html" . }}

View file

@ -44,7 +44,7 @@
{{- range . | first 6 }} {{- range . | first 6 }}
<meta property="og:image" content="{{ .Permalink }}"> <meta property="og:image" content="{{ .Permalink }}">
{{- end }} {{- end }}
{{- else -}} {{- else }}
{{- /* {{- /*
Source modified to load `assets/images/og-image.{webp,png,jpg}` files if any of them exists. Source modified to load `assets/images/og-image.{webp,png,jpg}` files if any of them exists.
@ -52,11 +52,11 @@
as using an external service. as using an external service.
*/ -}} */ -}}
{{- if (and (or .IsHome .IsPage) (templates.Exists "partials/head/og-image.html")) -}} {{- if templates.Exists "partials/head/og-image.html" }}
{{- $ogImage := partial "head/og-image.html" . -}} {{- $ogImage := partial "head/og-image.html" . | strings.TrimSpace }}
{{- with $ogImage -}} {{- with $ogImage }}
<meta property="og:image" content="{{ . }}"> <meta property="og:image" content="{{ . }}">
{{- end -}} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}