aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html35
-rw-r--r--templates/macros/macros.html8
-rw-r--r--templates/macros/social.html86
3 files changed, 67 insertions, 62 deletions
diff --git a/templates/base.html b/templates/base.html
index 8c74dd6..567c455 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -35,22 +35,27 @@
<header>
<nav>
<div>
- {%- if config.extra.logo %}
- <h1><a href="{{ config.base_url | safe }}/{%- if config.extra.uglyurls %}index.html{%- endif %}">{%- if config.extra.logo.file %}<img src="{{ config.base_url | safe }}/{{ config.extra.logo.file | safe }}"{%- if config.extra.logo.alt %} alt="{{ config.extra.logo.alt | safe }}"{%- endif %}{%- if config.extra.logo.width %} width="{{ config.extra.logo.width | safe }}"{%- endif %}{%- if config.extra.logo.height %} height="{{ config.extra.logo.height | safe }}"{%- endif %} />{%- endif %}{%- if config.extra.logo.text %}{{ config.extra.logo.text | safe }}{%- endif %}</a></h1>
- {%- elif config.extra.textlogo %}
+ {%- if config.extra.logo -%}
+ <h1><a href="{{ config.base_url | safe }}/{%- if config.extra.uglyurls %}index.html{%- endif %}">
+ {%- if config.extra.logo.file -%}
+ <img src="{{ config.base_url | safe }}/{{ config.extra.logo.file | safe }}"{%- if config.extra.logo.alt %} alt="{{ config.extra.logo.alt | safe }}"{%- endif %}{%- if config.extra.logo.width %} width="{{ config.extra.logo.width | safe }}"{%- endif %}{%- if config.extra.logo.height %} height="{{ config.extra.logo.height | safe }}"{%- endif %} />
+ {%- endif -%}
+ {%- if config.extra.logo.text -%}{{ config.extra.logo.text | safe }}{%- endif -%}
+ </a></h1>
+ {%- elif config.extra.textlogo -%}
<h1><a href="{{ config.base_url | safe }}/{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ config.extra.textlogo | safe }}</a></h1>
- {%- elif config.title %}
+ {%- elif config.title -%}
<h1><a href="{{ config.base_url | safe }}/{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ config.title | safe }}</a></h1>
- {%- endif %}
+ {%- endif -%}
</div>
<div>
<ul>
- {%- for i in config.extra.menu %}
- <li><h2><a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}{%- if i.slash and config.extra.uglyurls %}index.html{%- endif %}">{{ i.name | safe }}</a></h2> </li>
- {%- endfor %}
- {%- if config.extra.js_theme %}
- <li class="js">{%- if config.extra.icon_contrast %}<i type="reset" id="mode" class="{{ config.extra.icon_contrast }}"></i>{%- else %}<i type="reset" id="mode" class="mode">&#9728;</i>{%- endif %}</li>
- {%- endif %}
+ {%- for i in config.extra.menu -%}
+ <li> <h2><a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}{%- if i.slash and config.extra.uglyurls %}index.html{%- endif %}">{{ i.name | safe }}</a></h2> </li>
+ {%- endfor -%}
+ {%- if config.extra.js_theme -%}
+ <li class="js">{%- if config.extra.icon_adjust -%}<i type="reset" id="mode" class="{{ config.extra.icon_adjust }}"></i>{%- else -%}<i type="reset" id="mode" class="mode">&#9728;</i>{%- endif -%}</li>
+ {%- endif -%}
</ul>
</div>
{%- if config.build_search_index %}
@@ -58,7 +63,7 @@
<form class="js" name="goSearch">
<div class="searchd">
<input id="userinput" type="text" placeholder="Search" autocomplete="off" />
- <button type="submit" title="Search">{%- if config.extra.icon_search %}<i class="{{ config.extra.icon_search }}"></i>{%- else %}<span class="si">&#8981;</span>{%- endif %}</button>
+ <button type="submit" title="Search">{%- if config.extra.icon_search -%}<i class="{{ config.extra.icon_search }}"></i>{%- else -%}<span class="si">&#8981;</span>{%- endif -%}</button>
</div>
<div><div id="suggestions"></div></div>
</form>
@@ -95,9 +100,9 @@
{#- Copyright END #}
<nav>
<ul>
- {%- for i in config.extra.menu_footer %}
- <li{%- if config.extra.footer_size %} class="{{ config.extra.footer_size }}"{% endif %}><a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}{%- if i.slash and config.extra.uglyurls %}index.html{%- endif %}">{{ i.name | safe }}</a> </li>
- {%- endfor %}
+ {%- for i in config.extra.menu_footer -%}
+ <li{%- if config.extra.footer_size %} class="{{ config.extra.footer_size }}"{% endif %}> <a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}{%- if i.slash and config.extra.uglyurls %}index.html{%- endif %}"> {{ i.name | safe }} </a> </li>
+ {%- endfor -%}
</ul>
</nav>
{%- if config.extra.footer_credit | default(value=true) %}
diff --git a/templates/macros/macros.html b/templates/macros/macros.html
index cb654e8..96ff7db 100644
--- a/templates/macros/macros.html
+++ b/templates/macros/macros.html
@@ -127,7 +127,7 @@
<nav>
<ul>
{%- if paginator.previous -%}
- <li><a class="on outp" href="{{ paginator.first | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">
+ <li><a class="on outp" href="{{ paginator.first | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}" title="First Page">
{%- if config.extra.icon_first -%}<i class="{{ config.extra.icon_first }}" alt="First Page"></i>
{%- else -%}&#10096;
{%- endif -%}
@@ -141,7 +141,7 @@
{%- endif -%}
{%- if paginator.previous -%}
- <li><a class="on outp" href="{{ paginator.previous | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">
+ <li><a class="on outp" href="{{ paginator.previous | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}" title="Previous Page">
{%- if config.extra.icon_prev -%}<i class="{{ config.extra.icon_prev }}" alt="Previous Page"></i>
{%- else -%}&#10092;
{%- endif -%}
@@ -167,7 +167,7 @@
{%- endfor -%}
{%- if paginator.next -%}
- <li><a class="on outp" href="{{ paginator.next | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">
+ <li><a class="on outp" href="{{ paginator.next | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}" title="Next Page">
{%- if config.extra.icon_next -%}<i class="{{ config.extra.icon_next }}" alt="Next Page"></i>
{%- else -%}&#10093;
{%- endif -%}
@@ -181,7 +181,7 @@
{%- endif -%}
{%- if paginator.next -%}
- <li><a class="on outp" href="{{ paginator.last | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">
+ <li><a class="on outp" href="{{ paginator.last | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}" title="Last Page">
{%- if config.extra.icon_last -%}<i class="{{ config.extra.icon_last }}" alt="Last Page"></i>
{%- else -%}&#10097;
{%- endif -%}
diff --git a/templates/macros/social.html b/templates/macros/social.html
index 2fb9ecc..2da9b7f 100644
--- a/templates/macros/social.html
+++ b/templates/macros/social.html
@@ -1,49 +1,49 @@
{%- macro social_links(social_config) %}
<nav>
<ul>
-{%- set base_url = get_url(path="", lang=lang) %}
- {%- if config.generate_feed %}{%- if config.extra.social.feed %}
- <li><a href="{{ get_url(path=config.feed_filename, trailing_slash=false) | safe }}" target="_blank"><i type="Button" class="svg rss" title="Atom/RSS Feed"></i></a></li>{% endif %}{% endif %}
- {%- if social_config.mail %}
- <li><a href="mailto:{{ social_config.mail }}" target="_blank"><i type="Button" class="svg mail" title="Mail"></i></a></li>{% endif %}
- {%- if social_config.mastodon %}
- <li><a href="{{ social_config.mastodon }}/" target="_blank"><i type="Button" class="svg mastodon" title="Mastodon"></i></a></li>{% endif %}
- {%- if social_config.element %}
- <li><a href="https://{{ social_config.element }}/" target="_blank"><i type="Button" class="svg element" title="Element"></i></a></li>{% endif %}
- {%- if social_config.matrix %}
- <li><a href="https://{{ social_config.matrix }}/" target="_blank"><i type="Button" class="svg matrix" title="Matrix"></i></a></li>{% endif %}
- {%- if social_config.twitter %}
- <li><a href="https://twitter.com/{{ social_config.twitter }}/" target="_blank"><i type="Button" class="svg twitter" title="Twitter"></i></a></li>{% endif %}
- {%- if social_config.facebook %}
- <li><a href="https://www.facebook.com/{{ social_config.facebook }}/" target="_blank"><i type="Button" class="svg facebook" title="Facebook"></i></a></li>{% endif %}
- {%- if social_config.linkedin %}
- <li><a href="https://www.linkedin.com/in/{{ social_config.linkedin }}/" target="_blank"><i type="Button" class="svg linkedin" title="LinkedIn"></i></a></li>{% endif %}
- {%- if social_config.researchgate %}
- <li><a href="https://www.researchgate.net/profile/{{ social_config.researchgate }}/" target="_blank"><i type="Button" class="svg researchgate" title="ResearchGate"></i></a></li>{% endif %}
- {%- if social_config.gitlab %}
- <li><a href="https://gitlab.com/{{ social_config.gitlab }}/" target="_blank"><i type="Button" class="svg gitlab" title="Gitlab"></i></a></li>{% endif %}
- {%- if social_config.github %}
- <li><a href="https://github.com/{{ social_config.github }}/" target="_blank"><i type="Button" class="svg github" title="Github"></i></a></li>{% endif %}
- {%- if social_config.bitbucket %}
- <li><a href="https://bitbucket.org/{{ social_config.bitbucket }}/" target="_blank"><i type="Button" class="svg bitbucket" title="Bitbucket"></i></a></li>{% endif %}
- {%- if social_config.python %}
- <li><a href="https://pypi.org/user/{{ social_config.python }}/" target="_blank"><i type="Button" class="svg python" title="Python"></i></a></li>{% endif %}
- {%- if social_config.docker %}
- <li><a href="https://hub.docker.com/u/{{ social_config.docker }}/" target="_blank"><i type="Button" class="svg docker" title="Docker"></i></a></li>{% endif %}
- {%- if social_config.stack %}
- <li><a href="https://stackoverflow.com/users/{{ social_config.stack }}/" target="_blank"><i type="Button" class="svg stack" title="Stack"></i></a></li>{% endif %}
- {%- if social_config.instagram %}
- <li><a href="https://www.instagram.com/{{ social_config.instagram }}/" target="_blank"><i type="Button" class="svg instagram" title="Instagram"></i></a></li>{% endif %}
- {%- if social_config.pinterest %}
- <li><a href="https://www.pinterest.com/{{ social_config.pinterest }}/" target="_blank"><i type="Button" class="svg pinterest" title="Pinterest"></i></a></li>{% endif %}
- {%- if social_config.twitch %}
- <li><a href="https://www.twitch.tv/{{ social_config.twitch }}/" target="_blank"><i type="Button" class="svg twitch" title="Twitch"></i></a></li>{% endif %}
- {%- if social_config.youtube %}
- <li><a href="https://www.youtube.com/channel/{{ social_config.youtube }}/" target="_blank"><i type="Button" class="svg youtube" title="YouTube"></i></a></li>{% endif %}
- {%- if social_config.buymeacoffee %}
- <li><a href="https://www.buymeacoffee.com/{{ social_config.buymeacoffee }}/" target="_blank"><i type="Button" class="svg buymeacoffee" title="Buy Me A Coffee"></i></a></li>{% endif %}
- {%- if social_config.github_sponsor %}
- <li><a href="https://github.com/sponsors/{{ social_config.github_sponsor }}/" target="_blank"><i type="Button" class="svg github-sponsor" title="GitHub Sponsor"></i></a></li>{% endif %}
+{%- set base_url = get_url(path="", lang=lang) -%}
+ {%- if config.generate_feed -%}{%- if config.extra.social.feed -%}
+ <li><a href="{{ get_url(path=config.feed_filename, trailing_slash=false) | safe }}" target="_blank"><i type="Button" class="svg rss" title="Atom/RSS Feed"></i></a></li>{% endif -%}{% endif -%}
+ {%- if social_config.mail -%}
+ <li><a href="mailto:{{ social_config.mail }}" target="_blank"><i type="Button" class="svg mail" title="Mail"></i></a></li>{% endif -%}
+ {%- if social_config.mastodon -%}
+ <li><a href="{{ social_config.mastodon }}/" target="_blank"><i type="Button" class="svg mastodon" title="Mastodon"></i></a></li>{% endif -%}
+ {%- if social_config.element -%}
+ <li><a href="https://{{ social_config.element }}/" target="_blank"><i type="Button" class="svg element" title="Element"></i></a></li>{% endif -%}
+ {%- if social_config.matrix -%}
+ <li><a href="https://{{ social_config.matrix }}/" target="_blank"><i type="Button" class="svg matrix" title="Matrix"></i></a></li>{% endif -%}
+ {%- if social_config.twitter -%}
+ <li><a href="https://twitter.com/{{ social_config.twitter }}/" target="_blank"><i type="Button" class="svg twitter" title="Twitter"></i></a></li>{% endif -%}
+ {%- if social_config.facebook -%}
+ <li><a href="https://www.facebook.com/{{ social_config.facebook }}/" target="_blank"><i type="Button" class="svg facebook" title="Facebook"></i></a></li>{% endif -%}
+ {%- if social_config.linkedin -%}
+ <li><a href="https://www.linkedin.com/in/{{ social_config.linkedin }}/" target="_blank"><i type="Button" class="svg linkedin" title="LinkedIn"></i></a></li>{% endif -%}
+ {%- if social_config.researchgate -%}
+ <li><a href="https://www.researchgate.net/profile/{{ social_config.researchgate }}/" target="_blank"><i type="Button" class="svg researchgate" title="ResearchGate"></i></a></li>{% endif -%}
+ {%- if social_config.gitlab -%}
+ <li><a href="https://gitlab.com/{{ social_config.gitlab }}/" target="_blank"><i type="Button" class="svg gitlab" title="Gitlab"></i></a></li>{% endif -%}
+ {%- if social_config.github -%}
+ <li><a href="https://github.com/{{ social_config.github }}/" target="_blank"><i type="Button" class="svg github" title="Github"></i></a></li>{% endif -%}
+ {%- if social_config.bitbucket -%}
+ <li><a href="https://bitbucket.org/{{ social_config.bitbucket }}/" target="_blank"><i type="Button" class="svg bitbucket" title="Bitbucket"></i></a></li>{% endif -%}
+ {%- if social_config.python -%}
+ <li><a href="https://pypi.org/user/{{ social_config.python }}/" target="_blank"><i type="Button" class="svg python" title="Python"></i></a></li>{% endif -%}
+ {%- if social_config.docker -%}
+ <li><a href="https://hub.docker.com/u/{{ social_config.docker }}/" target="_blank"><i type="Button" class="svg docker" title="Docker"></i></a></li>{% endif -%}
+ {%- if social_config.stack -%}
+ <li><a href="https://stackoverflow.com/users/{{ social_config.stack }}/" target="_blank"><i type="Button" class="svg stack" title="Stack"></i></a></li>{% endif -%}
+ {%- if social_config.instagram -%}
+ <li><a href="https://www.instagram.com/{{ social_config.instagram }}/" target="_blank"><i type="Button" class="svg instagram" title="Instagram"></i></a></li>{% endif -%}
+ {%- if social_config.pinterest -%}
+ <li><a href="https://www.pinterest.com/{{ social_config.pinterest }}/" target="_blank"><i type="Button" class="svg pinterest" title="Pinterest"></i></a></li>{% endif -%}
+ {%- if social_config.twitch -%}
+ <li><a href="https://www.twitch.tv/{{ social_config.twitch }}/" target="_blank"><i type="Button" class="svg twitch" title="Twitch"></i></a></li>{% endif -%}
+ {%- if social_config.youtube -%}
+ <li><a href="https://www.youtube.com/channel/{{ social_config.youtube }}/" target="_blank"><i type="Button" class="svg youtube" title="YouTube"></i></a></li>{% endif -%}
+ {%- if social_config.buymeacoffee -%}
+ <li><a href="https://www.buymeacoffee.com/{{ social_config.buymeacoffee }}/" target="_blank"><i type="Button" class="svg buymeacoffee" title="Buy Me A Coffee"></i></a></li>{% endif -%}
+ {%- if social_config.github_sponsor -%}
+ <li><a href="https://github.com/sponsors/{{ social_config.github_sponsor }}/" target="_blank"><i type="Button" class="svg github-sponsor" title="GitHub Sponsor"></i></a></li>{% endif -%}
</ul>
</nav>
{%- endmacro %}