mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-07-29 06:41:03 +00:00
Overhaul and revamp IM page (#192)
Co-Authored-By: Tommy <contact@tommytran.io> Co-Authored-By: Daniel Gray <dng@disroot.org>
This commit is contained in:
@@ -8,6 +8,40 @@
|
||||
<h2>{{ item.title }}</h2>
|
||||
{% if item.info %} <p class="badge rounded-pill bg-info"><i class="fad fa-info-circle"></i> {{ item.info }}</p>{% endif %}
|
||||
{% if item.warning %} <p class="badge rounded-pill bg-warning"><i class="fad fa-exclamation-triangle"></i> {{ item.warning }}</p>{% endif %}
|
||||
{% if item.labels %}
|
||||
<p>
|
||||
{% assign labels = item.labels | split:"|" %}
|
||||
{% for label in labels %}
|
||||
{% assign label_data = label | split:"::" %}
|
||||
{% for label_attr in label_data %}
|
||||
{% assign attr = label_attr | split:"==" %}
|
||||
{% if attr[0] == "color" %}
|
||||
{% assign color = attr[1] %}
|
||||
{% elsif attr[0] == "link" %}
|
||||
{% assign link = attr[1] %}
|
||||
{% elsif attr[0] == "text" %}
|
||||
{% assign text = attr[1] %}
|
||||
{% elsif attr[0] == "icon" %}
|
||||
{% assign icon = attr[1] %}
|
||||
{% elsif attr[0] == "tooltip" %}
|
||||
{% assign tooltip = attr[1] %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% include badge.html
|
||||
link=link
|
||||
color=color
|
||||
text=text
|
||||
icon=icon
|
||||
tooltip=tooltip
|
||||
%}
|
||||
{% assign color = nil %}
|
||||
{% assign link = nil %}
|
||||
{% assign text = nil %}
|
||||
{% assign icon = nil %}
|
||||
{% assign tooltip = nil %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
{{ item.description | markdownify }}
|
||||
{% if item.downloads %}<p>{% for platform in item.downloads %}
|
||||
<a href="{{ platform.url }}"><i class="{{ platform.icon }} fa-fw h2"></i></a>
|
||||
|
Reference in New Issue
Block a user