mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
publications: Use consistent listing format across pages (Fix #148)
This commit is contained in:
parent
ab24e5646c
commit
405058b8d9
3 changed files with 11 additions and 4 deletions
|
@ -3,10 +3,10 @@ title = "Publications"
|
||||||
date = "2017-01-01T00:00:00Z"
|
date = "2017-01-01T00:00:00Z"
|
||||||
math = false
|
math = false
|
||||||
highlight = false
|
highlight = false
|
||||||
|
detailed_list = false
|
||||||
|
|
||||||
# Optional featured image (relative to `static/img/` folder).
|
# Optional featured image (relative to `static/img/` folder).
|
||||||
[header]
|
[header]
|
||||||
image = ""
|
image = ""
|
||||||
caption = ""
|
caption = ""
|
||||||
|
|
||||||
+++
|
+++
|
||||||
|
|
5
layouts/partials/publication_li_simple_div.html
Normal file
5
layouts/partials/publication_li_simple_div.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<div class="pub-list-item" style="margin-bottom: 1rem" itemscope itemtype="http://schema.org/CreativeWork">
|
||||||
|
<i class="fa fa-file-text-o pub-icon" aria-hidden="true"></i>
|
||||||
|
<span itemprop="name">{{ .Title }}</span>
|
||||||
|
<p>{{ partial "publication_links" (dict "content" . "is_list" 1) }}</p>
|
||||||
|
</div>
|
|
@ -34,9 +34,11 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="grid-sizer col-md-12 isotope-item pubtype-{{ $.Scratch.Get "pubtype" }}">
|
<div class="grid-sizer col-md-12 isotope-item pubtype-{{ $.Scratch.Get "pubtype" }}">
|
||||||
<i class="fa fa-file-text-o" aria-hidden="true"
|
{{ if $.Params.detailed_list }}
|
||||||
style="color:#03396c;font-size:80%;padding-top:6px; padding-right: 10px;"></i>{{ .Title }}
|
{{ partial "publication_li_detailed" . }}
|
||||||
<p>{{ partial "publication_links" (dict "content" . "is_list" 1) }}</p>
|
{{ else }}
|
||||||
|
{{ partial "publication_li_simple_div" . }}
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue