diff --git a/archetypes/paper.md b/archetypes/paper.md new file mode 100644 index 0000000..0c542e5 --- /dev/null +++ b/archetypes/paper.md @@ -0,0 +1,26 @@ +--- +title: "" +authors: [] +publish_date: "" + +journal: "" +conference: "" +dissertation_institution: "" +technical_report_institution: "" +technical_report_number: 0 + + +issn: "" +isbn: "" +doi: "" +volume: 0 +issue: 0 +firstpage: 0 +lastpage: 0 +language: "English" +keywords: [] + +pdf_url: "" +abstract: "" +--- + diff --git a/layouts/paper/single.html b/layouts/paper/single.html new file mode 100644 index 0000000..f931da9 --- /dev/null +++ b/layouts/paper/single.html @@ -0,0 +1,69 @@ +{{ define "main" }} +{{ .Scratch.Set "customTitleHeaderSet" true }} +{{ .Scratch.Set "customTitleHeader" "Publications" }} +{{ .Scratch.Set "customTitleHeaderLink" "/publications" }} +{{ partial "header.html" . }} +
+
+

{{ .Title }}

+ + + +
+

Authors: + {{range .Params.authors }} + {{ . }}, + {{ end }} +

+ + {{ if isset .Params "journal" }} +

+ Journal: + {{ .Params.journal }} +

+ {{ end }} + + {{ if isset .Params "conference" }} +

+ Conference: + {{ .Params.conference }} +

+ {{ end }} + + {{ if isset .Params "publish_date" }} +

+ Publication Date: + {{ .Params.publish_date }} +

+ {{ end }} + + {{ if isset .Params "abstract" }} +

+ Abstract: + {{ .Params.abstract }} +

+ {{ end }} + + {{ if isset .Params "keywords" }} +

Keywords: + {{range .Params.keywords }} + {{ . }}, + {{ end }} +

+ {{ end }} + + {{ if isset .Params "pdf_url" }} +

+ PDF Link: + {{ .Params.pdf_url }} +

+ {{ end }} + +
+
+
+{{ partial "footer.html" . }} +{{ end }} diff --git a/layouts/partials/citation.html b/layouts/partials/citation.html new file mode 100644 index 0000000..4d5ebe9 --- /dev/null +++ b/layouts/partials/citation.html @@ -0,0 +1,74 @@ +{{ $is_conference := isset .Params "conference" }} +{{ $is_journal := isset .Params "journal" }} + +{{- if (or $is_conference $is_journal ) -}} + {{- if isset .Params "title" -}} + + {{ end }} + {{- if isset .Params "authors" -}} + {{- range .Params.authors -}} + + {{ end }} + {{ end }} + {{- if isset .Params "publish_date" -}} + + {{ end }} + + + {{- if isset .Params "journal" -}} + + {{ end }} + {{- if isset .Params "conference" -}} + + {{ end }} + {{- if isset .Params "dissertation_institution" -}} + + {{ end }} + {{- if isset .Params "technical_report_institution" -}} + + {{ end }} + {{- if isset .Params "technical_report_number" -}} + + {{ end }} + + + {{- if isset .Params "issn" -}} + + {{ end }} + {{- if isset .Params "isbn" -}} + + {{ end }} + {{- if isset .Params "doi" -}} + + {{ end }} + + + {{- if isset .Params "volume" -}} + + {{ end }} + {{- if isset .Params "issue" -}} + + {{ end }} + {{- if isset .Params "firstpage" -}} + + {{ end }} + {{- if isset .Params "lastpage" -}} + + {{ end }} + {{- if isset .Params "language" -}} + + {{ end }} + {{- if isset .Params "keywords" -}} + {{- range .Params.keywords -}} + + {{ end }} + {{ end }} + + + {{- if isset .Params "pdf_url" -}} + + {{ end }} + {{- if isset .Params "abstract" -}} + + {{ end }} +{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a5eac46..1dddee1 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -74,4 +74,6 @@ {{- if or .Params.math .Site.Params.math -}} {{ partial "mathjax_support.html" . }} {{- end -}} + + {{ partial "citation.html" . }}