mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
Add a couple divs in index.html for organization
This commit is contained in:
parent
c82d5602bb
commit
d41f3facd7
@ -1,29 +1,33 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
{{ . }}
|
<div class="homepage-content">
|
||||||
|
{{ . }}
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.homepageLatestPosts }}
|
{{ if .Site.Params.homepageLatestPosts }}
|
||||||
<hr>
|
<div class="hompage-latest-posts">
|
||||||
<h1>
|
<hr>
|
||||||
{{ i18n "latest_posts" }}
|
<h1>
|
||||||
{{ partial "rss-link.html" . }}
|
{{ i18n "latest_posts" }}
|
||||||
</h1>
|
{{ partial "rss-link.html" . }}
|
||||||
|
</h1>
|
||||||
|
|
||||||
{{ with (.Paginate .Site.RegularPages).Pages }}
|
{{ with (.Paginate .Site.RegularPages).Pages }}
|
||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
<ul>
|
<ul>
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
<li>{{ .Render "summary/post" }}</li>
|
<li>{{ .Render "summary/post" }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user