publications: Use consistent listing format across pages (Fix #148)

This commit is contained in:
Jordan Stanway 2017-09-17 17:58:19 -07:00 committed by gcushen
commit 405058b8d9
3 changed files with 11 additions and 4 deletions

View file

@ -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 = ""
+++

View 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>

View file

@ -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 }}