mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-12-25 03:34:29 +01:00
Reorganize summary and single post layouts
Now shows blog posts on their target page.
This commit is contained in:
parent
0e54dba17a
commit
e4cd676f3a
@ -4,7 +4,7 @@
|
||||
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
{{ partial "content.html" . }}
|
||||
{{ partial "content-summary.html" . }}
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
|
14
layouts/partials/content-summary.html
Normal file
14
layouts/partials/content-summary.html
Normal file
@ -0,0 +1,14 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-8 blog-main">
|
||||
{{ range .Data.Pages }}
|
||||
{{ .Render "summary"}}
|
||||
{{ end }}
|
||||
</div> <!-- /.blog-main -->
|
||||
|
||||
{{ if not .Site.Params.sidebar.hide }}
|
||||
{{ partial "sidebar.html" . }}
|
||||
{{ end }}
|
||||
|
||||
</div> <!-- /.row -->
|
||||
</div> <!-- /.container -->
|
@ -1,9 +1,11 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-8 blog-main">
|
||||
{{ range .Data.Pages }}
|
||||
{{ .Render "summary"}}
|
||||
{{ end }}
|
||||
<article class="blog-post">
|
||||
<h1 class="blog-post-title"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
|
||||
<p class="blog-post-meta"><time datetime="{{ .Date }}">{{ .Date.Format .Site.Params.date_format }}</time> by <a href="#">{{ .Params.author | default .Site.Params.author }}</a></p>
|
||||
{{ .Content }}
|
||||
</article> <!-- /.blog-post -->
|
||||
</div> <!-- /.blog-main -->
|
||||
|
||||
{{ if not .Site.Params.sidebar.hide }}
|
||||
|
Loading…
Reference in New Issue
Block a user