jekyll-theme-linky 0.1.7 → 0.1.9

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: 60bc12de84a34f618ee5f62e94107e5ebf57199e04f88e73a721cbbc5e278c56
4
- data.tar.gz: 754dc157f6d069586b78f6a948c9c73513d41e180cac0d7878065b8981978f57
3
+ metadata.gz: 561940a8bec403bfff7af22f4fff34be7e73015aa41583d3280f72c485a575ae
4
+ data.tar.gz: ca0c39420b76d956038c99ab5ac9e4dc9f7618122c305043445a6085cdde56a3
5
5
  SHA512:
6
- metadata.gz: 8e7bc86dc708592c5acb48c42b4c70966cfdc962fc0efb38716542eccfd66645d7c56032a96b42ca098a35bddefb49fd96c4ec6b3c523d8ce9eff1c54674e034
7
- data.tar.gz: 95109487eee7152bf880aabef5124b5681a2d9f2f0470c8142e66e97d6dcb50e717b91187194974b85e96b73152724a0eced26d032081c1b638aae8c8e99217b
6
+ metadata.gz: 541346015610c59e4980c260fbe92b3c3b245fe354197f662e9a910a0c35cc94e723ab1a0b40d3bbf8570982dc90d14c88a3f24064d4afdd415c17773de3c601
7
+ data.tar.gz: 535d8e4819a4ffad0931f6b540c33ef1d5224f18d9b5d1f9911037bc0c773432677b903602dc5a36b48dd3a94ac46d062eb054748a0464c5a0c360ce0994cfc3
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
@@ -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
 
@@ -1,21 +1,8 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <svg width="800px"
3
- height="800px"
4
- viewBox="0 0 48 48"
5
- xmlns="http://www.w3.org/2000/svg"
6
- class="stroked">
1
+ <svg xmlns="http://www.w3.org/2000/svg"
2
+ viewBox="0 0 24 24"
3
+ id="mastodon"
4
+ class="filled">
7
5
  <title>Mastodon</title>
8
- <path fill="none"
9
- stroke-linecap="round"
10
- stroke-linejoin="round"
11
- stroke-width="2"
12
- d="M41.0662,20.4015c0,6.2578-.9723,8.3975-2.8838,10.19C34.3081,34.2257,24,33.9433,24,33.9433a40.2923,40.2923,0,0,1-7.0141-.5285S15.86,40.829,30.09,37.1931l-.1445,4.2408c-2.1685.29-22.807,7.92-22.956-18.657l-.056-2.3759c0-6.2578.05-8.4823,2.8838-11.611C13.3831,4.8527,24,5.3547,24,5.3547s10.617-.502,14.182,3.4353c2.8336,3.129,2.8838,5.3535,2.8838,11.611"/>
13
- <path stroke-linecap="round"
14
- stroke-linejoin="round"
15
- stroke-width="2"
16
- d="M24,23.3125V17.3351a4.6542,4.6542,0,0,0-4.6543-4.6542h0a4.6542,4.6542,0,0,0-4.6542,4.6542v9.6463"/>
17
- <path stroke-linecap="round"
18
- stroke-linejoin="round"
19
- stroke-width="2"
20
- d="M24,17.3351a4.6542,4.6542,0,0,1,4.6543-4.6542h0a4.6542,4.6542,0,0,1,4.6542,4.6542v9.6463"/>
21
- </svg>
6
+ <path d="M11.178 24c-1.449 0-2.958-.209-4.499-.626C.965 21.828.985 14.709 1.001 8.989l.002-.938c0-5.25 3.35-6.842 3.493-6.907 3.226-1.51 11.788-1.51 15.014.002.138.063 3.488 1.655 3.488 6.905.001.146.035 3.755-.461 6.332-.371 1.925-3.071 3.783-6.019 4.143l-.243.031c-1.248.166-4.451.588-8.258-.232l.001.01c.267 2.046 1.836 2.26 4.024 2.337 1.932.073 3.687-.488 3.705-.494a.502.502 0 0 1 .652.454l.086 1.895a.5.5 0 0 1-.259.461c-.062.034-1.562.841-4.197.989a15.97 15.97 0 0 1-.851.023zm.823-22.995c-2.797 0-5.594.349-7.085 1.047-.121.057-2.913 1.42-2.913 5.999l-.001.941c-.016 5.658-.035 12.071 4.938 13.417 1.74.47 3.435.664 5.031.568 1.774-.1 2.987-.525 3.5-.742l-.042-.937c-.731.176-2.021.415-3.42.372-1.827-.065-4.585-.163-4.981-3.207a5.82 5.82 0 0 1-.049-.778.5.5 0 0 1 .621-.486c3.911.976 7.278.533 8.546.365l.252-.032c2.725-.332 4.906-2.026 5.158-3.34.477-2.477.444-6.101.443-6.137 0-4.585-2.792-5.948-2.911-6.004-1.49-.697-4.288-1.046-7.087-1.046z"></path>
7
+ <path d="M18.728 14.979h-2.344a.5.5 0 0 1-.5-.5V8.616c0-1.51-1.245-1.704-1.809-1.031-.266.316-.407.796-.407 1.385v3.209a.5.5 0 0 1-.5.5h-2.327a.5.5 0 0 1-.5-.5V8.97c0-.589-.141-1.068-.407-1.385-.563-.672-1.808-.478-1.808 1.031v5.862a.5.5 0 0 1-.5.5H5.279a.5.5 0 0 1-.5-.5c0-1.082-.008-2.016-.015-2.829-.033-3.984-.042-5.186 1.059-6.478l.004-.006c.77-.877 2.01-1.362 3.229-1.27 1.161.089 2.176.688 2.785 1.645l.161.276.151-.26a3.589 3.589 0 0 1 2.791-1.66c1.228-.091 2.463.392 3.233 1.269 1.109 1.306 1.099 2.502 1.064 6.464a318.85 318.85 0 0 0-.015 2.85.497.497 0 0 1-.498.5zm-12.949-.5h.01-.01zm11.105-.5h1.344c.002-.886.009-1.666.015-2.358.032-3.771.041-4.785-.822-5.802-.561-.639-1.477-.994-2.399-.925-.854.065-1.57.485-2.014 1.184l-.573.984a.502.502 0 0 1-.864 0l-.583-1.001c-.434-.682-1.151-1.103-2.008-1.168-.915-.067-1.833.287-2.398.929-.857 1.008-.849 2.03-.817 5.82.006.687.012 1.461.014 2.337h1.347V8.616c0-1.58 1.032-2.407 2.052-2.407.577 0 1.132.267 1.523.732.419.5.641 1.201.641 2.028v2.709h1.327V8.97c0-.827.222-1.528.641-2.028a1.995 1.995 0 0 1 1.523-.732c1.02 0 2.052.827 2.052 2.407v5.362z"></path>
8
+ </svg>
data/_layouts/links.html CHANGED
@@ -88,8 +88,21 @@ layout: default
88
88
 
89
89
  <ul class="links">
90
90
 
91
+
91
92
  {% 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" %}
93
+
94
+ {% assign valid_links = '' | split: '' %}
95
+
96
+ {% for link in site.links %}
97
+ {% if link.expires and link.expires != nil %}
98
+ {% assign exp_date = link.expires | date: "%Y-%m-%d" %}
99
+ {% if exp_date > current_date %}
100
+ {% assign valid_links = valid_links | push: link %}
101
+ {% endif %}
102
+ {% else %}
103
+ {% assign valid_links = valid_links | push: link %}
104
+ {% endif %}
105
+ {% endfor %}
93
106
 
94
107
  {% assign priorities = valid_links | sort: "priority" | group_by: 'priority' %}
95
108
 
data/_sass/linky.scss CHANGED
@@ -25,6 +25,8 @@ $linky_social_button_color: #fff !default;
25
25
  svg {
26
26
  height: var(--social-button-size);
27
27
  width: var(--social-button-size);
28
+ max-width: 100%;
29
+ aspect-ratio: 1 / 1;
28
30
 
29
31
  &.filled {
30
32
  path {
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.7
4
+ version: 0.1.9
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-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll