mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-22 00:12:41 +00:00
fix sidebar
This commit is contained in:
parent
21bf0340ae
commit
eecb4d87f8
@ -105,30 +105,20 @@
|
|||||||
<div role="navigation" class="uk-width-1-5@m">
|
<div role="navigation" class="uk-width-1-5@m">
|
||||||
|
|
||||||
{% if not DISABLE_SEARCH %}
|
{% if not DISABLE_SEARCH %}
|
||||||
<div class="uk-card uk-card-body">
|
<div class="uk-card uk-card-body uk-card-small">
|
||||||
<form class="uk-search uk-search-default" action="search.html" >
|
<form class="uk-search uk-search-default" action="search.html" >
|
||||||
<input class="uk-search-input tipue_search" type="search" name="q" id="tipue_search_input" autocomplete="off" placeholder="Search...">
|
<input class="uk-search-input tipue_search" type="search" name="q" id="tipue_search_input" autocomplete="off" placeholder="Search...">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="uk-card uk-card-body">
|
{% if CATEGORY_SAVE_AS %}
|
||||||
|
<div class="uk-card uk-card-body uk-card-small">
|
||||||
|
<h2 class="uk-card-title">Categories</h2>
|
||||||
<ul class="uk-nav uk-nav-default">
|
<ul class="uk-nav uk-nav-default">
|
||||||
{% if CATEGORY_SAVE_AS %}
|
|
||||||
<li class="uk-nav-header">Categories</li>
|
|
||||||
{% for cat, _ in categories %}
|
{% for cat, _ in categories %}
|
||||||
<li {% if cat == category %}class="uk-active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
|
<li {% if cat == category %}class="uk-active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if DISPLAY_PAGES_ON_MENU != False %}
|
|
||||||
<li class="uk-nav-header">Pages</li>
|
|
||||||
{% for p in pages %}
|
|
||||||
<li {% if p == page %}class="uk-active"{% endif %}>
|
|
||||||
<a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if ARCHIVE_SAVE_AS %}
|
{% if ARCHIVE_SAVE_AS %}
|
||||||
<li class="uk-nav-divider"></li>
|
<li class="uk-nav-divider"></li>
|
||||||
@ -136,9 +126,23 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if DISPLAY_PAGES_ON_MENU != False %}
|
||||||
|
<div class="uk-card uk-card-body uk-card-small">
|
||||||
|
<h2 class="uk-card-title">Pages</h2>
|
||||||
|
<ul class="uk-nav uk-nav-default">
|
||||||
|
{% for p in pages %}
|
||||||
|
<li {% if p == page %}class="uk-active"{% endif %}>
|
||||||
|
<a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if SOCIAL %}
|
{% if SOCIAL %}
|
||||||
<div class="uk-card uk-card-body">
|
<div class="uk-card uk-card-body uk-card-small">
|
||||||
<h2 class="uk-card-title">Social</h2>
|
<h2 class="uk-card-title">Social</h2>
|
||||||
{% for link_destination, link in SOCIAL %}
|
{% for link_destination, link in SOCIAL %}
|
||||||
<a class="mg-icon-link" href="{{ link }}" title="Link to my {{ link_destination }}">
|
<a class="mg-icon-link" href="{{ link }}" title="Link to my {{ link_destination }}">
|
||||||
@ -148,14 +152,14 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="uk-card uk-card-body">
|
<div class="uk-card uk-card-body uk-card-small">
|
||||||
<h3 class="uk-card-title">Syndication</h3>
|
<h2 class="uk-card-title">Syndication</h2>
|
||||||
<a rel="alternate" type="application/atom+xml" href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" class="mg-feed"><i class="fas fa-rss-square "></i> ATOM</a>
|
<a rel="alternate" type="application/atom+xml" href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" class="mg-feed"><i class="fas fa-rss-square "></i> ATOM</a>
|
||||||
{% if EXTRA_ATOM_FEED %}<a rel="alternate" type="application/atom+xml" href="{{ EXTRA_ATOM_FEED['url'] }}" class="mg-feed"><i class="fas fa-rss-square "></i> {{ EXTRA_ATOM_FEED['name'] }}</a>{% endif %}
|
{% if EXTRA_ATOM_FEED %}<a rel="alternate" type="application/atom+xml" href="{{ EXTRA_ATOM_FEED['url'] }}" class="mg-feed"><i class="fas fa-rss-square "></i> {{ EXTRA_ATOM_FEED['name'] }}</a>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if AVATARS %}
|
{% if AVATARS %}
|
||||||
<div class="uk-card uk-card-body">
|
<div class="uk-card uk-card-body uk-card-small">
|
||||||
<h2 class="uk-card-title">Avatars</h2>
|
<h2 class="uk-card-title">Avatars</h2>
|
||||||
{% for img_uri in AVATARS %}
|
{% for img_uri in AVATARS %}
|
||||||
<img class="mg-avatar" src="{{ img_uri }}" alt="An avatar I use on the web" title="An avatar I use on the web">
|
<img class="mg-avatar" src="{{ img_uri }}" alt="An avatar I use on the web" title="An avatar I use on the web">
|
||||||
@ -165,7 +169,7 @@
|
|||||||
|
|
||||||
{% if READINGS %}
|
{% if READINGS %}
|
||||||
<a href="{{ SITEURL }}/past_readings.html">
|
<a href="{{ SITEURL }}/past_readings.html">
|
||||||
<div class="uk-card uk-card-body">
|
<div class="uk-card uk-card-body uk-card-small">
|
||||||
<h2 class="uk-card-title">Previous Entries</h2>
|
<h2 class="uk-card-title">Previous Entries</h2>
|
||||||
<img class="uk-thumbnail" src="{{ READINGS[0]['img_url'] }}" alt="{{ READINGS[0]['description'] }}" title="{{ READINGS[0]['description'] }}">
|
<img class="uk-thumbnail" src="{{ READINGS[0]['img_url'] }}" alt="{{ READINGS[0]['description'] }}" title="{{ READINGS[0]['description'] }}">
|
||||||
</div>
|
</div>
|
||||||
@ -173,7 +177,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if LINKS %}
|
{% if LINKS %}
|
||||||
<div class="uk-card uk-card-body">
|
<div class="uk-card uk-card-body uk-card-small">
|
||||||
<h3 class="uk-card-title">Blogroll</h3>
|
<h3 class="uk-card-title">Blogroll</h3>
|
||||||
<ul class="uk-nav uk-nav-default">
|
<ul class="uk-nav uk-nav-default">
|
||||||
{% for text, url in LINKS %}
|
{% for text, url in LINKS %}
|
||||||
@ -184,7 +188,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if SUPPORTS %}
|
{% if SUPPORTS %}
|
||||||
<div class="uk-card uk-card-body">
|
<div class="uk-card uk-card-body uk-card-small">
|
||||||
{% for name, link, logo_url, title in SUPPORTS %}
|
{% for name, link, logo_url, title in SUPPORTS %}
|
||||||
<a href="{{ link }}">
|
<a href="{{ link }}">
|
||||||
<img class="mg-support-logo" src="{{ logo_url }}" alt="Logo {{ name }}" title="{{ title }}">
|
<img class="mg-support-logo" src="{{ logo_url }}" alt="Logo {{ name }}" title="{{ title }}">
|
||||||
|
Loading…
Reference in New Issue
Block a user