jekyll-theme-linky 0.1.8 → 0.2.0

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: a4fdefe0beba28e3154cccea6973d0a46cfdbf8a792101e433a72df836514755
4
- data.tar.gz: 5b7b654bb432d8ac8ee71954577734ea30b94146c5bb27f15abfe5fbe75175c0
3
+ metadata.gz: 87546dfed605d1400fa3ade754c5186754a26227fba1fb7672b64bd84e3211f8
4
+ data.tar.gz: 279fa59d4db445e42484e5baae86c37e7729e13b446f2f49cfcb8d18bb50412e
5
5
  SHA512:
6
- metadata.gz: 5ec8b6c424a95c6562b5214e5ff27b9e113844bbf4d99854d657b6189393d24594179f4b488df61e90e2007c0dfdefc5bb9d0be63abe712a205bd975a3b20959
7
- data.tar.gz: 128a0b779a50f4adaec840312470324614d09f15216238b8a31fac902f6cb22e492ed3fd10f98e83c72c0a09dcd7bba0adababef11ab7a9f26692ac6ce40bc8d
6
+ metadata.gz: 4834778282e0ad0f34f8a0e0e1e541b2a517178bc04efc547e9d4ab908440bbdbc6513e37bec9ff1aae64c2ae9014b0044ad29d4645757824241fb727db2d64a
7
+ data.tar.gz: bce4765eac247680b85d53aa420a2f4948962847fb00b8ba85cd137fd1e240b43101a224d893767e680741b0fb09df8f38023bc945715ec87120d5cd8c7e8ef8
data/README.md CHANGED
@@ -9,13 +9,22 @@ A linktree-esque theme, built for static hosting and easy maintenance with [Deca
9
9
 
10
10
  ## Installation
11
11
 
12
- Add this line to your [Jekyll][jekyll] site's `Gemfile`:
12
+ ### Deploy to Netlify
13
+
14
+ To create a new repo and a linked Netlify site, ready to configure:
15
+
16
+ [![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)][deploy]
17
+
18
+
19
+ ### Manually add this theme
20
+
21
+ To use this theme with an existing (probably bare) Jekyll site, add this line to your [Jekyll][jekyll] site's `Gemfile`:
13
22
 
14
23
  ```ruby
15
24
  gem "jekyll-theme-linky"
16
25
  ```
17
26
 
18
- And add this line to your Jekyll site's `_config.yml`:
27
+ And add this line to your Jekyll site's `_config.yml` (or replace any other `theme` configuration):
19
28
 
20
29
  ```yaml
21
30
  theme: jekyll-theme-linky
@@ -162,3 +171,4 @@ The theme is available as open source under the terms of the [MIT License](https
162
171
  [admin]: https://github.com/paulroub/linky/blob/main/admin/
163
172
  [admin-config]: https://github.com/paulroub/linky/blob/main/admin/config.yml
164
173
  [jekyll]: https://jekyllrb.com/
174
+ [deploy]: https://app.netlify.com/start/deploy?repository=https://github.com/paulroub/linky&create_from_path=linky-template
data/_config.yml CHANGED
@@ -1,32 +1,12 @@
1
- # Welcome to Jekyll!
2
- #
3
- # This config file is meant for settings that affect your whole blog, values
4
- # which you are expected to set up once and rarely edit after that. If you find
5
- # yourself editing this file very often, consider using Jekyll's data files
6
- # feature for the data you need to update frequently.
7
- #
8
- # For technical reasons, this file is *NOT* reloaded automatically when you use
9
- # 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10
- #
11
- # If you need help with YAML syntax, here are some quick references for you:
12
- # https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
13
- # https://learnxinyminutes.com/docs/yaml/
14
- #
15
- # Site settings
16
- # These are used to personalize your new site. If you look in the HTML files,
17
- # you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
18
- # You can create any custom variable you would like, and they will be accessible
19
- # in the templates via {{ site.myvariable }}.
20
-
21
1
  title: Linky
22
2
  subheads:
23
3
  - "A Linktree-esque Jekyll theme, compatible with Decap CMS."
24
4
 
25
5
  email: paul@roub.net
26
- description: >- # this means to ignore newlines until "baseurl:"
6
+ description: >-
27
7
  A Linktree-esque Jekyll theme, compatible with Decap CMS.
28
- baseurl: "" # the subpath of your site, e.g. /blog
29
- url: "" # the base hostname & protocol for your site, e.g. http://example.com
8
+ baseurl: ""
9
+ url: "https://linky.roub.net"
30
10
  github_username: paulroub
31
11
 
32
12
  plausible_io: linky.roub.net
@@ -39,6 +19,9 @@ plugins:
39
19
  exclude:
40
20
  - VERSION
41
21
  - bin
22
+ - linky.gemspec
23
+ - netlify.toml
24
+ - package*.json
42
25
 
43
26
  linky:
44
27
  body_background: "#030303"
@@ -48,3 +31,8 @@ linky:
48
31
 
49
32
  collections:
50
33
  - links
34
+
35
+ # tell the jekyll-feed plugin to include the links collection
36
+ feed:
37
+ collections:
38
+ - links
@@ -0,0 +1,11 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"
2
+ width="24"
3
+ height="24"
4
+ viewBox="0 0 24 24"
5
+ fill="none"
6
+ stroke-width="1"
7
+ stroke-linecap="round"
8
+ stroke-linejoin="round"
9
+ class="stroked">
10
+ <path d="M6.335 5.144c-1.654 -1.199 -4.335 -2.127 -4.335 .826c0 .59 .35 4.953 .556 5.661c.713 2.463 3.13 2.75 5.444 2.369c-4.045 .665 -4.889 3.208 -2.667 5.41c1.03 1.018 1.913 1.59 2.667 1.59c2 0 3.134 -2.769 3.5 -3.5c.333 -.667 .5 -1.167 .5 -1.5c0 .333 .167 .833 .5 1.5c.366 .731 1.5 3.5 3.5 3.5c.754 0 1.637 -.571 2.667 -1.59c2.222 -2.203 1.378 -4.746 -2.667 -5.41c2.314 .38 4.73 .094 5.444 -2.369c.206 -.708 .556 -5.072 .556 -5.661c0 -2.953 -2.68 -2.025 -4.335 -.826c-2.293 1.662 -4.76 5.048 -5.665 6.856c-.905 -1.808 -3.372 -5.194 -5.665 -6.856z" />
11
+ </svg>
@@ -10,3 +10,12 @@
10
10
  <link rel="apple-touch-icon" href="/apple-touch-icon.png">
11
11
 
12
12
  <meta property="og:image" content="https://linky.roub.net/images/linky-home.png" />
13
+
14
+ {% comment %}
15
+ Show only the Atom feed for our links, since that's all *this* site uses. If you were also using a feed for blog posts,
16
+ you could just use the feed_meta tag to reference both feeds.
17
+
18
+ jekyll-feed does not currently have a way to combine the two.
19
+ {% endcomment %}
20
+
21
+ <link rel="alternate" type="application/atom+xml" title="Atom Feed for {{ site.title }}" href="{{ "/feed/links.xml" | relative_url }}" />
data/_includes/head.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <meta charset="utf-8" />
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1" />
5
- {%- seo -%} {%- feed_meta -%}
5
+ {%- seo -%}
6
6
 
7
7
  <link rel="stylesheet" href="/assets/styles.css" />
8
8
 
data/_layouts/links.html CHANGED
@@ -69,6 +69,24 @@ layout: default
69
69
  </li>
70
70
  {%- endif -%}
71
71
 
72
+ {%- if site.bluesky_username -%}
73
+ {% comment %}
74
+ Be forgiving -- allow bare handle (and add bsky.social) or use as-is if there's a dot
75
+ {% endcomment %}
76
+
77
+ {% assign parts = site.bluesky_username | split: "." %}
78
+
79
+ {% if parts.size == 1 %}
80
+ {% assign handle = site.bluesky_username | append: ".bsky.social" %}
81
+ {% else %}
82
+ {% assign handle = site.bluesky_username %}
83
+ {% endif %}
84
+ <li class="social-link">
85
+ <a href="https://bsky.app/profile/{{ handle }}"
86
+ >{% include bluesky-logo.svg %}</a>
87
+ </li>
88
+ {%- endif -%}
89
+
72
90
  {%- if site.cashapp_username -%}
73
91
  <li class="social-link">
74
92
  <a href="https://cash.app/${{ site.cashapp_username }}"
@@ -88,8 +106,21 @@ layout: default
88
106
 
89
107
  <ul class="links">
90
108
 
109
+
91
110
  {% assign current_date = site.time | date: "%Y-%m-%d" %}
92
- {% assign valid_links = site.links | where_exp: "link", "link.expires == nil or link.expires >= current_date" %}
111
+
112
+ {% assign valid_links = '' | split: '' %}
113
+
114
+ {% for link in site.links %}
115
+ {% if link.expires and link.expires != nil %}
116
+ {% assign exp_date = link.expires | date: "%Y-%m-%d" %}
117
+ {% if exp_date > current_date %}
118
+ {% assign valid_links = valid_links | push: link %}
119
+ {% endif %}
120
+ {% else %}
121
+ {% assign valid_links = valid_links | push: link %}
122
+ {% endif %}
123
+ {% endfor %}
93
124
 
94
125
  {% assign priorities = valid_links | sort: "priority" | group_by: 'priority' %}
95
126
 
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.1.8
4
+ version: 0.2.0
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-10-25 00:00:00.000000000 Z
11
+ date: 2024-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -63,6 +63,7 @@ files:
63
63
  - README.md
64
64
  - _config.yml
65
65
  - _includes/analytics.html
66
+ - _includes/bluesky-logo.svg
66
67
  - _includes/cashapp-logo.svg
67
68
  - _includes/custom-head.html
68
69
  - _includes/email-logo.svg