fix seo and metadata, add author pages

This commit is contained in:
a 2024-06-05 12:27:40 -05:00
parent 2247ee2776
commit e349d0417e
28 changed files with 98 additions and 75 deletions

View file

@ -1,11 +1,13 @@
--- +++
title: "" title = ""
summary: "" summary = ""
author: "Abdullah Tarawneh" authors = ["Abdullah Tarawneh"]
date: "" date = ""
tags: [] tags = []
category: "Blog" categories = []
cover: "" [[resources]]
--- name = "cover"
src = ""
+++
<p class="has-pullquote after" data-pullquote=""></p> <p class="has-pullquote after" data-pullquote=""></p>

View file

@ -1,9 +0,0 @@
---
title: ""
summary: ""
author: "Abdullah Tarawneh"
date: ""
tags: []
category: "Code"
cover: ""
---

View file

@ -1,13 +0,0 @@
---
title: ""
summary: ""
author: "Abdullah Tarawneh"
date: ""
start: ""
end: ""
at: ""
position: ""
tags: []
category: "Work"
cover: ""
---

View file

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View file

@ -0,0 +1,8 @@
main.author {
.entries {
.container {
display: grid;
gap: 2rem;
}
}
}

View file

@ -19,4 +19,5 @@
@import "layouts/partials/h-entry.scss"; @import "layouts/partials/h-entry.scss";
@import "layouts/taxonomy/category.scss"; @import "layouts/taxonomy/category.scss";
@import "layouts/taxonomy/author.scss";

View file

@ -1,5 +1,6 @@
+++ +++
title = "Abdullah Tarawneh" title = "Abdullah Tarawneh"
summary = "More commonly known as a or trwnh. Nonbinary ace (they/them)"
[[resources]] [[resources]]
name = "avatar" name = "avatar"
src = "avatar.png" src = "avatar.png"

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View file

@ -1,7 +1,7 @@
+++ +++
title = "Certbot DNS-01 hook for Namecheap" title = "Certbot DNS-01 hook for Namecheap"
summary = "A manual authorization hook for EFF Certbot, allowing DNS-01 challenge verification with Namecheap domains. Written in Python." summary = "A manual authorization hook for EFF Certbot, allowing DNS-01 challenge verification with Namecheap domains. Written in Python."
author = "Abdullah Tarawneh" authors = ["a"]
date = 2019-10-30 date = 2019-10-30
tags = ["namecheap", "certbot", "dns-01", "python", "letsencrypt"] tags = ["namecheap", "certbot", "dns-01", "python", "letsencrypt"]
categories = ["Code"] categories = ["Code"]

View file

@ -1,7 +1,7 @@
+++ +++
title = "Liberapay: Add Pleroma support" title = "Liberapay: Add Pleroma support"
summary = "Pleroma is compatible with the Mastodon API, but uses a different URL format. This pull request creates a Pleroma identity provider within Liberapay that takes this difference into account." summary = "Pleroma is compatible with the Mastodon API, but uses a different URL format. This pull request creates a Pleroma identity provider within Liberapay that takes this difference into account."
author = "Abdullah Tarawneh" authors = ["Abdullah Tarawneh"]
date = 2019-11-13 date = 2019-11-13
tags = ["mastodon", "api", "pleroma", "liberapay", "contribution", "pull request", "github"] tags = ["mastodon", "api", "pleroma", "liberapay", "contribution", "pull request", "github"]
categories = ["Code"] categories = ["Code"]

View file

@ -1,7 +1,7 @@
+++ +++
title = "MastoMods" title = "MastoMods"
summary = "CSS tweaks and modifications for Mastodon, a libre micro-blogging social server similar to Twitter." summary = "CSS tweaks and modifications for Mastodon, a libre micro-blogging social server similar to Twitter."
author = "Abdullah Tarawneh" authors = ["Abdullah Tarawneh"]
date = 2019-02-18 date = 2019-02-18
tags = ["mastomods", "mastodon", "css", "userstyles", "tweaks"] tags = ["mastomods", "mastodon", "css", "userstyles", "tweaks"]
categories = ["Code"] categories = ["Code"]

View file

@ -1,7 +1,7 @@
+++ +++
title = "You don't have a right to profit." title = "You don't have a right to profit."
summary = "People will go to ridiculous lengths in the name of protecting the “right” to profit. Lets be real here. No one has a “right” to profit." summary = "People will go to ridiculous lengths in the name of protecting the “right” to profit. Lets be real here. No one has a “right” to profit."
author = "Abdullah Tarawneh" authors = ["Abdullah Tarawneh"]
date = 2015-07-08 date = 2015-07-08
tags = ["capitalism", "profit", "music", "music industry", "piracy", "distribution", "access"] tags = ["capitalism", "profit", "music", "music industry", "piracy", "distribution", "access"]
categories = ["Uncategorized"] categories = ["Uncategorized"]

View file

@ -2,7 +2,7 @@
title = "OBS Studio: Ctrl+E to Edit Transform" title = "OBS Studio: Ctrl+E to Edit Transform"
summary = "I added a shortcut to edit transforms on a source in OBS Studio." summary = "I added a shortcut to edit transforms on a source in OBS Studio."
date = 2017-04-30 date = 2017-04-30
author = "Abdullah Tarawneh" authors = ["Abdullah Tarawneh"]
tags = ["obs", "open broadcaster software", "obs studio", "keyboard shortcut", "edit transform", "pull request", "github"] tags = ["obs", "open broadcaster software", "obs studio", "keyboard shortcut", "edit transform", "pull request", "github"]
categories = ["Code"] categories = ["Code"]
aliases = [ aliases = [

View file

@ -1,7 +1,7 @@
+++ +++
title = "I wish personal websites were actually personal." title = "I wish personal websites were actually personal."
summary = "When I say personal website, I do not mean a page or portfolio for potential employers or clients to hire you." summary = "When I say personal website, I do not mean a page or portfolio for potential employers or clients to hire you."
author = "Abdullah Tarawneh" authors = ["a"]
date = 2023-03-18 date = 2023-03-18
tags = ["personal websites", "portfolios", "services", "branding", "marketing", "capitalism"] tags = ["personal websites", "portfolios", "services", "branding", "marketing", "capitalism"]
categories = ["Uncategorized"] categories = ["Uncategorized"]

View file

@ -1,7 +1,7 @@
+++ +++
title = "PhotoBucketGrabber" title = "PhotoBucketGrabber"
summary = "[OBSOLETE] Download all your photos from PhotoBucket using this Python script." summary = "[OBSOLETE] Download all your photos from PhotoBucket using this Python script."
author = "Abdullah Tarawneh" authors = ["Abdullah Tarawneh"]
date = 2019-03-17 date = 2019-03-17
tags = ["python", "photobucket", "automation", "scripting", "archive", "export", "download"] tags = ["python", "photobucket", "automation", "scripting", "archive", "export", "download"]
categories = ["Code"] categories = ["Code"]

View file

@ -1,7 +1,7 @@
+++ +++
title = "RIP Grooveshark." title = "RIP Grooveshark."
summary = "I last used Grooveshark earlier today. I refreshed the page and found that it was dead. [...] I find myself feeling about Grooveshark similarly as when I found out that Megaupload had been shut down, and that many of my files were lost forever." summary = "I last used Grooveshark earlier today. I refreshed the page and found that it was dead. [...] I find myself feeling about Grooveshark similarly as when I found out that Megaupload had been shut down, and that many of my files were lost forever."
author = "Abdullah Tarawneh" authors = ["Abdullah Tarawneh"]
date = 2015-05-01 date = 2015-05-01
tags = ["grooveshark", "music", "music industry", "culture", "user generated content", "capitalism", "copyright"] tags = ["grooveshark", "music", "music industry", "culture", "user generated content", "capitalism", "copyright"]
categories = ["Uncategorized"] categories = ["Uncategorized"]

View file

@ -2,7 +2,7 @@
title = "salatime" title = "salatime"
summary = "[OBSOLETE] Basic terminal script to print out daily prayer times for Birmingham, AL." summary = "[OBSOLETE] Basic terminal script to print out daily prayer times for Birmingham, AL."
date = 2019-05-09 date = 2019-05-09
author = "Abdullah Tarawneh" authors = ["Abdullah Tarawneh"]
tags = ["python", "web scraping", "scraping", "beautifulsoup", "salat", "prayer", "time"] tags = ["python", "web scraping", "scraping", "beautifulsoup", "salat", "prayer", "time"]
categories = ["Code"] categories = ["Code"]
aliases = [ aliases = [

View file

@ -1,7 +1,7 @@
+++ +++
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" authors = ["Abdullah Tarawneh"]
date = 2018-04-27 date = 2018-04-27
tags = ["twitter", "social network", "social media", "analysis", "capitalism"] tags = ["twitter", "social network", "social media", "analysis", "capitalism"]
categories = ["Communication"] categories = ["Communication"]

View file

@ -1,7 +1,6 @@
+++ +++
title = "Director of Technology at Equality Initiative" title = "Director of Technology at Equality Initiative"
summary = "3 years helping a non-profit manage all technical aspects, from website to email." summary = "3 years helping a non-profit manage all technical aspects, from website to email."
author = "Abdullah Tarawneh"
date = "2014-02-20" date = "2014-02-20"
start = "Feb 2014" start = "Feb 2014"
end = "Feb 2017" end = "Feb 2017"

View file

@ -2,7 +2,6 @@
layout = "custom_html" layout = "custom_html"
title = "Go-Fed Site Redesign" title = "Go-Fed Site Redesign"
summary = "Taking Go-Fed's website from 'yep, it has color' to 'woo, looking super nice! :D'" summary = "Taking Go-Fed's website from 'yep, it has color' to 'woo, looking super nice! :D'"
author = "Abdullah Tarawneh"
date = "2020-12-27" date = "2020-12-27"
start = "Dec 2020" start = "Dec 2020"
end = "Dec 2020" end = "Dec 2020"

View file

@ -2,7 +2,6 @@
layout = "custom_html" layout = "custom_html"
title = "Mastodon documentation revamp" title = "Mastodon documentation revamp"
summary = "Reorganizing the documentation for the Mastodon Project, while also rewriting significant portions of it." summary = "Reorganizing the documentation for the Mastodon Project, while also rewriting significant portions of it."
author = "Abdullah Tarawneh"
date = "2020-01-04" date = "2020-01-04"
start = "Aug 2019" start = "Aug 2019"
end = "Jan 2020" end = "Jan 2020"

View file

@ -1,7 +1,6 @@
+++ +++
title = "Mo Tarawneh" title = "Mo Tarawneh"
summary = "A personal website for Mo Tarawneh, inaugural chairperson of the UN CRPD and twice-elected member." summary = "A personal website for Mo Tarawneh, inaugural chairperson of the UN CRPD and twice-elected member."
author = "Abdullah Tarawneh"
date = "2020-03-17" date = "2020-03-17"
tags = ["website", "web", "responsive", "design"] tags = ["website", "web", "responsive", "design"]
draft = true draft = true

View file

@ -1,7 +1,6 @@
+++ +++
title = "Pixelfed team member" title = "Pixelfed team member"
summary = "After making a masterpost of bugs and issues, I turned Pixelfed from a one-person project into a team effort." summary = "After making a masterpost of bugs and issues, I turned Pixelfed from a one-person project into a team effort."
author = "Abdullah Tarawneh"
date = "2019-01-06" date = "2019-01-06"
start = "Jan 2019" start = "Jan 2019"
end = "current" end = "current"

View file

@ -2,7 +2,6 @@
layout = "custom_html" layout = "custom_html"
title = "Senior Technical Writer at Trilogy" title = "Senior Technical Writer at Trilogy"
summary = "Managing knowledge bases for numerous products owned by Trilogy." summary = "Managing knowledge bases for numerous products owned by Trilogy."
author = "Abdullah Tarawneh"
date = "2021-05-16" date = "2021-05-16"
start = "May 2021" start = "May 2021"
end = "Dec 2021" end = "Dec 2021"

View file

@ -1,7 +1,6 @@
+++ +++
title = "" title = ""
summary = "B.S. Biomedical Engineering<br>B.S. Computer Science<br>Minor, Mathematics<br>Science and Technology Honors Program" summary = "B.S. Biomedical Engineering<br>B.S. Computer Science<br>Minor, Mathematics<br>Science and Technology Honors Program"
author = "Abdullah Tarawneh"
date = "2018-12-15" date = "2018-12-15"
start = "" start = ""
end = "Fall 2018" end = "Fall 2018"

View file

@ -72,10 +72,12 @@ taxonomy = ["HTML", "RSS"]
term = ["HTML", "RSS", "ATOM"] term = ["HTML", "RSS", "ATOM"]
[params] [params]
icon = "images/icon.png"
[params.author] [params.author]
name = "Abdullah Tarawneh" name = "Abdullah Tarawneh"
email = "a@trwnh.com" email = "a@trwnh.com"
[taxonomies] [taxonomies]
tag = "tags" tag = "tags"
category = "categories" category = "categories"

View file

@ -1,5 +1,7 @@
{{- $cover := ($.Resources.ByType "image").GetMatch "{*cover*,*thumbnail*,*featured*}" -}} {{- $cover := ($.Resources.ByType "image").GetMatch "{*cover*,*thumbnail*,*featured*}" -}}
{{ $icon := resources.GetMatch (default "" .Site.Params.icon) -}} {{ $icon := resources.GetMatch (default "" .Site.Params.icon) -}}
{{- $staticIcon := "icon.png" | absURL -}}
{{- $author := index ($.GetTerms "authors") 0 -}}
{{/*=== title ===*/}} {{/*=== title ===*/}}
{{ "<!-- text -->" | safeHTML }} {{ "<!-- text -->" | safeHTML }}
@ -30,7 +32,6 @@
{{- end -}} {{- end -}}
{{/*=== image ===*/}} {{/*=== image ===*/}}
{{- $staticIcon := "icon.png" | absURL -}}
{{- with or $cover $icon }} {{- with or $cover $icon }}
{{ "<!-- image -->" | safeHTML }} {{ "<!-- image -->" | safeHTML }}
<meta property="og:image" itemprop="image" content="{{ .Permalink | absURL }}" /> <meta property="og:image" itemprop="image" content="{{ .Permalink | absURL }}" />
@ -54,50 +55,56 @@
{{- with .Params.locale }}<meta property="og:locale" content="{{ . }}" />{{ end }} {{- with .Params.locale }}<meta property="og:locale" content="{{ . }}" />{{ end }}
{{- with .Params.videos }}{{- range . }} {{- with .Params.videos }}{{- range . }}
<meta property="og:video" content="{{ . | absURL }}" /> <meta property="og:video" content="{{ . | absURL }}" />
{{ end }}{{ end }} {{ end }}{{ end -}}
{{/*=== article ===*/}}
{{ with or .Params.author .Site.Params.author -}}
{{ "<!-- author -->" | safeHTML }}
<meta name="author" property="article:author" content="{{ . }}" />
{{- end }}
<meta property="article:publisher" content="{{ .Site.BaseURL }}" />
{{ "<!-- time -->" | safeHTML }}
{{ with .Date -}}
<meta property="article:published_time" itemprop="datePublished" content={{ .Format "2006-01-02T03:04:05Z" | safeHTML }} />
{{ end -}}
{{ with .Lastmod -}}
<meta property="article:modified_time" itemprop="dateModified" content={{ .Format "2006-01-02T03:04:05Z" | safeHTML }} />
{{ end -}}
{{/*=== section and keywords ===*/}} {{/*=== section and keywords ===*/}}
{{- "<!-- keywords -->" | safeHTML }} {{ "<!-- keywords -->" | safeHTML }}
{{ with.Params.category -}} {{- with .Params.categories }}
{{- range . }}
<meta property="article:section" content="{{ . }}" /> <meta property="article:section" content="{{ . }}" />
{{- end }}
{{- end -}} {{- end -}}
{{- with .Params.tags }} {{- with .Params.tags }}
<meta property="article:tag" itemprop="keywords" name="keywords" content='{{ delimit . " "}}' /> <meta property="article:tag" itemprop="keywords" name="keywords" content='{{ delimit . " "}}' />
{{- end -}} {{- end -}}
{{- if isset .Params "date" }} {{ if .Date }}
{{ "<!-- article metadata -->" | safeHTML }} {{ "<!-- article metadata -->" | safeHTML }}
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
{{ with $author -}}
<meta name="author" property="article:author" content="{{ .Title }}" />
{{- end }}
<meta property="article:publisher" content="{{ .Site.BaseURL }}" />
{{ with .Date -}}
<meta property="article:published_time" itemprop="datePublished" content={{ .Format "2006-01-02T15:04:05Z" | safeHTML }} />
{{ end -}}
{{ with .Lastmod -}}
<meta property="article:modified_time" itemprop="dateModified" content={{ .Format "2006-01-02T15:04:05Z" | safeHTML }} />
{{ end -}}
<meta itemprop="wordCount" content="{{ .WordCount }}" /> <meta itemprop="wordCount" content="{{ .WordCount }}" />
<script defer type="application/ld+json"> <script defer type="application/ld+json">
{ {
"@context": "http://schema.org", "@context": "http://schema.org",
"@type": "Article", "@type": "Article",
"headline": {{ .Title }}, "headline": {{ .Title }},
{{- with $author }}
"author": { "author": {
"@type": "Person", "@type": "Person",
"name": {{ or .Params.author .Site.Params.author }}, "name": {{ .Title }},
"url": {{ .Site.BaseURL }} "url": {{ .Permalink }},
{{- with .Resources.GetMatch "avatar" }}
"image": {
"@type": "ImageObject",
"url": {{ .Permalink }}
}
{{- end }}
}, },
"datePublished": {{ .Date.UTC.Format "2006-01-02T03:04:05Z" }}, {{- end }}
"datePublished": {{ .Date.UTC.Format "2006-01-02T15:04:05Z" }},
"description": {{ (or .Description .Summary) | plainify }}, "description": {{ (or .Description .Summary) | plainify }},
"wordCount": {{ .WordCount }}, "wordCount": {{ .WordCount }},
"mainEntityOfPage": {{.Permalink}}, "mainEntityOfPage": {{.Permalink}},
"dateModified": "{{ .Lastmod.UTC.Format "2006-01-02T03:04:05Z" }}", "dateModified": "{{ .Lastmod.UTC.Format "2006-01-02T15:04:05Z" }}",
"image": { "image": {
"@type": "ImageObject", "@type": "ImageObject",
"url": {{ with or $cover $icon }}{{ .Permalink | absURL }}{{ end }} "url": {{ with or $cover $icon }}{{ .Permalink | absURL }}{{ end }}
@ -116,6 +123,7 @@
{{- else }} {{- else }}
{{ "<!-- webpage metadata -->" | safeHTML }} {{ "<!-- webpage metadata -->" | safeHTML }}
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta name="author" content="{{ .Site.Params.author.name }}" />
<script defer type="application/ld+json"> <script defer type="application/ld+json">
{ {
"@context": "http://schema.org", "@context": "http://schema.org",
@ -133,10 +141,10 @@
{{/* auxiliary info */}} {{/* auxiliary info */}}
{{ "<!-- site presentation -->" | safeHTML }} {{ "<!-- site presentation -->" | safeHTML }}
{{ with $icon }} {{- with $icon }}
<link rel="shortcut icon" href='{{ .Permalink }}' sizes="{{.Width}}x{{.Height}}" /> <link rel="shortcut icon" href='{{ .Permalink }}' sizes="{{.Width}}x{{.Height}}" />
{{- else -}} {{- else -}}
<link rel="shortcut icon" href='{{ $staticIcon }}' sizes="512x512" /> <link rel="shortcut icon" href='{{ $staticIcon }}' />
{{- end }} {{- end }}
<meta name="theme-color" content="#ffffff" /> <meta name="theme-color" content="#ffffff" />
<meta name="msapplication-TileColor" content="#ffffff" /> <meta name="msapplication-TileColor" content="#ffffff" />
@ -146,6 +154,6 @@
{{- end -}} {{- end -}}
{{/* robots */}} {{/* robots */}}
{{ "<!-- robots -->" | safeHTML }} {{- "<!-- robots -->" | safeHTML }}
<meta name="robots" content="index,follow" /> <meta name="robots" content="index,follow" />
<meta name="googlebot" content="index,follow" /> <meta name="googlebot" content="index,follow" />

View file

@ -0,0 +1,30 @@
{{ define "main" }}
<main class="author">
<header class="section h-card">
<div class="container">
<h1 class="p-name">{{.Title}}</h1>
<p class="p-note">{{ .Summary }}</p>
{{ with .Resources.GetMatch "avatar" }}
<img src="{{ .Permalink }}" alt="{{ .Title }}" width="120" height="120">
{{ end }}
<p>h-feed URL: <a class="u-url u-uid" rel="self" href="{{ .Permalink }}">{{.Permalink}}</a></p>
{{ with .OutputFormats.Get "rss" -}}
<p>
<a href="{{ .Permalink}}" rel="{{ .Rel }}" type="{{ .MediaType.Type }}">
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16"><title>vaadin:rss-square</title><path fill="currentColor" d="M0 0v16h16V0zm3.6 14c-.9 0-1.6-.7-1.6-1.6s.7-1.6 1.6-1.6s1.6.7 1.6 1.6S4.6 14 3.6 14m4 0c0-3.1-2.5-5.6-5.6-5.6V6c4.4 0 8 3.6 8 8zm4 0c0-5.3-4.3-9.6-9.6-9.6V2c6.6 0 12 5.4 12 12z"/></svg>
<span>RSS Feed</span>
</a>
</p>
{{ end }}
</div>
</header>
<section class="section entries h-feed">
<div class="container">
<h2>Posts written by {{ .Title }}</h2>
{{ range .Data.Pages }}
{{ partial "list/h-entry.summary.html" . }}
{{ end }}
</div>
</section>
</main>
{{ end }}