diff options
author | Christoph Cullmann <cullmann@kde.org> | 2021-02-18 21:44:01 +0100 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2021-02-18 21:44:01 +0100 |
commit | e9ec93a471d9a753db01b682e75c52b32adf16f2 (patch) | |
tree | 5f6d9a2b7d90852965b6d24f9db6a9198570c03b /themes/beautifulhugo/layouts/partials/seo | |
parent | bcafaafff80184537a3116de5341a8caa24d63f4 (diff) |
use LoveIt theme, self hosted
Diffstat (limited to 'themes/beautifulhugo/layouts/partials/seo')
9 files changed, 0 insertions, 155 deletions
diff --git a/themes/beautifulhugo/layouts/partials/seo/main.html b/themes/beautifulhugo/layouts/partials/seo/main.html deleted file mode 100644 index a0f7ff7..0000000 --- a/themes/beautifulhugo/layouts/partials/seo/main.html +++ /dev/null @@ -1,3 +0,0 @@ -{{- partial "seo/schema" . }} -{{- partial "seo/opengraph" . }} -{{- partial "seo/twitter" . }}
\ No newline at end of file diff --git a/themes/beautifulhugo/layouts/partials/seo/opengraph.html b/themes/beautifulhugo/layouts/partials/seo/opengraph.html deleted file mode 100644 index 9a14a07..0000000 --- a/themes/beautifulhugo/layouts/partials/seo/opengraph.html +++ /dev/null @@ -1,15 +0,0 @@ -{{- with .Title | default .Site.Title }} -<meta property="og:title" content="{{ . }}" /> -{{- end }} -{{- with .Description | default .Params.subtitle | default .Summary }} -<meta property="og:description" content="{{ . }}"> -{{- end }} -{{- with .Params.share_img | default .Params.image | default .Site.Params.logo }} -<meta property="og:image" content="{{ . | absURL }}" /> -{{- end }} -{{- with .Site.Params.fb_app_id }} -<meta property="fb:app_id" content="{{ . }}" /> -{{- end }} -<meta property="og:url" content="{{ .Permalink | absLangURL }}" /> -<meta property="og:type" content="website" /> -<meta property="og:site_name" content="{{ .Site.Title }}" /> diff --git a/themes/beautifulhugo/layouts/partials/seo/schema.html b/themes/beautifulhugo/layouts/partials/seo/schema.html deleted file mode 100644 index f201796..0000000 --- a/themes/beautifulhugo/layouts/partials/seo/schema.html +++ /dev/null @@ -1,6 +0,0 @@ -{{- partial "seo/structured/website" . }} -{{- partial "seo/structured/organization" . }} -{{ if .IsPage }} -{{- partial "seo/structured/breadcrumb" . }} -{{- partial "seo/structured/article" . }} -{{ end }}
\ No newline at end of file diff --git a/themes/beautifulhugo/layouts/partials/seo/structured/article.html b/themes/beautifulhugo/layouts/partials/seo/structured/article.html deleted file mode 100644 index b828456..0000000 --- a/themes/beautifulhugo/layouts/partials/seo/structured/article.html +++ /dev/null @@ -1,28 +0,0 @@ -<script type="application/ld+json"> -{ - "@context": "http://schema.org", - "@type": "Article", - "author": { - "name" : "{{ if .Params.author -}}{{ .Params.author }}{{- else if .Site.Author.name -}}{{ .Site.Author.name }}{{- end }}" - }, - "headline": "{{ .Title }}", - "description" : "{{ if .Description }}{{ .Description | plainify }}{{ else }}{{if .IsPage}}{{ .Summary | plainify }}{{ end }}{{ end }}", - "inLanguage" : "{{ .Lang }}", - "wordCount": {{ .WordCount }}, - "datePublished" : "{{ .PublishDate.Format "2006-01-02T15:04:05" }}", - "dateModified" : "{{ .Date.Format "2006-01-02T15:04:05" }}", - "image" : "{{ .Site.Params.logo | absURL }}", - "keywords" : [ "{{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}" ], - "mainEntityOfPage" : "{{ .Permalink }}", - "publisher" : { - "@type": "Organization", - "name" : "{{ .Site.BaseURL }}", - "logo" : { - "@type" : "ImageObject", - "url" : "{{ .Site.Params.logo | absURL }}", - "height" : 60 , - "width" : 60 - } - } -} -</script>
\ No newline at end of file diff --git a/themes/beautifulhugo/layouts/partials/seo/structured/breadcrumb.html b/themes/beautifulhugo/layouts/partials/seo/structured/breadcrumb.html deleted file mode 100644 index 81ac41b..0000000 --- a/themes/beautifulhugo/layouts/partials/seo/structured/breadcrumb.html +++ /dev/null @@ -1,21 +0,0 @@ -<script type="application/ld+json"> -{ - "@context": "http://schema.org", - "@type": "BreadcrumbList", - "itemListElement": [{ - "@type": "ListItem", - "position": 1, - "item": { - "@id": "{{ .Site.BaseURL }}", - "name": "home" - } - },{ - "@type": "ListItem", - "position": 3, - "item": { - "@id": "{{ .Permalink }}", - "name": "{{ .Title | humanize }}" - } - }] -} -</script>
\ No newline at end of file diff --git a/themes/beautifulhugo/layouts/partials/seo/structured/organization.html b/themes/beautifulhugo/layouts/partials/seo/structured/organization.html deleted file mode 100644 index 117bccd..0000000 --- a/themes/beautifulhugo/layouts/partials/seo/structured/organization.html +++ /dev/null @@ -1,12 +0,0 @@ -<script type="application/ld+json"> -{ - "@context": "http://schema.org", - "@type": "Organization", - "name": "{{ .Site.Params.organizationName }}", - "url": "{{ .Site.BaseURL }}" - {{ with .Site.Params.socialProfiles }}, "sameAs": {{ . }}{{ end }} - {{ with .Site.Params.organizationLogo }}, "logo": "{{ . }}"{{ end }} - {{ with .Site.Params.organizationAddress }}, "address": "{{ . }}"{{ end }} - {{ with .Site.Data.organization.contacts.contactPoint }}, "contactPoint": {{ . }}{{ end }} -} -</script>
\ No newline at end of file diff --git a/themes/beautifulhugo/layouts/partials/seo/structured/post.html b/themes/beautifulhugo/layouts/partials/seo/structured/post.html deleted file mode 100644 index f1a10da..0000000 --- a/themes/beautifulhugo/layouts/partials/seo/structured/post.html +++ /dev/null @@ -1,47 +0,0 @@ -<script type="application/ld+json"> { - "@context" : "http://schema.org", - "@type" : "BlogPosting", - {{ if .Params.categories }}{{ range .Params.categories }}"articleSection" : "{{ . }}",{{ end }}{{ end }} - "name" : "{{ .Title | safeJS }}", - "headline" : "{{ .Title | safeJS }}", - "mainEntityOfPage": { - "@type": "WebPage", - "@id": "{{ .Permalink }}" - }, - "description" : "{{ if .Description }}{{ .Description | plainify }}{{ else }}{{if .IsPage}}{{ .Summary | plainify }}{{ end }}{{ end }}", - "inLanguage" : "{{ .Lang }}", - {{ if .Params.author -}} - "author": { - "@type": "Person", - "name": "{{ .Params.author }}" - }, - {{- else if .Site.Author.name -}} - "author": { - "@type": "Person", - "name": "{{ .Site.Author.name }}" - }, - {{- end }} - "copyrightYear" : "{{ .Site.Params.since }} - {{ .Site.LastChange.Format "2006" }}", - {{ if not .PublishDate.IsZero -}} - "datePublished": "{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTML }}", - {{- else if not .Date.IsZero -}} - "datePublished": "{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}", - {{- end }} - {{ with .Lastmod -}} - "dateModified": "{{ .Format "2006-01-02T15:04:05-07:00" | safeHTML }}", - {{- end }} - "url" : "{{ .Permalink }}", - "wordCount" : "{{ .WordCount }}", - "image" : "{{ .Site.Params.logo | absURL }}", - "keywords" : [ "{{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}" ], - "publisher" : { - "@type": "Organization", - "name" : "{{ .Site.BaseURL }}", - "logo" : { - "@type" : "ImageObject", - "url" : "{{ .Site.Params.logo | absURL }}", - "height" : 60 , - "width" : 60 - } - } -} </script>
\ No newline at end of file diff --git a/themes/beautifulhugo/layouts/partials/seo/structured/website.html b/themes/beautifulhugo/layouts/partials/seo/structured/website.html deleted file mode 100644 index 107e7fb..0000000 --- a/themes/beautifulhugo/layouts/partials/seo/structured/website.html +++ /dev/null @@ -1,9 +0,0 @@ -<script type="application/ld+json"> -{ - "@context": "http://schema.org", - "@type": "WebSite", - "name": "{{ .Site.Title }}", - {{ with .Site.Params.alternatePageName }}"alternateName": "{{ . }}",{{ end }} - "url": "{{ .Site.BaseURL }}" -} -</script>
\ No newline at end of file diff --git a/themes/beautifulhugo/layouts/partials/seo/twitter.html b/themes/beautifulhugo/layouts/partials/seo/twitter.html deleted file mode 100644 index 0eb1e9b..0000000 --- a/themes/beautifulhugo/layouts/partials/seo/twitter.html +++ /dev/null @@ -1,14 +0,0 @@ -{{- with .Title | default .Site.Title }} - <meta name="twitter:title" content="{{ . | truncate 70 }}" /> -{{- end }} -{{- with .Description | default .Params.subtitle | default .Summary }} - <meta name="twitter:description" content="{{ . | truncate 200 }}"> -{{- end }} -{{- with .Params.share_img | default .Params.image | default .Site.Params.logo }} - <meta name="twitter:image" content="{{ . | absURL }}" /> -{{- end }} - <meta name="twitter:card" content="summary" /> -{{- with .Site.Author.twitter }} - <meta name="twitter:site" content="@{{ . }}" /> - <meta name="twitter:creator" content="@{{ . }}" /> -{{- end }}
\ No newline at end of file |