diff options
| author | gamerdonkey | 2022-12-11 21:15:05 -0600 |
|---|---|---|
| committer | gamerdonkey | 2022-12-11 21:15:05 -0600 |
| commit | 6f968c1f82da949928ecf713be8b8963079e0afc (patch) | |
| tree | cec21354c517369e19bdf43578363278939e83a2 | |
| parent | ab3de5023eaee426fd16bfae938347664e17daa3 (diff) | |
| download | gamerdonkey.com-blog-6f968c1f82da949928ecf713be8b8963079e0afc.tar.gz gamerdonkey.com-blog-6f968c1f82da949928ecf713be8b8963079e0afc.tar.bz2 gamerdonkey.com-blog-6f968c1f82da949928ecf713be8b8963079e0afc.zip | |
Adding category navigation to index page.
| -rw-r--r-- | themes/gamerdonkey-theme/static/css/style.css | 20 | ||||
| -rw-r--r-- | themes/gamerdonkey-theme/templates/index.html | 9 |
2 files changed, 24 insertions, 5 deletions
diff --git a/themes/gamerdonkey-theme/static/css/style.css b/themes/gamerdonkey-theme/static/css/style.css index fce750d..f8dbbb4 100644 --- a/themes/gamerdonkey-theme/static/css/style.css +++ b/themes/gamerdonkey-theme/static/css/style.css @@ -33,26 +33,36 @@ header#banner { display: none; } -nav#menu { +nav { width: 100%; text-align: center; font-weight: bold; } -nav#menu ul { +nav#categories { + font-weight: normal; +} + +nav ul { list-style: none; padding-left: 0; } -nav#menu ul li { +nav ul li { display: inline; } -nav#menu ul li::after { +nav ul li::after { content: ' | '; } -nav#menu ul li:last-child::after { +nav#categories ul li::after { + content: ', '; +} + +nav ul li:last-child::after, +nav#categories ul li:last-child::after, +nav#categories ul li:first-child::after { content: ''; } diff --git a/themes/gamerdonkey-theme/templates/index.html b/themes/gamerdonkey-theme/templates/index.html index 21476a9..6fec8d9 100644 --- a/themes/gamerdonkey-theme/templates/index.html +++ b/themes/gamerdonkey-theme/templates/index.html @@ -1,4 +1,13 @@ {% extends "!simple/index.html" %} {% block content_title %} +<nav id="categories"> + <ul> + <li>Categories:</li> + {% for cat, null in categories|sort %} + <li><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> + {% endfor %} + </ul> +</nav> {% endblock %} + |
