Compare commits

..

6 Commits

15 changed files with 71 additions and 122 deletions

View File

@ -159,14 +159,19 @@
} }
} }
.category-list li > a,
.category-list li > p {
}
.category-list p { .category-list p {
margin: 0; margin: 0;
} }
.category-list .category-metadata {
margin-left: auto;
}
.category-list a,
.category-list .category-metadata {
white-space: nowrap;
}
/* Tags list format */ /* Tags list format */
@ -419,6 +424,7 @@
.navbar a { .navbar a {
padding: 8px 12px; padding: 8px 12px;
border-radius: 12px; border-radius: 12px;
white-space: nowrap;
} }
.navbar-item:hover, .navbar-item:hover,

View File

@ -67,6 +67,9 @@ aria_post_meta_view_source:
aria_post_meta_translations: aria_post_meta_translations:
other: "translations" other: "translations"
aria_post_meta_categories:
other: "categories"
aria_post_meta_tags: aria_post_meta_tags:
other: "tags" other: "tags"
@ -88,6 +91,9 @@ aria_post_metadata:
aria_author_metadata: aria_author_metadata:
other: "author metadata" other: "author metadata"
aria_category_metadata:
other: "category metadata"
aria_post_meta_date: aria_post_meta_date:
other: "date" other: "date"
@ -100,6 +106,9 @@ aria_author_post_count:
aria_author_word_count: aria_author_word_count:
other: "word count" other: "word count"
aria_category_post_count:
other: "post count"
aria_series_metadata: aria_series_metadata:
other: "series metadata" other: "series metadata"

View File

@ -8,6 +8,9 @@ table_of_contents:
browser_no_video_support: browser_no_video_support:
other: "Tu navegador de internet no admite video." other: "Tu navegador de internet no admite video."
latest_posts:
other: "Artículos recientes"
see_also: see_also:
other: "Véase también:" other: "Véase también:"
@ -29,9 +32,9 @@ readingtime:
no_posts: no_posts:
other: "¡No hay contenido para mostrar!" other: "¡No hay contenido para mostrar!"
# post_count: post_count:
# one: "{{ . }} post" one: "{{ . }} publicación"
# other: "{{ . }} posts" other: "{{ . }} publicaciones"
# Navigation # Navigation
@ -64,6 +67,9 @@ newer_post:
# aria_post_meta_translations: # aria_post_meta_translations:
# other: "translations" # other: "translations"
# aria_post_meta_categories:
# other: "categories"
# aria_post_meta_tags: # aria_post_meta_tags:
# other: "tags" # other: "tags"
@ -85,6 +91,9 @@ newer_post:
# aria_author_metadata: # aria_author_metadata:
# other: "author metadata" # other: "author metadata"
# aria_category_metadata:
# other: "category metadata"
# aria_post_meta_date: # aria_post_meta_date:
# other: "date" # other: "date"
@ -97,6 +106,9 @@ newer_post:
# aria_author_word_count: # aria_author_word_count:
# other: "word count" # other: "word count"
# aria_category_post_count:
# other: "post count"
# aria_series_metadata: # aria_series_metadata:
# other: "series metadata" # other: "series metadata"

View File

@ -14,19 +14,7 @@
</div> </div>
{{ end }} {{ end }}
<div class="page-list"> {{ partial "page-list.html" .Paginator.Pages }}
{{ with .Paginator.Pages }}
<ul>
{{ range . }}
<li>{{ .Render "summary/post" }}</li>
{{ end }}
</ul>
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</div>
</div> </div>
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}

View File

@ -79,13 +79,7 @@
<div class="related-posts full-width-page-list"> <div class="related-posts full-width-page-list">
<hr> <hr>
<h1>{{ i18n "related_posts" }}</h1> <h1>{{ i18n "related_posts" }}</h1>
<div class="page-list"> {{ partial "page-list.html" . }}
<ul>
{{ range . }}
<li>{{ .Render "summary/post" }}</li>
{{ end }}
</ul>
</div>
</div> </div>
{{ end }} {{ end }}

View File

@ -7,21 +7,11 @@
{{ partial "post-metadata/author.html" . }} {{ partial "post-metadata/author.html" . }}
{{ .Content }} {{ with .Content }}
{{ . }}
{{ end }}
<div class="page-list"> {{ partial "page-list.html" .Paginator.Pages }}
{{ with .Paginator.Pages }}
<ul>
{{ range . }}
<li>{{ .Render "summary/post" }}</li>
{{ end }}
</ul>
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</div>
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
{{ end }} {{ end }}

View File

@ -14,6 +14,7 @@
<p>{{ .Title | markdownify }}</p> <p>{{ .Title | markdownify }}</p>
</a> </a>
{{ partial "description-or-summary.html" . }} {{ partial "description-or-summary.html" . }}
{{ partial "post-metadata/category.html" . }}
</li> </li>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -5,23 +5,13 @@
{{ partial "rss-link.html" . }} {{ partial "rss-link.html" . }}
</h1> </h1>
{{ partial "post-metadata/category.html" . }}
{{ with .Content }} {{ with .Content }}
{{ . }} {{ . }}
{{ end }} {{ end }}
<div class="page-list"> {{ partial "page-list.html" .Paginator.Pages }}
{{ with .Paginator.Pages }}
<ul>
{{ range . }}
<li>{{ .Render "summary/post" }}</li>
{{ end }}
</ul>
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</div>
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
{{ end }} {{ end }}

View File

@ -13,19 +13,7 @@
{{ partial "rss-link.html" . }} {{ partial "rss-link.html" . }}
</h1> </h1>
{{ with (.Paginate .Site.RegularPages).Pages }} {{ partial "page-list.html" (.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" . }} {{ partial "pagination.html" . }}
</div> </div>

View File

@ -6,16 +6,6 @@
</h1> </h1>
{{ with .Site.RegularPages | first 5 }} {{ with .Site.RegularPages | first 5 }}
<div class="page-list"> {{ partial "page-list.html" . }}
<ul>
{{ range . }}
<li>{{ .Render "summary/post" }}</li>
{{ end }}
</ul>
</div>
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }} {{ end }}
</div> </div>

View 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>

View 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>

View File

@ -11,24 +11,10 @@
{{ . }} {{ . }}
{{ end }} {{ end }}
<div class="page-list">
{{ with .Paginator.Pages.Reverse }} {{ with .Paginator.Pages.Reverse }}
<ul> {{ partial "page-list.html" . }}
{{ $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 }} {{ end }}
</ul>
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</div>
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
{{ end }} {{ end }}

View File

@ -9,19 +9,7 @@
{{ . }} {{ . }}
{{ end }} {{ end }}
<div class="page-list"> {{ partial "page-list.html" .Paginator.Pages }}
{{ with .Paginator.Pages }}
<ul>
{{ range . }}
<li>{{ .Render "summary/post" }}</li>
{{ end }}
</ul>
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</div>
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
{{ end }} {{ end }}

View File

@ -9,19 +9,7 @@
{{ . }} {{ . }}
{{ end }} {{ end }}
<div class="page-list"> {{ partial "page-list.html" .Paginator.Pages }}
{{ with .Paginator.Pages }}
<ul>
{{ range . }}
<li>{{ .Render "summary/post" }}</li>
{{ end }}
</ul>
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</div>
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
{{ end }} {{ end }}