Allow making posts "featured", tweak article list styles
This commit is contained in:
@ -12,8 +12,8 @@
|
||||
{{ config.title }}
|
||||
</a>
|
||||
</li>
|
||||
{%- for link in config.extra.nav.links -%}
|
||||
{%- if link.url is matching('https?://') -%}
|
||||
{%- for link in config.extra.nav.links %}
|
||||
{%- if link.url is matching('https?://') %}
|
||||
<li>
|
||||
<a href="{{ link.url }}"
|
||||
{%- if current_url | default(value='/') | trim_end_matches(pat='/') | safe == link.url | trim_end_matches(pat='/') | safe -%}
|
||||
@ -22,7 +22,7 @@
|
||||
{{ macros_translate::translate(key=link.name, default=link.name, language_strings=language_strings) }}
|
||||
</a>
|
||||
</li>
|
||||
{%- else -%}
|
||||
{%- else %}
|
||||
<li>
|
||||
<a href="{{ get_url(path=link.url, lang=lang)}}"
|
||||
{%- if current_url | default(value='/') | trim_end_matches(pat='/') | safe == get_url(path=link.url, lang=lang) | trim_end_matches(pat='/') | safe -%}
|
||||
@ -31,12 +31,12 @@
|
||||
{{ macros_translate::translate(key=link.name, default=link.name, language_strings=language_strings) }}
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
{%- endif %}
|
||||
{%- endfor -%}
|
||||
{%- if config.languages | length > 0 -%}
|
||||
{%- include "partials/language_switcher.html" -%}
|
||||
{%- if config.languages | length > 0 %}
|
||||
{%- include "partials/language_switcher.html" %}
|
||||
{%- endif -%}
|
||||
{%- if config.generate_feed and config.extra.nav.show_feed -%}
|
||||
{%- if config.generate_feed and config.extra.nav.show_feed %}
|
||||
<li id="feed">
|
||||
<a href="{{ get_url(path=config.feed_filename) }}">
|
||||
<i class="icon"></i>
|
||||
@ -45,7 +45,7 @@
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
{%- endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
Reference in New Issue
Block a user