jekyll-theme-linky 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b0dd06ad68c8f55f4d3ce1a2f72b45ab0a5f9de85bb7cdb196395a9e0f3345d
4
- data.tar.gz: 411277bb15f72468cb5d73b6fe66abf51287e072a35890bae84719e1aaaf254f
3
+ metadata.gz: a9e873eb39e0429fcf86ac52c5f27f9336fad7eaacfee54da29c6ed4b08a9616
4
+ data.tar.gz: 39236108b4b7cd657d885485858705bbc459ecd7ef3aa99242b5ca75d59369a1
5
5
  SHA512:
6
- metadata.gz: a64d1ed14408f1340c84d348da5c3132d716de2bdff84c4022a9cc8c0c7de187781f95d55746f1ace21dcfdaea2a111588d4bfd6b57ab676051e65028ffddfa6
7
- data.tar.gz: 82a8f7c2f65dc00842466419dc3132c8626c9711e4f000428b9c3542bca1d0ad2e7d88044298f8212f3d50714c3a708c6c9778ea330664b9f49e2866e5933687
6
+ metadata.gz: 9fee19b2a6ac03b7ee37c729ea883a79a0d17d2d0ce4e9771d5473805e174b85c2759fb2b1954b96489514eea64b66f2a710827db4be9d7cb5a1ebb0f442eda7
7
+ data.tar.gz: 6bc62e5545229d60f674ea184307ef586670fd3a6256f5a698907605e48879c49ef8897092e9adfc46d1c8f3d1e123a2750c28b5292ac357b4ad7d7f06f90b15
data/README.md CHANGED
@@ -83,6 +83,24 @@ linky:
83
83
 
84
84
  These alter the page's background and foreground, and the background and foreground of each link "button".
85
85
 
86
+ ### rel=me links
87
+
88
+ Many IndieWeb sites will use [`rel="me"` links][relme] to verify related identities on different platforms. If the `add_rel_me_links` variable is defined as `true`, we'll incude appropriate headers for each social media site. So, given:
89
+
90
+ ```yml
91
+ github_username: mygithub
92
+ mastodon_username: @me@example.com
93
+
94
+ linky:
95
+ add_rel_me_links: true
96
+ ```
97
+
98
+ Our `<head>` element will include:
99
+
100
+ ```html
101
+ <link rel="me" href="https://github.com/mygithub" />
102
+ <link rel="me" href="https://example.com/@me" />
103
+ ```
86
104
 
87
105
  ### Link Metadata
88
106
 
@@ -172,3 +190,4 @@ The theme is available as open source under the terms of the [MIT License](https
172
190
  [admin-config]: https://github.com/paulroub/linky/blob/main/admin/config.yml
173
191
  [jekyll]: https://jekyllrb.com/
174
192
  [deploy]: https://app.netlify.com/start/deploy?repository=https://github.com/paulroub/linky&create_from_path=linky-template
193
+ [relme]: https://indieweb.org/rel-me
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
2
+ <svg width="800px"
3
+ height="800px"
4
+ viewBox="0 0 24 24"
5
+ fill="none"
6
+ class="stroked"
7
+ xmlns="http://www.w3.org/2000/svg">
8
+ <path d="M18.8943 4.34399C17.5183 3.71467 16.057 3.256 14.5317 3C14.3396 3.33067 14.1263 3.77866 13.977 4.13067C12.3546 3.89599 10.7439 3.89599 9.14391 4.13067C8.99457 3.77866 8.77056 3.33067 8.58922 3C7.05325 3.256 5.59191 3.71467 4.22552 4.34399C1.46286 8.41865 0.716188 12.3973 1.08952 16.3226C2.92418 17.6559 4.69486 18.4666 6.4346 19C6.86126 18.424 7.24527 17.8053 7.57594 17.1546C6.9466 16.92 6.34927 16.632 5.77327 16.2906C5.9226 16.184 6.07194 16.0667 6.21061 15.9493C9.68793 17.5387 13.4543 17.5387 16.889 15.9493C17.0383 16.0667 17.177 16.184 17.3263 16.2906C16.7503 16.632 16.153 16.92 15.5236 17.1546C15.8543 17.8053 16.2383 18.424 16.665 19C18.4036 18.4666 20.185 17.6559 22.01 16.3226C22.4687 11.7787 21.2836 7.83202 18.8943 4.34399ZM8.05593 13.9013C7.01058 13.9013 6.15725 12.952 6.15725 11.7893C6.15725 10.6267 6.98925 9.67731 8.05593 9.67731C9.11191 9.67731 9.97588 10.6267 9.95454 11.7893C9.95454 12.952 9.11191 13.9013 8.05593 13.9013ZM15.065 13.9013C14.0196 13.9013 13.1652 12.952 13.1652 11.7893C13.1652 10.6267 13.9983 9.67731 15.065 9.67731C16.121 9.67731 16.985 10.6267 16.9636 11.7893C16.9636 12.952 16.1317 13.9013 15.065 13.9013Z"
9
+ stroke-linejoin="round"/>
10
+ </svg>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" ?>
2
+ <!-- License: Logo. -->
3
+ <svg class="filled"
4
+ width="800px"
5
+ height="800px"
6
+ viewBox="0 0 64 64"
7
+ xmlns="http://www.w3.org/2000/svg">
8
+ <title/>
9
+ <path d="M44,7H20A13,13,0,0,0,7,20V44A13,13,0,0,0,20,57H44A13,13,0,0,0,57,44V20A13,13,0,0,0,44,7ZM33,55V38a1,1,0,0,0-1-1H27V31h5a1,1,0,0,0,1-1V22a5,5,0,0,1,5-5h8v6H42a3,3,0,0,0-3,3v4a1,1,0,0,0,1,1h6v6H40a1,1,0,0,0-1,1V55ZM55,44A11,11,0,0,1,44,55H41V39h6a1,1,0,0,0,1-1V30a1,1,0,0,0-1-1H41V26a1,1,0,0,1,1-1h5a1,1,0,0,0,1-1V16a1,1,0,0,0-1-1H38a7,7,0,0,0-7,7v7H26a1,1,0,0,0-1,1v8a1,1,0,0,0,1,1h5V55H20A11,11,0,0,1,9,44V20A11,11,0,0,1,20,9H44A11,11,0,0,1,55,20Z"/>
10
+ </svg>
data/_includes/head.html CHANGED
@@ -3,6 +3,7 @@
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1" />
5
5
  {%- seo -%}
6
+ {%- include relme.html -%}
6
7
 
7
8
  <link rel="stylesheet" href="/assets/styles.css" />
8
9
 
@@ -0,0 +1,64 @@
1
+ {%- if site.linky.add_rel_me_links -%}
2
+
3
+ {%- if site.tiktok_username -%}
4
+
5
+ <link rel="me" href="https://tiktok.com/@{{ site.tiktok_username }}" />
6
+
7
+ {%- endif -%}
8
+
9
+ {%- if site.github_username -%}
10
+
11
+ <link rel="me" href="https://github.com/{{ site.github_username }}" />
12
+
13
+ {%- endif -%} {%- if site.instagram_username -%}
14
+
15
+ <link rel="me" href="https://instagram.com/{{ site.instagram_username }}" />
16
+
17
+ {%- endif -%}
18
+
19
+
20
+ {%- if site.threads_username -%}
21
+
22
+ <link rel="me" href="https://threads.net/@{{ site.threads_username }}" />
23
+
24
+ {%- endif -%}
25
+
26
+ {%- if site.pinterest_username -%}
27
+
28
+ <link rel="me" href="https://pinterest.com/{{ site.pinterest_username }}" />
29
+
30
+ {%- endif -%}
31
+
32
+ {%- if site.mastodon_username -%}
33
+ {% comment %}
34
+ Be forgiving -- allow for the username to be entered with or without the leading @
35
+ {% endcomment %}
36
+
37
+ {% assign parts = site.mastodon_username | split: "@" %}
38
+ {% if parts.size == 3 %}
39
+ {% assign parts = parts | shift %}
40
+ {% endif %}
41
+
42
+ <link rel="me" href="https://{{ parts[1] }}/@{{ parts[0] }}"
43
+ />
44
+
45
+ {%- endif -%}
46
+
47
+ {%- if site.bluesky_username -%}
48
+ {% comment %}
49
+ Be forgiving -- allow bare handle (and add bsky.social) or use as-is if there's a dot
50
+ {% endcomment %}
51
+
52
+ {% assign parts = site.bluesky_username | split: "." %}
53
+
54
+ {% if parts.size == 1 %}
55
+ {% assign handle = site.bluesky_username | append: ".bsky.social" %}
56
+ {% else %}
57
+ {% assign handle = site.bluesky_username %}
58
+ {% endif %}
59
+
60
+ <link rel="me" href="https://bsky.app/profile/{{ handle }}" />
61
+
62
+ {%- endif -%}
63
+
64
+ {%- endif %}
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+ <svg version="1.1"
5
+ id="svg1"
6
+ width="144"
7
+ height="144"
8
+ viewBox="-10 -10 154 154"
9
+ xmlns:xlink="http://www.w3.org/1999/xlink"
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ xmlns:svg="http://www.w3.org/2000/svg"
12
+ class="filled">
13
+ <defs id="defs1" />
14
+ <g id="g1">
15
+ <path d="M 63,0.42437744 C 47.324165,2.4826508 24.096764,-2.8205872 11.185185,8.5293274 3.5178342,15.269318 2.4231489,27.48774 1.2854939,37 c -2.7668713,23.134613 -2.8526299,48.906898 0.2908949,72 1.2911058,9.48478 1.9994936,19.87299 9.5169762,26.78627 8.324363,7.6553 23.319809,7.09164 33.906635,7.21759 24.601242,0.29265 49.478561,2.35007 74,-1.30324 15.71114,-2.34071 21.1188,-14.38946 23.1304,-28.70062 3.21927,-22.902985 2.54364,-46.990921 0.95911,-70 -0.68079,-9.885773 -0.65822,-21.335197 -6.22299,-29.99614 C 126.44371,-3.2180481 98.39238,1.6784515 82,0.96064758 75.550179,0.67822266 69.497261,-0.4287262 63,0.42437744 M 50,11.285492 c 18.786186,-2.2165986 38.208725,0.624634 57,0.715271 7.54832,0.03641 18.33175,0.634186 23.35107,7.104179 C 136.04906,26.449745 135.99657,40.107964 136,49 c 0.007,18.409286 1.65309,37.74221 -0.71837,56 -0.84646,6.51692 -0.87971,14.44922 -4.93364,19.95602 -3.78447,5.14077 -9.47549,5.81907 -15.34799,6.61882 -23.995857,3.26796 -51.981209,4.00478 -76,0.84954 -7.580418,-0.99581 -17.85203,0.14096 -23.786265,-5.652 C 9.1832352,120.88545 9.6073771,110.76459 8.8310184,103 6.8210955,82.898178 6.8210945,61.10183 8.8310184,41 9.5958004,33.351189 9.4871902,23.219414 15.390432,17.394287 23.043156,9.8428345 40.125725,12.450562 50,11.285492 M 57,43 v 58 C 70.092285,97.433563 84.429932,81.520218 95,73 V 72 C 84.292091,62.144234 70.450684,48.686096 57,43 Z"
16
+ id="path1" />
17
+ </g>
18
+ </svg>
data/_layouts/links.html CHANGED
@@ -87,6 +87,27 @@ layout: default
87
87
  </li>
88
88
  {%- endif -%}
89
89
 
90
+ {%- if site.youtube_username -%}
91
+ <li class="social-link">
92
+ <a href="https://www.youtube.com/@{{ site.youtube_username }}"
93
+ >{% include youtube-logo.svg %}</a>
94
+ </li>
95
+ {%- endif -%}
96
+
97
+ {%- if site.facebook_username -%}
98
+ <li class="social-link">
99
+ <a href="https://www.facebook.com/{{ site.facebook_username }}"
100
+ >{% include facebook-logo.svg %}</a>
101
+ </li>
102
+ {%- endif -%}
103
+
104
+ {%- if site.discord_username -%}
105
+ <li class="social-link">
106
+ <a href="https://discord.gg/{{ site.discord_username }}"
107
+ >{% include discord-logo.svg %}</a>
108
+ </li>
109
+ {%- endif -%}
110
+
90
111
  {%- if site.telephone_number -%}
91
112
  <li class="social-link">
92
113
  <a href="tel:{{ site.telephone_number }}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-linky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Roub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-16 00:00:00.000000000 Z
11
+ date: 2025-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -65,7 +65,9 @@ files:
65
65
  - _includes/bluesky-logo.svg
66
66
  - _includes/cashapp-logo.svg
67
67
  - _includes/custom-head.html
68
+ - _includes/discord-logo.svg
68
69
  - _includes/email-logo.svg
70
+ - _includes/facebook-logo.svg
69
71
  - _includes/github-logo.svg
70
72
  - _includes/head.html
71
73
  - _includes/header.html
@@ -73,9 +75,11 @@ files:
73
75
  - _includes/mastodon-logo.svg
74
76
  - _includes/phone-logo.svg
75
77
  - _includes/pinterest-logo.svg
78
+ - _includes/relme.html
76
79
  - _includes/threads-logo.svg
77
80
  - _includes/tiktok-logo.svg
78
81
  - _includes/venmo-logo.svg
82
+ - _includes/youtube-logo.svg
79
83
  - _layouts/default.html
80
84
  - _layouts/links.html
81
85
  - _layouts/page.html