aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-10-02 08:06:32 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-10-02 08:06:32 +0200
commit847d1290d1b4a15a289aa55ad8095bef482127f9 (patch)
treecfb00707591034e0a9c97676b95dfd07e008bd78
parent827ca3a51a9582c7dbcae38e84ecf6e0b0850700 (diff)
Fix avatar size
-rw-r--r--Makefile7
-rw-r--r--README.md1
-rw-r--r--layouts/partials/header/avatar.html6
3 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index f465d6d..95389e9 100644
--- a/Makefile
+++ b/Makefile
@@ -3,3 +3,10 @@ deploy:
rsync -avz --delete public/ ubuntu@feed.kagamino.dev:~/kagamino_blog/
rsync -avz deploy.sh ubuntu@feed.kagamino.dev:~/deploy.sh
ssh ubuntu@feed.kagamino.dev 'sudo bash deploy.sh'
+
+dev:
+ hugo server -D
+
+build:
+ hugo -D -b http://localhost:8000/
+ python -m http.server -d public/
diff --git a/README.md b/README.md
index d3b158d..b06c55f 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,6 @@
## Development
- `go install github.com/gohugoio/hugo@v0.150`
-- `hugo server -D`
## TODO
diff --git a/layouts/partials/header/avatar.html b/layouts/partials/header/avatar.html
index 5c9447d..3c6240d 100644
--- a/layouts/partials/header/avatar.html
+++ b/layouts/partials/header/avatar.html
@@ -1,4 +1,4 @@
-{{ $avatar := resources.GetMatch .Site.Params.avatar }}
+{{ $avatar := resources.GetMatch .Site.Params.avatar }}
{{ $tiny := ($avatar.Fill "80x80 q90") }}
<div class="flex-none w-20 h-20 rounded-full overflow-hidden">
@@ -6,8 +6,8 @@
<img
srcset="{{- with $tiny.RelPermalink -}}{{.}} 80w{{- end -}}"
src="{{ $avatar.RelPermalink }}"
- width="{{ $avatar.Width }}"
- height="{{ $avatar.Height }}"
+ width="{{ $tiny.Width }}"
+ height="{{ $tiny.Height }}"
alt="{{ .Site.Title }}"
/>
</a>