Add option to left-align subproject badges
This commit is contained in:
parent
44b90cbfae
commit
9f538c804d
@ -113,6 +113,9 @@ show_backlinks = true
|
|||||||
# Hide the tags in the subprojects list.
|
# Hide the tags in the subprojects list.
|
||||||
# hide_subproject_tags = true
|
# hide_subproject_tags = true
|
||||||
#
|
#
|
||||||
|
# Left-align badges in the subprojects list.
|
||||||
|
# left_align_badges = true
|
||||||
|
#
|
||||||
# Whether to use Content Security Policy.
|
# Whether to use Content Security Policy.
|
||||||
# Keep in mind that although this can potentially increase security,
|
# Keep in mind that although this can potentially increase security,
|
||||||
# it can break some stuff, in which case you will need to set custom policy.
|
# it can break some stuff, in which case you will need to set custom policy.
|
||||||
|
|||||||
@ -36,7 +36,14 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
margin: 20px;
|
margin: 20px;
|
||||||
right: 0;
|
|
||||||
background-color: var(--bg-color)
|
background-color: var(--bg-color)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.badge:not(#left-align-badge) {
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#left-align-badge {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<a href="{{ page.permalink | safe }}"></a>
|
<a href="{{ page.permalink | safe }}"></a>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{% if page.extra.badge %}
|
{% if page.extra.badge %}
|
||||||
<span class="badge subproject-badge">
|
<span id="{%- if config.extra.left_align_badges -%}left-align-badge{%- endif -%}" class="badge subproject-badge">
|
||||||
{{ page.extra.badge }}
|
{{ page.extra.badge }}
|
||||||
</span>
|
</span>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user