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."
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"
date: "2018-04-27"
tags: ["twitter", "social", "network", "media", "analysis", "capitalism"]
category: "Blog"
cover: ""
---
+++
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."
author = "Abdullah Tarawneh"
date = "2018-04-27"
tags = ["twitter", "social", "network", "media", "analysis", "capitalism"]
category = "Blog"
[[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>

View file

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