✨ feat(footer): add link to remote repository
Adds two options, both defaulting to true if the remote repo URL is set: * `show_remote_changes`: links the commit history of a post next to the updated date. (#109) * `show_remote_source`: links to the site's repository on the footer.
This commit is contained in:
15
config.toml
15
config.toml
@@ -72,6 +72,7 @@ show_original_quote = "Mostrar cita original"
|
||||
show_translation = "Mostrar traducción"
|
||||
load_comments = "Cargar comentarios"
|
||||
see_changes = "Ver cambios"
|
||||
site_source = "Código del sitio"
|
||||
# Quotation marks for multilingual quote shortcode.
|
||||
open_quotation_mark = "«"
|
||||
close_quotation_mark = "»"
|
||||
@@ -117,6 +118,7 @@ show_original_quote = "Mostra la cita original"
|
||||
show_translation = "Mostra la traducció"
|
||||
load_comments = "Carregar comentaris"
|
||||
see_changes = "Veure canvis"
|
||||
site_source = "Codi del lloc"
|
||||
# Quotation marks for multilingual quote shortcode.
|
||||
open_quotation_mark = "«"
|
||||
close_quotation_mark = "»"
|
||||
@@ -138,15 +140,18 @@ language_name.en = "English"
|
||||
language_name.es = "Español"
|
||||
|
||||
# Remote repository for your Zola site.
|
||||
# Only used to link to the commit history of updated posts, right next to the updated date.
|
||||
# Used for `show_remote_changes` and `show_remote_source` (see below).
|
||||
# Supports GitHub, GitLab, Gitea, and Codeberg.
|
||||
remote_repository_url = "https://github.com/welpo/tabi"
|
||||
# Set this to "auto" to try and auto-detect the platform based on the repository URL.
|
||||
# Accepted values are "github", "gitlab", "gitea", and "codeberg".
|
||||
# Defaults to "auto".
|
||||
remote_repository_git_platform = "auto"
|
||||
# Branch in the repo hosting the Zola site. Defaults to "main".
|
||||
remote_repository_branch = "main"
|
||||
remote_repository_git_platform = "auto" # Defaults to "auto".
|
||||
# Branch in the repo hosting the Zola site.
|
||||
remote_repository_branch = "main" # Defaults to "main".
|
||||
# Show a link to the commit history of updated posts, right next to the last updated date.
|
||||
show_remote_changes = true # Defaults to true.
|
||||
# Show a link to the repository of the site, right next to the "Powered by Zola & tabi" text.
|
||||
show_remote_source = true # Defaults to true.
|
||||
|
||||
# Enable JavaScript theme toggler to allow users to switch between dark/light mode.
|
||||
# Also enables automatic switching based on user's OS-level theme settings.
|
||||
|
Reference in New Issue
Block a user