diff options
author | diwao <nakapom@gmail.com> | 2018-02-20 07:57:46 +0300 |
---|---|---|
committer | diwao <nakapom@gmail.com> | 2018-02-20 07:57:46 +0300 |
commit | 61b807916e9e01425d19b14e4e30f8255e82500f (patch) | |
tree | 6799eaf245ab6b4ae3924b2e3033e4bca71d647d /layouts | |
parent | 624fbcada7048ab637dff248aca36bb0431ae775 (diff) |
記事の横幅など調整
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 3 |
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> |