Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/mertbakir/resume-a4.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/publications.html')
-rw-r--r--layouts/partials/publications.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/layouts/partials/publications.html b/layouts/partials/publications.html
new file mode 100644
index 0000000..84e8bca
--- /dev/null
+++ b/layouts/partials/publications.html
@@ -0,0 +1,56 @@
+<div class="section">
+ <h1 class="section-title">{{ .Site.Params.title_as.publications }}</h1>
+ {{ range .Site.Data.publications }}
+ <div class="item">
+ {{ if eq $.Site.Params.bib_style "IEEE" }}
+ <span>
+ {{ range .authors }}
+ {{ substr .first_name 0 1 }}.
+ {{ with .middle_name}}{{ substr . 0 1 }}.{{end}}
+ {{ .last_name }},
+ {{ end }}
+ </span> <span>"{{ .title }}",</span>
+ {{ if .journal }}
+ <span>{{ .journal }}</span>,
+ {{ with .vol }}
+ <span>vol. {{.}}</span>,
+ {{ end }}
+ {{ with .page }}
+ <span>pp. {{.}}</span>,
+ {{ end }}
+ {{ end }}
+ <span>{{ .date }}</span>.
+
+ {{ else if eq $.Site.Params.bib_style "APA" }}
+ <span>
+ {{ $last_index := sub (.authors | len) 1 }}
+ {{ range $i, $e := .authors }}
+ {{ $e.last_name }},
+ {{ substr $e.first_name 0 1 }}.
+ {{- with $e.middle_name -}}{{ substr . 0 1 }}.{{- end -}}
+ {{- if ne $i $last_index -}},{{- end -}}
+ {{ end }}
+ <span>({{ .date }}).</span>
+ </span>
+ <span>{{ .title }}.</span>
+ {{ if .journal }}
+ <span>{{ .journal }}</span>
+ {{- if .vol -}}
+ <span>, {{.vol}}{{if .issue}}({{.issue}}){{end}}</span>,
+ {{- end -}}
+ {{ with .page }}
+ <span>{{.}}</span>
+ {{ end }}
+ {{ end }}.
+
+ {{ else }}
+ {{ range .authors }}
+ {{ .last_name }} {{ substr .first_name 0 1 }}.
+ {{ end }}
+
+ {{ .title }}
+ {{ .date }}.
+ {{ end }}
+ </div>
+ {{ end }}
+</div> \ No newline at end of file