mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-05-14 15:52:57 -05:00
Remove langpicker and most of multilingual support
I didn't end up using it, and I don't want to maintain it anymore.
This commit is contained in:
parent
337a62c7cd
commit
7ac4908149
@ -407,55 +407,15 @@ h1 svg.icon {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.navbar-item:hover,
|
||||
.langpicker summary:hover,
|
||||
.langpicker[open] summary {
|
||||
.navbar-item:hover {
|
||||
background-color: var(--background-3);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.langpicker summary:hover,
|
||||
.langpicker[open] summary {
|
||||
color: var(--text-3);
|
||||
}
|
||||
|
||||
.topbar .active {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.langpicker {
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.langpicker summary {
|
||||
cursor: pointer;
|
||||
margin-left: 24px;
|
||||
padding: 8px 12px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.langpicker .languages {
|
||||
position: absolute;
|
||||
margin-top: 8px;
|
||||
right: 0;
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
border: 2px solid var(--background-2);
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.langpicker .unavailable {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.langpicker .unavailable:hover {
|
||||
cursor: not-allowed;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* Back to top {{{ */
|
||||
|
@ -1,12 +0,0 @@
|
||||
1: "enero"
|
||||
2: "febrero"
|
||||
3: "marzo"
|
||||
4: "abril"
|
||||
5: "mayo"
|
||||
6: "julio"
|
||||
7: "junio"
|
||||
8: "agosto"
|
||||
9: "septiembre"
|
||||
10: "octubre"
|
||||
11: "noviembre"
|
||||
12: "diciembre"
|
@ -61,10 +61,3 @@ languages:
|
||||
languageName: English
|
||||
title: Example Website
|
||||
weight: 1
|
||||
|
||||
es:
|
||||
languageName: Español
|
||||
title: Sitio web ejemplo
|
||||
weight: 2
|
||||
params:
|
||||
description: Sitio web ejemplo para bobatheme
|
||||
|
@ -70,9 +70,6 @@ aria_rss_link:
|
||||
aria_post_meta_edit_history:
|
||||
other: "link to page edit history"
|
||||
|
||||
aria_post_meta_translations:
|
||||
other: "translations"
|
||||
|
||||
aria_post_meta_categories:
|
||||
other: "categories"
|
||||
|
||||
@ -121,12 +118,6 @@ aria_series_metadata:
|
||||
aria_navbar:
|
||||
other: "navigation bar"
|
||||
|
||||
aria_langpicker:
|
||||
other: "language picker"
|
||||
|
||||
aria_langpicker_list:
|
||||
other: "language list"
|
||||
|
||||
aria_table_of_contents:
|
||||
other: "table of contents"
|
||||
|
||||
|
149
i18n/es.yaml
149
i18n/es.yaml
@ -1,149 +0,0 @@
|
||||
# Misc
|
||||
credit_comment:
|
||||
other: "<!-- bobatheme está disponible en GitHub basado en la licensia MIT: https://github.com/BBaoVanC/bobatheme. -->"
|
||||
|
||||
table_of_contents:
|
||||
other: "Índice"
|
||||
|
||||
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:"
|
||||
|
||||
copy_to_clipboard:
|
||||
other: "Copiar"
|
||||
|
||||
|
||||
# Meta items
|
||||
long_date:
|
||||
other: "{{ .Date.Day }} de {{ index .Data.meses (printf `%d` .Date.Month) }} de {{ .Date.Year }}"
|
||||
|
||||
wordcount:
|
||||
one: "{{ . }} palabra"
|
||||
other: "{{ . }} palabras"
|
||||
|
||||
readingtime:
|
||||
one: "{{ . }} min"
|
||||
other: "{{ . }} mins"
|
||||
|
||||
edit_history:
|
||||
other: "Historial de cambios"
|
||||
|
||||
|
||||
# Post count
|
||||
no_posts:
|
||||
other: "¡No hay contenido para mostrar!"
|
||||
|
||||
post_count:
|
||||
one: "{{ . }} publicación"
|
||||
other: "{{ . }} publicaciones"
|
||||
|
||||
|
||||
# Navigation
|
||||
read_more:
|
||||
other: "Leer más"
|
||||
|
||||
related_posts:
|
||||
other: "Publicaciones similares"
|
||||
|
||||
older_post:
|
||||
other: "Más antiguo"
|
||||
|
||||
newer_post:
|
||||
other: "Más nuevo"
|
||||
|
||||
|
||||
# ARIA labels
|
||||
# aria_header_link:
|
||||
# other: "header link"
|
||||
|
||||
# aria_back_to_top_button:
|
||||
# other: "back to top button"
|
||||
|
||||
# aria_rss_link:
|
||||
# other: "RSS feed link"
|
||||
|
||||
# aria_post_meta_edit_history:
|
||||
# other: "link to page edit history"
|
||||
|
||||
# aria_post_meta_translations:
|
||||
# other: "translations"
|
||||
|
||||
# aria_post_meta_categories:
|
||||
# other: "categories"
|
||||
|
||||
# aria_post_meta_tags:
|
||||
# other: "tags"
|
||||
|
||||
# aria_post_meta_reading_time:
|
||||
# other: "reading time"
|
||||
|
||||
# aria_post_meta_authors:
|
||||
# other: "authors"
|
||||
|
||||
# aria_post_meta_series:
|
||||
# other: "series"
|
||||
|
||||
# aria_breadcrumbnav:
|
||||
# other: "breadcrumb navigation bar"
|
||||
|
||||
# aria_post_metadata:
|
||||
# other: "post metadata"
|
||||
|
||||
# aria_author_metadata:
|
||||
# other: "author metadata"
|
||||
|
||||
# aria_taxonomy_metadata:
|
||||
# other: "taxonomy metadata"
|
||||
|
||||
# aria_post_meta_date:
|
||||
# other: "date"
|
||||
|
||||
# aria_post_meta_modified_date:
|
||||
# other: "last modified date"
|
||||
|
||||
# aria_author_post_count:
|
||||
# other: "post count"
|
||||
|
||||
# aria_author_word_count:
|
||||
# other: "word count"
|
||||
|
||||
# aria_taxonomy_post_count:
|
||||
# other: "post count"
|
||||
|
||||
# aria_series_metadata:
|
||||
# other: "series metadata"
|
||||
|
||||
# aria_navbar:
|
||||
# other: "navigation bar"
|
||||
|
||||
# aria_langpicker:
|
||||
# other: "language picker"
|
||||
|
||||
# aria_langpicker_list:
|
||||
# other: "language list"
|
||||
|
||||
# aria_table_of_contents:
|
||||
# other: "table of contents"
|
||||
|
||||
# aria_share_twitter:
|
||||
# other: "share to twitter button"
|
||||
|
||||
# aria_share_facebook:
|
||||
# other: "share to facebook button"
|
||||
|
||||
# aria_share_linkedin:
|
||||
# other: "share to linkedin button"
|
||||
|
||||
# aria_share_reddit:
|
||||
# other: "share to reddit button"
|
||||
|
||||
# aria_share_telegram:
|
||||
# other: "share to telegram button"
|
||||
|
||||
# aria_share_print:
|
||||
# other: "print article button"
|
@ -1,8 +0,0 @@
|
||||
{{ if .IsTranslated }}
|
||||
<span class="post-meta-item" aria-label="{{ i18n "aria_post_meta_translations" }}">
|
||||
{{ partial "icon.html" "world" }}
|
||||
{{ range .Translations }}
|
||||
<a href="{{ .Permalink }}">{{ .Language }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
@ -1,4 +1,4 @@
|
||||
{{ if or .Date .Params.authors .IsTranslated .Site.Params.readingtime .Site.Params.gitFileURL }}
|
||||
{{ if or .Date .Params.authors .Site.Params.readingtime .Site.Params.gitFileURL }}
|
||||
<div class="post-metadata" aria-label="{{ i18n "aria_post_metadata" }}">
|
||||
{{ if .Date }}
|
||||
<span class="post-meta-item" aria-label="{{ i18n "aria_post_meta_date" }}">
|
||||
@ -22,7 +22,6 @@
|
||||
{{ end }}
|
||||
|
||||
{{ partial "post-meta-item/authors.html" . }}
|
||||
{{ partial "post-meta-item/translations.html" . }}
|
||||
{{ partial "post-meta-item/readingtime.html" . }}
|
||||
{{ partial "post-meta-item/edithistory.html" . }}
|
||||
{{ partial "post-meta-item/categories.html" . }}
|
||||
|
@ -14,6 +14,4 @@
|
||||
{{ i18n "readingtime" $readingtime }}
|
||||
</span>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "post-meta-item/translations.html" . }}
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{ if or .Date .Params.authors .IsTranslated .Site.Params.readingtime }}
|
||||
{{ if or .Date .Params.authors .Site.Params.readingtime }}
|
||||
<div class="post-metadata" aria-label="{{ i18n "aria_post_metadata" }}">
|
||||
{{ if .Date }}
|
||||
<span class="post-meta-item" aria-label="date">
|
||||
@ -10,7 +10,6 @@
|
||||
{{ end }}
|
||||
|
||||
{{ partial "post-meta-item/authors.html" . }}
|
||||
{{ partial "post-meta-item/translations.html" . }}
|
||||
{{ partial "post-meta-item/readingtime.html" . }}
|
||||
{{ partial "post-meta-item/series.html" . }}
|
||||
{{ partial "post-meta-item/categories.html" . }}
|
||||
|
@ -20,35 +20,4 @@
|
||||
href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
|
||||
{{ if .Site.IsMultiLingual }}
|
||||
<details class="langpicker" aria-label="{{ i18n "aria_langpicker" }}">
|
||||
<summary>
|
||||
{{- partial "icon.html" "world" -}}
|
||||
</summary>
|
||||
<ul class="languages" aria-label="{{ i18n "aria_langpicker_list" }}">
|
||||
{{ range .AllTranslations }}
|
||||
<li>
|
||||
<a class="langpicker-item{{ if eq .Language $.Site.Language }} active{{ end }}" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ $site_translations := slice }}
|
||||
{{ range .Site.Languages }}
|
||||
{{ $site_translations = $site_translations | append .LanguageName }}
|
||||
{{ end }}
|
||||
|
||||
{{ $translation_codes := slice }}
|
||||
{{ range .AllTranslations }}
|
||||
{{ $translation_codes = $translation_codes | append .Language }}
|
||||
{{ end }}
|
||||
|
||||
{{ range (.Site.Languages | complement $translation_codes) }}
|
||||
<li>
|
||||
<a class="langpicker-item unavailable" aria-disabled="true">{{ .LanguageName }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</details>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user