Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions layouts/docs/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
<div class="hb-docs-doc">
<div class="hb-docs-doc-intro hb-module">
<h1 class="mb-3">{{ .Title }}</h1>
<div class="hb-blog-post-meta hb-docs-doc-meta mb-3">
{{- partial "hb/modules/docs/doc/meta" . }}
</div>
{{- if ne (default dict .Params.meta) false }}
<div class="hb-blog-post-meta hb-docs-doc-meta mb-3">
{{- partial "hb/modules/docs/doc/meta" . }}
</div>
{{- end }}
{{- with .Description }}
<p class="lead">{{ . }}</p>
{{- end }}
Expand Down
21 changes: 15 additions & 6 deletions layouts/partials/hb/modules/docs/doc/meta.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{{ partialCached "hb/modules/blog/post/meta/authors" . . }}
<span class="hb-docs-doc-date">
{{- .Date | time.Format site.Params.hb.docs.date_format -}}
</span>
{{ partialCached "hb/modules/blog/post/meta/reading-time" . . }}
{{ partialCached "hb/modules/blog/post/meta/taxonomies" . . }}
{{- $params := default dict .Params.meta }}
{{- if ne (default true $params.authors) false }}
{{ partialCached "hb/modules/blog/post/meta/authors" . . }}
{{- end }}
{{- if ne (default true $params.date) false }}
<span class="hb-docs-doc-date">
{{- .Date | time.Format site.Params.hb.docs.date_format -}}
</span>
{{- end }}
{{- if ne (default true $params.reading_time) false }}
{{ partialCached "hb/modules/blog/post/meta/reading-time" . . }}
{{- end }}
{{- if ne (default true $params.taxonomies) false }}
{{ partialCached "hb/modules/blog/post/meta/taxonomies" . . }}
{{- end }}