diff --git a/config.toml b/config.toml index faf399a..646937d 100755 --- a/config.toml +++ b/config.toml @@ -37,7 +37,7 @@ pygmentscodefencesguesssyntax = true liberapay_username = "loviuz" stripe_donation_link = "https://donate.stripe.com/bIY14hdxefdxdoceUU" -[params.socialshare] +[params.socialsshare] mastodon = true facebook = true linkedin = true @@ -54,41 +54,41 @@ email = true # Social links -[[params.social]] +[[params.socials]] name = "Telegram" icon = "fa fa-telegram fa-2x" weight = 1 url = "https://t.me/loviuz" -[[params.social]] +[[params.socials]] name = "Mastodon" icon = "fa fa-mastodon fa-2x" weight = 2 url = "https://mastodon.uno/web/@loviuz86" -[[params.social]] +[[params.socials]] name = "Gitea.it" icon = "fa fa-git fa-2x" weight = 3 url = "https://gitea.it/loviuz" -[[params.social]] +[[params.socials]] name = "Codeberg" icon = "fa fa-code fa-2x" weight = 4 url = "https://codeberg.com/loviuz" -[[params.social]] +[[params.socials]] name = "Gitlab" icon = "fa fa-gitlab fa-2x" weight = 5 url = "https://gitlab.com/loviuz" -[[params.social]] +[[params.socials]] name = "Github" icon = "fa fa-github fa-2x" weight = 6 url = "https://github.com/loviuz/" -[[params.social]] +[[params.socials]] name = "Twitter" icon = "fa fa-twitter fa-2x" weight = 7 - url = "https://twitter.com/loviuz/" + url = "https://x.com/loviuz/" # Menu links [[menu.main]] diff --git a/layouts/_internal/opengraph.html b/layouts/_internal/opengraph.html deleted file mode 100644 index 03a6318..0000000 --- a/layouts/_internal/opengraph.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - -{{- with $.Params.images -}} -{{- $image := $.Resources.GetMatch (index . 0) -}} - -{{- else -}} -{{- $images := $.Resources.ByType "image" -}} -{{- $featured := $images.GetMatch "*feature*" -}} -{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} -{{- with $featured -}} - -{{- else -}} -{{- with $.Site.Params.images }}{{ end -}} -{{- end -}} -{{- end -}} - -{{- if .IsPage }} -{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} - -{{ with .PublishDate }}{{ end }} -{{ with .Lastmod }}{{ end }} -{{- end -}} - -{{- with .Params.audio }}{{ end }} -{{- with .Params.locale }}{{ end }} -{{- with .Site.Params.title }}{{ end }} -{{- with .Params.videos }}{{- range . }} - -{{ end }}{{ end }} - -{{- /* If it is part of a series, link to related articles */}} -{{- $permalink := .Permalink }} -{{- $siteSeries := .Site.Taxonomies.series }} -{{ with .Params.series }}{{- range $name := . }} - {{- $series := index $siteSeries ($name | urlize) }} - {{- range $page := first 6 $series.Pages }} - {{- if ne $page.Permalink $permalink }}{{ end }} - {{- end }} -{{ end }}{{ end }} - -{{- /* Facebook Page Admin ID for Domain Insights */}} -{{- with .Site.Social.facebook_admin }}{{ end }} diff --git a/layouts/_internal/twitter_cards.html b/layouts/_internal/twitter_cards.html deleted file mode 100644 index 0da5f60..0000000 --- a/layouts/_internal/twitter_cards.html +++ /dev/null @@ -1,25 +0,0 @@ -{{- with $.Params.images -}} -{{- $image := $.Resources.GetMatch (index . 0) -}} - - -{{ else -}} -{{- $images := $.Resources.ByType "image" -}} -{{- $featured := $images.GetMatch "*feature*" -}} -{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} -{{- with $featured -}} - - -{{- else -}} -{{- with $.Site.Params.images -}} - - -{{ else -}} - -{{- end -}} -{{- end -}} -{{- end }} - - -{{ with .Site.Social.twitter -}} - -{{ end -}} \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a54fed1..1cdee1e 100755 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,7 +3,7 @@ {{ .Site.Title }} - {{ if or .Site.Menus.main .Site.IsMultiLingual }} + {{ if or .Site.Menus.main hugo.IsMultiLingual }}