mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +00:00
Update assets with precompressed versions
No need to re-compress the same file every CI job.
This commit is contained in:
parent
e03a35da82
commit
f61bbfe3d2
20 changed files with 13 additions and 9 deletions
10
Makefile
10
Makefile
|
@ -14,7 +14,7 @@ GEMINI_RSYNC_DEST = $(USER):$(GEMINI_ROOT)
|
||||||
OUTPUT_DIR = public
|
OUTPUT_DIR = public
|
||||||
RSYNCFLAGS += -rlvz --zc=zstd
|
RSYNCFLAGS += -rlvz --zc=zstd
|
||||||
# compression has dimishing returns after this point
|
# compression has dimishing returns after this point
|
||||||
ECT_LEVEL=1009
|
ECT_LEVEL=70109
|
||||||
|
|
||||||
.PHONY: hugo
|
.PHONY: hugo
|
||||||
hugo: clean
|
hugo: clean
|
||||||
|
@ -65,12 +65,12 @@ test: lint-css hint-devserver check-links
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: hugo
|
build: hugo
|
||||||
ifndef NO_STATIC
|
ifndef NO_STATIC
|
||||||
find $(OUTPUT_DIR) -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.txt' -o -name '*.asc' -o -name '*.webmanifest' -o -name "*.svg" \
|
find $(OUTPUT_DIR) -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.webmanifest' \
|
||||||
| grep -v gemini \
|
| grep -v gemini \
|
||||||
| xargs ect -$(ECT_LEVEL) -gzip --ultra=3 --stagnations=200
|
| xargs ect -$(ECT_LEVEL) -gzip
|
||||||
find $(OUTPUT_DIR) -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.txt' -o -name '*.asc' -o -name '*.webmanifest' -o -name "*.svg" \
|
find $(OUTPUT_DIR) -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.webmanifest' \
|
||||||
| grep -v gemini \
|
| grep -v gemini \
|
||||||
| xargs brotli -q 11
|
| xargs brotli -q 11 --
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# save webmentions to a file, don't send yet
|
# save webmentions to a file, don't send yet
|
||||||
|
|
1
assets/favicon.svg.br
Symbolic link
1
assets/favicon.svg.br
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../static/favicon.svg.br
|
1
assets/favicon.svg.gz
Symbolic link
1
assets/favicon.svg.gz
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../static/favicon.svg.gz
|
Binary file not shown.
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.5 KiB |
|
@ -4,7 +4,7 @@
|
||||||
{{- $maskablesvg := resources.Get "/maskable_android.svg" | resources.Fingerprint "md5" -}}
|
{{- $maskablesvg := resources.Get "/maskable_android.svg" | resources.Fingerprint "md5" -}}
|
||||||
{{- $monochromesvg := resources.Get "/monochrome.svg" | resources.Fingerprint "md5" -}}
|
{{- $monochromesvg := resources.Get "/monochrome.svg" | resources.Fingerprint "md5" -}}
|
||||||
{
|
{
|
||||||
"name": "Seirdy's Home",
|
"name": "{{site.Title}}",
|
||||||
"short_name": "Seirdy",
|
"short_name": "Seirdy",
|
||||||
"description": "{{ .Site.Params.Description }}",
|
"description": "{{ .Site.Params.Description }}",
|
||||||
"lang": "en-US",
|
"lang": "en-US",
|
||||||
|
|
BIN
assets/maskable_android.svg.br
Normal file
BIN
assets/maskable_android.svg.br
Normal file
Binary file not shown.
BIN
assets/maskable_android.svg.gz
Normal file
BIN
assets/maskable_android.svg.gz
Normal file
Binary file not shown.
BIN
assets/monochrome.svg.br
Normal file
BIN
assets/monochrome.svg.br
Normal file
Binary file not shown.
BIN
assets/monochrome.svg.gz
Normal file
BIN
assets/monochrome.svg.gz
Normal file
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 2.8 KiB |
|
@ -51,11 +51,11 @@
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<!-- ANOTHER meta image?! When will it end? -->
|
<!-- ANOTHER meta image?! When will it end? -->
|
||||||
{{ $og_image := resources.Get "/open_graph.png" | resources.Fingerprint "md5" -}}
|
{{ $og_image := resources.Get "/favicon512.png" | resources.Fingerprint "md5" -}}
|
||||||
{{ printf `<meta property="og:image" content="%s">` $og_image.Permalink | safeHTML }}
|
{{ printf `<meta property="og:image" content="%s">` $og_image.Permalink | safeHTML }}
|
||||||
<meta property="og:image:type" content="image/png">
|
<meta property="og:image:type" content="image/png">
|
||||||
<meta property="og:image:height" content="630">
|
<meta property="og:image:height" content="512">
|
||||||
<meta property="og:image:width" content="1200">
|
<meta property="og:image:width" content="512">
|
||||||
<meta property="og:url" content="https://seirdy.one{{ .RelPermalink }}">
|
<meta property="og:url" content="https://seirdy.one{{ .RelPermalink }}">
|
||||||
<meta property="og:description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Site.Params.Description }}{{ end }}">
|
<meta property="og:description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Site.Params.Description }}{{ end }}">
|
||||||
<meta property="article:author" content="{{ .Site.Author.name }}">
|
<meta property="article:author" content="{{ .Site.Author.name }}">
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 708 B After Width: | Height: | Size: 638 B |
BIN
static/favicon.svg.br
Normal file
BIN
static/favicon.svg.br
Normal file
Binary file not shown.
BIN
static/favicon.svg.gz
Normal file
BIN
static/favicon.svg.gz
Normal file
Binary file not shown.
BIN
static/publickey.asc.br
Normal file
BIN
static/publickey.asc.br
Normal file
Binary file not shown.
BIN
static/publickey.asc.gz
Normal file
BIN
static/publickey.asc.gz
Normal file
Binary file not shown.
1
static/publickey.txt.br
Symbolic link
1
static/publickey.txt.br
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
publickey.asc.br
|
1
static/publickey.txt.gz
Symbolic link
1
static/publickey.txt.gz
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
publickey.asc.gz
|
BIN
static/robots.txt.br
Normal file
BIN
static/robots.txt.br
Normal file
Binary file not shown.
BIN
static/robots.txt.gz
Normal file
BIN
static/robots.txt.gz
Normal file
Binary file not shown.
Loading…
Reference in a new issue