Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,17 @@ home = ["HTML", "RSS", "JSON", "WebAppManifest"]
############################# Imaging ############################
[imaging]
# See https://github.com/disintegration/imaging
# Default JPEG or WebP quality setting. Default is 75.
quality = 90
resampleFilter = "lanczos"

[imaging.jpeg]
quality = 90

[imaging.webp]
quality = 90

[imaging.avif]
quality = 90

############################# Caches ###############################
[caches]
[caches.images]
Expand Down
4 changes: 2 additions & 2 deletions config/_default/languages.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
################################### English language #####################################
[en]
languageName = "EN"
languageCode = "en-US"
label = "EN"
locale = "en-US"
contentDir = "content"
weight = 1

Expand Down
56 changes: 56 additions & 0 deletions layouts/_default/index.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"name": "{{site.Title}}",
"short_name": "{{site.Title}}",
"lang": "{{ site.Language.Locale | default `en-us` }}",
"display": "fullscreen",
"orientation" : "portrait",
"start_url": "{{ site.BaseURL | absURL }}?utm_source=web_app_manifest",
"background_color": "{{ site.Params.variables.body_color | default `#fff`}}",
"theme_color": "{{ site.Params.variables.color_primary | default `#000`}}",

{{ $icon:= site.Params.favicon }}
{{ if $icon }}
{{ if fileExists (add `assets/` $icon) }}
{{ $icon:= resources.Get $icon }}
{{ $icon_48:= $icon.Resize "48x48 png" }}
{{ $icon_72:= $icon.Resize "72x72 png" }}
{{ $icon_96:= $icon.Resize "96x96 png" }}
{{ $icon_144:= $icon.Resize "144x144 png" }}
{{ $icon_192:= $icon.Resize "192x192 png" }}
{{ $icon_512:= $icon.Resize "512x512 png" }}
"icons": [
{
"src": "{{$icon_48.RelPermalink}}",
"sizes": "48x48",
"type": "image/png"
},
{
"src": "{{$icon_72.RelPermalink}}",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "{{$icon_96.RelPermalink}}",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "{{$icon_144.RelPermalink}}",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "{{$icon_192.RelPermalink}}",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "{{$icon_512.RelPermalink}}",
"sizes": "512x512",
"type": "image/png"
}
]
{{ end }}
{{ end }}
}
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
command = "npm run build"

[build.environment]
HUGO_VERSION = "0.123.0"
HUGO_VERSION = "0.165.0"
NODE_VERSION = "20"

[[redirects]]
Expand Down
2 changes: 1 addition & 1 deletion themes/microcks/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ site.LanguageCode | default `en-US` }}" itemscope itemtype="http://schema.org/WebPage">
<html lang="{{ site.Language.Locale | default `en-US` }}" itemscope itemtype="http://schema.org/WebPage">

<head>
<!-- head (don't cache it) -->
Expand Down
2 changes: 1 addition & 1 deletion themes/microcks/layouts/_default/go-package.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ with $.Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
<html lang="{{ with $.Site.Language.Locale }}{{ . }}{{ else }}en-us{{ end }}">

<head>
<meta charset="utf-8">
Expand Down
2 changes: 1 addition & 1 deletion themes/microcks/layouts/_default/index.webmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "{{site.Title}}",
"short_name": "{{site.Title}}",
"lang": "{{ site.LanguageCode | default `en-us` }}",
"lang": "{{ site.Language.Locale | default `en-us` }}",
{{ with site.Params.variables.color_primary }}"theme_color": "{{.}}",{{ end }}
{{ with site.Params.variables.body_color }}"background_color": "{{.}}",{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion themes/microcks/layouts/_default/redirect.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ with $.Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
<html lang="{{ with $.Site.Language.Locale }}{{ . }}{{ else }}en-us{{ end }}">

<head>
<meta charset="utf-8">
Expand Down
2 changes: 1 addition & 1 deletion themes/microcks/layouts/documentation/baseof.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html
lang="{{ site.LanguageCode | default `en-US` }}"
lang="{{ site.Language.Locale | default `en-US` }}"
itemscope
itemtype="http://schema.org/WebPage">
<head>
Expand Down
Loading