add linkedin
This commit is contained in:
parent
fabceff8d3
commit
b32d526a3e
3 changed files with 4 additions and 2 deletions
|
@ -11,7 +11,8 @@
|
||||||
(print "linen"))) }}<!---->
|
(print "linen"))) }}<!---->
|
||||||
|
|
||||||
<!-- social_list -->
|
<!-- social_list -->
|
||||||
{{ $social_params := slice "twitter" "github" "instagram" "mastodon" "rss" }}<!---->
|
{{ $social_params := slice "twitter" "github" "instagram" "linkedin" "mastodon"
|
||||||
|
"rss" }}<!---->
|
||||||
{{ range $social_params }}<!---->
|
{{ range $social_params }}<!---->
|
||||||
{{ if isset site.Params . }}<!---->
|
{{ if isset site.Params . }}<!---->
|
||||||
{{ $.Scratch.Add "social_list" (slice .) }}<!---->
|
{{ $.Scratch.Add "social_list" (slice .) }}<!---->
|
||||||
|
|
|
@ -86,7 +86,7 @@
|
||||||
<a
|
<a
|
||||||
class="h-8 w-8 text-[0] [background:var(--url)_center_center/cover_no-repeat] lg:h-6 lg:w-6"
|
class="h-8 w-8 text-[0] [background:var(--url)_center_center/cover_no-repeat] lg:h-6 lg:w-6"
|
||||||
style="--url: url(./{{ . }}.svg)"
|
style="--url: url(./{{ . }}.svg)"
|
||||||
href="{{ if eq . `rss` }}{{ `index.xml` | absURL }}{{ else if eq . `mastodon` }}{{ index site.Params . }}{{ else }}https://{{ . }}.com/{{ index site.Params . }}{{ end }}"
|
href="{{ if eq . `rss` }}{{ `index.xml` | absURL }}{{ else if eq . `mastodon` }}{{ index site.Params . }}{{ else }}https://{{ . }}.com/{{ if eq . `linkedin` }}in/{{ end }}{{ index site.Params . }}{{ end }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="{{ if eq . `rss` }}alternate{{ else }}me{{ end }}"
|
rel="{{ if eq . `rss` }}alternate{{ else }}me{{ end }}"
|
||||||
>
|
>
|
||||||
|
|
1
static/linkedin.svg
Normal file
1
static/linkedin.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="2 2 46 46"><path d="M41,4H9C6.24,4,4,6.24,4,9v32c0,2.76,2.24,5,5,5h32c2.76,0,5-2.24,5-5V9C46,6.24,43.76,4,41,4z M17,20v19h-6V20H17z M11,14.47c0-1.4,1.2-2.47,3-2.47s2.93,1.07,3,2.47c0,1.4-1.12,2.53-3,2.53C12.2,17,11,15.87,11,14.47z M39,39h-6c0,0,0-9.26,0-10 c0-2-1-4-3.5-4.04h-0.08C27,24.96,26,27.02,26,29c0,0.91,0,10,0,10h-6V20h6v2.56c0,0,1.93-2.56,5.81-2.56 c3.97,0,7.19,2.73,7.19,8.26V39z"/></svg>
|
After Width: | Height: | Size: 449 B |
Loading…
Reference in a new issue