diff options
author | Ress | 2020-04-17 23:48:34 +0900 |
---|---|---|
committer | Ress | 2020-04-17 23:48:34 +0900 |
commit | 71e742bbc5ccd3ffb455d514ab788718005d7a6b (patch) | |
tree | 0de9b28bbdaedadd38dfb60ef64da391762680b8 /layouts/_default/single.html | |
parent | 3834f74b43554cd10de93a15d84953e17b9c995e (diff) | |
download | hugo-theme-fuji-71e742bbc5ccd3ffb455d514ab788718005d7a6b.tar.gz hugo-theme-fuji-71e742bbc5ccd3ffb455d514ab788718005d7a6b.tar.bz2 hugo-theme-fuji-71e742bbc5ccd3ffb455d514ab788718005d7a6b.zip |
Put same code in "baseof.html".
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 62 |
1 files changed, 23 insertions, 39 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e7b9278..04d016c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,42 +1,26 @@ {{ define "main" }} -<main> - <div class="container-lg clearfix"> - <!-- list --> - <div class="col-md-9 col-12 float-left" id="content"> - <article> - <h4 id="post-title"> - <a href="{{ .Permalink }}">{{ .Title }}</a> - </h4> - <div id="post-meta"> - {{ partial "post-meta.html" . }} - </div> - <div class="markdown-body" id="post-content"> - {{ .Content }} - </div> - </article> - {{ if ne .Params.noLicense true }} - <div class="markdown-body" id="license"> - <blockquote> - <p>{{ i18n "postCopyrightFront" }}<a rel="license" href="{{ .Site.Params.licenseLink }}" target="_blank">{{ .Site.Params.license }}</a>{{ i18n "postCopyrightEnd" }}</p> - </blockquote> - </div> - {{ end }} - {{ if .Site.Params.utterancesComment }} - {{ partial "comment-utterances.html" . }} - {{ end }} - {{ if .Site.Params.disqusComment }} - {{ partial "comment-disqus.html" . }} - {{ end }} - </div> - <!-- sidebar --> - <div class="col-md-3 col-12 float-left" id="sidebar"> - {{ partial "sidebar.html" . }} - </div> - <div id="container-progress"> - <a href="javascript:void(0)"> - <div id="progress"></div> - </a> - </div> +<article> + <h4 id="post-title"> + <a href="{{ .Permalink }}">{{ .Title }}</a> + </h4> + <div id="post-meta"> + {{ partial "post-meta.html" . }} </div> -</main> + <div class="markdown-body" id="post-content"> + {{ .Content }} + </div> +</article> +{{ if ne .Params.noLicense true }} +<div class="markdown-body" id="license"> + <blockquote> + <p>{{ i18n "postCopyrightFront" }}<a rel="license" href="{{ .Site.Params.licenseLink }}" target="_blank">{{ .Site.Params.license }}</a>{{ i18n "postCopyrightEnd" }}</p> + </blockquote> +</div> +{{ end }} +{{ if .Site.Params.utterancesComment }} +{{ partial "comment-utterances.html" . }} +{{ end }} +{{ if .Site.Params.disqusComment }} +{{ partial "comment-disqus.html" . }} +{{ end }} {{ end }}
\ No newline at end of file |