mirror of
https://github.com/adulau/sillon-fictionnel.git
synced 2024-11-07 12:06:37 +00:00
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
This commit is contained in:
parent
fe88e4a0b4
commit
d9eca5e842
2 changed files with 9 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
</div>
|
||||
<div class="markdown-content py-2">
|
||||
{{ .Content }}
|
||||
{{ partial "shared/post-isbn" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
8
themes/writeonly/layouts/partials/shared/post-isbn.html
Normal file
8
themes/writeonly/layouts/partials/shared/post-isbn.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<div class="text-center text-muted mb-1">
|
||||
{{ with .Params.ISBN }}
|
||||
<span class="d-inline-flex align-items-center small mx-2">
|
||||
<i class="fa-solid fa-book"></i>
|
||||
<a href="https://search.worldcat.org/search?q={{ . }}&offset=1"> ISBN {{ . }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
Loading…
Reference in a new issue