jekyll-theme-linky 0.1.2 → 0.1.4

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: 27af5bc99da98b31436165534ede095c02dbd8faf9c743b1e67889d66983919e
4
- data.tar.gz: b5a3a4b60b5b08814dee425f3c69553d60082d32a31c76bf4f9e4b9f06e71ad8
3
+ metadata.gz: f838812b715eedb7c3f2cb72465ae1539afc5503183f8a6929607588766c33f8
4
+ data.tar.gz: 27ae92dab7bbbec486656bbccab854932c25022bd977cd61c663ba51978e4429
5
5
  SHA512:
6
- metadata.gz: f16cc7b9a2cebee1c4714c6031d2802bf386593b33d6b5b42cc59c9cf61bf79da3925e9b66c6d42d0297195a2b008adf9a35773603d79ed87f8ae6b7c9721a99
7
- data.tar.gz: bdf68557fd13cd9037a5467986f9ff9b2b0f11b18ba6ce9fca8e41e2a8155b3b96bdb3c74a92afab9f7a34fac9a463e12726730cc831e9064ff607ea323a501e
6
+ metadata.gz: 673da68afa4a8ee80d4847e038e3ebe527c77f20b4b52e095f9693c4f272b0773c0b3d72a65488dfe67bd1856046ea7eb120ba1ab605c2ac6dae3e51808b6537
7
+ data.tar.gz: cc2951e96f9233d6955f72ae08707ef949af6d9cc3179a0d14fbc56ef17edea011de2a64cf378c0b3c391bd04925b8bcc8dbf128fdcc5cab01b5f02409ce475f
data/README.md CHANGED
@@ -9,7 +9,7 @@ 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 site's `Gemfile`:
12
+ Add this line to your [Jekyll][jekyll] site's `Gemfile`:
13
13
 
14
14
  ```ruby
15
15
  gem "linky"
@@ -135,6 +135,12 @@ See the [admin folder][admin] for the relevant configuration, as well as the JS
135
135
 
136
136
  Most of the admin's [config.yml][admin-config] will be the same regardless of your Decap setup, but some of the integration details (authorization, etc.) will differ if you're not using the same setup that I am. See the [Decap docs][decap-netlify] for information on the drop-in setup I'm using.
137
137
 
138
+ Copy the admin/index.html file from this repo into your Decap admin directory if you're using the matching Netlify setup. If not, make sure you add the script tag to enable our custom preview (it will work without the tag, but it will be ugly):
139
+
140
+ ```html
141
+ <script src="/assets/preview.js"></script>
142
+ ```
143
+
138
144
  ## Contributing
139
145
 
140
146
  Bug reports and pull requests are welcome on GitHub at https://github.com/paulroub/linky. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
@@ -154,3 +160,4 @@ The theme is available as open source under the terms of the [MIT License](https
154
160
  [decap-netlify]: https://decapcms.org/docs/choosing-a-backend/#setup-on-netlify
155
161
  [admin]: https://github.com/paulroub/linky/blob/main/admin/
156
162
  [admin-config]: https://github.com/paulroub/linky/blob/main/admin/config.yml
163
+ [jekyll]: https://jekyllrb.com/
data/_config.yml CHANGED
@@ -28,12 +28,17 @@ description: >- # this means to ignore newlines until "baseurl:"
28
28
  baseurl: "" # the subpath of your site, e.g. /blog
29
29
  url: "" # the base hostname & protocol for your site, e.g. http://example.com
30
30
  github_username: paulroub
31
+ plausible_io: linky.roub.net
31
32
 
32
33
  # Build settings
33
34
  theme: jekyll-theme-linky
34
35
  plugins:
35
36
  - jekyll-feed
36
37
 
38
+ exclude:
39
+ - VERSION
40
+ - bin
41
+
37
42
  linky:
38
43
  body_background: "#030303"
39
44
  body_foreground: "#F0F0F0"
@@ -1,8 +1,5 @@
1
- <!-- what's our env? {{ jekyll.environment }}, {{ site.plausible_io }} -->
2
1
  {%- if jekyll.environment == 'production' -%}
3
- <!-- BEGIN ANALYTICS -->
4
-
5
- {%- if site.google_analytics -%}
2
+ {%- if site.google_analytics -%}
6
3
  <script
7
4
  async
8
5
  src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"
@@ -23,14 +20,10 @@
23
20
  </script>
24
21
  {%- endif -%}
25
22
  {%- if site.plausible_io -%}
26
- <!-- BEGIN PLAUSIBLE -->
27
23
  <script
28
24
  defer
29
25
  data-domain="{{ site.plausible_io }}"
30
26
  src="https://plausible.io/js/script.outbound-links.js"
31
27
  ></script>
32
- <!-- END PLAUSIBLE -->
33
- {%- endif -%}
34
- <!-- END ANALYTICS -->
35
-
36
28
  {%- endif -%}
29
+ {%- endif -%}
@@ -8,3 +8,5 @@
8
8
  <link rel="icon" href="/favicon.ico" sizes="any">
9
9
  <link rel="icon" href="/linky.svg" type="image/svg+xml">
10
10
  <link rel="apple-touch-icon" href="/apple-touch-icon.png">
11
+
12
+ <meta property="og:image" content="https://linky.roub.net/images/linky-home.png" />
data/_sass/linky.scss CHANGED
@@ -1,3 +1,8 @@
1
+ $linky_body_background: #fa0616 !default;
2
+ $linky_body_foreground: #f0f0f0 !default;
3
+ $linky_button_background: #f16293 !default;
4
+ $linky_button_foreground: #f0f0f0 !default;
5
+
1
6
  :root {
2
7
  --base-font-family: -apple-system, blinkmacsystemfont, "Segoe UI", roboto,
3
8
  helvetica, arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
data/assets/preview.js ADDED
@@ -0,0 +1,31 @@
1
+ var LinkPreview = createClass({
2
+ render: function () {
3
+ const entry = this.props.entry;
4
+ const imageStr = entry.getIn(["data", "image"]);
5
+ const image = this.props.getAsset(imageStr);
6
+ const title = entry.getIn(["data", "title"]);
7
+ const link = entry.getIn(["data", "link"]);
8
+
9
+ return h(
10
+ "ul",
11
+ { class: "links" },
12
+ h(
13
+ "li",
14
+ { class: "link" },
15
+ h(
16
+ "a",
17
+ { href: link },
18
+ h("img", {
19
+ src: image.toString(),
20
+ class: "link-logo",
21
+ alt: title,
22
+ })
23
+ ),
24
+ h("a", { class: "link-desc", href: link }, title)
25
+ )
26
+ );
27
+ },
28
+ });
29
+
30
+ CMS.registerPreviewTemplate("links", LinkPreview);
31
+ CMS.registerPreviewStyle("/assets/styles.css");
data/assets/styles.scss CHANGED
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  ---
3
3
 
4
- $linky_body_background: {{ site.linky.body_background | default: "#fa0616" }};
5
- $linky_body_foreground: {{ site.linky.body_foreground | default: "#f0f0f0" }};
6
- $linky_button_background: {{ site.linky.button_background | default: "#f16293" }};
7
- $linky_button_foreground: {{ site.linky.button_foreground | default: "#f0f0f0" }};
8
-
9
- @import "linky";
4
+ @use "linky" with (
5
+ $linky_body_background: {{ site.linky.body_background | default: "#fa0616" }},
6
+ $linky_body_foreground: {{ site.linky.body_foreground | default: "#f0f0f0" }},
7
+ $linky_button_background: {{ site.linky.button_background | default: "#f16293" }},
8
+ $linky_button_foreground: {{ site.linky.button_foreground | default: "#f0f0f0" }}
9
+ );
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.2
4
+ version: 0.1.4
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-21 00:00:00.000000000 Z
11
+ date: 2024-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.8'
41
+ - !ruby/object:Gem::Dependency
42
+ name: jekyll-sass-converter
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 3.0.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 3.0.0
41
55
  description:
42
56
  email:
43
57
  - paul@roub.net
@@ -64,6 +78,7 @@ files:
64
78
  - assets/images/threads-logo.svg
65
79
  - assets/images/tiktok-logo.svg
66
80
  - assets/images/venmo-logo.svg
81
+ - assets/preview.js
67
82
  - assets/styles.scss
68
83
  homepage: http://github.com/paulroub/linky
69
84
  licenses: