jekyll-string-theory 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5ea102e80b608ad673ff9403492f174076fe17dabcae9c1cfb06d40d95c03c71
4
+ data.tar.gz: 00150ccb936d900f39c96c84d3e4a59d265a7ae81605b80e63110296bb1d1d68
5
+ SHA512:
6
+ metadata.gz: b72b21181cfad879d7d09ad70ece12290c706167edcf140bffe5aed010497f0e3a5de7488e804541c10044a2687d44a8253c73bc103a17bc2b909dff4272fea2
7
+ data.tar.gz: 33c3ea8608cf24d4a02bd1ec084e1e5efb16e364f0999f8a0041860f04664f23b8bae376bc551f5875773847af420f813b2979e0b1d62605036b895680e09d1f
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 LunaRoseManro
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 ADDED
@@ -0,0 +1,45 @@
1
+ # String Theory
2
+ The smallest Jekyll theme in the universe.
3
+
4
+ ## Installation
5
+
6
+ Add this line to your Jekyll site's `Gemfile`:
7
+
8
+ ```ruby
9
+ gem "jekyll-string-theory"
10
+ ```
11
+
12
+ And add this line to your Jekyll site's `_config.yml`:
13
+
14
+ ```yaml
15
+ theme: jekyll-string-theory
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ $ bundle
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install jekyll-string-theory
25
+
26
+ ## Usage
27
+
28
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
29
+
30
+ ## Contributing
31
+
32
+ Bug reports and pull requests are welcome on GitHub at https://github.com/LunaRoseManor/jekyll-string-theory. 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.
33
+
34
+ ## Development
35
+
36
+ To set up your environment to develop this theme, run `bundle install`.
37
+
38
+ 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.
39
+
40
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
41
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-string-theory.gemspec` accordingly.
42
+
43
+ ## License
44
+
45
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/_config.yml ADDED
@@ -0,0 +1,2 @@
1
+ title: ma nimi
2
+ author: jan Jondo
@@ -0,0 +1,12 @@
1
+ <footer>
2
+ {%- if site.license -%}
3
+ <small>{{ site.license }}</small>
4
+ {%- endif -%}
5
+ <br>
6
+ <small>
7
+ Made with
8
+ <a>Jekyll</a>
9
+ and
10
+ <a href="https://github.com/LunaRoseManor/jekyll-string-theory/">String Theory</a>
11
+ </small>
12
+ </footer>
@@ -0,0 +1,7 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1">
4
+ <title>{{ page.title }} &vert; {{ site.title }}</title>
5
+ <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
6
+ <meta name="description" content="{{ site.description }}">
7
+ </head>
@@ -0,0 +1,39 @@
1
+ <header>
2
+ <a href="{{ "/" | relative_url }}" style="text-decoration: none;">
3
+ <h1>{{ site.title | escape }}</h1>
4
+ </a>
5
+ {%- comment -%}
6
+ I've been working on this for four hours so I'll keep it simple.
7
+
8
+ Adding in a nav element to the header introduces a tricky problem. How
9
+ do you make it respond to the user's file structure without them having
10
+ to code anything?
11
+
12
+ Jekyll doesn't really have anything built in to do this. You get a
13
+ small handful of local variables. Liquid also doesn't have regular
14
+ expressions, making searching through results impossible.
15
+
16
+ Instead of that, String Theory just tries to mimic Minima's default
17
+ behaviour and search through the asset tree to find pages that have
18
+ titles. If a page hasn't been titled, it's probably not important.
19
+
20
+ Otherwise, the user can set which pages are navigable through data, as
21
+ recommended by the official Jekyll tutorial:
22
+ - https://jekyllrb.com/tutorials/navigation/
23
+ -
24
+ {%- endcomment -%}
25
+ {%- assign default_paths = site.pages | map: "path" -%}
26
+ {%- assign page_paths = site.header_pages | default: default_paths -%}
27
+ {%- assign titles_size = site.pages | map: "title" | join: "" | size -%}
28
+ {%- if titles_size > 0 -%}
29
+ <nav>
30
+ {%- for path in page_paths -%}
31
+ {%- assign my_page = site.pages | where: "path", path | first -%}
32
+
33
+ {%- if my_page.title -%}
34
+ <a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
35
+ {%- endif -%}
36
+ {% endfor %}
37
+ </nav>
38
+ {%- endif -%}
39
+ </header>
@@ -0,0 +1,11 @@
1
+ {%- if site.posts.size > 0 -%}
2
+ <h2>Recent posts:</h2>
3
+ <ul class="post-list">
4
+ {%- for post in site.posts -%}
5
+ <li>
6
+ <span>{{ post.date | date: "%A, %b %d, %Y" }}</span>
7
+ <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
8
+ </li>
9
+ {%- endfor -%}
10
+ </ul>
11
+ {%- endif -%}
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ site.lang }}">
3
+ {%- include head.html -%}
4
+ <body>
5
+ {%- include header.html -%}
6
+
7
+ <main>{{ content }}</main>
8
+
9
+ {%- include footer.html -%}
10
+ </body>
11
+ </html>
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ {%- include post-list.html -%}
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {%- if page.title -%}
6
+ <h2>{{ page.title }}</h2>
7
+ {%- endif -%}
8
+ {{ content }}
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {%- if page.title -%}
6
+ <h2>{{ page.title }}</h2>
7
+ <small>
8
+ by {{ page.author }} on {{ page.date | date: "%b %-d, %Y" }}
9
+ </small>
10
+ {%- endif -%}
11
+ {{ content }}
data/assets/main.sass ADDED
@@ -0,0 +1,40 @@
1
+ ---
2
+ ---
3
+
4
+ a
5
+ color: #0bccf4
6
+
7
+ nav
8
+ padding: 1em
9
+ border-top: 1px solid #e2e2e2
10
+ border-bottom: 1px solid #e2e2e2
11
+ a
12
+ margin-right: 1em
13
+
14
+ html, body
15
+ box-sizing: border-box
16
+ height: 100%
17
+ padding: 0
18
+ margin: 0
19
+
20
+ body
21
+ box-sizing: border-box
22
+ min-height: 100%
23
+ display: flex
24
+ flex-direction: column
25
+ color: #2e2e2e
26
+ line-height: 2em
27
+ font-family: "Arial", "Helvetica", sans-serif
28
+ font-size: 16pt
29
+ max-width: 36em
30
+ margin-left: auto
31
+ margin-right: auto
32
+
33
+ main
34
+ flex-grow: 1
35
+ padding: 1em
36
+
37
+ header, footer
38
+ flex-grow: 0
39
+ flex-shrink: 0
40
+ padding: 1em
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-string-theory
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - LunaRoseManor
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-11-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.3'
27
+ description:
28
+ email:
29
+ - lunarosemanor@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - LICENSE.txt
35
+ - README.md
36
+ - _config.yml
37
+ - _includes/footer.html
38
+ - _includes/head.html
39
+ - _includes/header.html
40
+ - _includes/post-list.html
41
+ - _layouts/default.html
42
+ - _layouts/home.html
43
+ - _layouts/page.html
44
+ - _layouts/post.html
45
+ - assets/main.sass
46
+ homepage: https://github.com/LunaRoseManor/jekyll-string-theory
47
+ licenses:
48
+ - MIT
49
+ metadata: {}
50
+ post_install_message:
51
+ rdoc_options: []
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ requirements: []
65
+ rubygems_version: 3.4.10
66
+ signing_key:
67
+ specification_version: 4
68
+ summary: The smallest jekyll theme in the universe!
69
+ test_files: []