mirror of
https://github.com/osmarks/website
synced 2025-05-16 14:24:08 +00:00
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
extends layout.pug
|
|
|
|
block content
|
|
div.content.blog-post!= content
|
|
|
|
if references.length > 0
|
|
h2 See also
|
|
div
|
|
each ref in references
|
|
div.box.ref
|
|
a.title(href=ref.url)= ref.title
|
|
div.deemph
|
|
if ref.author
|
|
if Array.isArray(ref.author)
|
|
span= `${ref.author.length > 4 ? ref.author.slice(0, 4).join(", ") + " et al." : ref.author.join(", ")}`
|
|
else
|
|
span= ref.author
|
|
if ref.website
|
|
if ref.author
|
|
span= " / "
|
|
span= `${ref.website}`
|
|
if ref.date
|
|
if ref.author || ref.website
|
|
span= " / "
|
|
span= `${ref.date}`
|
|
.description!= ref.description
|
|
.excerpt= ref.excerpt
|
|
|
|
if bibtex
|
|
details.cite-this-post
|
|
summary Cite this post
|
|
textarea#citebox(rows=bibtex.split("\n").length, readonly)= bibtex
|
|
div
|
|
button#citebutton Copy
|
|
|
|
block under-title
|
|
if draft
|
|
h1 DRAFT
|