mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-05-11 22:42:58 -05:00
Compare commits
6 Commits
311d846cb8
...
684769df5a
Author | SHA1 | Date | |
---|---|---|---|
684769df5a | |||
9bee463a3c | |||
805dc65ccb | |||
a9d1c25ee4 | |||
fe08bdc93c | |||
026d5ab2c3 |
@ -159,14 +159,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
.category-list li > a,
|
||||
.category-list li > p {
|
||||
}
|
||||
|
||||
.category-list p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.category-list .category-metadata {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.category-list a,
|
||||
.category-list .category-metadata {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Tags list format */
|
||||
@ -419,6 +424,7 @@
|
||||
.navbar a {
|
||||
padding: 8px 12px;
|
||||
border-radius: 12px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.navbar-item:hover,
|
||||
|
@ -67,6 +67,9 @@ aria_post_meta_view_source:
|
||||
aria_post_meta_translations:
|
||||
other: "translations"
|
||||
|
||||
aria_post_meta_categories:
|
||||
other: "categories"
|
||||
|
||||
aria_post_meta_tags:
|
||||
other: "tags"
|
||||
|
||||
@ -88,6 +91,9 @@ aria_post_metadata:
|
||||
aria_author_metadata:
|
||||
other: "author metadata"
|
||||
|
||||
aria_category_metadata:
|
||||
other: "category metadata"
|
||||
|
||||
aria_post_meta_date:
|
||||
other: "date"
|
||||
|
||||
@ -100,6 +106,9 @@ aria_author_post_count:
|
||||
aria_author_word_count:
|
||||
other: "word count"
|
||||
|
||||
aria_category_post_count:
|
||||
other: "post count"
|
||||
|
||||
aria_series_metadata:
|
||||
other: "series metadata"
|
||||
|
||||
|
18
i18n/es.yaml
18
i18n/es.yaml
@ -8,6 +8,9 @@ table_of_contents:
|
||||
browser_no_video_support:
|
||||
other: "Tu navegador de internet no admite video."
|
||||
|
||||
latest_posts:
|
||||
other: "Artículos recientes"
|
||||
|
||||
see_also:
|
||||
other: "Véase también:"
|
||||
|
||||
@ -29,9 +32,9 @@ readingtime:
|
||||
no_posts:
|
||||
other: "¡No hay contenido para mostrar!"
|
||||
|
||||
# post_count:
|
||||
# one: "{{ . }} post"
|
||||
# other: "{{ . }} posts"
|
||||
post_count:
|
||||
one: "{{ . }} publicación"
|
||||
other: "{{ . }} publicaciones"
|
||||
|
||||
|
||||
# Navigation
|
||||
@ -64,6 +67,9 @@ newer_post:
|
||||
# aria_post_meta_translations:
|
||||
# other: "translations"
|
||||
|
||||
# aria_post_meta_categories:
|
||||
# other: "categories"
|
||||
|
||||
# aria_post_meta_tags:
|
||||
# other: "tags"
|
||||
|
||||
@ -85,6 +91,9 @@ newer_post:
|
||||
# aria_author_metadata:
|
||||
# other: "author metadata"
|
||||
|
||||
# aria_category_metadata:
|
||||
# other: "category metadata"
|
||||
|
||||
# aria_post_meta_date:
|
||||
# other: "date"
|
||||
|
||||
@ -97,6 +106,9 @@ newer_post:
|
||||
# aria_author_word_count:
|
||||
# other: "word count"
|
||||
|
||||
# aria_category_post_count:
|
||||
# other: "post count"
|
||||
|
||||
# aria_series_metadata:
|
||||
# other: "series metadata"
|
||||
|
||||
|
@ -14,19 +14,7 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "page-list.html" .Paginator.Pages }}
|
||||
</div>
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
|
@ -79,13 +79,7 @@
|
||||
<div class="related-posts full-width-page-list">
|
||||
<hr>
|
||||
<h1>{{ i18n "related_posts" }}</h1>
|
||||
<div class="page-list">
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ partial "page-list.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
@ -7,21 +7,11 @@
|
||||
|
||||
{{ partial "post-metadata/author.html" . }}
|
||||
|
||||
{{ .Content }}
|
||||
{{ with .Content }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "page-list.html" .Paginator.Pages }}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
||||
|
@ -14,6 +14,7 @@
|
||||
<p>{{ .Title | markdownify }}</p>
|
||||
</a>
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
{{ partial "post-metadata/category.html" . }}
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -5,23 +5,13 @@
|
||||
{{ partial "rss-link.html" . }}
|
||||
</h1>
|
||||
|
||||
{{ partial "post-metadata/category.html" . }}
|
||||
|
||||
{{ with .Content }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "page-list.html" .Paginator.Pages }}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
||||
|
@ -13,19 +13,7 @@
|
||||
{{ 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 "page-list.html" (.Paginate .Site.RegularPages).Pages }}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
</div>
|
||||
|
@ -6,16 +6,6 @@
|
||||
</h1>
|
||||
|
||||
{{ with .Site.RegularPages | first 5 }}
|
||||
<div class="page-list">
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ partial "page-list.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
13
layouts/partials/page-list.html
Normal file
13
layouts/partials/page-list.html
Normal file
@ -0,0 +1,13 @@
|
||||
<div class="page-list">
|
||||
{{ with . }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
6
layouts/partials/post-metadata/category.html
Normal file
6
layouts/partials/post-metadata/category.html
Normal file
@ -0,0 +1,6 @@
|
||||
<div class="category-metadata" aria-label="{{ i18n "aria_category_metadata" }}">
|
||||
<span class="category-meta-item" aria-label="{{ i18n "aria_category_post_count" }}">
|
||||
{{ partial "icon.html" "newspaper" }}
|
||||
{{ i18n "post_count" (len .Data.Pages) }}
|
||||
</span>
|
||||
</div>
|
@ -11,24 +11,10 @@
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages.Reverse }}
|
||||
<ul>
|
||||
{{ $i := 0 }}
|
||||
{{ $total := len $.Pages }}
|
||||
{{ range . }}
|
||||
{{ $i = add 1 $i }}
|
||||
{{ .Scratch.Set "series_position" $i }}
|
||||
{{ .Scratch.Set "series_total" $total }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ with .Paginator.Pages.Reverse }}
|
||||
{{ partial "page-list.html" . }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
||||
|
@ -9,19 +9,7 @@
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "page-list.html" .Paginator.Pages }}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
||||
|
@ -9,19 +9,7 @@
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
<div class="page-list">
|
||||
{{ with .Paginator.Pages }}
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
<div>
|
||||
{{ i18n "no_posts" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "page-list.html" .Paginator.Pages }}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user