[skip ci] Added the cite_conference
shortcode
This commit is contained in:
parent
55c5d52e5a
commit
9c879a9101
46
layouts/shortcodes/cite_conference.html
Normal file
46
layouts/shortcodes/cite_conference.html
Normal file
@ -0,0 +1,46 @@
|
||||
{{/*
|
||||
|
||||
A template for citing conferences inspired by the "cite conference" template of
|
||||
Wikipedia.
|
||||
<https://en.wikipedia.org/wiki/Template:Cite_conference>
|
||||
|
||||
### Example
|
||||
|
||||
```
|
||||
{{< cite_conference
|
||||
author = "Patt, Yale N."
|
||||
title = "LC-3, x86, or MIPS: The First ISA for Students to Study"
|
||||
|
||||
url = "https://web.archive.org/web/20250129103001/https://www.csc2.ncsu.edu/faculty/efg/wcae/ISCA2007/FinalProgram.html"
|
||||
conference = "Workshop on Computer Architecture Education"
|
||||
date = "2007-06-09"
|
||||
location = "San Diego, CA"
|
||||
|
||||
original-url = "https://www.csc2.ncsu.edu/faculty/efg/wcae/ISCA2007/FinalProgram.html"
|
||||
archive-date = "2025-01-29"
|
||||
>}}
|
||||
```
|
||||
|
||||
*/}}
|
||||
|
||||
<div style="display: inline">
|
||||
|
||||
{{/* Authors */}}
|
||||
{{ with .Get "author" }}<b>{{ . }}</b>{{ end }}{{ with .Get "author2" }}; <b>{{ . }}</b>{{ end }}
|
||||
|
||||
{{/* Date */}}
|
||||
{{ with .Get "date" }}({{ . }}).{{ end }}
|
||||
|
||||
{{/* Title and URL */}}
|
||||
{{ with .Get "url" }}<a href="{{ . }}">{{ end }}{{ with .Get "title" }}<i>{{ . }}</i>{{ end }}{{ if .Get "url" }}</a>{{ end }}.
|
||||
|
||||
{{/* Conference */}}
|
||||
{{ with .Get "conference" }}{{ . }}.{{ end }}
|
||||
|
||||
{{/* Location */}}
|
||||
{{ with .Get "location" }}{{ . }}.{{ end }}
|
||||
|
||||
{{/* Archive info */}}
|
||||
{{ with .Get "original-url" }}Archived from <a href="{{ . }}">the original</a>{{ end }}{{ with .Get "archive-date" }} on {{ . }}{{ end }}.
|
||||
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user