diff options
-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 #} |