Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GDGToulouse/devfest-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/blog/single.html')
-rw-r--r--layouts/blog/single.html14
1 files changed, 10 insertions, 4 deletions
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index 7aa8c8b..97a2c56 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -1,16 +1,22 @@
{{ define "main" }}
<div class="hero" >
- <div class="img" style="color: {{ .Params.color | default "#fff" }};background-image: url({{ .Params.image }})"></div>
-
+ {{ partial "picture" (dict "img" .Params.image "class" "img" "widths" (slice 540 720 960 1140) )}}
+ {{ if .Params.imageInfo }}
+ <div class="image-info {{ .Params.infoClass | default "light" }}">
+ {{- .Params.imageInfo }}
+ </div>
+ {{ end }}
+
<div class="description">
<h1>
<span>{{ .Title }}</span>
<small>{{ .Params.brief }}</small>
</h1>
-<!--
+ {{- if .Params.toc }}
<hr>
- {{ .TableOfContents }} -->
+ {{ .TableOfContents }}
+ {{ end }}
</div>
</div>