1
0
Fork 0
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:
Rohan Kumar 2021-06-12 15:22:11 -07:00
parent e03a35da82
commit f61bbfe3d2
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
20 changed files with 13 additions and 9 deletions

View file

@ -14,7 +14,7 @@ GEMINI_RSYNC_DEST = $(USER):$(GEMINI_ROOT)
OUTPUT_DIR = public
RSYNCFLAGS += -rlvz --zc=zstd
# compression has dimishing returns after this point
ECT_LEVEL=1009
ECT_LEVEL=70109
.PHONY: hugo
hugo: clean
@ -65,12 +65,12 @@ test: lint-css hint-devserver check-links
.PHONY: build
build: hugo
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 \
| xargs ect -$(ECT_LEVEL) -gzip --ultra=3 --stagnations=200
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" \
| xargs ect -$(ECT_LEVEL) -gzip
find $(OUTPUT_DIR) -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.webmanifest' \
| grep -v gemini \
| xargs brotli -q 11
| xargs brotli -q 11 --
endif
# save webmentions to a file, don't send yet

1
assets/favicon.svg.br Symbolic link
View file

@ -0,0 +1 @@
../static/favicon.svg.br

1
assets/favicon.svg.gz Symbolic link
View file

@ -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

View file

@ -4,7 +4,7 @@
{{- $maskablesvg := resources.Get "/maskable_android.svg" | resources.Fingerprint "md5" -}}
{{- $monochromesvg := resources.Get "/monochrome.svg" | resources.Fingerprint "md5" -}}
{
"name": "Seirdy's Home",
"name": "{{site.Title}}",
"short_name": "Seirdy",
"description": "{{ .Site.Params.Description }}",
"lang": "en-US",

Binary file not shown.

Binary file not shown.

BIN
assets/monochrome.svg.br Normal file

Binary file not shown.

BIN
assets/monochrome.svg.gz Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

View file

@ -51,11 +51,11 @@
<meta property="og:type" content="website">
{{- 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 }}
<meta property="og:image:type" content="image/png">
<meta property="og:image:height" content="630">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="512">
<meta property="og:image:width" content="512">
<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="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

Binary file not shown.

BIN
static/favicon.svg.gz Normal file

Binary file not shown.

BIN
static/publickey.asc.br Normal file

Binary file not shown.

BIN
static/publickey.asc.gz Normal file

Binary file not shown.

1
static/publickey.txt.br Symbolic link
View file

@ -0,0 +1 @@
publickey.asc.br

1
static/publickey.txt.gz Symbolic link
View file

@ -0,0 +1 @@
publickey.asc.gz

BIN
static/robots.txt.br Normal file

Binary file not shown.

BIN
static/robots.txt.gz Normal file

Binary file not shown.