cleanup seo tags
This commit is contained in:
parent
a66cf67a00
commit
f8c1b54ccb
2 changed files with 40 additions and 39 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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}}
|
||||
|
@ -117,11 +114,13 @@
|
|||
<meta property="og:type" content="website" />
|
||||
<script defer type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "WebSite",
|
||||
"url": {{ .Permalink }},
|
||||
"name": "{{ .Site.Title }}",
|
||||
"logo": {{with $icon}}{{.Permalink}}{{else}}{{$staticIcon}}{{end}}
|
||||
"@context": "http://schema.org",
|
||||
"@type": "WebPage",
|
||||
"name": "{{ .Title }}",
|
||||
"url": {{ .Permalink }},
|
||||
"description": "{{ or .Description .Summary }}"
|
||||
"logo": {{with $icon}}{{.Permalink}}{{else}}{{$staticIcon}}{{end}},
|
||||
""
|
||||
}
|
||||
</script>
|
||||
{{- end -}}
|
||||
|
|
Loading…
Reference in a new issue