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

github.com/diwao/hestia-pure.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiwao <nakapom@gmail.com>2018-02-20 07:57:46 +0300
committerdiwao <nakapom@gmail.com>2018-02-20 07:57:46 +0300
commit61b807916e9e01425d19b14e4e30f8255e82500f (patch)
tree6799eaf245ab6b4ae3924b2e3033e4bca71d647d /layouts
parent624fbcada7048ab637dff248aca36bb0431ae775 (diff)
記事の横幅など調整
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6e18a1e..71b9c66 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -7,6 +7,9 @@
<main class="main main--single">
<!-- post -->
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
+ {{ if ne .Params.image "" }}
+ <img class="post__catch" src="/{{ .Params.image }}" alt="">
+ {{ end }}
<h1 class="post__title">{{ .Title }}</h1>
<p class="post__date">
<time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">{{ .Date.Format "2006.01.02" }}</time>