diff --git a/content/docs/_index.md b/content/docs/_index.md index b8a1d78..769ce05 100644 --- a/content/docs/_index.md +++ b/content/docs/_index.md @@ -8,7 +8,7 @@ breadcrumbs = false {{< card link="introduction" title="Introduction" icon="book-open" >}} {{< /cards >}} -### CPUs +### ISAs {{< cards >}} {{< card link="lc-2" title="LC-2" icon="chip" >}} diff --git a/layouts/shortcodes/cite_book.html b/layouts/shortcodes/cite_book.html new file mode 100644 index 0000000..4aa993e --- /dev/null +++ b/layouts/shortcodes/cite_book.html @@ -0,0 +1,32 @@ +{{/* + +A template for citing books inspired by the "cite book" template of Wikipedia. + + +*/}} + +
+ +{{/* Authors */}} +{{ with .Get "author" }}{{ . }}{{ end }}{{ with .Get "author2" }}; {{ . }}{{ end }} + +{{/* Date */}} +{{ with .Get "date" }}({{ . }}).{{ end }} + +{{/* Chapter */}} +{{ with .Get "chapter" }}"{{ . }}"{{ end }} + +{{/* Title and edition */}} +{{ with .Get "title" }}in {{ . }}{{ 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 }} + +