jekyll-theme-teddy 0.3.0 → 0.5.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: 66c3a35e32df522b4f0e9c31d3bce1fca9f974cf55863c03fb1ae5c3c207badc
4
- data.tar.gz: da1e8c2c5c7ce23eb247013374151e27e0ce9be029f6b1590964d4841a6a90ff
3
+ metadata.gz: 27ce61bd3617a41831a62371b09cd74b309e1d88f2b0ee1b9bf68e6e6191fc06
4
+ data.tar.gz: 1566e5f5cf040e220ad1eba77d814ee7bf0e896f1327bf0343e6b5d3c643e200
5
5
  SHA512:
6
- metadata.gz: 26f295376be936365b6ce469131ff6c08596d1e8aa440027adb957bfea2671f250dd936e44bb35c3ad12e9b97c8505743c09b1f695da032afb8c18f1384c3a0b
7
- data.tar.gz: 7e93b16ee528ce75231650470a401c063f5597da922adddcd92328f5d9ae91b9016b3e0821ec1ab303f67cafe7c8a2ae5774eef9057ebfefb07566ededef9d21
6
+ metadata.gz: b9e8fa51ff66437d1085fd8266c3cc04a8b93f93d4bda0d9f2f33fe48dc1648823d9afc179c8e13e0ccee25181849302890e3b6c9d6a9c37d4c8d879d2a923aa
7
+ data.tar.gz: c3cf51bd954ae4a0808bb0b9e2c618c1417a38cf652bfc1799f974ec8825efd20f95adc635d3c44654a165e0b7b1f5d8757216b96a31bb259d35a21e6f3df1b5
data/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2024 Teddy55Codes
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Teddy55Codes
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,42 +1,84 @@
1
- # jekyll-theme-teddy
2
-
3
- Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
-
5
- To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
-
7
- TODO: Delete this and the text above, and describe your gem
8
-
9
- ## Installation
10
-
11
- Add this line to your Jekyll site's `Gemfile`:
12
-
13
- ```ruby
14
- gem "jekyll-theme-teddy"
15
- ```
16
-
17
- And add this line to your Jekyll site's `_config.yml`:
18
-
19
- ```yaml
20
- theme: jekyll-theme-teddy
21
- ```
22
-
23
- And then execute:
24
-
25
- $ bundle
26
-
27
- Or install it yourself as:
28
-
29
- $ gem install jekyll-theme-teddy
30
-
31
- ## Development
32
-
33
- To set up your environment to develop this theme, run `bundle install`.
34
-
35
- Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
36
-
37
- When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
38
- To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-teddy.gemspec` accordingly.
39
-
40
- ## License
41
-
42
- The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
1
+ # jekyll-theme-teddy
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+ ## Installation
10
+
11
+ Add this line to your Jekyll site's `Gemfile`:
12
+
13
+ ```ruby
14
+ gem "jekyll-theme-teddy"
15
+ ```
16
+
17
+ And add this line to your Jekyll site's `_config.yml`:
18
+
19
+ ```yaml
20
+ theme: jekyll-theme-teddy
21
+ ```
22
+
23
+ And then execute:
24
+
25
+ $ bundle
26
+
27
+ Or install it yourself as:
28
+
29
+ $ gem install jekyll-theme-teddy
30
+
31
+ ## Configuration
32
+ There are some variables you can use to customize this theme.
33
+
34
+ ### _config.yml
35
+ * **source_repository_url**\
36
+ This will be used to link to your repository and individual files in your repository.
37
+ * **source_repository_url_path_prefix**\
38
+ This is the url part that is between your source_repository_url and the page path.
39
+ On github this is `blob/main`
40
+ * **last_post**\
41
+ This is used to add a link to your latest post.
42
+
43
+ ### front matter
44
+ * **title**\
45
+ Adds a h1 title.
46
+ * **toc**\
47
+ Auto generate table of contents if set to true.
48
+ * **post (only in home layout)**\
49
+ This is used to generate the card view on the home page.
50
+ It accepts a list of objects.
51
+ example:
52
+ ```
53
+ posts: [
54
+ {
55
+ "image": "Resources/img1.png",
56
+ "image-alt": "image 1",
57
+ "link": "Posts/post1",
58
+ "title": "Post 1",
59
+ "description": "My Post 1",
60
+ "footer-text": "January 1970"
61
+ },
62
+ {
63
+ "image": "Resources/img2.png",
64
+ "image-alt": "image 2",
65
+ "link": "Posts/post2",
66
+ "title": "Post 2",
67
+ "description": "My Post 2",
68
+ "footer-text": "January 1970"
69
+ }
70
+ }
71
+ ```
72
+
73
+ ## Development
74
+
75
+ To set up your environment to develop this theme, run `bundle install`.
76
+
77
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
78
+
79
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
80
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-teddy.gemspec` accordingly.
81
+
82
+ ## License
83
+
84
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,23 +1,39 @@
1
- <!DOCTYPE html>
2
- <html lang="{{ site.lang | default: "en-US" }}">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
7
-
8
- {% seo %}
9
- <link rel="stylesheet" href="{{ site.baseurl }}{{ '/assets/css/style.css' }}">
10
- </head>
11
- <body>
12
-
13
- <main id="content" class="main-content" role="main">
14
- {% unless page.url == "/" %}
15
- <a href="{{ site.baseurl }}/">Back To Home Page</a>
16
- {% endunless %}
17
- {{ content }}
18
- </main>
19
- <footer class="site-footer">
20
- <span class="site-footer-credits">Hosted on <a href="https://pages.github.com">GitHub Pages</a> powered by <a href="https://jekyllrb.com">Jekyll</a>.</span>
21
- </footer>
22
- </body>
1
+ ---
2
+ css_files:
3
+ - default
4
+ ---
5
+
6
+ <!DOCTYPE html>
7
+ <html lang="{{ site.lang | default: "en-US" }}">
8
+ <head>
9
+ <meta charset="UTF-8">
10
+ <meta name="viewport" content="width=device-width, initial-scale=1">
11
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
12
+
13
+ {% seo %}
14
+ {% if layout.css_files %}
15
+ {% for css_file in layout.css_files %}
16
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/{{ css_file }}.css">
17
+ {% endfor %}
18
+ {% endif %}
19
+ </head>
20
+ <body>
21
+
22
+ <main id="content" class="main-content" role="main">
23
+ {{ content }}
24
+ </main>
25
+ <footer>
26
+ <span>Powered by <a href="https://jekyllrb.com">Jekyll</a> using the <a href="https://github.com/Teddy55Codes/jekyll-theme-teddy">jekyll-theme-teddy</a> theme</span>
27
+ {% if site.source_repository_url %}
28
+ <a id="github-icon" href="{{ site.source_repository_url }}">
29
+ <img alt="github-icon" src="{{ site.baseurl }}/assets/images/github-icon.png">
30
+ </a>
31
+ {% endif %}
32
+ </footer>
33
+ {% if layout.js_files %}
34
+ {% for js_file in layout.js_files %}
35
+ <script src="{{ site.baseurl }}/assets/js/{{ js_file }}.js"></script>
36
+ {% endfor %}
37
+ {% endif %}
38
+ </body>
23
39
  </html>
@@ -0,0 +1,39 @@
1
+ ---
2
+ layout: default
3
+ css_files:
4
+ - default
5
+ - home
6
+ js_files:
7
+ - galaxy-animation
8
+ ---
9
+
10
+
11
+ <canvas id="canvas"></canvas>
12
+ <div id="home-banner">
13
+ <h1>{{ page.title }}</h1>
14
+ <h2>{{ page.subtitle }}</h2>
15
+ <div class="home-banner-links">
16
+ {% if site.source_repository_url %}
17
+ <a href="{{ site.source_repository_url }}">Source Repository</a>
18
+ {% endif %}
19
+ {% if site.latest_post %}
20
+ <a href="{{ site.baseurl }}/{{ site.latest_post }}">Read The Latest Post</a>
21
+ {% endif %}
22
+ </div>
23
+ </div>
24
+
25
+ {{ content }}
26
+
27
+ <div id="card-container">
28
+ {% for post in page.posts %}
29
+ <div class="outer-card">
30
+ <a class="card" href={{ post.link }}>
31
+ <img alt={{ post.image-alt }} src={{ post.image }}>
32
+ <h3>{{ post.title }}</h3>
33
+ <p>{{ post.description }}</p>
34
+ <p class="card-date">{{ post.footer-text }}</p>
35
+ </a>
36
+ </div>
37
+ {% endfor %}
38
+ </div>
39
+
@@ -0,0 +1,22 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div id="top-nav">
6
+ {% unless page.url == "/" %}
7
+ <a id="home-link" href="{{ site.baseurl }}/"><- Back To Home Page</a>
8
+ {% endunless %}
9
+
10
+ {% if site.source_repository_url and site.source_repository_url_path_prefix %}
11
+ <a id="source-link" href="{{ site.source_repository_url }}/{{ site.source_repository_url_path_prefix }}/{{ page.path }}">To Source File</a>
12
+ {% endif %}
13
+ </div>
14
+
15
+
16
+ <h1>{{ page.title }}</h1>
17
+
18
+ {{ content | toc_only }}
19
+
20
+ <hr>
21
+
22
+ {{ content | inject_anchors }}
@@ -1,98 +1,99 @@
1
- @import "variables";
2
-
3
- code {
4
- font-family: "JetBrains Mono", Helvetica, Arial, monospace;
5
- background: $code-bg-color;
6
- border-radius: 5px;
7
- padding: 0 3px 0 3px;
8
- }
9
-
10
- pre {
11
- background: $code-bg-color;
12
- margin: 10px 0 10px 0;
13
- padding: 10px;
14
- overflow: auto;
15
- }
16
-
17
- .highlight table td {
18
- padding: 5px;
19
- }
20
-
21
- .highlight table pre {
22
- margin: 0;
23
- }
24
-
25
- .highlight, .highlight .w {
26
- color: $code-text-color;
27
- }
28
- .highlight .err {
29
- color: #151515;
30
- background-color: #ac4142;
31
- }
32
- .highlight .c, .highlight .cd, .highlight .cm, .highlight .c1, .highlight .cs {
33
- color: #888;
34
- }
35
- .highlight .cp {
36
- color: #f4bf75;
37
- }
38
- .highlight .nt {
39
- color: #f4bf75;
40
- }
41
- .highlight .o, .highlight .ow {
42
- color: $code-text-color;
43
- }
44
- .highlight .p, .highlight .pi {
45
- color: $code-text-color;
46
- }
47
- .highlight .gi {
48
- color: #90a959;
49
- }
50
- .highlight .gd {
51
- color: #ac4142;
52
- }
53
- .highlight .gh {
54
- color: #6a9fb5;
55
- font-weight: bold;
56
- }
57
- .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
58
- color: #aa759f;
59
- }
60
- .highlight .kc {
61
- color: #d28445;
62
- }
63
- .highlight .kt {
64
- color: #d28445;
65
- }
66
- .highlight .kd {
67
- color: #d28445;
68
- }
69
- .highlight .s, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
70
- color: #90a959;
71
- }
72
- .highlight .sr {
73
- color: #75b5aa;
74
- }
75
- .highlight .si {
76
- color: #8f5536;
77
- }
78
- .highlight .se {
79
- color: #8f5536;
80
- }
81
- .highlight .nn {
82
- color: #f4bf75;
83
- }
84
- .highlight .nc {
85
- color: #f4bf75;
86
- }
87
- .highlight .no {
88
- color: #f4bf75;
89
- }
90
- .highlight .na {
91
- color: #6a9fb5;
92
- }
93
- .highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mb, .highlight .mx {
94
- color: #90a959;
95
- }
96
- .highlight .ss {
97
- color: #90a959;
1
+ @import "variables";
2
+
3
+ code {
4
+ font-family: "JetBrains Mono", Helvetica, Arial, monospace;
5
+ background: $code-bg-color;
6
+ border-radius: 5px;
7
+ padding: 0 3px 0 3px;
8
+ }
9
+
10
+ pre {
11
+ background: $code-bg-color;
12
+ margin: 10px 0 10px 0;
13
+ padding: 10px;
14
+ overflow: auto;
15
+ border-radius: 10px;
16
+ }
17
+
18
+ .highlight table td {
19
+ padding: 5px;
20
+ }
21
+
22
+ .highlight table pre {
23
+ margin: 0;
24
+ }
25
+
26
+ .highlight, .highlight .w {
27
+ color: $code-text-color;
28
+ }
29
+ .highlight .err {
30
+ color: #151515;
31
+ background-color: #ac4142;
32
+ }
33
+ .highlight .c, .highlight .cd, .highlight .cm, .highlight .c1, .highlight .cs {
34
+ color: #888;
35
+ }
36
+ .highlight .cp {
37
+ color: #f4bf75;
38
+ }
39
+ .highlight .nt {
40
+ color: #f4bf75;
41
+ }
42
+ .highlight .o, .highlight .ow {
43
+ color: $code-text-color;
44
+ }
45
+ .highlight .p, .highlight .pi {
46
+ color: $code-text-color;
47
+ }
48
+ .highlight .gi {
49
+ color: #90a959;
50
+ }
51
+ .highlight .gd {
52
+ color: #ac4142;
53
+ }
54
+ .highlight .gh {
55
+ color: #6a9fb5;
56
+ font-weight: bold;
57
+ }
58
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
59
+ color: #aa759f;
60
+ }
61
+ .highlight .kc {
62
+ color: #d28445;
63
+ }
64
+ .highlight .kt {
65
+ color: #d28445;
66
+ }
67
+ .highlight .kd {
68
+ color: #d28445;
69
+ }
70
+ .highlight .s, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
71
+ color: #90a959;
72
+ }
73
+ .highlight .sr {
74
+ color: #75b5aa;
75
+ }
76
+ .highlight .si {
77
+ color: #8f5536;
78
+ }
79
+ .highlight .se {
80
+ color: #8f5536;
81
+ }
82
+ .highlight .nn {
83
+ color: #f4bf75;
84
+ }
85
+ .highlight .nc {
86
+ color: #f4bf75;
87
+ }
88
+ .highlight .no {
89
+ color: #f4bf75;
90
+ }
91
+ .highlight .na {
92
+ color: #6a9fb5;
93
+ }
94
+ .highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mb, .highlight .mx {
95
+ color: #90a959;
96
+ }
97
+ .highlight .ss {
98
+ color: #90a959;
98
99
  }