Added the cite_book
template
All checks were successful
Build and Publish / build (push) Successful in 41s
All checks were successful
Build and Publish / build (push) Successful in 41s
This commit is contained in:
32
layouts/shortcodes/cite_book.html
Normal file
32
layouts/shortcodes/cite_book.html
Normal file
@ -0,0 +1,32 @@
|
||||
{{/*
|
||||
|
||||
A template for citing books inspired by the "cite book" template of Wikipedia.
|
||||
<https://en.wikipedia.org/wiki/Template:Cite_book>
|
||||
|
||||
*/}}
|
||||
|
||||
<div style="display: inline">
|
||||
|
||||
{{/* Authors */}}
|
||||
{{ with .Get "author" }}<b>{{ . }}</b>{{ end }}{{ with .Get "author2" }}; <b>{{ . }}</b>{{ end }}
|
||||
|
||||
{{/* Date */}}
|
||||
{{ with .Get "date" }}({{ . }}).{{ end }}
|
||||
|
||||
{{/* Chapter */}}
|
||||
{{ with .Get "chapter" }}"{{ . }}"{{ end }}
|
||||
|
||||
{{/* Title and edition */}}
|
||||
{{ with .Get "title" }}in <i>{{ . }}</i>{{ end }}{{ with .Get "edition" }}({{ . }} ed.){{ end }}.
|
||||
|
||||
{{/* Publisher */}}
|
||||
{{ with .Get "publisher" }}{{ . }}.{{ end }}
|
||||
|
||||
{{/* Pages */}}
|
||||
{{ with .Get "page" }}p. {{ . }}.{{ end }}
|
||||
{{ with .Get "pages" }}pp. {{ . }}.{{ end }}
|
||||
|
||||
{{/* ISBN */}}
|
||||
{{ with .Get "isbn" }}ISBN {{ . }}.{{ end }}
|
||||
|
||||
</div>
|
Reference in New Issue
Block a user