diff options
-rw-r--r-- | content/code/_index.md (renamed from content/projects/_index.md) | 2 | ||||
-rw-r--r-- | content/code/dotfiles.md | 8 | ||||
-rw-r--r-- | content/code/projectr.md (renamed from content/projects/projectr.md) | 4 | ||||
-rw-r--r-- | sass/style.scss | 19 | ||||
-rw-r--r-- | templates/index.html | 2 | ||||
-rw-r--r-- | templates/macros.html | 4 | ||||
-rw-r--r-- | templates/page.html | 1 | ||||
-rw-r--r-- | templates/taxonomy_single.html | 13 |
8 files changed, 39 insertions, 14 deletions
diff --git a/content/projects/_index.md b/content/code/_index.md index 29776f9..b0f0ee4 100644 --- a/content/projects/_index.md +++ b/content/code/_index.md @@ -5,4 +5,4 @@ sort_by = "weight" An exhastive list of my projects can be found on [SourceHut](https://git.sr.ht/~tobyvin/) and -[GitHub](https://github.com/tobyvin) +[GitHub](https://github.com/tobyvin). diff --git a/content/code/dotfiles.md b/content/code/dotfiles.md new file mode 100644 index 0000000..fa54648 --- /dev/null +++ b/content/code/dotfiles.md @@ -0,0 +1,8 @@ ++++ +title = ".dotfiles" +description = "My personal dotfiles." +weight = 0 + +[extra] +external = "https://sr.ht/~tobyvin/.dotfiles/" ++++ diff --git a/content/projects/projectr.md b/content/code/projectr.md index dbf6bf3..f554db0 100644 --- a/content/projects/projectr.md +++ b/content/code/projectr.md @@ -9,7 +9,3 @@ tags = ["rust"] [extra] external = "https://sr.ht/~tobyvin/projectr/" +++ - -<!-- Project discovery tool that produces a MRU sorted list of project --> -<!-- directories using provided contexts and filters. --> -<!-- more --> diff --git a/sass/style.scss b/sass/style.scss index db0d60c..bccc367 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -105,13 +105,13 @@ body { nav, section { & > header { - & > hgroup > { - :first-child { + & > hgroup { + & > :first-child { color: var(--orange); margin-bottom: 0; } - :not(:first-child) { + & > :not(:first-child) { color: var(--gray-dim); margin-top: 0; margin-bottom: 0; @@ -134,6 +134,19 @@ body { } } + .breadcrumb > ul { + display: flex; + flex-wrap: wrap; + list-style: none; + margin: 0; + padding: 0; + + li:not(:first-child)::before { + display: inline-block; + content: "::"; + } + } + li > article > header > hgroup > :first-child a { color: var(--blue); text-decoration: none; diff --git a/templates/index.html b/templates/index.html index 912787d..2a975e8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -37,7 +37,7 @@ <span>{{ macros::nav_item(name=config.title, url=config.base_url) }}</span> <ul> <li>{{ macros::nav_item(name="About",url=get_url(path="@/about.md") ) }}</li> - <li>{{ macros::nav_item(name="Code",url=get_url(path="@/projects/_index.md") ) }}</li> + <li>{{ macros::nav_item(name="Code",url=get_url(path="@/code/_index.md") ) }}</li> <li>{{ macros::nav_item(name="Posts",url=get_url(path="@/posts/_index.md") ) }}</li> </ul> </nav> diff --git a/templates/macros.html b/templates/macros.html index 23b5dbf..14dc9e7 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -6,9 +6,7 @@ {% set curr_url = get_url(path=section.path) %} {% endif %} {% set url = url | trim_end_matches(pat="/") %} - {% if curr_url %} - <a {% if curr_url == url %}class="active"{% endif %} href={{ url }}>{{ name }}</a> - {% endif %} + <a {% if curr_url and curr_url == url %}class="active"{% endif %} href={{ url }}>{{ name }}</a> {% endmacro nav %} {% macro toc_item(item, depth=0) %} <li> diff --git a/templates/page.html b/templates/page.html index 3920e5e..6548f9a 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,4 +1,3 @@ -{% import "macros.html" as macros %} {% extends "index.html" %} {% block content %} <header> diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html index 09b20c4..d05ab26 100644 --- a/templates/taxonomy_single.html +++ b/templates/taxonomy_single.html @@ -2,7 +2,18 @@ {% block content %} <header> <hgroup> - <h1>{{ taxonomy.name }}::{{ term.name }}</h1> + <h1> + <nav aria-label="Breadcrumb" class="breadcrumb"> + <ul> + <li> + <a href={{ get_url(path=taxonomy.name) }}>{{ taxonomy.name }}</a> + </li> + <li> + <span aria-current="page">{{ term.name }}</span> + </li> + </ul> + </nav> + </h1> </hgroup> </header> <ul class="simple"> |