decentralized-id.github.io/_layouts/companies.html

134 lines
6.6 KiB
HTML
Raw Normal View History

2023-02-10 02:17:01 -05:00
---
layout: single
---
2023-03-20 14:50:07 -04:00
{%assign todo = "feed,github" | split: ","%}
2023-02-10 02:17:01 -05:00
{%assign socials = "discord,crunchbase,linkedin,telegram,twitter,youtube" | split: ","%}
{%assign core = "docs,developers,app,forum,github" | split: ","%}
2023-03-20 14:50:07 -04:00
{%assign headers = "Company,Product,Meta,Ecosystem,Explainer,Standards,Policy,HowTo,Recap,Resources" | split: "," %}
2023-02-20 07:57:49 -05:00
{% for item in headers %}
{%assign mark=''%}
2023-05-25 17:57:15 -04:00
{% assign content = site.data.content | sort: 'date' | reverse %}
{%for row in content %}
2023-02-20 07:57:49 -05:00
{% if row.section == item and row.main == page.name and mark != 1 %}{%assign mark = 1%}<h2 id="{{item}}">{{item | capitalize}}</h2><ul>{%endif%}
{% if row.section == item and row.main == page.name %}
2023-03-20 14:50:07 -04:00
{%assign attributes = "location,region,policy,event,sector,industry,market,focus,projects,tech,standard" | split: "," %}
{% if row.section == "Company"%}<h3>Name: {{ row.title}}</h3>{%else%}<li><strong><a href="{{ row.link }}">{{ row.title }}</a></strong></br>{%endif%}
{% if row.section == "Company"%}<em>
<strong>Main:</strong> <em><a href="{{row.link}}">Website</a>, <a href="{{row.blog}}">Blog</a>,</em>
{% for item in row %}
{% if core contains item.first %}
{% if item.last != nil %}
<em><a href="{{ item.last }}">{{item.first | capitalize}}</a></em>,
{% endif %}
{% endif %}
{% endfor %}
<strong>Socials:</strong>
{% for item in row %}
{% if socials contains item.first %}
{% if item.last != nil %}
<em><a href="{{ item.last }}">{{item.first | capitalize}}</a></em>,
{% endif %}
{% endif %}
{% endfor %}
{% else %}<small>
{% endif %}
2023-02-20 07:57:49 -05:00
{% if row.related contains ';' %}
2023-03-20 14:50:07 -04:00
<strong>Related</strong>:{%assign related = row.related|split:';'%}
2023-02-20 07:57:49 -05:00
{%assign trekker = 0%}
{%for item in related%}
{%assign trekker = trekker | plus: 1%}
{%endfor%}
{%for item in related%}
{%if item != nil%} {{item|strip}}{%if trekker > 1%},{%assign trekker = trekker | minus: 1%}{%endif%}{%endif%}
{%endfor%}
{%elsif row.related == nil%}
{%else%}
2023-03-20 14:50:07 -04:00
<strong>Related</strong>: {{row.related}}
2023-02-20 07:57:49 -05:00
{%endif%}
{%if row.parent !=nil and row.parent != page.name%}<strong>Parent: </strong>{{row.parent}}{%endif%}
2023-03-20 14:50:07 -04:00
{% if row.type != "Company" %}<strong>Type: </strong>{{row.type|strip|capitalize}}{% endif %}
2023-02-20 07:57:49 -05:00
{% if row.founders !=nil%}
{% if row.founders contains ';' %}
2023-03-31 12:15:27 -04:00
<strong>{% if row.type == "Company" %}Founders{%else%}Authors{% endif %}</strong>{{ row.founders | replace: ";",", " | prepend: ": "}}
2023-02-20 07:57:49 -05:00
{% else %}
2023-03-31 12:15:27 -04:00
<strong>{% if row.type == "Company" %}Founder{%else%}Founder{% endif %}</strong>{{ row.founders | replace: ";",", " | prepend: ": "}}
2023-02-20 07:57:49 -05:00
{%endif%}
{%endif%}
2023-03-20 14:50:07 -04:00
{%if row.date != nil%} <strong>{% if row.type == "Company" %}Founded:{%else%}Date:{% endif %}</strong> {{row.date}}{%endif%}
2023-02-20 07:57:49 -05:00
{%for item in row%}
{%if attributes contains item.first and item.last != nil %}
{% if item.last contains ';' %}
<strong>{{item.first|capitalize}}:</strong>
{% assign ray = item.last | split: ';'%}
2023-03-31 12:15:27 -04:00
{%for item in ray %}{%if item != " "%} {{item|strip}}{% if forloop.last %}{% else %}, {% endif %}{%endif%}{%endfor%}
{% elsif item.last contains ',' %}
<strong>{{item.first|capitalize}}:</strong>
{% assign ray = item.last | split: ','%}
{%for item in ray %}{%if item != " "%} {{item|strip}}{% if forloop.last %}{% else %}, {% endif %}{%endif%}{%endfor%}
2023-02-20 07:57:49 -05:00
{%else%}
<strong>{{item.first|capitalize}}:</strong> {{item.last}}
{%endif%}
{%endif%}
{%endfor%}
2023-03-20 14:50:07 -04:00
{% if row.section == "Company"%}</em>{% else %}</small>{% endif %}
2023-02-20 07:57:49 -05:00
</li>
{% if row.text %}<blockquote>{{row.text | markdownify}}</blockquote>{%endif%}
{%endif%}
2023-02-10 02:17:01 -05:00
{% endfor %}
2023-02-20 07:57:49 -05:00
</ul>
{% endfor %}
{%for row in site.data.content%}
{% if row.main != page.name and row.related contains page.name %}
{% assign count = 1 %}
{%endif%}
{%endfor%}
{%if count == 1%}
<h2 id="related">Related</h2>
<p>From other pages on this site. (Beta)</p>
2023-02-10 02:17:01 -05:00
<ul>
2023-03-20 14:50:07 -04:00
{%assign attributes = "related,location,region,policy,event,sector,industry,market,focus,projects,tech,standard" | split: "," %}
2023-05-25 17:57:15 -04:00
{% assign content = site.data.content | sort: 'date' %}
{%for row in content %}
2023-03-20 14:50:07 -04:00
{% if row.main != page.name and row.related contains page.name %}
<li>Name: <strong><a href="{{ row.link }}">{{ row.title }}</a></strong><br>
<small>
{%if row.parent !=nil and row.parent != page.name%}<strong>Parent: </strong>{{row.parent}}{%endif%}
<strong>Type: </strong>{{row.type|strip|capitalize}}</small>
<small>
2023-02-20 07:57:49 -05:00
{% if row.founders !=nil%}
{% if row.founders contains ';' %}
2023-03-31 12:15:27 -04:00
<strong>Author(s)</strong>{{ row.founders | replace: ";",", " | prepend: ": "}}
2023-02-20 07:57:49 -05:00
{% else %}
<strong>Author</strong>{{row.founders | prepend: ": "}}
{%endif%}
{%endif%}
2023-03-31 12:15:27 -04:00
{% if row.related !=nil%}
{% if row.related contains ';' %}
<strong>Related</strong>{{ row.related | replace: ";",", " | prepend: ": "}}
{% else %}
<strong>Related</strong>{{row.related | prepend: ": "}}
{%endif%}
{%endif%}
2023-05-25 17:57:15 -04:00
{%if row.date != nil%} <strong>Date:</strong> {{row.date}}{%endif%}
2023-02-20 07:57:49 -05:00
{%for item in row%}
{%if attributes contains item.first and item.last != nil %}
{% if item.last contains ';' %}
<strong>{{item.first|capitalize}}:</strong>
{% assign ray = item.last | split: ';'%}
2023-03-31 12:15:27 -04:00
{%for item in ray %}{%if item != " "%} {{item|strip}}, {%endif%}{%endfor%}
{% elsif item.last contains ',' %}
<strong>{{item.first|capitalize}}:</strong>
{% assign ray = item.last | split: ','%}
{%for item in ray %}{%if item != " "%} {{item|strip}}, {%endif%}{%endfor%}
2023-02-20 07:57:49 -05:00
{%else%}
<strong>{{item.first|capitalize}}:</strong> {{item.last}}
{%endif%}
{%endif%}
{%endfor%}
2023-03-20 14:50:07 -04:00
</small>
</li>
{% if row.text %}<blockquote>{{row.text | markdownify}}</blockquote>{%endif%}
2023-02-20 07:57:49 -05:00
{%endif%}
{%endfor%}
2023-02-10 02:17:01 -05:00
</ul>
2023-03-20 14:50:07 -04:00
{%endif%}