⚡️ refactor: co-locate images (#200)
This commit is contained in:
136
content/blog/comments/index.ca.md
Normal file
136
content/blog/comments/index.ca.md
Normal file
@@ -0,0 +1,136 @@
|
||||
+++
|
||||
title = "Afegeix comentaris a les teves publicacions amb aquestes 4 plataformes"
|
||||
date = 2023-07-14
|
||||
updated = 2023-07-26
|
||||
description = "Descobreix com habilitar una secció de comentaris a les teves publicacions utilitzant giscus, utterances, Hyvor Talk, o Isso, permetent la interacció i feedback dels lectors."
|
||||
|
||||
[taxonomies]
|
||||
tags = ["funcionalitat", "tutorial"]
|
||||
|
||||
[extra]
|
||||
giscus = true
|
||||
quick_navigation_buttons = true
|
||||
toc = true
|
||||
social_media_card = "social_cards/ca_blog_comments.jpg"
|
||||
+++
|
||||
|
||||
tabi actualment suporta quatre sistemes de comentaris: [giscus](https://giscus.app/ca) i [utterances](https://utteranc.es/), [Hyvor Talk](https://talk.hyvor.com/) i [Isso](https://isso-comments.de/).
|
||||
|
||||
giscus i utterances són projectes de codi obert que et permeten afegir una secció de comentaris al teu lloc web utilitzant les «issues» (utterances) o «discussions» (giscus) de GitHub. Són perfectes per a generadors de llocs estàtics com Zola, ja que permeten als teus lectors interactuar i deixar comentaris a les teves publicacions sense requerir un backend tradicional o una base de dades.
|
||||
|
||||
Com que tots dos es basen en GitHub, giscus i utterances requereixen que els usuaris tinguin un compte a GitHub i autoritzin l'aplicació respectiva. Alternativament, els visitants també poden comentar directament en la discussió o «issue» corresponent a GitHub.
|
||||
|
||||
Ambdues són excel·lents eines per afegir comentaris al teu blog, però giscus té alguns avantatges:
|
||||
- Més temes.
|
||||
- Suport per a reaccions.
|
||||
- Respostes a comentaris i vista de conversa.
|
||||
- Més segur: utterances requereix habilitar estils en línia no segurs («unsafe inline styles») per establir l'altura del frame; giscus no.
|
||||
- Suport multilingüe: utterances només està disponible en anglès; giscus suporta més de 20 idiomes.
|
||||
- Desenvolupament més actiu: l'últim commit de giscus, en el moment d'aquesta publicació, va ser fa dos dies. L'últim commit d'utterances es va fer fa més d'un any.
|
||||
|
||||
Hyvor Talk és una plataforma de comentaris de pagament centrada en la privadesa. Ofereix tots els avantatges del giscus i alguns més, com la moderació i la detecció de correu brossa.
|
||||
|
||||
Isso és un sistema de comentaris de codi obert autoallotjat que emmagatzema els comentaris a la seva pròpia base de dades. Un dels seus principals avantatges és la privacitat; no comparteix les dades dels usuaris amb tercers. També té una interfície lleugera i neta, facilitant als teus visitants deixar comentaris. Isso també permet comentaris anònims, potencialment augmentant la participació dels usuaris a la teva pàgina web.
|
||||
|
||||
## Configuració
|
||||
|
||||
### Sistemes basats en GitHub
|
||||
|
||||
giscus y utterances requereixen una configuració similar. Primer, visita el lloc web del sistema que vulguis habilitar: [giscus.app](https://giscus.app/ca) o [utteranc.es](https://utteranc.es/).
|
||||
|
||||
Segueix les instruccions de la secció **Configuració** del lloc web, i tria les opcions que prefereixis. Finalment, estableix els valors que es mostren a la secció **Habilitar giscus/utterances** (el bloc de codi `script`) en la secció corresponent del teu `config.toml`: `[extra.giscus]` o `[extra.utterances]`.
|
||||
|
||||
#### giscus
|
||||
|
||||
giscus té més opcions que utterances:
|
||||
|
||||
```toml
|
||||
[extra.giscus]
|
||||
enabled_for_all_posts = false
|
||||
automatic_loading = true
|
||||
repo = "elTeuNomDUsuariDeGithub/elTeuRepositori"
|
||||
repo_id = "LaTevaIDdeRepositori"
|
||||
category = "Anuncis"
|
||||
category_id = "LaTevaIDdeCategoria"
|
||||
mapping = "slug"
|
||||
strict_title_matching = 1 # 1 per habilitar, 0 per deshabilitar.
|
||||
enable_reactions = 1 # 1 per habilitar, 0 per deshabilitar.
|
||||
comment_box_above_comments = true
|
||||
light_theme = "noborder_light"
|
||||
dark_theme = "noborder_dark"
|
||||
lang = "" # Deixa en blanc perquè coincideixi amb l'idioma de la pàgina.
|
||||
lazy_loading = true
|
||||
```
|
||||
#### utterances
|
||||
|
||||
```
|
||||
[extra.utterances]
|
||||
enabled_for_all_posts = false
|
||||
automatic_loading = true
|
||||
repo = "elTeuNomDUsuariDeGithub/elTeuRepositori"
|
||||
issue_term = "slug"
|
||||
label = "💬"
|
||||
light_theme = "github-light"
|
||||
dark_theme = "photon-dark"
|
||||
lazy_loading = true
|
||||
```
|
||||
|
||||
### Hyvor Talk
|
||||
|
||||
Configura el teu lloc web des de la [consola Hyvor Talk](https://talk.hyvor.com/console) i completa la configuració a `config.toml`:
|
||||
|
||||
```toml
|
||||
[extra.hyvortalk]
|
||||
enabled_for_all_posts = false
|
||||
automatic_loading = true
|
||||
website_id = "1234"
|
||||
page_id_is_slug = true
|
||||
lang = ""
|
||||
page_author = "" # Correu (o correu codificat en base64) de l'autor.
|
||||
lazy_loading = true
|
||||
```
|
||||
|
||||
### Isso
|
||||
|
||||
Per habilitar Isso, primer hauràs d'instal·lar i executar un servidor Isso ([aquí tens una guia útil](https://blog.phusion.nl/2018/08/16/isso-simple-self-hosted-commenting-system/#1installingisso)). Després, completa aquestes configuracions a `config.toml`:
|
||||
|
||||
```toml
|
||||
[extra.isso]
|
||||
enabled_for_all_posts = false
|
||||
automatic_loading = true
|
||||
endpoint_url = "https://example.com/comments/" # URL a Isso.
|
||||
page_id_is_slug = true
|
||||
lang = ""
|
||||
max_comments_top = "inf"
|
||||
max_comments_nested = "5"
|
||||
avatar = true
|
||||
voting = true
|
||||
page_author_hashes = ""
|
||||
lazy_loading = true
|
||||
```
|
||||
|
||||
### Configuracions comunes
|
||||
|
||||
La opció `enabled_for_all_posts = true` habilita globalment el sistema de comentaris corresponent.
|
||||
|
||||
Alternativament, pots habilitar els comentaris a publicacions concretes afegint el nom del sistema (`utterances`, `giscus`, `hyvortalk` o `isso`) ` = true`. Per exemple, així és com habilitaries giscus:
|
||||
|
||||
```toml,hl_lines=09-10
|
||||
title = "L'art de l'entremaliadura segons Shin-Chan
|
||||
date = 1990-02-14
|
||||
description = "Descobreix com les travessures poden canviar la teva perspectiva de vida."
|
||||
|
||||
[taxonomies]
|
||||
tags = ["personal", "travessures"]
|
||||
|
||||
[extra]
|
||||
giscus = true
|
||||
```
|
||||
|
||||
Si accidentalment habilites més d'un sistema, Zola mostrarà un error.
|
||||
|
||||
Si el teu lloc web té múltiples idiomes amb publicacions coincidents (com aquesta demo), i t'agradaria compartir comentaris entre idiomes, has d'utilitzar `issue_term = "slug"` (per giscus y utterances) o `page_id_is_slug = true` (per Hyvor Talk o Isso). Això utilitzarà el nom de l'arxiu Markdown (sense l'etiqueta d'idioma) com a identificador. Totes les altres opcions crearan diferents seccions de comentaris per a cada idioma.
|
||||
|
||||
## Exemple en viu
|
||||
|
||||
A continuació trobaràs el widget de giscus amb la configuració mostrada [a dalt](#giscus).
|
138
content/blog/comments/index.es.md
Normal file
138
content/blog/comments/index.es.md
Normal file
@@ -0,0 +1,138 @@
|
||||
+++
|
||||
title = "Añade comentarios a tus publicaciones con estas 4 plataformas"
|
||||
date = 2023-07-14
|
||||
updated = 2023-07-26
|
||||
description = "Descubre cómo habilitar una sección de comentarios en tus publicaciones usando giscus, utterances, Hyvor Talk, o Isso, permitiendo la interacción y feedback de los lectores."
|
||||
|
||||
[taxonomies]
|
||||
tags = ["funcionalidad", "tutorial"]
|
||||
|
||||
[extra]
|
||||
giscus = true
|
||||
quick_navigation_buttons = true
|
||||
toc = true
|
||||
social_media_card = "social_cards/es_blog_comments.jpg"
|
||||
+++
|
||||
|
||||
tabi actualmente soporta cuatro sistemas de comentarios: [giscus](https://giscus.app/es) y [utterances](https://utteranc.es/), [Hyvor Talk](https://talk.hyvor.com/) e [Isso](https://isso-comments.de/).
|
||||
|
||||
giscus y utterances son proyectos de código abierto que te permiten añadir una sección de comentarios a tu sitio web usando las «issues» (utterances) o «discussions» (giscus) de GitHub. Son perfectos para generadores de sitios estáticos como Zola, ya que permiten a tus lectores interactuar y dejar comentarios en tus publicaciones sin requerir un backend tradicional ni una base de datos.
|
||||
|
||||
Al estar basados en GitHub, giscus y utterances requieren que los usuarios tengan una cuenta en dicha plataforma y autoricen la respectiva aplicación. Alternativamente, los visitantes también pueden comentar directamente en la discusión o «issue» correspondiente de GitHub.
|
||||
|
||||
Ambas son excelentes herramientas para agregar comentarios a tu blog, pero giscus tiene algunas ventajas:
|
||||
- Más temas.
|
||||
- Soporte para reacciones.
|
||||
- Respuestas a comentarios y vista de conversación.
|
||||
- Más seguro: utterances requiere habilitar estilos en línea inseguros («unsafe inline styles») para ajustar la altura del frame; giscus no.
|
||||
- Soporte multilingüe: utterances solo está disponible en inglés; giscus soporta más de 20 idiomas.
|
||||
- Desarrollo más activo: el último commit de giscus, a fecha de esta publicación, fue hace una dos días. El último commit de utterances fue hace más de un año.
|
||||
|
||||
Hyvor Talk es una plataforma de comentarios de pago centrada en la privacidad. Ofrece todas las ventajas de giscus y algunas más, como moderación y detección de spam.
|
||||
|
||||
Isso es un sistema de comentarios de código abierto y autoalojado que almacena los comentarios en su propia base de datos. Una de sus principales ventajas es la privacidad; no comparte los datos de los usuarios con terceros. También tiene una interfaz ligera y limpia, lo que facilita que tus visitantes dejen comentarios. Isso también permite comentarios anónimos, lo que podría aumentar la participación de los usuarios en tu sitio web.
|
||||
|
||||
## Configuración
|
||||
|
||||
### Sistemas basados en GitHub
|
||||
|
||||
giscus y utterances requieren una configuración similar. Primero, visita el sitio web del sistema que quieras habilitar: [giscus.app](https://giscus.app/es) o [utteranc.es](https://utteranc.es/).
|
||||
|
||||
Sigue las instrucciones de la sección **Configuración** del sitio web, y elige las opciones que prefieras. Luego, establece los valores que se muestran en la sección **Habilitar giscus/utterances** (el bloque de código `script`) en la sección correspondiente de tu `config.toml`: `[extra.giscus]` o `[extra.utterances]`.
|
||||
|
||||
#### giscus
|
||||
|
||||
giscus tiene algunos ajustes más que utterances:
|
||||
|
||||
```toml
|
||||
[extra.giscus]
|
||||
enabled_for_all_posts = false
|
||||
automatic_loading = true
|
||||
repo = "tuNombreDeUsuarioDeGithub/tuRepositorio"
|
||||
repo_id = "TuIDdeRepositorio"
|
||||
category = "Anuncios"
|
||||
category_id = "TuIDdeCategoría"
|
||||
mapping = "slug"
|
||||
strict_title_matching = 1 # 1 para habilitar, 0 para deshabilitar.
|
||||
enable_reactions = 1 # 1 para habilitar, 0 para deshabilitar.
|
||||
comment_box_above_comments = true
|
||||
light_theme = "noborder_light"
|
||||
dark_theme = "noborder_dark"
|
||||
lang = "" # Deja en blanco para que coincida con el idioma de la página.
|
||||
lazy_loading = true
|
||||
```
|
||||
|
||||
#### utterances
|
||||
|
||||
```toml
|
||||
[extra.utterances]
|
||||
enabled_for_all_posts = false
|
||||
automatic_loading = true
|
||||
repo = "tuNombreDeUsuarioDeGithub/tuRepositorio"
|
||||
issue_term = "slug"
|
||||
label = "💬"
|
||||
light_theme = "github-light"
|
||||
dark_theme = "photon-dark"
|
||||
lazy_loading = true
|
||||
```
|
||||
|
||||
### Hyvor Talk
|
||||
|
||||
Configura tu web desde la [consola de Hyvor Talk](https://talk.hyvor.com/console) y rellena las opciones en `config.toml`:
|
||||
|
||||
```toml
|
||||
[extra.hyvortalk]
|
||||
enabled_for_all_posts = false
|
||||
automatic_loading = true
|
||||
website_id = "1234"
|
||||
page_id_is_slug = true
|
||||
lang = ""
|
||||
page_author = "" # Correo (o correo codificado en base64) del autor.
|
||||
lazy_loading = true
|
||||
```
|
||||
|
||||
### Isso
|
||||
|
||||
Para habilitar Isso, primero necesitarás instalar y ejecutar un servidor Isso ([aquí tienes una guía útil](https://blog.phusion.nl/2018/08/16/isso-simple-self-hosted-commenting-system/#1installingisso)). Luego, completa estas configuraciones en `config.toml`:
|
||||
|
||||
```toml
|
||||
[extra.isso]
|
||||
enabled_for_all_posts = false
|
||||
automatic_loading = true
|
||||
endpoint_url = "https://example.com/comments/" # URL a Isso.
|
||||
page_id_is_slug = true
|
||||
lang = ""
|
||||
max_comments_top = "inf"
|
||||
max_comments_nested = "5"
|
||||
avatar = true
|
||||
voting = true
|
||||
page_author_hashes = ""
|
||||
lazy_loading = true
|
||||
```
|
||||
|
||||
### Ajustes comunes
|
||||
|
||||
La opción `enabled_for_all_posts = true` habilitará globalmente el sistema de comentarios correspondiente.
|
||||
|
||||
Alternativamente, puedes habilitar los comentarios en publicaciones concretas añadiendo el nombre del sistema (`utterances`, `giscus`, `hyvortalk` o `isso`) `= true`. Por ejemplo, así habilitarías giscus:
|
||||
|
||||
```toml,hl_lines=09-10
|
||||
title = "Los molinos de viento de mi vida: reflexiones de un escudero"
|
||||
date = 1605-01-16
|
||||
description = "Mi viaje junto a Don Quijote, enfrentándome a gigantes imaginarios y descubriendo las verdaderas batallas de la vida."
|
||||
|
||||
[taxonomies]
|
||||
tags = ["personal", "reflexiones"]
|
||||
|
||||
[extra]
|
||||
giscus = true
|
||||
```
|
||||
|
||||
Si accidentalmente habilitas más de un sistema, Zola mostrará un error.
|
||||
|
||||
Si tu web tiene múltiples idiomas con publicaciones coincidentes (como esta demo), y te gustaría compartir comentarios entre idiomas, debes usar `issue_term = "slug"` (en el caso de giscus y utterances) o `page_id_is_slug = true` (para Hyvor Talk e Isso). Esto usará el nombre del archivo Markdown (sin la etiqueta de idioma) como identificador. Todas las demás opciones crearán diferentes secciones de comentarios para cada idioma.
|
||||
|
||||
|
||||
## Ejemplo en vivo
|
||||
|
||||
Al final de esta publicación encontrarás el widget de giscus usando los ajustes mostrados [arriba](#giscus).
|
137
content/blog/comments/index.md
Normal file
137
content/blog/comments/index.md
Normal file
@@ -0,0 +1,137 @@
|
||||
+++
|
||||
title = "Add comments to your posts with these 4 comment systems"
|
||||
date = 2023-07-14
|
||||
updated = 2023-07-26
|
||||
description = "Discover how to enable a comments section on your posts using giscus, utterances, Hyvor Talk, or Isso, enabling reader interaction and feedback."
|
||||
|
||||
[taxonomies]
|
||||
tags = ["showcase", "tutorial"]
|
||||
|
||||
[extra]
|
||||
giscus = true
|
||||
quick_navigation_buttons = true
|
||||
toc = true
|
||||
social_media_card = "social_cards/blog_comments.jpg"
|
||||
+++
|
||||
|
||||
tabi currently supports four comment systems: [giscus](https://giscus.app/), [utterances](https://utteranc.es/), [Hyvor Talk](https://talk.hyvor.com/), and [Isso](https://isso-comments.de/).
|
||||
|
||||
giscus and utterances are open-source projects that let you add a comments section to your website using GitHub issues (utterances) or discussions (giscus). They are perfect for static site generators like Zola, since they enable your readers to interact and leave comments on your posts without requiring a traditional backend or database.
|
||||
|
||||
As they are based on GitHub, giscus and utterances require users to have a GitHub account and authorize the respective app. Alternatively, visitors can also comment directly on the corresponding GitHub discussion or issue.
|
||||
|
||||
Both are great tools for adding comments to your blog, but giscus has a few advantages:
|
||||
- More themes.
|
||||
- Support for reactions.
|
||||
- Comment replies and conversation view.
|
||||
- Safer: utterances requires enabling unsafe inline styles to set the height of the frame; giscus doesn't.
|
||||
- Multilanguage support: utterances is only available in English; giscus supports over 20 languages.
|
||||
- More active development: giscus' last commit, as of this post, was a two days ago. utterances' last commit was over a year ago.
|
||||
|
||||
Hyvor Talk is a paid privacy-focused commenting platform. It offers all of the giscus' advantages, and a few more, like moderation and spam detection.
|
||||
|
||||
Isso is an open-source self-hosted commenting system that stores comments in its own database. One of its main advantages is privacy; it does not share user data with third parties. It also has a lightweight and clean interface, making it easy for your visitors to leave comments. Isso also allows anonymous comments, potentially increasing user engagement on your website.
|
||||
|
||||
## Setup
|
||||
|
||||
### GitHub based systems
|
||||
|
||||
The configuration of both giscus and utterances is quite similar. First, visit the website of the system you want to enable: [giscus.app](https://giscus.app/) or [utteranc.es](https://utteranc.es/).
|
||||
|
||||
Follow the instructions on the **Configuration** section of the website, and set it up it to your liking. Then, set the values shown on the **Enable giscus/utterances** section (the `script` codeblock) on the proper section of your `config.toml`: `[extra.giscus]` or `[extra.utterances]`.
|
||||
|
||||
#### giscus
|
||||
|
||||
giscus has a few more settings than utterances:
|
||||
|
||||
```toml
|
||||
[extra.giscus]
|
||||
enabled_for_all_posts = false
|
||||
automatic_loading = true
|
||||
repo = "yourGithubUsername/yourRepo"
|
||||
repo_id = "YourRepoID"
|
||||
category = "Announcements"
|
||||
category_id = "YourCategoryID"
|
||||
mapping = "slug"
|
||||
strict_title_matching = 1 # 1 to enable, 0 to disable.
|
||||
enable_reactions = 1 # 1 to enable, 0 to disable.
|
||||
comment_box_above_comments = true
|
||||
light_theme = "noborder_light"
|
||||
dark_theme = "noborder_dark"
|
||||
lang = "" # Leave blank to match the page's language.
|
||||
lazy_loading = true
|
||||
```
|
||||
|
||||
#### utterances
|
||||
|
||||
```toml
|
||||
[extra.utterances]
|
||||
enabled_for_all_posts = false
|
||||
automatic_loading = true
|
||||
repo = "yourgithubuser/yourrepo"
|
||||
issue_term = "slug"
|
||||
label = "💬"
|
||||
light_theme = "github-light"
|
||||
dark_theme = "photon-dark"
|
||||
lazy_loading = true
|
||||
```
|
||||
|
||||
### Hyvor Talk
|
||||
|
||||
Set up your website from the [Hyvor Talk console](https://talk.hyvor.com/console) and fill in the settings in `config.toml`:
|
||||
|
||||
```toml
|
||||
[extra.hyvortalk]
|
||||
enabled_for_all_posts = false
|
||||
automatic_loading = true
|
||||
website_id = "1234"
|
||||
page_id_is_slug = true
|
||||
lang = ""
|
||||
page_author = "" # Email (or base64 encoded email) of the author.
|
||||
lazy_loading = true
|
||||
```
|
||||
|
||||
### Isso
|
||||
|
||||
To enable Isso, you'll first need to install and run an Isso server ([here's a useful guide](https://blog.phusion.nl/2018/08/16/isso-simple-self-hosted-commenting-system/#1installingisso)). Then, complete these settings in `config.toml`:
|
||||
|
||||
```toml
|
||||
[extra.isso]
|
||||
enabled_for_all_posts = false
|
||||
automatic_loading = true
|
||||
endpoint_url = "https://example.com/comments/" # URL to Isso host.
|
||||
page_id_is_slug = true
|
||||
lang = ""
|
||||
max_comments_top = "inf"
|
||||
max_comments_nested = "5"
|
||||
avatar = true
|
||||
voting = true
|
||||
page_author_hashes = ""
|
||||
lazy_loading = true
|
||||
```
|
||||
|
||||
### Common settings
|
||||
|
||||
Setting `enabled_for_all_posts = true` for a comment system will enable it globally.
|
||||
|
||||
Alternatively, enable comments on an individual post's front matter by adding the name of the system (`utterances`, `giscus`, `hyvortalk`, or `isso`) `= true`. For example, this is how you would enable giscus:
|
||||
|
||||
```toml,hl_lines=09-10
|
||||
title = "Bears, Beets, Battlestar Galactica: The Dwight Schrute Guide to Life"
|
||||
date = 2007-04-26
|
||||
description = "Lessons learned from beet farming and paper sales."
|
||||
|
||||
[taxonomies]
|
||||
tags = ["personal", "beets"]
|
||||
|
||||
[extra]
|
||||
giscus = true
|
||||
```
|
||||
|
||||
If you accidentally enable more than one system, your site will fail to build with an error.
|
||||
|
||||
If your site has multiple languages with matching posts (like this demo), and you'd like to share comments between languages, you must use `issue_term = "slug"` (for giscus and utterances) or `page_id_is_slug = true` (for Hyvor Talk or Isso). This will use the name of the Markdown file (sans the language tag) as the identifier. All other options will create different comment sections for each language.
|
||||
|
||||
## Live example
|
||||
|
||||
Below you'll find the giscus widget using the settings shown [above](#giscus).
|
BIN
content/blog/comments/social_cards/blog_comments.jpg
Normal file
BIN
content/blog/comments/social_cards/blog_comments.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
BIN
content/blog/comments/social_cards/ca_blog_comments.jpg
Normal file
BIN
content/blog/comments/social_cards/ca_blog_comments.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 55 KiB |
BIN
content/blog/comments/social_cards/es_blog_comments.jpg
Normal file
BIN
content/blog/comments/social_cards/es_blog_comments.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 57 KiB |
Reference in New Issue
Block a user