diff --git a/content/personal-blog/first-post/index.md b/content/personal-blog/first-post/index.md index 66bfda2..c9cfa6a 100644 --- a/content/personal-blog/first-post/index.md +++ b/content/personal-blog/first-post/index.md @@ -5,11 +5,10 @@ date = 2025-02-27T07:07:07-05:00 draft = false categories = ['thoughts'] tags = ['hugo', 'web'] +disableToc = true +showFeature = false +++ -First Post!!! - - ## Social anxiety or introvert, chicken or egg? I have been an introvert for as long as I can remember, and while I don't want this to turn into a self-help post, suffice it to say that I have never made a personal website primarily because it makes the hairs on the back of my neck stand up. Let today be the day that I face my fears and finally launch this site. diff --git a/content/personal-blog/markdown-cheetsheet/index.md b/content/personal-blog/markdown-cheetsheet/index.md index e591736..d4e2dbe 100644 --- a/content/personal-blog/markdown-cheetsheet/index.md +++ b/content/personal-blog/markdown-cheetsheet/index.md @@ -7,9 +7,6 @@ categories = ['references'] tags = ['hugo', 'markdown'] +++ -This cheatsheet is intended as a quick reference and showcase of the markdown syntax used in Hugo and Congo. - - {{< lead >}} This cheatsheet is intended as a quick reference and showcase of the markdown syntax used in Hugo and Congo. {{< /lead >}} diff --git a/content/personal-blog/matrix-synapse-docker-compose/thumbnail-feature.webm b/content/personal-blog/matrix-synapse-docker-compose/thumbnail-feature.webm new file mode 100644 index 0000000..7cb85c2 Binary files /dev/null and b/content/personal-blog/matrix-synapse-docker-compose/thumbnail-feature.webm differ diff --git a/content/personal-blog/toc-disable-example/index.md b/content/personal-blog/toc-disable-example/index.md deleted file mode 100644 index 180622e..0000000 --- a/content/personal-blog/toc-disable-example/index.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: "TOC Disable Example" -description: "Example showing how to disable the table of contents in markdown files" -date: 2025-01-27 -draft: false -categories: ['examples'] -tags: ['toc', 'markdown', 'hugo'] -disableToc: true # This disables the table of contents for this page ---- - -{{< lead >}} -This page demonstrates how to disable the table of contents in markdown files. -{{< /lead >}} - -## How to Disable TOC - -To disable the table of contents in any markdown file (including `index.md` files), simply add the `disableToc: true` parameter to the front matter: - -```yaml ---- -title: "Your Page Title" -description: "Your page description" -disableToc: true # This disables the TOC ---- -``` - -## Usage Examples - -### For Individual Pages -Add `disableToc: true` to the front matter of any markdown file to disable the TOC for that specific page. - -### For Index Pages -For `index.md` files that serve as list pages, you can also use the `cascade` parameter to apply the setting to all pages in that section: - -```yaml ---- -title: "Section Title" -cascade: - disableToc: true # Disables TOC for all pages in this section ---- -``` - -## How It Works - -When `disableToc: true` is set: - -1. The table of contents will not be displayed on the page -2. The TOC JavaScript will not be loaded (improving performance) -3. The TOC highlighting functionality will be disabled - -## Note - -This feature works for both: -- Individual article pages (using the `single.html` template) -- List/index pages (using the `list.html` template) - -The TOC will still be generated by Hugo, but it won't be displayed or have JavaScript functionality when disabled. \ No newline at end of file diff --git a/content/personal-blog/updating-lsi-hba-truenas-scale/index.md b/content/personal-blog/updating-lsi-hba-truenas-scale/index.md index b2903e6..2c2b3f3 100644 --- a/content/personal-blog/updating-lsi-hba-truenas-scale/index.md +++ b/content/personal-blog/updating-lsi-hba-truenas-scale/index.md @@ -7,9 +7,6 @@ categories = ['references'] tags = ['LSI', 'TrueNAS Scale', 'Broadcom', 'Update', 'SAS3Flash', 'HBA'] +++ -Navigating Broadcom and LSI HBA updates on TrueNAS Scale. - - {{< lead >}} Navigating Broadcom and LSI HBA updates on TrueNAS Scale. {{< /lead >}} diff --git a/layouts/partials/article-link.html b/layouts/partials/article-link.html index 155e340..1495c62 100644 --- a/layouts/partials/article-link.html +++ b/layouts/partials/article-link.html @@ -1,7 +1,11 @@
{{- $images := $.Resources.ByType "image" }} + {{- $videos := $.Resources.ByType "video" }} {{- $thumbnail := $images.GetMatch (.Params.thumbnail | default "*thumb*") }} {{- $feature := $images.GetMatch (.Params.feature | default "*feature*") | default $thumbnail }} + {{- if not $feature }} + {{- $feature = $videos.GetMatch (.Params.feature | default "*feature*") }} + {{- end }} {{- with $feature }}
- {{ $.Params.featureAlt | default $.Params.thumbnailAlt | default + {{ if eq .ResourceType "video" }} + + {{ else }} + {{ $.Params.featureAlt | default $.Params.thumbnailAlt | default + {{ end }}
{{- end }} @@ -70,7 +90,15 @@ {{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
- {{ $summary := .Summary | emojify }} + {{ $summary := "" }} + {{ $hasManualSummary := findRE "" .RawContent }} + {{ if $hasManualSummary }} + {{ $summary = .Summary | emojify }} + {{ else if .Description }} + {{ $summary = .Description | emojify }} + {{ else }} + {{ $summary = .Summary | emojify }} + {{ end }} {{ $summary := replaceRE "]*>(.*?)" "$1" $summary }} {{ $summary := replaceRE "\\s*" " " $summary }} {{ $summary := replaceRE "\\s+" " " $summary }} diff --git a/layouts/partials/video.html b/layouts/partials/video.html new file mode 100644 index 0000000..6dcb062 --- /dev/null +++ b/layouts/partials/video.html @@ -0,0 +1,23 @@ +{{ $video := .video }} +{{ $class := .class }} +{{ $lazy := .lazy }} +{{ $alt := .alt }} +{{ $autoplay := .autoplay | default true }} +{{ $loop := .loop | default true }} +{{ $muted := .muted | default true }} + +{{ with $video }} + +{{ end }} + diff --git a/layouts/personal-blog/single.html b/layouts/personal-blog/single.html index 1ee3e18..69bc43d 100644 --- a/layouts/personal-blog/single.html +++ b/layouts/personal-blog/single.html @@ -1,8 +1,12 @@ {{ define "main" }} {{ partial "background-images.html" . }} {{- $images := .Resources.ByType "image" }} + {{- $videos := .Resources.ByType "video" }} {{- $cover := $images.GetMatch (.Params.cover | default "*cover*") }} {{- $feature := $images.GetMatch (.Params.feature | default "*feature*") | default $cover }} + {{- if not $feature }} + {{- $feature = $videos.GetMatch (.Params.feature | default "*feature*") }} + {{- end }}
{{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }} @@ -22,16 +26,22 @@ {{ partial "article-meta.html" (dict "context" . "scope" "single") }}
{{ end }} - {{ with $feature }} -
- {{ $altText := $.Params.featureAlt | default $.Params.coverAlt | default "" }} - {{ $class := "mb-6 rounded-md" }} - {{ $webp := $.Page.Site.Params.enableImageWebp | default true }} - {{ partial "picture.html" (dict "img" . "alt" $altText "class" $class "lazy" false "webp" $webp) }} - {{ with $.Params.coverCaption }} -
{{ . | markdownify }}
- {{ end }} -
+ {{ if .Params.showFeature | default true }} + {{ with $feature }} +
+ {{ $altText := $.Params.featureAlt | default $.Params.coverAlt | default "" }} + {{ $class := "mb-6 rounded-md" }} + {{ if eq .ResourceType "video" }} + {{ partial "video.html" (dict "video" . "alt" $altText "class" $class "lazy" false "autoplay" true "loop" true "muted" true) }} + {{ else }} + {{ $webp := $.Page.Site.Params.enableImageWebp | default true }} + {{ partial "picture.html" (dict "img" . "alt" $altText "class" $class "lazy" false "webp" $webp) }} + {{ end }} + {{ with $.Params.coverCaption }} +
{{ . | markdownify }}
+ {{ end }} +
+ {{ end }} {{ end }}
diff --git a/static/matrix-synapse-docker-compose/matrix-synapse-thumbnail.html b/static/matrix-synapse-docker-compose/matrix-synapse-thumbnail.html new file mode 100644 index 0000000..5aa39f3 --- /dev/null +++ b/static/matrix-synapse-docker-compose/matrix-synapse-thumbnail.html @@ -0,0 +1,387 @@ + + + + + + Matrix Synapse Docker Guide + + + + +
+
+
+
+
+
+
+
+ +
+
+ +
Synapse
+
+ +

+ Self-Host + Your Server +

+ +
+
Docker
+
Compose
+
Matrix
+
+
+ +
+
+
+
+
+
+
+
+
+ $ + docker compose up -d +
+
+ # Starting services... +
+
+ synapse: +
+
+ image: matrixdotorg/synapse +
+
+ ports: +
+
+ - 8008:8008 +
+
+ volumes: +
+
+ - ./data:/data +
+
+
+
+
+
+ + + \ No newline at end of file