feat: generate commit history URL for updated articles

- Introduce the `create_history_url` macro in Tera to generate URLs.
- Add TOML configuration for specifying remote repository details.
- Integrate the new feature in the page meta for displaying a link to view changes.
This commit is contained in:
welpo 2023-08-15 01:22:16 +02:00
parent 0884370138
commit 846128509e
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
5 changed files with 58 additions and 0 deletions

View file

@ -8,6 +8,7 @@
{% import "macros/format_date.html" as macros_format_date %}
{% import "macros/add_comments.html" as macros_add_comments %}
{% import "macros/table_of_contents.html" as macros_toc %}
{% import "macros/create_history_url.html" as macros_create_history_url %}
<!DOCTYPE html>
<html lang="{{ lang }}" {% if config.extra.default_theme -%}