From a7d1ab3b21ac72cfa55771497051916da5c96383 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Wed, 26 May 2021 18:54:07 +0200 Subject: [PATCH] Put static files (CSS and img) in theme static directory and mount them to assets virtual folder --- config.yaml | 6 ++++++ content/about.md | 2 ++ content/posts/smartphone/introduction/index.md | 2 ++ themes/chosto/layouts/_default/single.html | 2 +- {assets => themes/chosto/static}/css/bulma.min.css | 0 {assets => themes/chosto/static}/css/custom.css | 0 {assets => themes/chosto/static}/img/funkwhale.png | Bin {assets => themes/chosto/static}/img/gitea.png | Bin {assets => themes/chosto/static}/img/github.png | Bin {assets => themes/chosto/static}/img/hero_home.png | Bin {assets => themes/chosto/static}/img/mail.png | Bin {assets => themes/chosto/static}/img/mastodon.png | Bin 12 files changed, 11 insertions(+), 1 deletion(-) rename {assets => themes/chosto/static}/css/bulma.min.css (100%) rename {assets => themes/chosto/static}/css/custom.css (100%) rename {assets => themes/chosto/static}/img/funkwhale.png (100%) rename {assets => themes/chosto/static}/img/gitea.png (100%) rename {assets => themes/chosto/static}/img/github.png (100%) rename {assets => themes/chosto/static}/img/hero_home.png (100%) rename {assets => themes/chosto/static}/img/mail.png (100%) rename {assets => themes/chosto/static}/img/mastodon.png (100%) diff --git a/config.yaml b/config.yaml index 7b51e13..7004153 100644 --- a/config.yaml +++ b/config.yaml @@ -33,6 +33,12 @@ privacy: theme: - chosto +module: + # Make all static theme ressources accessible as assets (e.g. resources.Get) + mounts: + - source: themes/chosto/static + target: assets + params: github: https://github.com/Chostakovitch mastodon: https://framapiaf.org/@chosto diff --git a/content/about.md b/content/about.md index ded2af9..0ed8721 100644 --- a/content/about.md +++ b/content/about.md @@ -3,3 +3,5 @@ title: À propos notoc: true menu: end --- + +## À propos de moi diff --git a/content/posts/smartphone/introduction/index.md b/content/posts/smartphone/introduction/index.md index b89443c..a62d49b 100644 --- a/content/posts/smartphone/introduction/index.md +++ b/content/posts/smartphone/introduction/index.md @@ -30,6 +30,8 @@ Dernière précaution : bien que le sujet principal de ce billet soit l'addictio Quelques données sur moi permettront de mieux expliquer les zones d'ombres de mon analyse. On parle toujours de manière située, même à coup d'études scientifiques et de bonne foi, et il est très vraisemblable que ce que j'avance ne parle pas du tout à certaines personnes. +Il y a déjà une page [a propos](https://blog.chosto.me/%C3%A0-propos/), mais voici quelques éléments plus à propos. + Je m'appelle Quentin, j'ai 24 ans, j'ai une formation d'ingénieur en informatique et je n'ai pas d'activité professionnelle au moment où j'écris ce billet. Globalement, je n'ai manqué de rien dans ma vie. Je me reconnais de moins en moins dans le métier d'ingénieur tel qu'il est consensuellement décrit et ma réflexion critique sur le projet politique des grandes entreprises du numérique se radicalise depuis quelques années, à peu près depuis que j'ai rencontré mes ami·e·s de [Picasoft](https://picasoft.net). diff --git a/themes/chosto/layouts/_default/single.html b/themes/chosto/layouts/_default/single.html index cbb7284..d7ee8e2 100644 --- a/themes/chosto/layouts/_default/single.html +++ b/themes/chosto/layouts/_default/single.html @@ -31,7 +31,7 @@ {{ if (or (not .Params.notoc) (gt .WordCount 400)) }}
Sommaire
- +
{{ .TableOfContents | replaceRE "
{{ end }} diff --git a/assets/css/bulma.min.css b/themes/chosto/static/css/bulma.min.css similarity index 100% rename from assets/css/bulma.min.css rename to themes/chosto/static/css/bulma.min.css diff --git a/assets/css/custom.css b/themes/chosto/static/css/custom.css similarity index 100% rename from assets/css/custom.css rename to themes/chosto/static/css/custom.css diff --git a/assets/img/funkwhale.png b/themes/chosto/static/img/funkwhale.png similarity index 100% rename from assets/img/funkwhale.png rename to themes/chosto/static/img/funkwhale.png diff --git a/assets/img/gitea.png b/themes/chosto/static/img/gitea.png similarity index 100% rename from assets/img/gitea.png rename to themes/chosto/static/img/gitea.png diff --git a/assets/img/github.png b/themes/chosto/static/img/github.png similarity index 100% rename from assets/img/github.png rename to themes/chosto/static/img/github.png diff --git a/assets/img/hero_home.png b/themes/chosto/static/img/hero_home.png similarity index 100% rename from assets/img/hero_home.png rename to themes/chosto/static/img/hero_home.png diff --git a/assets/img/mail.png b/themes/chosto/static/img/mail.png similarity index 100% rename from assets/img/mail.png rename to themes/chosto/static/img/mail.png diff --git a/assets/img/mastodon.png b/themes/chosto/static/img/mastodon.png similarity index 100% rename from assets/img/mastodon.png rename to themes/chosto/static/img/mastodon.png