Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

social.html: include microdata template #439

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ params:
analytics:
fathom_site: "ITUSEYJG"

# This is currently used by Hugo's internal twitter_cards.html and opengraph.html templates;
# the first image in the following array is always used, unless specified in the front matter
# This is currently used by Hugo's internal templates; the first image
# in the following array is always used, unless specified in the front matter
images:
- "/assets/img/bootstrap-social.png"

Expand Down
2 changes: 1 addition & 1 deletion src/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="{{ site.Language.LanguageCode }}">
<html lang="{{ site.Language.LanguageCode }}" itemscope itemtype="http://schema.org/WebPage">
<head>
{{ partial "head" . }}
</head>
Expand Down
4 changes: 3 additions & 1 deletion src/layouts/partials/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta name="author" content="{{ $author | default .Site.Params.author }}">

{{ template "_internal/twitter_cards.html" . -}}
{{- /* Manually add `twitter:creator` since Hugo's internal shortcode has some issues */ -}}
{{- /* Manually add `twitter:creator` since Hugo's internal shortcode doesn't add it */ -}}
<meta name="twitter:creator" content="@{{ $authorTwitter | default .Site.Params.twitter }}">

{{ template "_internal/opengraph.html" . -}}
Expand All @@ -20,3 +20,5 @@
<meta property="og:image:width" content="{{ .Width }}">
<meta property="og:image:height" content="{{ .Height }}">
{{- end }}

{{ template "_internal/schema.html" . -}}