jekyll-theme-linky 0.2.5 → 0.2.7

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: a991e8799243270fb4ceaf26d6d6f5510f7fc1e4f4df1f188b1a33a214c69e3b
4
- data.tar.gz: c1be1f66547a24f86c10c4a858d6c9303d5c93e4138748fe839df3c059a97069
3
+ metadata.gz: f45457eb1046edb874bcfc978af6ea1ad2ea75550c68f59794de1eafd4cebe3d
4
+ data.tar.gz: 73e99e3f1b17b2aa6b06c573649e9cdc9f042d89d57bddbc405a3adcbd8efe48
5
5
  SHA512:
6
- metadata.gz: '0900779ccef0ae7006a76980a4cd0127abe010fd1936ef84bdbfe327752e8f54932950096a85850853a223de12b7c9908dd095203428632fa2d2e468d1adbf77'
7
- data.tar.gz: 51531deb2580f6ed0544e4d5cabb1f973994a09176db2cc891c3170c3e30d2a0a5de19e217864cc17b90b2e61bf578a0fd46ff00b3710e902f26287d95d0464b
6
+ metadata.gz: dce3a2f66bdbc8e39a359f8da43f730304f123c8ab3406ecf1dcae17cd9e73505f108f69f78055c6befe756b252c4245eb99514d4c640eec52a3689f5272aa09
7
+ data.tar.gz: 6300adae45ccb504721d1d2de1e84e834af9eff7fd3898eb71f823194b70fa7c4c3d5f103ef1c11082c529a032b526f7e04c5f9828138c77606422763555bdd4
data/README.md CHANGED
@@ -113,6 +113,7 @@ image: "/images/example.jpg"
113
113
  title: 'My link test'
114
114
  priority: 5
115
115
  expires: 2024-11-11
116
+ category: 'Example'
116
117
  ---
117
118
  ```
118
119
 
@@ -140,6 +141,11 @@ expires: 2024-11-11
140
141
 
141
142
  Note that this will only take effect on a rebuild; there's no runtime JavaScript, etc. to disable a link that's already been deployed.
142
143
 
144
+ - `category`
145
+
146
+ Links will be grouped by category (if any). Items without a category field will be grouped together at the
147
+ top of the list; other items will be separated by category headers.
148
+
143
149
 
144
150
  ## Update Links with Decap CMS
145
151
 
@@ -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>
@@ -0,0 +1,39 @@
1
+
2
+ {% assign link_list = include.link_list %}
3
+ {% assign collection_title = include.title | default: "" %}
4
+
5
+
6
+ {% if collection_title != "" %}
7
+ <h2 class="section-header">{{ collection_title }}</h2>
8
+ {% endif %}
9
+
10
+ <ul class="links">
11
+ {% assign current_date = site.time | date: "%Y-%m-%d" %}
12
+
13
+ {% assign valid_links = '' | split: '' %}
14
+
15
+ {% for link in link_list %}
16
+ {% if link.expires and link.expires != nil %}
17
+ {% assign exp_date = link.expires | date: "%Y-%m-%d" %}
18
+ {% if exp_date > current_date %}
19
+ {% assign valid_links = valid_links | push: link %}
20
+ {% endif %}
21
+ {% else %}
22
+ {% assign valid_links = valid_links | push: link %}
23
+ {% endif %}
24
+ {% endfor %}
25
+
26
+ {% assign priorities = valid_links | sort: "priority" | group_by: 'priority' %}
27
+
28
+ {% for priority in priorities %}
29
+ {% assign sorted_links = priority.items | sort: 'title' %}
30
+
31
+ {% for link in sorted_links %}
32
+ <li class="link" data-priority="{{ link.priority }}">
33
+ <a href="{{ link.link }}">
34
+ <img src="{{ link.image | default: "/assets/link-default.svg" }}" class="link-logo" alt="{{ link.title }}"> </a>
35
+ <a class="link-desc" href="{{ link.link }}">{{ link.title }}</a>
36
+ </li>
37
+ {% endfor %}
38
+ {% endfor %}
39
+ </ul>
@@ -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 }}"
@@ -111,38 +132,18 @@ layout: default
111
132
  <h1 class="page-heading">{{ page.title }}</h1>
112
133
  {%- endif -%}
113
134
 
114
- <ul class="links">
115
-
116
-
117
- {% assign current_date = site.time | date: "%Y-%m-%d" %}
118
-
119
- {% assign valid_links = '' | split: '' %}
120
-
121
- {% for link in site.links %}
122
- {% if link.expires and link.expires != nil %}
123
- {% assign exp_date = link.expires | date: "%Y-%m-%d" %}
124
- {% if exp_date > current_date %}
125
- {% assign valid_links = valid_links | push: link %}
126
- {% endif %}
127
- {% else %}
128
- {% assign valid_links = valid_links | push: link %}
129
- {% endif %}
130
- {% endfor %}
131
-
132
- {% assign priorities = valid_links | sort: "priority" | group_by: 'priority' %}
133
-
134
- {% for priority in priorities %}
135
- {% assign sorted_links = priority.items | sort: 'title' %}
135
+ {%- assign uncategorized_links = site.links | where_exp: "link", "link.category == nil" -%}
136
+ {%- if uncategorized_links.size > 0 -%}
137
+ {% include link-category.html link_list=uncategorized_links %}
138
+ {%- endif -%}
136
139
 
137
- {% for link in sorted_links %}
138
- <li class="link" data-priority="{{ link.priority }}">
139
- <a href="{{ link.link }}">
140
- <img src="{{ link.image | default: "/assets/link-default.svg" }}" class="link-logo" alt="{{ link.title }}"> </a>
141
- <a class="link-desc" href="{{ link.link }}">{{ link.title }}</a>
142
- </li>
143
- {% endfor %}
144
- {% endfor %}
145
- </ul>
140
+ {%- assign categories = site.links | map: "category" | uniq | where_exp: "category", "category != nil" -%}
141
+ {%- for category in categories -%}
142
+ {%- assign categorized_links = site.links | where: "category", category -%}
143
+ {%- if categorized_links.size > 0 -%}
144
+ {% include link-category.html link_list=categorized_links title=category %}
145
+ {%- endif -%}
146
+ {%- endfor -%}
146
147
 
147
148
  {{ content }}
148
149
  </div>
data/_sass/linky.scss CHANGED
@@ -108,7 +108,7 @@ li.link {
108
108
  min-width: 150px;
109
109
  max-width: 600px;
110
110
  background-color: var(--button-background);
111
- padding: 0.5em;
111
+ padding: 0.5em 2.5em 0.5em 0.5em;
112
112
  border-radius: 1em;
113
113
  cursor: pointer;
114
114
  text-align: center;
@@ -165,3 +165,14 @@ h1 {
165
165
  margin: 0 auto;
166
166
  text-align: center;
167
167
  }
168
+
169
+ .section-header {
170
+ margin: 0 20px;
171
+ font-weight: normal;
172
+ text-align: center;
173
+ font-size: 125%;
174
+ }
175
+
176
+ .link:first-child {
177
+ margin-top: 0.5rem;
178
+ }
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.5
4
+ version: 0.2.7
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-23 00:00:00.000000000 Z
11
+ date: 2025-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -65,11 +65,14 @@ 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
72
74
  - _includes/instagram-logo.svg
75
+ - _includes/link-category.html
73
76
  - _includes/mastodon-logo.svg
74
77
  - _includes/phone-logo.svg
75
78
  - _includes/pinterest-logo.svg
@@ -77,6 +80,7 @@ files:
77
80
  - _includes/threads-logo.svg
78
81
  - _includes/tiktok-logo.svg
79
82
  - _includes/venmo-logo.svg
83
+ - _includes/youtube-logo.svg
80
84
  - _layouts/default.html
81
85
  - _layouts/links.html
82
86
  - _layouts/page.html