From d9eca5e842fa0567a35fc5a8d88b1438698386c4 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sun, 18 Feb 2024 09:34:15 +0100 Subject: [PATCH] chg: [layout - post] Ajout de l'ISBN si disponible. Pour l'instant je fais un lien vers Worldcat mais cela ne semble pas la solution la plus ouverte/libre. Ref: https://annas-blog.org/blog-isbndb-dump-how-many-books-are-preserved-forever.html --- themes/writeonly/layouts/_default/single.html | 1 + themes/writeonly/layouts/partials/shared/post-isbn.html | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 themes/writeonly/layouts/partials/shared/post-isbn.html diff --git a/themes/writeonly/layouts/_default/single.html b/themes/writeonly/layouts/_default/single.html index 6e49474..b8f1e8d 100644 --- a/themes/writeonly/layouts/_default/single.html +++ b/themes/writeonly/layouts/_default/single.html @@ -12,6 +12,7 @@
{{ .Content }} + {{ partial "shared/post-isbn" . }}
diff --git a/themes/writeonly/layouts/partials/shared/post-isbn.html b/themes/writeonly/layouts/partials/shared/post-isbn.html new file mode 100644 index 0000000..a867e6e --- /dev/null +++ b/themes/writeonly/layouts/partials/shared/post-isbn.html @@ -0,0 +1,8 @@ +
+ {{ with .Params.ISBN }} + + + ISBN {{ . }} + + {{ end }} +