cleanup seo tags

This commit is contained in:
a 2024-02-26 10:52:41 -06:00
parent a66cf67a00
commit f8c1b54ccb
2 changed files with 40 additions and 39 deletions

View file

@ -1,12 +1,14 @@
--- +++
title: "Twitter is no longer a social network." title = "Twitter is no longer a social network."
summary: "That service that started out as a way to send status updates to your friends has been replaced by Twitter, a bloated, lumbering mess trying to force-feed you a stale diet of whatever Content™ floats to the top of the river of shit." summary = "That service that started out as a way to send status updates to your friends has been replaced by Twitter, a bloated, lumbering mess trying to force-feed you a stale diet of whatever Content™ floats to the top of the river of shit."
author: "Abdullah Tarawneh" author = "Abdullah Tarawneh"
date: "2018-04-27" date = "2018-04-27"
tags: ["twitter", "social", "network", "media", "analysis", "capitalism"] tags = ["twitter", "social", "network", "media", "analysis", "capitalism"]
category: "Blog" category = "Blog"
cover: "" [[resources]]
--- name = 'cover'
src = 'failwhale.png'
+++
<blockquote><p>"We are not a social network. We do not benefit from social graphs," Dorsey said. "People come to us when they're interested in events happening in the world or with a niche interest. We've been biasing a lot more of the service towards interest and topics."</p></blockquote> <blockquote><p>"We are not a social network. We do not benefit from social graphs," Dorsey said. "People come to us when they're interested in events happening in the world or with a niche interest. We've been biasing a lot more of the service towards interest and topics."</p></blockquote>

View file

@ -23,9 +23,8 @@
{{- with .Permalink | absURL}} {{- with .Permalink | absURL}}
<base href="{{ . }}"> <base href="{{ . }}">
<link rel="canonical" href="{{ or $.Params.canonical . }}"/> <link rel="canonical" href="{{ or $.Params.canonical . }}"/>
<meta name="url" content="{{ . }}" itemprop="url" /> <meta name="url" property="og:url" itemprop="url" content="{{ . }}" />
<meta name="twitter:url" content="{{ . }}" /> <meta name="twitter:url" content="{{ . }}" />
<meta property="og:url" content="{{ . }}" />
{{- end -}} {{- end -}}
{{/*=== image ===*/}} {{/*=== image ===*/}}
@ -34,22 +33,20 @@
{{- $staticIcon := "icon.png" | absURL -}} {{- $staticIcon := "icon.png" | absURL -}}
{{- with or $cover $icon }} {{- with or $cover $icon }}
{{ "<!-- image -->" | safeHTML }} {{ "<!-- image -->" | safeHTML }}
<meta itemprop="image" content='{{ .Permalink | absURL }}' /> <meta property="og:image" itemprop="image" content="{{ .Permalink | absURL }}" />
<meta property="og:image" content='{{ .Permalink | absURL }}' />
{{- with .Width }} {{- with .Width }}
<meta property="og:image:width" content='{{ . }}' /> <meta property="og:image:width" content="{{ . }}" />
{{- end }} {{- end }}
{{- with .Height }} {{- with .Height }}
<meta property="og:image:height" content='{{ . }}' /> <meta property="og:image:height" content="{{ . }}" />
{{- end }} {{- end }}
<meta name="twitter:image" content='{{ .Permalink | absURL }}' /> <meta name="twitter:image" content="{{ .Permalink | absURL }}" />
<meta name="twitter:image:src" content='{{ .Permalink | absURL }}' /> <meta name="twitter:image:src" content="{{ .Permalink | absURL }}" />
{{- else }} {{- else }}
{{ "<!-- image -->" | safeHTML }} {{ "<!-- image -->" | safeHTML }}
<meta itemprop="image" content='{{ $staticIcon }}' /> <meta property="og:image" itemprop="image" content="{{ $staticIcon }}" />
<meta property="og:image" content='{{ $staticIcon }}' /> <meta name="twitter:image" content="{{ $staticIcon }}" />
<meta name="twitter:image" content='{{ $staticIcon }}' /> <meta name="twitter:image:src" content="{{ $staticIcon }}" />
<meta name="twitter:image:src" content='{{ $staticIcon }}' />
{{- end -}} {{- end -}}
{{/*=== author ===*/}} {{/*=== author ===*/}}
@ -62,26 +59,25 @@
{{- end -}} {{- end -}}
{{/*=== published and updated ===*/}} {{/*=== published and updated ===*/}}
{{- "<!-- time -->" | safeHTML }} {{ "<!-- time -->" | safeHTML -}}
{{ with .Date }} {{ with .Date }}
<meta property="og:article:published_time" content={{ .Format "2006-01-02T15:04:05Z0700" | safeHTML }} /> <meta property="og:article:published_time" content={{ .Format "2006-01-02T03:04:05Z" | safeHTML }} />
<meta property="article:published_time" content={{ .Format "2006-01-02T15:04:05Z0700" | safeHTML }} /> <meta property="article:published_time" content={{ .Format "2006-01-02T03:04:05Z" | safeHTML }} />
{{ end -}} {{ end -}}
{{ with .Lastmod -}} {{ with .Lastmod -}}
<meta property="og:updated_time" content={{ .Format "2006-01-02T15:04:05Z0700" | safeHTML }} /> <meta property="og:updated_time" content={{ .Format "2006-01-02T03:04:05Z" | safeHTML }} />
{{ end -}} {{ end -}}
{{/*=== section and keywords ===*/}} {{/*=== section and keywords ===*/}}
{{- "<!-- keywords -->" | safeHTML }} {{- "<!-- keywords -->" | safeHTML }}
{{- with.Params.category -}} {{ with.Params.category -}}
<meta name="news_keywords" content="{{ . }}" />
<meta property="article:section" content="{{ . }}" /> <meta property="article:section" content="{{ . }}" />
{{- end -}} {{- end -}}
{{- with .Params.tags }} {{- with .Params.tags }}
<meta name="keywords" content='{{ delimit . " "}}'> <meta name="keywords" content='{{ delimit . " "}}'>
{{- end -}} {{- end -}}
{{- if isset .Params "date" -}} {{- if isset .Params "date" }}
{{ "<!-- article metadata -->" | safeHTML }} {{ "<!-- article metadata -->" | safeHTML }}
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<script defer type="application/ld+json"> <script defer type="application/ld+json">
@ -91,20 +87,21 @@
"headline": {{ $title }}, "headline": {{ $title }},
"author": { "author": {
"@type": "Person", "@type": "Person",
"name": "{{ or .Params.author .Site.Params.author }}" "name": {{ or .Params.author .Site.Params.author }},
"url": {{ .Site.Home.Permalink }}
}, },
"datePublished": "{{ .Date.Format "2006-01-02" }}", "datePublished": {{ .Date.UTC.Format "2006-01-02T03:04:05Z" }},
"description": {{ or .Description .Summary }}, "description": {{ or .Description .Summary }},
"wordCount": {{ .WordCount }}, "wordCount": {{ .WordCount }},
"mainEntityOfPage": "True", "mainEntityOfPage": {{.Permalink}},
"dateModified": "{{ .Lastmod.Format "2006-01-02" }}", "dateModified": "{{ .Lastmod.UTC.Format "2006-01-02T03:04:05Z" }}",
"image": { "image": {
"@type": "ImageObject", "@type": "ImageObject",
"url": "{{ with or $cover $icon }}{{ .Permalink | absURL }}{{ end }}" "url": {{ with or $cover $icon }}{{ .Permalink | absURL }}{{ end }}
}, },
"publisher": { "publisher": {
"@type": "Person", "@type": "Person",
"name": "{{ or .Params.author .Site.Params.author .Site.Title }}", "name": {{ or .Params.author .Site.Params.author .Site.Title }},
"logo": { "logo": {
"@type": "ImageObject", "@type": "ImageObject",
"url": {{with $icon}}{{.Permalink}}{{else}}{{$staticIcon}}{{end}} "url": {{with $icon}}{{.Permalink}}{{else}}{{$staticIcon}}{{end}}
@ -117,11 +114,13 @@
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<script defer type="application/ld+json"> <script defer type="application/ld+json">
{ {
"@context": "http://schema.org", "@context": "http://schema.org",
"@type": "WebSite", "@type": "WebPage",
"url": {{ .Permalink }}, "name": "{{ .Title }}",
"name": "{{ .Site.Title }}", "url": {{ .Permalink }},
"logo": {{with $icon}}{{.Permalink}}{{else}}{{$staticIcon}}{{end}} "description": "{{ or .Description .Summary }}"
"logo": {{with $icon}}{{.Permalink}}{{else}}{{$staticIcon}}{{end}},
""
} }
</script> </script>
{{- end -}} {{- end -}}