Updating the configs
@@ -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
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
imports:
|
||||
- path: github.com/fundor333/macia-webmention
|
||||
@@ -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"
|
||||
|
||||
@@ -1,12 +1,2 @@
|
||||
disqus:
|
||||
disable: true
|
||||
googleAnalytics:
|
||||
disable: false
|
||||
instagram:
|
||||
disable: true
|
||||
twitter:
|
||||
disableInlineCSS: true
|
||||
vimeo:
|
||||
disable: true
|
||||
youtube:
|
||||
disable: true
|
||||
|
||||
@@ -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
@@ -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
@@ -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=
|
||||
|
||||
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 171 KiB |
|
Before Width: | Height: | Size: 567 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 240 KiB After Width: | Height: | Size: 175 KiB |
|
Before Width: | Height: | Size: 192 KiB After Width: | Height: | Size: 176 KiB |
|
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 138 KiB |
|
Before Width: | Height: | Size: 180 KiB After Width: | Height: | Size: 591 KiB |
|
Before Width: | Height: | Size: 313 KiB After Width: | Height: | Size: 764 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 256 KiB |
|
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 279 KiB |
|
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 520 KiB |
|
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 194 KiB |
|
Before Width: | Height: | Size: 176 KiB After Width: | Height: | Size: 545 KiB |
|
Before Width: | Height: | Size: 764 KiB After Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 616 KiB After Width: | Height: | Size: 530 KiB |
|
Before Width: | Height: | Size: 149 KiB After Width: | Height: | Size: 253 KiB |
|
Before Width: | Height: | Size: 176 KiB After Width: | Height: | Size: 285 KiB |
|
Before Width: | Height: | Size: 205 KiB After Width: | Height: | Size: 191 KiB |
|
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 197 KiB |
|
Before Width: | Height: | Size: 214 KiB After Width: | Height: | Size: 239 KiB |
|
Before Width: | Height: | Size: 186 KiB After Width: | Height: | Size: 209 KiB |
|
Before Width: | Height: | Size: 591 KiB After Width: | Height: | Size: 180 KiB |
|
Before Width: | Height: | Size: 248 KiB After Width: | Height: | Size: 492 KiB |
|
Before Width: | Height: | Size: 171 KiB After Width: | Height: | Size: 280 KiB |
|
Before Width: | Height: | Size: 329 KiB After Width: | Height: | Size: 166 KiB |
|
Before Width: | Height: | Size: 280 KiB After Width: | Height: | Size: 248 KiB |
|
Before Width: | Height: | Size: 520 KiB After Width: | Height: | Size: 186 KiB |
|
Before Width: | Height: | Size: 433 KiB After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 269 KiB After Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 253 KiB After Width: | Height: | Size: 983 KiB |
|
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 433 KiB |
|
Before Width: | Height: | Size: 187 KiB After Width: | Height: | Size: 182 KiB |
|
Before Width: | Height: | Size: 182 KiB After Width: | Height: | Size: 459 KiB |
|
Before Width: | Height: | Size: 530 KiB After Width: | Height: | Size: 324 KiB |
|
Before Width: | Height: | Size: 239 KiB After Width: | Height: | Size: 127 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 153 KiB |
|
Before Width: | Height: | Size: 459 KiB After Width: | Height: | Size: 329 KiB |
|
Before Width: | Height: | Size: 218 KiB After Width: | Height: | Size: 321 KiB |
|
Before Width: | Height: | Size: 321 KiB After Width: | Height: | Size: 192 KiB |
|
Before Width: | Height: | Size: 545 KiB After Width: | Height: | Size: 205 KiB |
|
Before Width: | Height: | Size: 646 KiB After Width: | Height: | Size: 567 KiB |
|
Before Width: | Height: | Size: 300 KiB After Width: | Height: | Size: 187 KiB |
|
Before Width: | Height: | Size: 983 KiB After Width: | Height: | Size: 313 KiB |
|
Before Width: | Height: | Size: 175 KiB After Width: | Height: | Size: 269 KiB |
|
Before Width: | Height: | Size: 197 KiB After Width: | Height: | Size: 160 KiB |
|
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 530 KiB |
|
Before Width: | Height: | Size: 191 KiB After Width: | Height: | Size: 214 KiB |
|
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 218 KiB |
|
Before Width: | Height: | Size: 279 KiB After Width: | Height: | Size: 240 KiB |
|
Before Width: | Height: | Size: 209 KiB After Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 159 KiB After Width: | Height: | Size: 185 KiB |
|
Before Width: | Height: | Size: 492 KiB After Width: | Height: | Size: 235 KiB |
|
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 300 KiB |
|
Before Width: | Height: | Size: 285 KiB After Width: | Height: | Size: 616 KiB |
|
Before Width: | Height: | Size: 187 KiB After Width: | Height: | Size: 149 KiB |
|
Before Width: | Height: | Size: 324 KiB After Width: | Height: | Size: 187 KiB |
|
Before Width: | Height: | Size: 530 KiB After Width: | Height: | Size: 646 KiB |
|
Before Width: | Height: | Size: 235 KiB After Width: | Height: | Size: 176 KiB |
51
themes/fugu/config/_default/config.yaml
Normal 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
|
||||
0
themes/fugu/config/_default/maciaimage.yaml
Normal file
4
themes/fugu/config/_default/params.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
ShowFullTextinRSS: false
|
||||
|
||||
maciaimage:
|
||||
imgclass: "img-fluid d-block mx-auto"
|
||||
12
themes/fugu/config/_default/privacy.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
disqus:
|
||||
disable: true
|
||||
googleAnalytics:
|
||||
disable: true
|
||||
instagram:
|
||||
disable: true
|
||||
twitter:
|
||||
disableInlineCSS: true
|
||||
vimeo:
|
||||
disable: true
|
||||
youtube:
|
||||
disable: true
|
||||
@@ -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 }}
|
||||
@@ -12,4 +12,4 @@ min_version = "0.120.4"
|
||||
|
||||
[author]
|
||||
name = "Fundor333"
|
||||
homepage = "fundor333.com"
|
||||
homepage = "http://fundor333.com/"
|
||||
|
||||