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

publications.html « partials « layouts - gitlab.com/mertbakir/resume-a4.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 84e8bcabd7f542ac4f44d9798053fec2ad82d04e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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>