Browse Source

add comments

main
Nicolas Massé 5 years ago
parent
commit
80d46a9b16
  1. 43
      layouts/partials/post-metadata.html

43
layouts/partials/post-metadata.html

@ -1,4 +1,5 @@
<div class="post-metadata"> <div class="post-metadata">
<!-- Article publication date -->
{{- with .current.PublishDate }} {{- with .current.PublishDate }}
<span class="publication-date"> <span class="publication-date">
{{ i18n "published_on" }} {{ i18n "published_on" }}
@ -6,26 +7,32 @@
</span> </span>
{{- end }} {{- end }}
{{- if gt .current.Params.topics 0 -}} <!-- Expertise / Topics -->
{{- range .current.Params.topics -}} {{ range .current.Params.topics -}}
{{- if or (not $.parent.Data.topic) (ne . $.parent.Data.Term) }} <!-- Skip the item if we are on the term page presenting this item -->
<span class="topic"> {{- if or (not $.parent.Data.topic) (ne . $.parent.Data.Term) }}
<i class="material-icons" aria-hidden="true">link</i><a href="{{ "/topics/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> <span class="topic">
&nbsp; <i class="material-icons" aria-hidden="true">link</i><a href="{{ "/topics/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
</span> &nbsp;
{{- end -}} </span>
{{- end -}} {{- end -}}
{{- end }} {{- end }}
{{- if gt .current.Params.opensource 0 -}}
{{- range .current.Params.opensource -}} <!-- Open Source communities -->
{{- if or (not $.parent.Data.opensource) (ne . $.parent.Data.Term) }} {{ range .current.Params.opensource -}}
<span class="opensource"> <!-- Skip the item if we are on the term page presenting this item -->
<i class="material-icons" aria-hidden="true">label</i><a href="{{ "/opensource/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> {{- if or (not $.parent.Data.opensource) (ne . $.parent.Data.Term) }}
&nbsp; <span class="opensource">
</span> <i class="material-icons" aria-hidden="true">label</i><a href="{{ "/opensource/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{- end -}} &nbsp;
{{- end -}} </span>
{{- end -}}
{{- end }} {{- end }}
<!--
-- The reading time is only displayed on blog posts. Other kind of
-- articles are too short to be relevant.
-->
{{- if eq .current.Type "blog" }} {{- if eq .current.Type "blog" }}
<span class="reading-time"> <span class="reading-time">
<i class="material-icons" aria-hidden="true">schedule</i> <i class="material-icons" aria-hidden="true">schedule</i>

Loading…
Cancel
Save