mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-05-15 08:12:57 -05:00
Compare commits
No commits in common. "d41f3facd7653f3e5a3d242e8ee5ce84a59c5580" and "219f97bc008d99a89641659d24b2eb8ac8199ea1" have entirely different histories.
d41f3facd7
...
219f97bc00
@ -31,13 +31,6 @@ params:
|
|||||||
# gitFileURL: https://github.com/BBaoVanC/bobatheme/blob/master
|
# gitFileURL: https://github.com/BBaoVanC/bobatheme/blob/master
|
||||||
# gitFileIcon: github-circle
|
# gitFileIcon: github-circle
|
||||||
|
|
||||||
# display a "Latest Posts" section on the homepage below its content
|
|
||||||
homepageLatestPosts: true
|
|
||||||
|
|
||||||
# footer: >-
|
|
||||||
# Some example text for the footer.
|
|
||||||
|
|
||||||
|
|
||||||
# see https://gohugo.io/about/hugo-and-gdpr/#all-privacy-settings
|
# see https://gohugo.io/about/hugo-and-gdpr/#all-privacy-settings
|
||||||
# you probably want to keep this default
|
# you probably want to keep this default
|
||||||
privacy:
|
privacy:
|
||||||
|
@ -8,9 +8,6 @@ table_of_contents:
|
|||||||
browser_no_video_support:
|
browser_no_video_support:
|
||||||
other: "Your browser does not support video."
|
other: "Your browser does not support video."
|
||||||
|
|
||||||
latest_posts:
|
|
||||||
other: "Latest Posts"
|
|
||||||
|
|
||||||
|
|
||||||
# Meta items
|
# Meta items
|
||||||
long_date:
|
long_date:
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
<main>
|
<main>
|
||||||
{{ block "main" . }}
|
{{ block "main" . }}
|
||||||
THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it)
|
{{ .Content }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
@ -1,33 +1,2 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ with .Content }}
|
|
||||||
<div class="homepage-content">
|
|
||||||
{{ . }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if .Site.Params.homepageLatestPosts }}
|
|
||||||
<div class="hompage-latest-posts">
|
|
||||||
<hr>
|
|
||||||
<h1>
|
|
||||||
{{ i18n "latest_posts" }}
|
|
||||||
{{ partial "rss-link.html" . }}
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
{{ with (.Paginate .Site.RegularPages).Pages }}
|
|
||||||
<div class="page-list">
|
|
||||||
<ul>
|
|
||||||
{{ range . }}
|
|
||||||
<li>{{ .Render "summary/post" }}</li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{{ else }}
|
|
||||||
<div>
|
|
||||||
{{ i18n "no_posts" }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user