mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-05-15 00:02:57 -05:00
Compare commits
No commits in common. "6f140f096b229b54cd31ea72ceccae0853869ea0" and "1caa7acdc9c0bf00ea38524538d295a6c179ae6d" have entirely different histories.
6f140f096b
...
1caa7acdc9
@ -175,18 +175,15 @@ pre > code {
|
||||
.page-list .post,
|
||||
.series-taxonomy-list .series-taxonomy,
|
||||
.series-taxonomy .post {
|
||||
padding: 24px;
|
||||
padding-top: 8px;
|
||||
padding-left: 24px;
|
||||
padding-right: 24px;
|
||||
padding-bottom: 24px;
|
||||
border-radius: 12px;
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
.post > .post-title,
|
||||
.series-taxonomy > .post-title,
|
||||
.author > .author-name {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.post-series-position {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{ i18n "credit_comment" | safeHTML }}
|
||||
{{ partial "credit.html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Language.Lang }}">
|
||||
{{ partial "head.html" . }}
|
||||
|
@ -13,7 +13,7 @@
|
||||
{{ with .Sections }}
|
||||
<div class="sections">
|
||||
{{ range . }}
|
||||
{{ .Render "summary" }}
|
||||
{{ .Render "summary/section" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
21
layouts/_default/summary/post.html
Normal file
21
layouts/_default/summary/post.html
Normal file
@ -0,0 +1,21 @@
|
||||
<h2 class="post-title">
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||
</h2>
|
||||
|
||||
{{ partial "post-metadata/short.html" . }}
|
||||
|
||||
{{ with .Resources.GetMatch "feature" }}
|
||||
<div class="post-media">
|
||||
{{ partial "figure.html" (dict "src" .) }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="post-description">
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="readmore">
|
||||
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
||||
</div>
|
@ -18,7 +18,7 @@
|
||||
{{ .Scratch.Set "series_position" $i }}
|
||||
{{ .Scratch.Set "series_total" $total }}
|
||||
<article class="post">
|
||||
{{ .Render "summary" }}
|
||||
{{ .Render "summary/series_post" }}
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
@ -12,7 +12,7 @@
|
||||
{{ with .Paginator.Pages }}
|
||||
{{ range . }}
|
||||
<article class="post">
|
||||
{{ .Render "summary" }}
|
||||
{{ .Render "summary/author" }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
|
1
layouts/partials/credit.html
Normal file
1
layouts/partials/credit.html
Normal file
@ -0,0 +1 @@
|
||||
{{ i18n "credit_comment" | safeHTML }}
|
@ -2,7 +2,7 @@
|
||||
{{ with . }}
|
||||
{{ range . }}
|
||||
<article class="post">
|
||||
{{ .Render "summary" }}
|
||||
{{ .Render "summary/post" }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
|
@ -12,7 +12,7 @@
|
||||
{{ with .Pages }}
|
||||
{{ range . }}
|
||||
<article class="series-taxonomy">
|
||||
{{ .Render "summary" }}
|
||||
{{ .Render "summary/series" }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user