diff --git a/assets/scss/layouts/blog/list.scss b/assets/scss/layouts/blog/list.scss index 08dda9d..8cef3c0 100644 --- a/assets/scss/layouts/blog/list.scss +++ b/assets/scss/layouts/blog/list.scss @@ -55,6 +55,7 @@ main.blog.list { } .posts { grid-area: posts; + .h-entry {max-width: 40rem;} } } } \ No newline at end of file diff --git a/assets/scss/layouts/blog/single.scss b/assets/scss/layouts/blog/single.scss index 8d575c8..4792b75 100644 --- a/assets/scss/layouts/blog/single.scss +++ b/assets/scss/layouts/blog/single.scss @@ -1,3 +1,115 @@ main.blog.single { - + --max-container-width: 80ch; + line-height: 1.6; + padding-bottom: 2rem; + article.h-entry { + > header { + background: var(--color-card-background); + color: var(--color-card-text); + padding-block: 1rem; + .entry-title { + margin-block-start: 1rem; + font-family: serif; + } + .entry-summary { + font-family: serif; + } + .h-card { + font-style: normal; + display: inline-block; + a { + display: grid; + grid-template-columns: auto 1fr; + gap: 0.5rem; + align-items: center; + text-decoration: none; + } + img.logo { + width: 2rem; + height: 2rem; + border-radius: 100rem; + } + } + time.dt-published { + display: block; + } + #TableOfContents > ul { + padding-left: 1rem; + } + } + section.e-content { + display: grid; + grid-template-columns: 1em 1fr 1em; + padding-block: 1rem; + gap: 1rem 0; + max-width: 80ch; + margin: 0 auto; + @media (min-width: 55ch) { + grid-template-columns: minmax(1em, 1fr) minmax(45ch, 70ch) minmax(1em, 1fr); + } + > * { + grid-column: 2; + margin: 0; + } + > img, > figure { + grid-column: 1 / span 3; + width: 100%; + img { + width: 100%; + display: block; + } + figcaption { + padding: 1rem; + background: var(--color-card-background); + color: var(--color-card-text); + font-size: 0.8em; + } + } + > blockquote { + padding-inline-start: 0.25rem; + border-inline-start: 0.25rem solid var(--color-highlight); + p:only-child {margin: 0;} + } + .has-pullquote { + @mixin pullquote { + content: attr(data-pullquote); + font-family: serif; + display: block; + margin-block-end: 1rem; + font-size: 1.2rem; + color: var(--color-highlight); + } + &.left { + &.before:before, + &.after:after { + @include pullquote; + } + } + &.right { + &.before:before, + &.after:after { + @include pullquote; + } + } + @media (min-width: 40rem) { + &.left { + &.before:before, + &.after:after { + float: left; + margin-inline-end: 1rem; + max-width: 24ch; + } + } + &.right { + &.before:before, + &.after:after { + float: right; + margin-inline-start: 1rem; + max-width: 24ch; + } + } + } + } + } + } } \ No newline at end of file diff --git a/content/_index.html b/content/_index.html index 6b31aea..94f2af6 100644 --- a/content/_index.html +++ b/content/_index.html @@ -152,9 +152,9 @@ layout = "custom_html"

Latest posts

-

See more posts

+

See more posts

- {{< index/latest-posts>}} + {{< index/latest-posts 7 >}}
diff --git a/content/authors/Abdullah Tarawneh/_index.md b/content/authors/Abdullah Tarawneh/_index.md new file mode 100644 index 0000000..3c9f74c --- /dev/null +++ b/content/authors/Abdullah Tarawneh/_index.md @@ -0,0 +1,6 @@ ++++ +title = "Abdullah Tarawneh" +[[resources]] +name = "avatar" +src = "avatar.png" ++++ \ No newline at end of file diff --git a/content/authors/Abdullah Tarawneh/avatar.png b/content/authors/Abdullah Tarawneh/avatar.png new file mode 100644 index 0000000..8d0f5ab Binary files /dev/null and b/content/authors/Abdullah Tarawneh/avatar.png differ diff --git a/content/blog/personal-websites/index.md b/content/blog/personal-websites/index.md index 35451b8..02d89fb 100644 --- a/content/blog/personal-websites/index.md +++ b/content/blog/personal-websites/index.md @@ -11,6 +11,6 @@ categories = ["Uncategorized"]

There is shockingly little of the latter content among what I can find. Virtually everyone is offering their advice for the former. The personal has become the professional. And, well... can you blame people, really? The current internet is highly commercialized and focused on promoting products or services. Sure, a website is ostensibly about conveying information, but a lot of that information is intended to get you to do something -- usually something representing a financial transaction.

-

No one seems to have any tips or hints on how to make a truly personal website. It's always "build your brand" or "showcase your portfolio" or some other transparently profit-motivated initiative. Everyone is always talking about the sales funnel or the call to action or whatever. It's just assumed you are also like this.

+

No one seems to have any tips or hints on how to make a truly personal website. It's always "build your brand" or "showcase your portfolio" or some other transparently profit-motivated initiative. Everyone is always talking about the sales funnel or the call to action or whatever. It's just assumed you are also like this.

How many websites are basically just "Hello I'm $NAME and I'm a $ROLE"? That doesn't really tell me much about a person. It doesn't really stand out at all. But what should you do instead? There's so little that you can take as an example. Perhaps a stroll through something like Neocities might help, but you'd have to look for quite a while.

\ No newline at end of file diff --git a/content/blog/twitter-not-social/index.md b/content/blog/twitter-not-social/index.md index 4972725..91533f0 100644 --- a/content/blog/twitter-not-social/index.md +++ b/content/blog/twitter-not-social/index.md @@ -6,7 +6,7 @@ date = 2018-04-27 tags = ["twitter", "social network", "social media", "analysis", "capitalism"] categories = ["Communication"] [[resources]] -name = "cover" +name = "featured" src = "failwhale.png" +++ diff --git a/content/support/index.html b/content/support/index.html index e81a49d..9b06fdf 100644 --- a/content/support/index.html +++ b/content/support/index.html @@ -18,5 +18,8 @@ layout = "custom_html" +++
- +
+

Help me live

+

Much like everyone else under capitalism, I need money to live. Most of the stuff I do is what you might consider "socially useful" but also "general unprofitable". Given our capitalist society, my "value" is judged by the latter criteria rather than the former.

+
\ No newline at end of file diff --git a/content/support/style.scss b/content/support/style.scss new file mode 100644 index 0000000..4ca90c0 --- /dev/null +++ b/content/support/style.scss @@ -0,0 +1,5 @@ +main.support { + .cta { + + } +} \ No newline at end of file diff --git a/content/work/_index.html b/content/work/_index.html index 24ec950..824540d 100644 --- a/content/work/_index.html +++ b/content/work/_index.html @@ -18,7 +18,7 @@ layout = "custom_html"

Some of the things I can do for you...

-

Software and API docs

+

Software and API docs

Information architecture and technical writing, especially for software and APIs.

oui:documentation @@ -26,7 +26,7 @@ layout = "custom_html"
-

End-to-end static websites

+

End-to-end static websites

Artisinally hand-crafted websites that are sure to perform well without sacrificing UX.

hugeicons:web-design-01 @@ -34,7 +34,7 @@ layout = "custom_html"
-

Social Web consultancy

+

Social Web consultancy

Get help implementing open web standards and technologies such as ActivityPub.

ph:fediverse-logo diff --git a/content/work/go-fed/index.html b/content/work/go-fed/index.html index 922bb0f..dedcc16 100644 --- a/content/work/go-fed/index.html +++ b/content/work/go-fed/index.html @@ -14,9 +14,7 @@ name = "cover" src = "new-1280-home1.png" +++ - - -
+
diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 5fc6545..dde8e13 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -1,66 +1,27 @@ {{ define "main" }}
-
- -
+
-

{{ .Title }}

-

{{.Summary}}

- {{ with .Params.cover }} - - {{end}} +
+

{{ .Title }}

+

{{.Summary}}

+ {{ partial "page/author.html" . }} + {{ partial "page/date.html" . }} + {{ partial "page/wordcount.html" . }} + {{ partial "page/categories.html" .}} + {{ partial "page/tags-list.html" . }} + {{ partial "page/series-list.html" . }} + {{ partial "page/toc.html" . }} +
- -
+
{{ .Content }}
- {{- if .Params.series -}} -
- {{- $series := or (where .Site.RegularPages.ByDate ".Params.series" "intersect" .Params.series) (where .Site.RegularPages.ByDate ".Params.series" "eq" .Params.series) -}} - {{- with $series -}} -

This series

-
    - {{- range . -}} -
  1. - {{- if eq .File.UniqueID $.File.UniqueID -}} - {{ .Title }} - {{- else -}} - {{ .Title }} - {{- end -}} -
  2. - {{- end -}} -
- {{- end -}} +
+ {{ partial "page/series-nav.html" . }}
- {{- end -}}
-
{{ end }} diff --git a/layouts/partials/category/h-entry.html b/layouts/partials/category/h-entry.html deleted file mode 100644 index 501307a..0000000 --- a/layouts/partials/category/h-entry.html +++ /dev/null @@ -1,18 +0,0 @@ -
- -

{{ .Title }}

-
-

{{ .Summary }}

-

{{ .WordCount }} words posted on {{with .Params.updated }}(updated on ) {{ end }}by - - {{ with .GetTerms "categories" }}into {{ range $k, $v := . }}{{- if $k }}, {{ end }}{{ .Title }}{{ end }}{{ end }}

- {{ with .GetTerms "tags" }} - - {{ end }} -
\ No newline at end of file diff --git a/layouts/partials/commit-icon.html b/layouts/partials/commit-icon.html deleted file mode 100644 index 50d5447..0000000 --- a/layouts/partials/commit-icon.html +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file diff --git a/layouts/partials/i18nlist.html b/layouts/partials/i18nlist.html deleted file mode 100644 index 61e7081..0000000 --- a/layouts/partials/i18nlist.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ if .IsTranslated }} - {{ range .Translations }} - {{ .Language.LanguageName }} - {{ end }} -{{ end }} diff --git a/layouts/partials/list/h-entry.summary.html b/layouts/partials/list/h-entry.summary.html new file mode 100644 index 0000000..feaaf97 --- /dev/null +++ b/layouts/partials/list/h-entry.summary.html @@ -0,0 +1,20 @@ +
+ +

{{ .Title }}

+
+

{{ .Summary }}

+

+ {{ .WordCount }} words posted on + {{with .Params.updated -}} + (updated on ) {{ end -}} + by + + {{ with .GetTerms "categories" }}into {{ range $k, $v := . }}{{- if $k }}, {{ end }}{{ .Title }}{{ end }}{{ end }} +

+ {{ partial "page/tags-list.html" . }} +
\ No newline at end of file diff --git a/layouts/partials/name.html b/layouts/partials/name.html deleted file mode 100644 index 10df9d7..0000000 --- a/layouts/partials/name.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ $firstH1 := - ( - substr - ( - delimit - ( - findRE - "^#{1} ([^{\n]+)" - .RawContent - 1 - ) - "" - ) - 2 - ) -}} \ No newline at end of file diff --git a/layouts/partials/page/author.html b/layouts/partials/page/author.html new file mode 100644 index 0000000..8b995b6 --- /dev/null +++ b/layouts/partials/page/author.html @@ -0,0 +1,6 @@ +
+ +
\ No newline at end of file diff --git a/layouts/partials/page/categories.html b/layouts/partials/page/categories.html new file mode 100644 index 0000000..c4f8650 --- /dev/null +++ b/layouts/partials/page/categories.html @@ -0,0 +1,9 @@ +{{ with .GetTerms "categories" }} +

+ Categorized under + {{ range $k, $v := . }} + {{- if $k }}, {{ end }} + {{ .Title }} + {{- end }} +

+{{ end }} \ No newline at end of file diff --git a/layouts/partials/page/date.html b/layouts/partials/page/date.html new file mode 100644 index 0000000..1d47cd1 --- /dev/null +++ b/layouts/partials/page/date.html @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/layouts/partials/page/series-list.html b/layouts/partials/page/series-list.html new file mode 100644 index 0000000..88d137b --- /dev/null +++ b/layouts/partials/page/series-list.html @@ -0,0 +1,10 @@ +{{- with .GetTerms "series" -}} +

This post is part of the following series:

+ +{{- end -}} \ No newline at end of file diff --git a/layouts/partials/page/series-nav.html b/layouts/partials/page/series-nav.html new file mode 100644 index 0000000..a2165c3 --- /dev/null +++ b/layouts/partials/page/series-nav.html @@ -0,0 +1,21 @@ +{{ with .GetTerms "series" }} +

More in the same series:

+ {{ range . }} + + {{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/page/tags-list.html b/layouts/partials/page/tags-list.html new file mode 100644 index 0000000..122061a --- /dev/null +++ b/layouts/partials/page/tags-list.html @@ -0,0 +1,9 @@ +{{ with .GetTerms "tags" }} + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/page/toc.html b/layouts/partials/page/toc.html new file mode 100644 index 0000000..e8a27a7 --- /dev/null +++ b/layouts/partials/page/toc.html @@ -0,0 +1,4 @@ +{{ if ne .TableOfContents "" }} +

Table of contents:

+ {{ .TableOfContents }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/page/wordcount.html b/layouts/partials/page/wordcount.html new file mode 100644 index 0000000..94fab28 --- /dev/null +++ b/layouts/partials/page/wordcount.html @@ -0,0 +1 @@ +

{{.WordCount}} words

\ No newline at end of file diff --git a/layouts/partials/pr-icon.html b/layouts/partials/pr-icon.html deleted file mode 100644 index f0c5762..0000000 --- a/layouts/partials/pr-icon.html +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/site/breadcrumbs.html similarity index 100% rename from layouts/partials/breadcrumbs.html rename to layouts/partials/site/breadcrumbs.html diff --git a/layouts/partials/site-footer.html b/layouts/partials/site/footer.html similarity index 92% rename from layouts/partials/site-footer.html rename to layouts/partials/site/footer.html index 8966ab2..22fe89e 100644 --- a/layouts/partials/site-footer.html +++ b/layouts/partials/site/footer.html @@ -2,7 +2,7 @@

Tip me

-

(why?)

+

(why?)

- {{ with where .Site.RegularPages "Section" "services" }} + {{/* {{ with where .Site.RegularPages "Section" "services" }}

Services

{{ range . }}

{{ .Title }}

{{ .Summary }}

{{ end }} - {{ end }} + {{ end }} */}}
diff --git a/layouts/partials/site-header.html b/layouts/partials/site/header.html similarity index 100% rename from layouts/partials/site-header.html rename to layouts/partials/site/header.html diff --git a/layouts/partials/seo.html b/layouts/partials/site/seo.html similarity index 95% rename from layouts/partials/seo.html rename to layouts/partials/site/seo.html index 1ed1480..46d4980 100644 --- a/layouts/partials/seo.html +++ b/layouts/partials/site/seo.html @@ -1,6 +1,3 @@ -{{- $firstH1 := partial "name.html" . }} -{{- $title := or .Title $firstH1 $.File.ContentBaseName }} - {{- $cover := ($.Resources.ByType "image").GetMatch "{*cover*,*thumbnail*,*featured*}" -}} {{ $icon := resources.GetMatch (default "" .Site.Params.icon) -}} @@ -15,8 +12,8 @@ {{- end }} {{- else }} -{{ or .Params.name (print $title " - " .Site.Title) }} - +{{ or .Params.name (print .Title " - " .Site.Title) }} + {{- end -}} {{/*=== description ===*/}} @@ -90,7 +87,7 @@ { "@context": "http://schema.org", "@type": "Article", - "headline": {{ $title }}, + "headline": {{ .Title }}, "author": { "@type": "Person", "name": {{ or .Params.author .Site.Params.author }}, diff --git a/layouts/shortcodes/index/latest-posts.html b/layouts/shortcodes/index/latest-posts.html index dc73520..57d3a78 100644 --- a/layouts/shortcodes/index/latest-posts.html +++ b/layouts/shortcodes/index/latest-posts.html @@ -1,4 +1,4 @@ -{{ range first 5 (where .Site.RegularPages "Section" "blog") }} +{{ range first ( or (.Get 0) 5 ) (where .Site.RegularPages "Section" "blog") }}

{{ .Title }}

diff --git a/layouts/taxonomy/category.html b/layouts/taxonomy/category.html index 7507e3c..cc8a1bd 100644 --- a/layouts/taxonomy/category.html +++ b/layouts/taxonomy/category.html @@ -17,7 +17,7 @@
{{ range .Data.Pages }} - {{ partial "category/h-entry.html" . }} + {{ partial "list/h-entry.summary.html" . }} {{ end }}