50 lines
3.5 KiB
HTML
50 lines
3.5 KiB
HTML
<a
|
|
target="_blank"
|
|
class="nerdlink"
|
|
href="{{ index . 1 }}">
|
|
{{ if eq (lower (index . 0)) "gitlab" }}
|
|

|
|
{{ else if eq (lower (index . 0)) "gnome" }}
|
|

|
|
{{ else if eq (lower (index . 0)) "youtube" }}
|
|

|
|
{{ else if eq (lower (index . 0)) "email" }}
|
|

|
|
{{ else if eq (lower (index . 0)) "twitter" }}
|
|

|
|
{{ else if eq (lower (index . 0)) "instagram" }}
|
|

|
|
{{ else if eq (lower (index . 0)) "facebook" }}
|
|

|
|
{{ else if eq (lower (index . 0)) "github" }}
|
|

|
|
{{ else if eq (lower (index . 0)) "linkedin" }}
|
|

|
|
{{ else if eq (lower (index . 0)) "telegram" }}
|
|

|
|
{{ else if eq (lower (index . 0)) "xmpp" }}
|
|
ﳽ
|
|
{{ else if eq (lower (index . 0)) "pleroma" }}
|
|
<svg class="pseudofont" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="m4.2344 3.1826e-6a1.2455 1.2455 0 0 0-1.2404 1.2455 1.2455 1.2455 0 0 0 0 0.00515v14.749h3.976v-16h-2.7305a1.2455 1.2455 0 0 0-0.00515 0zm4.7477 0v8h2.7784a1.2455 1.2455 0 0 0 1.2455-1.2455 1.2455 1.2455 0 0 0 0-0.00515v-6.7493zm0 12.024v3.976h2.7784a1.2455 1.2455 0 0 0 1.2455-1.2455 1.2455 1.2455 0 0 0 0-0.0051v-2.7254z" />
|
|
</svg>
|
|
{{ else if eq (lower (index . 0)) "peertube" }}
|
|
<svg class="pseudofont" width="16" height="16" version="1.1" viewBox="2799 -911 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="m2801-911v8l5.9998-3.9996zm5.9998 4.0004v7.9993l5.9998-3.9996-5.9998-4.0004zm-5.9998 3.9996v8l5.9998-3.9996z"/>
|
|
</svg>
|
|
{{ else if eq (lower (index . 0)) "mastodon" }}
|
|
<svg class="pseudofont" xmlns:svg="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16">
|
|
<path d="M 7.4779094,-1.598624e-6 C 5.5602384,0.0156984 3.7155894,0.2233384 2.6405814,0.7170384 c 0,0 -2.13206093,0.9537 -2.13206093,4.20766 0,0.74512 -0.01448,1.63603 0.0091,2.58084 0.07742,3.1821946 0.58336693,6.3183886 3.52553593,7.0971276 1.356568,0.359063 2.521335,0.434289 3.45936,0.382729 1.701085,-0.09431 2.6560206,-0.607063 2.6560206,-0.607063 l -0.05611,-1.234252 c 0,0 -1.2156316,0.383272 -2.5808476,0.33656 -1.352609,-0.04639 -2.780561,-0.145832 -2.999328,-1.80651 -0.0202,-0.145872 -0.03031,-0.301902 -0.03031,-0.465714 0,-10e-7 1.327834,0.324572 3.010574,0.40167 1.028943,0.0472 1.993827,-0.06028 2.9738766,-0.177218 1.879445,-0.224425 3.515901,-1.382448 3.721577,-2.4405646 0.32407,-1.666815 0.297376,-4.067605 0.297376,-4.067605 0,-3.25396 -2.131943,-4.20766 -2.131943,-4.20766 C 11.288476,0.2233384 9.4426784,0.0156784 7.5250084,-1.598624e-6 Z M 5.3076104,2.5424984 c 0.798781,0 1.403595,0.30701 1.803551,0.92113 l 0.388886,0.65181 0.388884,-0.65181 c 0.399875,-0.61412 1.00469,-0.92113 1.803551,-0.92113 0.6903266,0 1.2465526,0.24267 1.6713186,0.71609 0.411755,0.47342 0.61677,1.11337 0.61677,1.91862 v 3.939988 h -1.560986 v -3.824218 c 0,-0.80613 -0.339166,-1.21531 -1.0176126,-1.21531 -0.750129,0 -1.126049,0.48533 -1.126049,1.44509 v 2.09324 h -1.551753 v -2.09324 c 0,-0.95976 -0.376039,-1.44509 -1.126168,-1.44509 -0.678446,0 -1.017613,0.40918 -1.017613,1.21531 v 3.824218 h -1.560985 v -3.939988 c 0,-0.80525 0.205053,-1.4452 0.616889,-1.91862 0.424685,-0.47342 0.980911,-0.71609 1.671317,-0.71609 z" />
|
|
</svg>
|
|
{{ else if eq (lower (index . 0)) "phone" }}
|
|

|
|
{{ else if eq (lower (index . 0)) "rss" }}
|
|

|
|
{{ else }}
|
|
{{ index . 0 }}
|
|
{{ end }}
|
|
<span>
|
|
{{ index . 0 }}
|
|
</span>
|
|
</a>
|