diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index f47edbb..d9553b2 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -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 {{{ */ diff --git a/data/meses.yml b/data/meses.yml deleted file mode 100644 index 8eaf106..0000000 --- a/data/meses.yml +++ /dev/null @@ -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" diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index b72a831..2c568fe 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -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 diff --git a/i18n/en.yaml b/i18n/en.yaml index 9326608..52821e6 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -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" diff --git a/i18n/es.yaml b/i18n/es.yaml deleted file mode 100644 index 334b580..0000000 --- a/i18n/es.yaml +++ /dev/null @@ -1,149 +0,0 @@ -# Misc -credit_comment: - other: "" - -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" diff --git a/layouts/partials/post-meta-item/translations.html b/layouts/partials/post-meta-item/translations.html deleted file mode 100644 index 8ada5d6..0000000 --- a/layouts/partials/post-meta-item/translations.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ if .IsTranslated }} - - {{ partial "icon.html" "world" }} - {{ range .Translations }} - {{ .Language }} - {{ end }} - -{{ end }} diff --git a/layouts/partials/post-metadata/full.html b/layouts/partials/post-metadata/full.html index d452490..4fe47b1 100644 --- a/layouts/partials/post-metadata/full.html +++ b/layouts/partials/post-metadata/full.html @@ -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 }}
{{ if .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" . }} diff --git a/layouts/partials/post-metadata/series.html b/layouts/partials/post-metadata/series.html index c722dfa..243a995 100644 --- a/layouts/partials/post-metadata/series.html +++ b/layouts/partials/post-metadata/series.html @@ -14,6 +14,4 @@ {{ i18n "readingtime" $readingtime }} {{ end }} - - {{ partial "post-meta-item/translations.html" . }}
diff --git a/layouts/partials/post-metadata/short.html b/layouts/partials/post-metadata/short.html index bae4921..8defda8 100644 --- a/layouts/partials/post-metadata/short.html +++ b/layouts/partials/post-metadata/short.html @@ -1,4 +1,4 @@ -{{ if or .Date .Params.authors .IsTranslated .Site.Params.readingtime }} +{{ if or .Date .Params.authors .Site.Params.readingtime }}
{{ if .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" . }} diff --git a/layouts/partials/top.html b/layouts/partials/top.html index 51a6bc5..fca6c12 100644 --- a/layouts/partials/top.html +++ b/layouts/partials/top.html @@ -20,35 +20,4 @@ href="{{ .URL }}">{{ .Name }} {{ end }} - - {{ if .Site.IsMultiLingual }} -
- - {{- partial "icon.html" "world" -}} - -
    - {{ range .AllTranslations }} -
  • - {{ .Language.LanguageName }} -
  • - {{ 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) }} -
  • - {{ .LanguageName }} -
  • - {{ end }} -
-
- {{ end }}