jekyll-theme-linky 0.2.4 → 0.2.5
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 +4 -4
- data/README.md +19 -0
- data/_includes/head.html +1 -0
- data/_includes/relme.html +64 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a991e8799243270fb4ceaf26d6d6f5510f7fc1e4f4df1f188b1a33a214c69e3b
|
4
|
+
data.tar.gz: c1be1f66547a24f86c10c4a858d6c9303d5c93e4138748fe839df3c059a97069
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0900779ccef0ae7006a76980a4cd0127abe010fd1936ef84bdbfe327752e8f54932950096a85850853a223de12b7c9908dd095203428632fa2d2e468d1adbf77'
|
7
|
+
data.tar.gz: 51531deb2580f6ed0544e4d5cabb1f973994a09176db2cc891c3170c3e30d2a0a5de19e217864cc17b90b2e61bf578a0fd46ff00b3710e902f26287d95d0464b
|
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
|
data/_includes/head.html
CHANGED
@@ -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 %}
|
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
|
+
version: 0.2.5
|
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-
|
11
|
+
date: 2024-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- _includes/mastodon-logo.svg
|
74
74
|
- _includes/phone-logo.svg
|
75
75
|
- _includes/pinterest-logo.svg
|
76
|
+
- _includes/relme.html
|
76
77
|
- _includes/threads-logo.svg
|
77
78
|
- _includes/tiktok-logo.svg
|
78
79
|
- _includes/venmo-logo.svg
|