diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-05-18 17:37:14 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-05-18 17:37:14 -0500 |
commit | f5a839492f0b6459e5511bd92ad90b14d9a639ca (patch) | |
tree | a37642304241d7361863c1a9970e3623506b3d44 | |
parent | 70cfbd2c44ecc523ba754e5d677769b7a2b16163 (diff) |
feat: add git.tobyvin.dev as code repository
-rw-r--r-- | config.toml | 2 | ||||
-rw-r--r-- | content/about.md | 3 | ||||
-rw-r--r-- | templates/index.html | 8 | ||||
-rw-r--r-- | templates/macros.html | 3 |
4 files changed, 8 insertions, 8 deletions
diff --git a/config.toml b/config.toml index c55fb48..d01371f 100644 --- a/config.toml +++ b/config.toml @@ -16,7 +16,7 @@ highlight_themes_css = [ ] [extra] -repository = "https://git.sr.ht/~tobyvin/tobyvin.dev" +repository = "https://git.tobyvin.dev/tobyvin.dev" license = "MIT" [[extra.meta]] diff --git a/content/about.md b/content/about.md index dc39063..f649b3e 100644 --- a/content/about.md +++ b/content/about.md @@ -19,7 +19,7 @@ enjoyed many other languages such as C, Python, and C#. As for my development environment, in short, I use Neovim on Arch Linux. The slightly longer version can be found in my dotfiles which are available on -[Sourcehut] and [GitHub]. +[cgit], [Sourcehut], and [GitHub]. In the end, it's the designing of systems, defining of logic, and solving of problems that I love. The tools I use; language, editor, or otherwise; are @@ -40,5 +40,6 @@ or just good conversations. :) {{ meta() }} +[cgit]: https://git.tobyvin.dev [Sourcehut]: https://sr.ht/~tobyvin/.dotfiles [GitHub]: https://github.com/tobyvin/.dotfiles diff --git a/templates/index.html b/templates/index.html index 037e423..a1af5e8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -31,11 +31,11 @@ <body> <header> <nav> - <span>{{ macros::nav_item(name=config.title, path="@/_index.md") }}</span> + <span>{{ macros::nav_item(name=config.title, url=get_url(path="@/_index.md",trailing_slash=true)) }}</span> <ul> - <li>{{ macros::nav_item(name="About", path="@/about.md") }}</li> - <li>{{ macros::nav_item(name="Code", path="@/code/_index.md") }}</li> - <li>{{ macros::nav_item(name="Posts", path="@/posts/_index.md") }}</li> + <li>{{ macros::nav_item(name="About", url=get_url(path="@/about.md",trailing_slash=true)) }}</li> + <li>{{ macros::nav_item(name="Git", url="https://git.tobyvin.dev") }}</li> + <li>{{ macros::nav_item(name="Posts", url=get_url(path="@/posts/_index.md",trailing_slash=true)) }}</li> </ul> </nav> </header> diff --git a/templates/macros.html b/templates/macros.html index 43b19e1..d5f1c57 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -10,8 +10,7 @@ </tr> {% endmacro %} {# render navbar item #} -{% macro nav_item(name, path) %} - {% set url = get_url(path=path,trailing_slash=true) %} +{% macro nav_item(name, url) %} <a {% if current_url and url == current_url %}class="active"{% endif %} href={{ url }}>{{ name }}</a> {% endmacro %} {# render table of contents recursively #} |