mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +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"
|
||||
math = false
|
||||
highlight = false
|
||||
detailed_list = false
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = ""
|
||||
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 }}
|
||||
|
||||
<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>
|
||||
{{ if $.Params.detailed_list }}
|
||||
{{ partial "publication_li_detailed" . }}
|
||||
{{ else }}
|
||||
{{ partial "publication_li_simple_div" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue