Source code of my website
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

♻️ : replace justfile with mise configuration

+51 -34
-28
justfile
··· 1 - #!/usr/bin/env just --justfile 2 - 3 - default: serve 4 - 5 - build_options:="--printI18nWarnings --printPathWarnings --cleanDestinationDir --logLevel debug" 6 - common_options:= "--openBrowser --printI18nWarnings --printPathWarnings --cleanDestinationDir --logLevel debug" 7 - 8 - build: 9 - hugo build {{build_options}} 10 - 11 - serve: 12 - hugo server {{common_options}} 13 - 14 - draft: 15 - hugo server {{common_options}} --buildDrafts --buildFuture 16 - 17 - non-breakable-spaces: 18 - sed -i '/^---$/,/^---$/b;s/ \([;?:!]\)/\ \1/g' content/posts/**/*.md 19 - 20 - new date title: 21 - hugo new content posts/{{date}}-{{title}} -k veille 22 - 23 - clever-preview: 24 - clever deploy --alias preview --force 25 - clever open --alias preview 26 - 27 - clever-deploy: 28 - clever deploy --alias codeka.io
+50
mise.toml
··· 1 + [tools] 2 + hugo = "0.152" 3 + 4 + [env] 5 + HUGO_OPTIONS = "--printI18nWarnings --printPathWarnings --cleanDestinationDir --logLevel debug" 6 + 7 + [tasks] 8 + 9 + [tasks.fetch-views-data] 10 + description = 'Fetch data from plausible' 11 + dir = "scripts" 12 + run = "go run plausible_fetch.go -site codeka.io -range all -out ../data/plausible-stats/visits.json" 13 + 14 + [tasks.build] 15 + description = "Build le site avec Hugo" 16 + depends = ['fetch-views-data'] 17 + run = "hugo build $HUGO_OPTIONS" 18 + 19 + [tasks.serve] 20 + description = "Lance le serveur de développement Hugo" 21 + depends = ['fetch-views-data'] 22 + run = "hugo server --openBrowser $HUGO_OPTIONS" 23 + 24 + [tasks.draft] 25 + description = "Serve Hugo en incluant les brouillons et futures publications" 26 + depends = ['fetch-views-data'] 27 + run = "hugo server --openBrowser $HUGO_OPTIONS --buildDrafts --buildFuture" 28 + 29 + [tasks.nbsp] 30 + description = "Insère des espaces insécables avant ;?:! dans les posts" 31 + run = ''' 32 + sed -i '/^---$/,/^---$/b;s/ \([;?:!]\)/\ \1/g' content/posts/**/*.md 33 + ''' 34 + 35 + [tasks."new-tech-watch-post"] 36 + description = "Crée un nouveau post de veille" 37 + usage = ''' 38 + arg "<date>" help="Date de publication du post" 39 + ''' 40 + run = "hugo new content posts/${usage_date}-mi-veille -k veille" 41 + 42 + [tasks."clever:preview"] 43 + description = "Déploie une preview Clever Cloud et ouvre l'URL" 44 + depends = ['fetch-views-data'] 45 + run = "clever deploy --alias preview --force && clever open --alias preview" 46 + 47 + [tasks."clever:deploy"] 48 + description = "Déploie sur l'alias Clever Cloud principal" 49 + depends = ['fetch-views-data'] 50 + run = "clever deploy --alias codeka.io"
+1 -6
scripts/mise.toml
··· 1 1 [tools] 2 - go = { version = "1.21" } 3 - 4 - [tasks.fetch] 5 - description = 'Fetch data from plausible' 6 - run = "go run plausible_fetch.go -site codeka.io -range all -out ../data/plausible-stats/visits.json" 7 - 2 + go = "1.21"