From 667b60953e3097a0d4b09fc05086fc911922586f Mon Sep 17 00:00:00 2001 From: neko Date: Tue, 13 Aug 2024 08:16:07 +0000 Subject: [PATCH] =?UTF-8?q?Actualizaci=C3=B3n=20de=20la=20configuraci?= =?UTF-8?q?=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +- config.toml | 3 - config/_default/hugo.toml | 68 ------------- config/_default/hugo.yaml | 47 +++++++++ config/_default/languages.en.toml | 18 ---- config/_default/languages.en.yaml | 16 ++++ config/_default/languages.es.yaml | 24 +++++ config/_default/markup.toml | 13 --- config/_default/markup.yaml | 11 +++ config/_default/menus.en.yaml | 35 +++++++ config/_default/menus.es.yaml | 35 +++++++ config/_default/module.toml | 3 - config/_default/module.yaml | 3 + config/_default/params.toml | 152 ------------------------------ config/_default/params.yaml | 103 ++++++++++++++++++++ go.mod | 5 + go.sum | 2 + i18n/en.yaml | 75 +++++++++++++++ i18n/es.yml | 74 +++++++++++++++ 19 files changed, 439 insertions(+), 258 deletions(-) delete mode 100644 config.toml delete mode 100644 config/_default/hugo.toml create mode 100644 config/_default/hugo.yaml delete mode 100644 config/_default/languages.en.toml create mode 100644 config/_default/languages.en.yaml create mode 100644 config/_default/languages.es.yaml delete mode 100644 config/_default/markup.toml create mode 100644 config/_default/markup.yaml create mode 100644 config/_default/menus.en.yaml create mode 100644 config/_default/menus.es.yaml delete mode 100644 config/_default/module.toml create mode 100644 config/_default/module.yaml delete mode 100644 config/_default/params.toml create mode 100644 config/_default/params.yaml create mode 100644 go.mod create mode 100644 go.sum create mode 100644 i18n/en.yaml create mode 100644 i18n/es.yml diff --git a/README.md b/README.md index 87c2038..5b8e982 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,15 @@ Para correr la wiki en local, es necesario tener instalado Hugo, [sigue estas in sudo apt install hugo ``` -Para instalar el tema Blowfish hay que descargar el submodulo de git: +Para **instalar el tema Blowfish** hay **dos opciones**: i) instalándolo como módulo de Hugo o ii) como submódulo de git. + +i) Añadir el tema como módulo de hugo: + +```bash +hugo mod get github.com/nunocoracao/blowfish/v2 +``` + +ii) O descargando el submódulo de git: ```bash git submodule update --init --recursive --progress diff --git a/config.toml b/config.toml deleted file mode 100644 index 1d7c819..0000000 --- a/config.toml +++ /dev/null @@ -1,3 +0,0 @@ -baseURL = 'http://example.org/' -languageCode = 'en-us' -title = 'My New Hugo Site' diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml deleted file mode 100644 index 582f49c..0000000 --- a/config/_default/hugo.toml +++ /dev/null @@ -1,68 +0,0 @@ -# -- Site Configuration -- -# Refer to the theme docs for more details about each of these parameters. -# https://blowfish.page/docs/getting-started/ - -theme = "blowfish" # UNCOMMENT THIS LINE -#baseURL = "https://es.hackmeeting.org/latest/hugo" -defaultContentLanguage = "en" -title = 'Hackmeeting Iberico' - -# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles - -enableRobotsTXT = true -paginate = 10 -summaryLength = 0 - -buildDrafts = false -buildFuture = false - -enableEmoji = true - -# googleAnalytics = "G-XXXXXXXXX" - -[imaging] - anchor = 'Center' - -[taxonomies] - tag = "tags" - category = "categories" - author = "authors" - series = "series" - -[sitemap] - changefreq = 'daily' - filename = 'sitemap.xml' - priority = 0.5 - -[outputs] - home = ["HTML", "RSS", "JSON"] - -[related] - threshold = 0 - toLower = false - - [[related.indices]] - name = "tags" - weight = 100 - - [[related.indices]] - name = "categories" - weight = 100 - - [[related.indices]] - name = "series" - weight = 50 - - [[related.indices]] - name = "authors" - weight = 20 - - [[related.indices]] - name = "date" - weight = 10 - - [[related.indices]] - applyFilter = false - name = 'fragmentrefs' - type = 'fragments' - weight = 10 diff --git a/config/_default/hugo.yaml b/config/_default/hugo.yaml new file mode 100644 index 0000000..d595f85 --- /dev/null +++ b/config/_default/hugo.yaml @@ -0,0 +1,47 @@ +baseurl: http://localhost:1312 +title: Hackmeeting Iberico +module: + imports: + - path: github.com/nunocoracao/blowfish/v2 +languageCode: es-es +defaultContentLanguage: es +enableRobotsTXT: true +paginate: 10 +summaryLength: 0 +buildDrafts: false +buildFuture: false +enableEmoji: true +imaging: + anchor: Center +taxonomies: + tag: tags + category: categories + author: authors + series: series +sitemap: + changefreq: daily + filename: sitemap.xml + priority: 0.5 +outputs: + home: + - HTML + - RSS + - JSON +related: + threshold: 0 + toLower: false + indices: + - name: tags + weight: 100 + - name: categories + weight: 100 + - name: series + weight: 50 + - name: authors + weight: 20 + - name: date + weight: 10 + - applyFilter: false + name: fragmentrefs + type: fragments + weight: 10 diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml deleted file mode 100644 index 69bd6d0..0000000 --- a/config/_default/languages.en.toml +++ /dev/null @@ -1,18 +0,0 @@ -languageCode = "en" -languageName = "English" -weight = 1 -title = "Hackmeeting" - -[params] - displayName = "EN" - isoCode = "en" - rtl = false - dateFormat = "2 January 2006" - logo = "img/logo_little.png" - description = "Encuentro anual de las contraculturas digitales" - -[author] - name = "Hackmeeting" - headline = "Encuentro anual de las contraculturas digitales" - bio = "Hackmeeting es el encuentro anual de las contraculturas digitales de la peninsula Iberica, de aquellas comunidades que analizan de manera crítica los mecanismos de desarollo de las tecnologías en nuestra sociedad. Pero hackmeeting no es sólo esto, es mucho más. Te lo contamos al oído, no se lo digas a nadie, el hackmeeting es solamente para verdaderos hackers, para quienes quieran gestionarse la vida como quieran y luchan por eso, aunque no hayan visto un ordenador en su vida." - image = "img/penguin_hm.png" \ No newline at end of file diff --git a/config/_default/languages.en.yaml b/config/_default/languages.en.yaml new file mode 100644 index 0000000..4cda7de --- /dev/null +++ b/config/_default/languages.en.yaml @@ -0,0 +1,16 @@ +languageCode: en +languageName: English +weight: 1 +title: Hackmeeting +params: + displayName: EN + isoCode: en + rtl: false + dateFormat: 2 January 2006 + logo: img/logo_little.png + description: Annual meeting of digital countercultures +author: + name: Hackmeeting + headline: Annual meeting of digital countercultures + bio: Hackmeeting is the annual meeting of the digital countercultures of the Iberian Peninsula, of those communities that critically analyze the mechanisms of development of technologies in our society. But hackmeeting is not only this, it is much more. We tell you in your ear, do not tell anyone, hackmeeting is only for real hackers, for those who want to manage their life as they want and fight for that, even if they have never seen a computer in their life. + image: img/penguin_hm.png diff --git a/config/_default/languages.es.yaml b/config/_default/languages.es.yaml new file mode 100644 index 0000000..a29131f --- /dev/null +++ b/config/_default/languages.es.yaml @@ -0,0 +1,24 @@ +languageCode: es +languageName: Spanish +weight: 1 +title: Hackmeeting +params: + displayName: ES + isoCode: es + rtl: false + dateFormat: 2 January 2006 + logo: img/logo_little.png + description: Encuentro anual de las contraculturas digitales + showThemeAttribution: false +author: + name: Hackmeeting + headline: Encuentro anual de las contraculturas digitales + bio: Hackmeeting es el encuentro anual de las contraculturas digitales de la + peninsula Iberica, de aquellas comunidades que analizan de manera crítica + los mecanismos de desarollo de las tecnologías en nuestra sociedad. Pero + hackmeeting no es sólo esto, es mucho más. Te lo contamos al oído, no se lo + digas a nadie, el hackmeeting es solamente para verdaderos hackers, para + quienes quieran gestionarse la vida como quieran y luchan por eso, aunque no + hayan visto un ordenador en su vida. + image: img/penguin_hm.png + diff --git a/config/_default/markup.toml b/config/_default/markup.toml deleted file mode 100644 index c5449fc..0000000 --- a/config/_default/markup.toml +++ /dev/null @@ -1,13 +0,0 @@ -# -- Markup -- -# These settings are required for the theme to function. - -[goldmark] -[goldmark.renderer] - unsafe = true - -[highlight] - noClasses = false - -[tableOfContents] - startLevel = 2 - endLevel = 4 diff --git a/config/_default/markup.yaml b/config/_default/markup.yaml new file mode 100644 index 0000000..a109a6d --- /dev/null +++ b/config/_default/markup.yaml @@ -0,0 +1,11 @@ +# -- Markup -- +# These settings are required for the theme to function. + +goldmark: + renderer: + unsafe: true +highlight: + noClasses: false +tableOfContents: + startLevel: 2 + endLevel: 4 diff --git a/config/_default/menus.en.yaml b/config/_default/menus.en.yaml new file mode 100644 index 0000000..d8d2067 --- /dev/null +++ b/config/_default/menus.en.yaml @@ -0,0 +1,35 @@ +main: + - name: About + weight: 20 + pageRef: info + weight: 20 + - name: "Información" + parent: About + pageRef: info + weight: 21 + - name: "Sobre el Hackmeeting" + parent: About + pageRef: about + weight: 22 + - name: "Inscripción" + parent: About + pageRef: inscripcion + weight: 23 + - name: "Actividades" + parent: About + pageRef: actividades + weight: 24 + - name: "Participa" + parent: About + pageRef: participa + weight: 25 + + - identifier: Call4Nodes + pre: wand-magic-sparkles + url: https://forms.komun.org/call4nodes-hackmeeting-2024 + weight: 40 + + - identifier: inscripcion + pre: edit + url: https://forms.komun.org/inscripcion-hackmeeting-2024 + weight: 50 \ No newline at end of file diff --git a/config/_default/menus.es.yaml b/config/_default/menus.es.yaml new file mode 100644 index 0000000..9cc8906 --- /dev/null +++ b/config/_default/menus.es.yaml @@ -0,0 +1,35 @@ +main: + - name: Más Información + weight: 20 + pageRef: info + weight: 20 + - name: "Información" + parent: Más Información + pageRef: info + weight: 21 + - name: "Sobre el Hackmeeting" + parent: Más Información + pageRef: about + weight: 22 + - name: "Inscripción" + parent: Más Información + pageRef: inscripcion + weight: 23 + - name: "Actividades" + parent: Más Información + pageRef: actividades + weight: 24 + - name: "Participa" + parent: Más Información + pageRef: participa + weight: 25 + + - identifier: Call4Nodes + pre: wand-magic-sparkles + url: https://forms.komun.org/call4nodes-hackmeeting-2024 + weight: 40 + + - identifier: inscripcion + pre: edit + url: https://forms.komun.org/inscripcion-hackmeeting-2024 + weight: 50 diff --git a/config/_default/module.toml b/config/_default/module.toml deleted file mode 100644 index 74f7727..0000000 --- a/config/_default/module.toml +++ /dev/null @@ -1,3 +0,0 @@ -[hugoVersion] - extended = false - min = "0.87.0" diff --git a/config/_default/module.yaml b/config/_default/module.yaml new file mode 100644 index 0000000..91bd1c3 --- /dev/null +++ b/config/_default/module.yaml @@ -0,0 +1,3 @@ +hugoVersion: + extended: false + min: 0.87.0 diff --git a/config/_default/params.toml b/config/_default/params.toml deleted file mode 100644 index 009877d..0000000 --- a/config/_default/params.toml +++ /dev/null @@ -1,152 +0,0 @@ -# -- Theme Options -- -# These options control how the theme functions and allow you to -# customise the display of your website. -# -# Refer to the theme docs for more details about each of these parameters. -# https://blowfish.page/docs/configuration/#theme-parameters - -colorScheme = "blowfish" -defaultAppearance = "dark" # valid options: light or dark -autoSwitchAppearance = true - -enableSearch = true -enableCodeCopy = false - -mainSections = ["docs"] -# robots = "" - -disableImageOptimization = false -disableTextInHeader = false - - defaultBackgroundImage = "img/corona_hm.png" # used as default for background images -# defaultFeaturedImage = "IMAGE.jpg" # used as default for featured images in all articles - -# highlightCurrentMenuArea = true -# smartTOC = true -# smartTOCHideUnfocusedChildren = true - -[header] - layout = "fixed-gradient" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur - -[footer] - showMenu = true - showCopyright = true - showThemeAttribution = true - showAppearanceSwitcher = true - showScrollToTop = true - -[homepage] - layout = "custom" # valid options: page, profile, hero, card, background, custom - homepageImage = "img/corona_hm.png" # used in: hero, and card - showRecent = true - showRecentItems = 6 - showMoreLink = true - showMoreLinkDest = "docs" - cardView = true - cardViewScreenWidth = true - layoutBackgroundBlur = true # only used when layout equals background -# showAuthor = true - - -[article] - showDate = false - showViews = false - showLikes = false - showDateOnlyInArticle = false - showDateUpdated = false - showAuthor = false - # showAuthorBottom = false - showHero = true - heroStyle = "background" # valid options: basic, big, background, thumbAndBackground - layoutBackgroundBlur = false # only used when heroStyle equals background or thumbAndBackground - layoutBackgroundHeaderSpace = false # only used when heroStyle equals background - showBreadcrumbs = true - showDraftLabel = true - showEdit = false - # editURL = "https://github.com/username/repo/" - editAppendPath = true - seriesOpened = false - showHeadingAnchors = true - showPagination = true - invertPagination = false - showReadingTime = false - showTableOfContents = true - # showRelatedContent = false - # relatedContentLimit = 3 - showTaxonomies = true - showAuthorsBadges = false - showWordCount = false -#sharingLinks = [ "linkedin", "twitter", "bluesky", "reddit", "pinterest", "facebook", "email", "whatsapp", "telegram"] - sharingLinks = ["email"] - showZenMode = true - -[list] - showHero = false - # heroStyle = "background" # valid options: basic, big, background, thumbAndBackground - layoutBackgroundBlur = true # only used when heroStyle equals background or thumbAndBackground - layoutBackgroundHeaderSpace = true # only used when heroStyle equals background - showBreadcrumbs = false - showSummary = false - showViews = false - showLikes = false - showTableOfContents = false - showCards = true - orderByWeight = false - groupByYear = true - cardView = true - cardViewScreenWidth = false - constrainItemsWidth = false - -[sitemap] - excludedKinds = ["taxonomy", "term"] - -[taxonomy] - showTermCount = true - showHero = false - # heroStyle = "background" # valid options: basic, big, background, thumbAndBackground - showBreadcrumbs = false - showViews = false - showLikes = false - showTableOfContents = true - cardView = false - -[term] - showHero = false - # heroStyle = "background" # valid options: basic, big, background, thumbAndBackground - showBreadcrumbs = false - showViews = false - showLikes = false - showTableOfContents = true - groupByYear = false - cardView = true - cardViewScreenWidth = false - -[firebase] - # apiKey = "XXXXXX" - # authDomain = "XXXXXX" - # projectId = "XXXXXX" - # storageBucket = "XXXXXX" - # messagingSenderId = "XXXXXX" - # appId = "XXXXXX" - # measurementId = "XXXXXX" - -[fathomAnalytics] - # site = "ABC12345" - # domain = "llama.yoursite.com" - -[umamiAnalytics] - # websiteid = "ABC12345" - # domain = "llama.yoursite.com" - -[buymeacoffee] - # identifier = "" - # globalWidget = true - # globalWidgetMessage = "Hello" - # globalWidgetColor = "#FFDD00" - # globalWidgetPosition = "Right" - -[verification] - # google = "" - # bing = "" - # pinterest = "" - # yandex = "" diff --git a/config/_default/params.yaml b/config/_default/params.yaml new file mode 100644 index 0000000..a08dae8 --- /dev/null +++ b/config/_default/params.yaml @@ -0,0 +1,103 @@ +colorScheme: blowfish +defaultAppearance: dark +autoSwitchAppearance: true +enableSearch: true +enableCodeCopy: false +mainSections: + - docs +disableImageOptimization: false +disableTextInHeader: false +defaultBackgroundImage: "img/corona_hm.png" +copyright: El contenido está disponible bajo la licencia [GNU Free Documentation License 1.3 or later](https://www.gnu.org/copyleft/fdl.html) a menos que se indique lo contrario. +header: + layout: fixed-gradient +footer: + showMenu: true + showCopyright: true + showThemeAttribution: false + showAppearanceSwitcher: true + showScrollToTop: true +homepage: + layout: background + homepageImage: "img/corona_hm.png" + showRecent: true + showRecentItems: 6 + showMoreLink: true + showMoreLinkDest: docs + cardView: true + cardViewScreenWidth: true + layoutBackgroundBlur: true +article: + showDate: false + showViews: false + showLikes: false + showDateOnlyInArticle: false + showDateUpdated: false + showAuthor: false + showHero: true + heroStyle: background + layoutBackgroundBlur: false + layoutBackgroundHeaderSpace: false + showBreadcrumbs: true + showDraftLabel: true + showEdit: false + editAppendPath: true + seriesOpened: false + showHeadingAnchors: true + showPagination: true + invertPagination: false + showReadingTime: false + showTableOfContents: true + showTaxonomies: true + showAuthorsBadges: false + showWordCount: false + sharingLinks: + - email + - telegram + - twitter + - whatsapp + - facebook + - linkedin + - reddit + showZenMode: true +list: + showHero: false + layoutBackgroundBlur: true + layoutBackgroundHeaderSpace: true + showBreadcrumbs: false + showSummary: false + showViews: false + showLikes: false + showTableOfContents: false + showCards: true + orderByWeight: false + groupByYear: true + cardView: true + cardViewScreenWidth: false + constrainItemsWidth: false +sitemap: + excludedKinds: + - taxonomy + - term +taxonomy: + showTermCount: true + showHero: false + showBreadcrumbs: false + showViews: false + showLikes: false + showTableOfContents: true + cardView: false +term: + showHero: false + showBreadcrumbs: false + showViews: false + showLikes: false + showTableOfContents: true + groupByYear: false + cardView: true + cardViewScreenWidth: false +firebase: {} +fathomAnalytics: {} +umamiAnalytics: {} +buymeacoffee: {} +verification: {} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..8d0b613 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module 0xacab.org/nutria/wiki-hackmeeting + +go 1.22.2 + +require github.com/nunocoracao/blowfish/v2 v2.74.0 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..897f170 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/nunocoracao/blowfish/v2 v2.74.0 h1:1AMcqKWEytSELTI97WyKBRfnoa5k/cmvXTwgp/uiTK4= +github.com/nunocoracao/blowfish/v2 v2.74.0/go.mod h1:4SkMc+Ht8gpQCwArqiHMBDP3soxi2OWuAhVney+cuyk= diff --git a/i18n/en.yaml b/i18n/en.yaml new file mode 100644 index 0000000..457e73f --- /dev/null +++ b/i18n/en.yaml @@ -0,0 +1,75 @@ +global: + language: "EN" + +article: + anchor_label: "Anchor" + date: "{{ .Date }}" + date_updated: "Updated: {{ .Date }}" + draft: "Draft" + edit_title: "Edit content" + reading_time: + one: "{{ .Count }} min" + other: "{{ .Count }} mins" + reading_time_title: "Reading time" + table_of_contents: "Table of Contents" + word_count: + one: "{{ .Count }} word" + other: "{{ .Count }} words" + views: + one: "{{ .Count }} view" + other: "{{ .Count }} views" + likes: + one: "{{ .Count }} like" + other: "{{ .Count }} likes" + part_of_series: "This page is part of a series." + part: "Part" + this_article: "This Page" + related_articles: "Related" + zen_mode_title: + enable: "Enable zen mode" + disable: "Disable zen mode" + +author: + byline_title: "Community" + +code: + copy: "Copy" + copied: "Copied" + +error: + 404_title: "Page Not Found :confused:" + 404_error: "Error 404" + 404_description: "It seems that the page you've requested does not exist." + +footer: + dark_appearance: "Switch to dark appearance" + light_appearance: "Switch to light appearance" + powered_by: "Hackmeeting" + +list: + externalurl_title: "Link to external site" + no_articles: "There are no articles to list here yet." + +nav: + scroll_to_top_title: "Scroll to top" + skip_to_main: "Skip to main content" + +search: + open_button_title: "Search (/)" + close_button_title: "Close (Esc)" + input_placeholder: "Search" + +sharing: + email: "Send via email" + facebook: "Share on Facebook" + linkedin: "Share on LinkedIn" + pinterest: "Pin on Pinterest" + reddit: "Submit to Reddit" + twitter: "Tweet on Twitter" + bluesky: "Post on Bluesky" + +shortcode: + recent_articles: "More information" + +recent: + show_more: "Show More" diff --git a/i18n/es.yml b/i18n/es.yml new file mode 100644 index 0000000..291432f --- /dev/null +++ b/i18n/es.yml @@ -0,0 +1,74 @@ +global: + language: "ES" + +article: + anchor_label: "Ancla" + date: "{{ .Date }}" + date_updated: "Actualizado: {{ .Date }}" + draft: "Borrador" + edit_title: "Editar contenido" + reading_time: + one: "{{ .Count }} min" + other: "{{ .Count }} mins" + reading_time_title: "Tiempo de lectura" + table_of_contents: "Tabla de contenido" + word_count: + one: "{{ .Count }} palabra" + other: "{{ .Count }} palabras" + views: + one: "{{ .Count }} visualización" + other: "{{ .Count }} visualizaciones" + likes: + one: "{{ .Count }} me gusta" + other: "{{ .Count }} me gusta" + part_of_series: "Esta página es parte de una serie." + part: "Parte" + this_article: "Esta página" + related_articles: "Relacionados" + zen_mode_title: + enable: "Activar modo zen" + disable: "Desactivar modo zen" + +author: + byline_title: "Comunidad" + +code: + copy: "Copiar" + copied: "Copiado" + +error: + 404_title: "Página no encontrada :confused:" + 404_error: "Error 404" + 404_description: "Parece que la página que solicitaste no existe." + +footer: + dark_appearance: "Cambiar a modo oscuro" + light_appearance: "Cambiar a modo claro" + powered_by: "Hackmeeting" + +list: + externalurl_title: "Enlace a página externa" + no_articles: "Aún no hay artículos para listar aquí." + +nav: + scroll_to_top_title: "Ir arriba" + skip_to_main: "Ir al contenido" + +search: + open_button_title: "Buscar (/)" + close_button_title: "Cerrar (Esc)" + input_placeholder: "Buscar" + +sharing: + email: "Enviar vía email" + facebook: "Compartir en Facebook" + linkedin: "Compartir en LinkedIn" + pinterest: "Pinear en Pinterest" + reddit: "Publicar en Reddit" + twitter: "Tuitear en Twitter" + +shortcode: + recent_articles: "Más información" + +recent: + show_more: "Mostrar más" \ No newline at end of file