Updating the configs

This commit is contained in:
fundor333
2024-07-26 00:56:53 +02:00
parent 72d966efaa
commit 2cfab196f6
72 changed files with 98 additions and 128 deletions

View File

@@ -1,7 +1,12 @@
DefaultContentLanguage: en
baseURL: "https://fundor333.com"
DefaultContentLanguage: en
languageCode: en
theme: "fugu"
theme:
[
"github.com/fundor333/macia-webmention",
"github.com/fundor333/macia-image",
"fugu",
]
title: Fundor 333
author:
name: Fundor 333
@@ -9,50 +14,7 @@ author:
twitterpage: "https://twitter.com/fundor333"
avatar: "/img/gatto.jpg"
url: "https://fundor333.com/cv/"
disableRSS: false
enableRobotsTXT: true
Paginate: 8
rssLimit: 10
enableGitInfo: true
related:
includeNewer: true
threshold: 70
toLower: false
indices:
- name: categories
weight: 40
- name: title
weight: 30
- name: description
weight: 30
- name: tags
weight: 10
- name: meta
weight: 10
- name: date
weight: 10
outputFormats:
SearchIndex:
baseName: search
mediaType: application/json
outputs:
section:
- HTML
- RSS
home:
- HTML
- RSS
- SearchIndex
page:
- html
disqusShortname: fundor333
gtm_id: GTM-NZQKPXS
googleAnalytics: G-H22W7LRVGC
sitemap:
changefreq: monthly
filename: sitemap.xml
priority: 0.5
taxonomies:
category: categories
tag: tags
micropub: micropub

View File

@@ -1,2 +0,0 @@
imports:
- path: github.com/fundor333/macia-webmention

View File

@@ -6,7 +6,6 @@ image: /img/pilogo.jpg
logo: /img/logo.jpg
hostName: "https://fundor333.com"
copyright: Fundor333
ShowFullTextinRSS: false
maciawebmention:
webmention: "https://webmention.io/fundor333.com/webmention"

View File

@@ -1,12 +1,2 @@
disqus:
disable: true
googleAnalytics:
disable: false
instagram:
disable: true
twitter:
disableInlineCSS: true
vimeo:
disable: true
youtube:
disable: true

View File

@@ -1,6 +0,0 @@
[params]
author = "fundor333"
github = "https://github.com/fundor333"
og_image = "https://fundor333.com/img/Opengraph.png"
sitename = "Fundor333"
twitter = "@fundor333"

5
go.mod
View File

@@ -2,4 +2,7 @@ module github.com/fundor333/fundor333.github.io
go 1.22.5
require github.com/fundor333/macia-webmention v0.0.0-20240725213257-5babe77b26ea // indirect
require (
github.com/fundor333/macia-image v0.0.0-20240725223224-a806faf4656b // indirect
github.com/fundor333/macia-webmention v0.0.0-20240725213257-5babe77b26ea // indirect
)

18
go.sum
View File

@@ -1,3 +1,21 @@
github.com/fundor333/macia-image v0.0.0-20240725214249-d62c566a8e40 h1:lX3o4E2ZiTwLDpjHvsrqqkv5//5xjWKruWzGEQDT9a0=
github.com/fundor333/macia-image v0.0.0-20240725214249-d62c566a8e40/go.mod h1:9zBOlIP9CvKcUcK3q+La1av6XH/fWPSApaYF/lvVAKY=
github.com/fundor333/macia-image v0.0.0-20240725214515-c7c6846760dd h1:xCKNfSLInvs25OxveYTtZTxQ2EcY7jTvAMYQxrRlOnI=
github.com/fundor333/macia-image v0.0.0-20240725214515-c7c6846760dd/go.mod h1:9zBOlIP9CvKcUcK3q+La1av6XH/fWPSApaYF/lvVAKY=
github.com/fundor333/macia-image v0.0.0-20240725215853-124246d0f81e h1:9ynukv81tnNoPGQ6yn3tqd7VXKykjeVoHh3CoWnpGTw=
github.com/fundor333/macia-image v0.0.0-20240725215853-124246d0f81e/go.mod h1:9zBOlIP9CvKcUcK3q+La1av6XH/fWPSApaYF/lvVAKY=
github.com/fundor333/macia-image v0.0.0-20240725220840-6426db4d448d h1:iNoOVKia4P1IoUq/h9foeNqVHwJhW38YzFkCAvkBucE=
github.com/fundor333/macia-image v0.0.0-20240725220840-6426db4d448d/go.mod h1:9zBOlIP9CvKcUcK3q+La1av6XH/fWPSApaYF/lvVAKY=
github.com/fundor333/macia-image v0.0.0-20240725221038-67c76470874f h1:VV0nWhQXuX+foTWmwiFK2T0O/91w3fZ2xhlJ/saHV3c=
github.com/fundor333/macia-image v0.0.0-20240725221038-67c76470874f/go.mod h1:9zBOlIP9CvKcUcK3q+La1av6XH/fWPSApaYF/lvVAKY=
github.com/fundor333/macia-image v0.0.0-20240725222014-43e70706b82b h1:TD9YF6KpcvccV18eU3fvPwytP9iKmZs8yz5PXgjFjUk=
github.com/fundor333/macia-image v0.0.0-20240725222014-43e70706b82b/go.mod h1:9zBOlIP9CvKcUcK3q+La1av6XH/fWPSApaYF/lvVAKY=
github.com/fundor333/macia-image v0.0.0-20240725222129-33bd637996ae h1:7gP2daq7N5w4tR7gDRG7vhVXk1pIA6NDQHMLxWLmCpY=
github.com/fundor333/macia-image v0.0.0-20240725222129-33bd637996ae/go.mod h1:9zBOlIP9CvKcUcK3q+La1av6XH/fWPSApaYF/lvVAKY=
github.com/fundor333/macia-image v0.0.0-20240725222250-8d5405334ce4 h1:XB5q7OD6x78if79ojIX63PJG5gkO+rLzkr/0p3LZsdg=
github.com/fundor333/macia-image v0.0.0-20240725222250-8d5405334ce4/go.mod h1:9zBOlIP9CvKcUcK3q+La1av6XH/fWPSApaYF/lvVAKY=
github.com/fundor333/macia-image v0.0.0-20240725223224-a806faf4656b h1:s1gh5Mk0XFEBb3DJKeqj/t1qH1OKV2pDELJgPkJWPTI=
github.com/fundor333/macia-image v0.0.0-20240725223224-a806faf4656b/go.mod h1:9zBOlIP9CvKcUcK3q+La1av6XH/fWPSApaYF/lvVAKY=
github.com/fundor333/macia-webmention v0.0.0-20240725202417-69f3c4586b26 h1:aV2wtABOlWPzS9F5Q6o3MWbMKHVFRO0HCoZMqne5Jus=
github.com/fundor333/macia-webmention v0.0.0-20240725202417-69f3c4586b26/go.mod h1:a52OEN3AjE6bu2d8wov8c7xIhDTsp3PC7H70f+5Xb8c=
github.com/fundor333/macia-webmention v0.0.0-20240725203136-acd9ddafa51d h1:M0yM2psjhVY6p+z3s+ST0TWP9tR5nwRLVBYpLbteDXc=

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 567 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 KiB

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

After

Width:  |  Height:  |  Size: 591 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 KiB

After

Width:  |  Height:  |  Size: 764 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 KiB

After

Width:  |  Height:  |  Size: 279 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 520 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

After

Width:  |  Height:  |  Size: 545 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 764 KiB

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 616 KiB

After

Width:  |  Height:  |  Size: 530 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 253 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

After

Width:  |  Height:  |  Size: 285 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 KiB

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 209 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 591 KiB

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 KiB

After

Width:  |  Height:  |  Size: 492 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 KiB

After

Width:  |  Height:  |  Size: 280 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 KiB

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 280 KiB

After

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 520 KiB

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 433 KiB

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 269 KiB

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 253 KiB

After

Width:  |  Height:  |  Size: 983 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 433 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 459 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 530 KiB

After

Width:  |  Height:  |  Size: 324 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 KiB

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 459 KiB

After

Width:  |  Height:  |  Size: 329 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 218 KiB

After

Width:  |  Height:  |  Size: 321 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 321 KiB

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 545 KiB

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 646 KiB

After

Width:  |  Height:  |  Size: 567 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 KiB

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 983 KiB

After

Width:  |  Height:  |  Size: 313 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 175 KiB

After

Width:  |  Height:  |  Size: 269 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 KiB

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 530 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 KiB

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 256 KiB

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 KiB

After

Width:  |  Height:  |  Size: 240 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 KiB

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 KiB

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 492 KiB

After

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 KiB

After

Width:  |  Height:  |  Size: 616 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 KiB

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 530 KiB

After

Width:  |  Height:  |  Size: 646 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 235 KiB

After

Width:  |  Height:  |  Size: 176 KiB

View File

@@ -0,0 +1,51 @@
DefaultContentLanguage: en
languageCode: en
#theme: ["github.com/fundor333/macia-webmention", "github.com/fundor333/macia-image"]
disableRSS: false
enableRobotsTXT: true
Paginate: 8
rssLimit: 10
enableGitInfo: true
related:
includeNewer: true
threshold: 70
toLower: false
indices:
- name: categories
weight: 40
- name: title
weight: 30
- name: description
weight: 30
- name: tags
weight: 10
- name: meta
weight: 10
- name: date
weight: 10
outputFormats:
SearchIndex:
baseName: search
mediaType: application/json
outputs:
section:
- HTML
- RSS
home:
- HTML
- RSS
- SearchIndex
page:
- html
sitemap:
changefreq: monthly
filename: sitemap.xml
priority: 0.5
taxonomies:
category: categories
tag: tags
micropub: micropub

View File

@@ -0,0 +1,4 @@
ShowFullTextinRSS: false
maciaimage:
imgclass: "img-fluid d-block mx-auto"

View File

@@ -0,0 +1,12 @@
disqus:
disable: true
googleAnalytics:
disable: true
instagram:
disable: true
twitter:
disableInlineCSS: true
vimeo:
disable: true
youtube:
disable: true

View File

@@ -1,61 +0,0 @@
{{/* Original code from: https://laurakalbag.com/processing-responsive-images-with-hugo/ */}}
{{/* Just modified a bit to work with render_image hook and output webp images */}}
{{/* get file that matches the filename as specified as src="" */}}
{{ $src := .Page.Resources.GetMatch (printf "%s" (.Destination | safeURL)) }}
{{ $alt := .PlainText | safeHTML }}
{{/* So for posts that aren't setup in the page bundles, it doesn't fail */}}
{{ if $src }}
{{ $format := cond (eq $src.MediaType.SubType "gif") "" "webp" -}}
{{ $tinyw := default (printf "500x %s" $format) }}
{{ $smallw := default (printf "800x %s" $format) }}
{{ $mediumw := default (printf "1200x %s" $format) }}
{{ $largew := default (printf "1500x %s" $format) }}
{{/* resize the src image to the given sizes */}}
{{/* We create a a temp scratch because it`s not available in this context */}}
{{ $data := newScratch }}
{{ $data.Set "tiny" ($src.Resize $tinyw) }}
{{ $data.Set "small" ($src.Resize $smallw) }}
{{ $data.Set "medium" ($src.Resize $mediumw) }}
{{ $data.Set "large" ($src.Resize $largew) }}
{{/* add the processed images to the scratch */}}
{{ $tiny := $data.Get "tiny" }}
{{ $small := $data.Get "small" }}
{{ $medium := $data.Get "medium" }}
{{ $large := $data.Get "large" }}
{{/* only use images smaller than or equal to the src (original)
image size, as Hugo will upscale small images */}}
<a href="{{ $src.RelPermalink }}">
<picture>
<source media="(max-width: 376px)"
srcset="{{with $tiny.RelPermalink }}{{.}}{{ end }}">
<source media="(max-width: 992px)"
srcset="{{with $small.RelPermalink }}{{.}}{{ end }}">
<source media="(max-width: 1400px)"
srcset="{{with $medium.RelPermalink }}{{.}}{{ end }}">
<source media="(min-width: 1600px)"
srcset="{{with $large.RelPermalink }}{{.}}{{ end }}">
<img alt="{{ $alt }}" title="{{ $alt }}" src="{{ $src }}"
height="{{ $src.Height}}" width="{{ $src.Width }}" class="img-fluid d-block mx-auto">
</picture>
</a>
{{/* Since I do image-response class, the only thing that really
matters is the height and width matches the image aspect ratio */}}
{{ end }}

View File

@@ -12,4 +12,4 @@ min_version = "0.120.4"
[author]
name = "Fundor333"
homepage = "fundor333.com"
homepage = "http://fundor333.com/"