mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 00:16:21 +00:00
e5f5fb1038
* You can now disable using icons in home's footer links by setting "home_icons" to false in _globals.njk. * Renamed "meta" block to "opengraph" in _layout.njk, since the block only represents opengraph tags anyways. * Moved noscript warning to its own file at views/_partial/noscript.njk. It's also now being included in dashboard and auth pages. * No-JS uploader will no longer use icons in its footer links. It will also no longer load fontello.css. * Updated static files' version string in _globals.njk. * Some other tweaks, mainly to get no-icons mode to work properly.
34 lines
963 B
Plaintext
34 lines
963 B
Plaintext
{% if plain_links or not globals.home_icons %}
|
|
{% set separator = (joiner('<span>|</span>')) %}
|
|
{% endif %}
|
|
|
|
{% macro attrs(obj) %}
|
|
{% set space = joiner(' ') %}
|
|
{% for id, val in obj -%}
|
|
{{ space() }}{{ id }}="{{ val }}"
|
|
{%- endfor %}
|
|
{% endmacro %}
|
|
|
|
<div class="columns is-gapless">
|
|
<div class="column is-hidden-mobile"></div>
|
|
<div class="column">
|
|
<div id="linksColumn" class="columns is-mobile is-multiline is-centered {{ "is-gapless" if separator }}">
|
|
{% for link in globals.home_links -%}
|
|
{{ (separator() | safe) if separator }}
|
|
<div class="column is-narrow">
|
|
<a {{ attrs(link.attrs) | trim }}>
|
|
{% if separator -%}
|
|
{{ link.attrs.title }}
|
|
{%- else -%}
|
|
<span class="icon is-medium">
|
|
<i class="{{ link.icon }}"></i>
|
|
</span>
|
|
{%- endif %}
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<div class="column is-hidden-mobile"></div>
|
|
</div>
|