This commit is contained in:
Tyrel Souza 2023-10-04 17:23:03 -04:00 committed by Tyrel Souza
parent df3d2b764f
commit 005dba4ccb
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E
3 changed files with 19 additions and 6 deletions

View File

@ -40,7 +40,7 @@ FEED_ATOM = 'tyrel-dev.atom.xml'
FEED_ALL_ATOM = 'tyrel-dev.all.xml'
PLUGINS = ["webassets","syntax_highlighting"]
PLUGINS = ["webassets"]
DEFAULT_PAGINATION = True
DISPLAY_CATEGORIES_ON_MENU = False

View File

@ -300,6 +300,13 @@ nav li.selected a {
color: #FFF;
}
nav li.ephemeral a {
background-color: #15A9DB;
color: #FFF;
filter: brightness(0.75);
}
header .header_box {
padding-top: 1.5em;
text-align: justify;

View File

@ -79,21 +79,27 @@
{% if DISPLAY_MENU or DISPLAY_MENU is not defined %}
<nav style="overflow: hidden;">
<ul>
{% block ephemeral_nav %}{% endblock %}
{% block ephemeral_nav %}{% endblock %}
{% if DISPLAY_HOME or DISPLAY_HOME is not defined %}
<li{% if output_file == "index.html" %} class="selected"{% endif %}><a href="{{ SITEURL }}/">Home</a></li>
{% endif %}
{% for name, link, file in MENU_INTERNAL_PAGES %}
<li{% if output_file == file %} class="selected"{% endif %}><a href="{{ SITEURL }}/{{ link }}">{{ name }}</a></li>
{% endfor %}
{% for title, link in MENUITEMS %}
<li{% if output_file == file %} class="selected"{% endif %}><a href="{{ link }}">{{ title }}</a></li>
<li {% if output_file == file %} class="selected"{% endif %}><a href="{{ SITEURL }}/{{ link }}">{{ name }}</a></li>
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU %}
{% for p in pages %}
<li{% if p == page %} class="selected"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
{% endfor %}
{% endif %}
</ul>
<ul>
{% for title, link in MENUITEMS %}
<li {% if output_file == file %} class="selected"{% endif %}><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
</ul>
</nav>
{% endif %}