Initial commit
This commit is contained in:
54
themes/hugo-academic-master/layouts/section/publication.html
Normal file
54
themes/hugo-academic-master/layouts/section/publication.html
Normal file
@@ -0,0 +1,54 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
{{ if .Params.header.image }}
|
||||
<div class="article-header">
|
||||
<img src="{{ "/img/" | relURL }}/{{ .Params.header.image }}" class="article-banner" itemprop="image">
|
||||
{{ with .Params.header.caption }}<span class="article-header-caption">{{ . | markdownify | emojify }}</span>{{ end }}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h1>{{ .Title | default (i18n "publications") }}</h1>
|
||||
|
||||
{{ with .Content }}
|
||||
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
||||
{{ end }}
|
||||
|
||||
<p>
|
||||
{{ i18n "filter_by_type" }}:
|
||||
<select class="pub-filters-select">
|
||||
<option value="*">{{ i18n "filter_all" }}</option>
|
||||
{{ range $index, $taxonomy := .Site.Taxonomies.publication_types }}
|
||||
<option value=".pubtype-{{ (int $index) }}">
|
||||
{{ index $.Site.Params.publication_types (int $index) }}
|
||||
</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<div id="container-publications">
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
|
||||
{{ if .Params.publication_types }}
|
||||
{{ $.Scratch.Set "pubtype" (index .Params.publication_types 0) }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Set "pubtype" 0 }}
|
||||
{{ end }}
|
||||
|
||||
<div class="grid-sizer col-md-12 isotope-item pubtype-{{ $.Scratch.Get "pubtype" }}">
|
||||
<i class="fa fa-file-text-o" aria-hidden="true"
|
||||
style="color:#03396c;font-size:80%;padding-top:6px; padding-right: 10px;"></i>{{ .Title }}
|
||||
<p>{{ partial "publication_links" (dict "content" . "is_list" 1) }}</p>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
Reference in New Issue
Block a user