Update to hugo-blog-awesome theme

This commit is contained in:
Matt Cengia 2023-06-18 19:06:13 -07:00
parent 78cf08593e
commit fca07b09fe
Signed by: mattcen
GPG Key ID: 652968EE25069D6F
16 changed files with 110 additions and 163 deletions

18
.gitmodules vendored
View File

@ -1,9 +1,15 @@
[submodule "themes/ananke"]
path = themes/ananke
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git
[submodule "themes/hugo-PaperMod"]
path = themes/hugo-PaperMod
url = https://github.com/adityatelange/hugo-PaperMod
[submodule "themes/matomo"]
path = themes/matomo
url = https://github.com/holehan/hugo-components-matomo.git
[submodule "themes/anubis"]
path = themes/anubis
url = https://github.com/mitrichius/hugo-theme-anubis.git
[submodule "themes/fuji"]
path = themes/fuji
url = https://github.com/dsrkafuu/hugo-theme-fuji.git
[submodule "themes/themes/hugo.386"]
path = themes/themes/hugo.386
url = https://gitlab.com/maxlefou/hugo.386
[submodule "themes/hugo-blog-awesome"]
path = themes/hugo-blog-awesome
url = https://github.com/hugo-sid/hugo-blog-awesome

BIN
assets/me-2018-01-24.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

View File

@ -1,25 +1,22 @@
baseURL: 'https://blog.mattcen.com/'
languageCode: en-au
title: "mattcen's mumblings"
copyright: Matt Cengia
description: 'Words from a queer, feminist Linux sysadmin/dev/advocate and geek.'
theme: [ananke, matomo]
#theme: hugo-PaperMod
title: "mattcen's mumblings"
theme: [hugo-blog-awesome, matomo]
sectionPagesMenu: main
# Enable emojis globally
enableEmoji: true
ignoreErrors: ["additional-script-loading-error"] # ignore error of loading additional scripts.
menu:
main:
- identifier: about
name: About
url: /about/
#- name: Archive
# url: /archive/
- name: Résumé
url: /resume/
- name: About
pageRef: about
- name: Contact
url: /contact/
pageRef: contact
- name: Publications
url: /publications/
pageRef: publications
permalinks:
posts: '/:year/:month/:day/:title/'
@ -30,31 +27,37 @@ markup:
goldmark:
renderer:
unsafe: true
highlight:
noClasses: false
tableOfContents:
startLevel: 1 # ToC starts from H1
endLevel: 4 # ToC ends at H4
ordered: false # generates <ul> instead of <ol>
params:
mainSections: ['posts']
env: production
# Config for ananke theme
disable_share: false
ananke_socials:
title: "mattcen's mumblings"
description: 'Words from a queer, feminist Linux sysadmin/dev/advocate and geek.'
author:
avatar: "me-2018-01-24.jpg"
intro: "mattcen's mumblings"
name: "Matt Cengia"
description: 'Words from a queer, feminist Linux sysadmin/dev/advocate and geek.'
#toc: true
socialIcons:
- name: matrix
url: 'https://matrix.to/#/@mattcen:mattcen.com'
- name: email
url: 'mailto:blog@mattcen.com'
- name: mastodon
url: 'https://aus.social/@mattcen'
- name: twitter
#url: 'https://twitter.com/mattcen'
- name: github
url: 'https://github.com/mattcen'
- name: youtube
- name: instagram
- name: gitlab
- name: keybase
- name: linkedin
- name: medium
- name: rss
url: /posts/index.xml
- name: facebook
- name: cv
url: /resume/
matomo:
url: "https://matomo.dane.mattcen.com"
id: 1
@ -65,30 +68,3 @@ params:
# button: "Disallow tracking"
# message: "You are **not** tracked."
#disableSRI: true
# Config for hugo-PaperMod theme
#showShareButtons: true
#socialIcons:
# - name: twitter
# url: 'https://twitter.com/mattcen'
# - name: github
# url: 'https://github.com/mattcen'
## profile-mode
#profileMode:
# enabled: false # needs to be explicitly set
# title: ExampleSite
# subtitle: "This is subtitle"
# imageUrl: "<img location>"
# imageWidth: 120
# imageHeight: 120
# imageTitle: my image
# buttons:
# - name: Posts
# url: posts
# - name: Tags
# url: tags
#
## home-info mode
#homeInfoParams:
# Title: "Hi there \U0001F44B"
# Content: Welcome to my blog

View File

@ -5,11 +5,11 @@ type: page
date: 2016-01-21T06:57:02+00:00
---
![](/wp-content/uploads/2018/02/me-large.jpg)
<img src="/wp-content/uploads/2018/02/me-large.jpg" style="display: block; margin: auto; width: 50%; height: 50%">
Hi! I'm Matthew Cengia. You can call me Matt, or my online handle, [@mattcen](https://aus.social/@mattcen).
You now have enough information to stalk me across the web, and find out all about me, but let me save you the trouble.
You now have enough information to find me across the web, and learn all about me, but let me save you the trouble.
I'm a Linux systems administrator and developer, open source software advocate, Open Knowledge Australia ambassador, and scout leader. I'm also polyamorous and bisexual, and I use he/him/his pronouns. All of the above are important to my identity, and each component may have be the focus of one or more blog posts in future.

View File

@ -0,0 +1,21 @@
<footer class="footer">
<span class="footer_item"> </span>
&nbsp;
<div class="footer_social-icons">
{{- partial "socialIcons.html" site.Params.socialIcons -}}
</div>
<small class="footer_copyright">
© {{ now.Format "2006" }} {{ .Site.Params.author.name }}.
Powered by <a href="https://github.com/hugo-sid/hugo-blog-awesome" target="_blank" rel="noreferrer noopener">Hugo blog awesome</a>
theme on
<a href="https://gohugo.io" target="_blank" rel="noreferrer noopener">Hugo</a>.
</small>
</footer>
{{- if .Site.Params.goToTop -}}
<a href="#" title="Go to top" id="totop">
{{ partial "svgs/arrowUp.svg" (dict "height" 48 "width" 48) . }}
</a>
{{- end -}}
{{ partial "matomo-tracking" . }}

View File

@ -0,0 +1,46 @@
<head>
{{- partial "meta/main.html" . }}
{{- hugo.Generator }}
{{/* Canonical link, RSS */}}
<link rel="canonical" href="{{ .Permalink }}">
{{- with .OutputFormats.Get "RSS" }}
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}">
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}">
{{- end }}
{{- /* Styles */ -}}
{{- $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS (dict "targetPath" "style.css") | minify | fingerprint }}
<link href="{{ $style.RelPermalink }}" rel="stylesheet">
{{- $code_syntax_highlight_css := resources.Get "code-highlight.css" | minify | fingerprint }}
<link href="{{ $code_syntax_highlight_css.RelPermalink }}" rel="stylesheet">
{{/* Favicons */}}
{{ $image := resources.Get "me-2018-01-24.jpg" }}
<link rel="apple-touch-icon" sizes="180x180" href="{{ ($image.Resize "180x png").RelPermalink }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ ($image.Resize "32x png").RelPermalink }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ ($image.Resize "16x png").RelPermalink }}">
{{/*<link rel="mask-icon" href="{{ (resources.Get "icons/safari-pinned-tab.svg").RelPermalink }}">*/}}
<link rel="shortcut icon" href="{{ (resources.Get "icons/favicon.ico" | resources.Copy "favicon.ico").RelPermalink }}">
{{- partial "webmanifest.html" . -}}
{{- partial "browserconfig.html" . -}}
<meta name="theme-color" content="{{ .Site.Params.webmanifest.theme_color | default "#434648" }}">
{{/* SVG favicon for the modern web */}}
{{/*<link rel="icon" type="image/svg+xml" href="{{ (resources.Get "icons/favicon.svg").RelPermalink }}">*/}}
{{/* Katex support (enabled on specific pages). See 'helpers/katex.html' for more info. */}}
{{- if or .Params.math .Site.Params.math }}{{ partial "helpers/katex.html" . -}}{{- end -}}
{{/* Google analytics script. See config.toml to enable/disable this. */}}
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
{{ template "_internal/google_analytics.html" . }}
{{- end -}}
</head>

View File

@ -1,3 +0,0 @@
<link rel="icon" href="/wp-content/uploads/2022/02/cropped-mattcen-square-32x32.jpg" sizes="32x32" />
<link rel="icon" href="/wp-content/uploads/2022/02/cropped-mattcen-square-192x192.jpg" sizes="192x192" />
<link rel="apple-touch-icon" href="/wp-content/uploads/2022/02/cropped-mattcen-square-180x180.jpg" />

View File

@ -1,9 +0,0 @@
<footer class="{{ .Site.Params.background_color_class | default "bg-black" }} bottom-0 w-100 pa3" role="contentinfo">
<div class="flex justify-between">
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="{{ .Site.BaseURL }}" >
&copy; {{ with .Site.Copyright | default .Site.Title }} {{ . | safeHTML }} {{ now.Format "2006"}} {{ end }}
</a>
<div>{{ partial "social-follow.html" . }}</div>
</div>
</footer>
{{ partial "matomo-tracking" . }}

View File

@ -1,15 +0,0 @@
{{ $socials := partialCached "func/socials/Get" "socials/Get" }}
<div class="ananke-socials">
{{ range $socials }}
{{ if .url }}
<a href="{{ .url }}" target="_blank" class="{{ .name }} ananke-social-link link-transition stackoverflow link dib z-999 pt3 pt0-l mr1" title="{{ .label }} link" rel="me noopener" aria-label="follow on {{ .label }}——Opens in a new window">
{{ with .icon }}
<span class="icon">{{ . }}</span>
{{ else }}
{{ .label }}
{{ end }}
{{- partial "new-window-icon.html" . -}}
</a>
{{ end }}
{{ end }}
</div>

View File

@ -1,14 +0,0 @@
<div class="relative w-100 mb4 bg-white nested-copy-line-height">
<div class="bg-white mb3 pa4 gray overflow-hidden">
<span class="f6 db">{{ humanize .Section }}</span>
<time class="f6 db"datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
<h1 class="f3 near-black">
<a href="{{ .RelPermalink }}" class="link black dim">
{{ .Title }}
</a>
</h1>
<div class="nested-links f5 lh-copy nested-copy-line-height">
{{ .Summary }}
</div>
</div>
</div>

View File

@ -1,40 +0,0 @@
{{ define "main" }}
<section id="main">
<h1 id="title">{{ .Title }}</h1>
<div>
<article id="content">
{{ .Content }}
</article>
</div>
</section>
<aside id="meta">
<div>
<section>
<h4 id="date"> {{ .Date.Format "Mon Jan 2, 2006" }} </h4>
<h5 id="wordcount"> {{ .WordCount }} Words </h5>
</section>
{{ with .Params.topics }}
<ul id="topics">
{{ range . }}
<li><a href="{{ "topics" | absURL}}{{ . | urlize }}">{{ . }}</a> </li>
{{ end }}
</ul>
{{ end }}
{{ with .Params.tags }}
<ul id="tags">
{{ range . }}
<li> <a href="{{ "tags" | absURL }}{{ . | urlize }}">{{ . }}</a> </li>
{{ end }}
</ul>
{{ end }}
</div>
<div>
{{ with .PrevInSection }}
<a class="previous" href="{{.Permalink}}"> {{.Title}}</a>
{{ end }}
{{ with .NextInSection }}
<a class="next" href="{{.Permalink}}"> {{.Title}}</a>
{{ end }}
</div>
</aside>
{{ end }}

View File

@ -1,20 +0,0 @@
{{ define "main" }}
<main>
<article>
<header>
<h1>{{.Title}}</h1>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
{{.Content}}
</article>
<ul>
<!-- Ranges through content/posts/*.md -->
{{/* range .Pages */}}
{{ range where .Site.Pages "Section" "posts" }}
<li>
<a href="{{.Permalink}}">{{.Date.Format "2006-01-02"}} | {{.Title}}</a>
</li>
{{ end }}
</ul>
</main>
{{ end }}

@ -1 +0,0 @@
Subproject commit c7b9901e01ec3720b47fcef3d33bdbd6ce53f000

@ -1 +0,0 @@
Subproject commit 43c810c3e20bcf04e17a3e26a4ceacd9dfd9f22a

@ -0,0 +1 @@
Subproject commit d81ed12e91a75be25dcbf908d98034c205872668