ultra-minimal-theme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +57 -0
- data/_config.yml +10 -0
- data/_includes/footer.html +17 -0
- data/_includes/head.html +9 -0
- data/_includes/header.html +24 -0
- data/_layouts/default.html +20 -0
- data/_layouts/home.html +45 -0
- data/_layouts/page.html +14 -0
- data/_layouts/post.html +34 -0
- data/_sass/custom_styles.scss +1 -0
- data/assets/css/style.scss +6 -0
- metadata +69 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5547336cac6cfa7a1482a852ab31950703dfed6a9be30c76012abd4c92030d40
|
4
|
+
data.tar.gz: 1113baa52731256e2d8d48d9b57e6f7e231932098de9cd6a551d44d78c2447d1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: '08ed3d0bd951a68ae1167537142c3c0b98a038e318527151be737091fb3aee0ef9231b59a8b07764b8337d5546ad64035acf2f8115b8747a4ec40e969ec1b8e1'
|
7
|
+
data.tar.gz: fd976f2b0e010c51acb07653c7c62d156e59aa167fdcfefa62aaddb5d1ceee0a6317829f2ffc86ab06c9d5f5ab030aa130213b7e82b13953f0437a5a3131ee0d
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 abbeyyacoe
|
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,57 @@
|
|
1
|
+
# ultra-minimal-theme
|
2
|
+
|
3
|
+
Jekyll is a great tool, but it's themes are clunky, ugly and too heavy.
|
4
|
+
|
5
|
+
This is a WIP theme that strips of everything but the bare bones to create text-based blog posts. Right now, I am adding the CSS in via a link in the `head.html` file. Some more CSS tweaking is needed to make it work for as little or as many styles as you want to incorporate.
|
6
|
+
|
7
|
+
## Customizing CSS
|
8
|
+
There are two ways to customize CSS. Either insert your own CSS via the `custom_styles.scss` file in the `_sass` folder, or add your own style sheet via `_includes/head.html`. Currently this site is styled using [Slightly Better CSS](https://github.com/printerscanner/slightly-better-css), a lightweight CSS template.
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your Jekyll site's `Gemfile`:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem "ultra-minimal-theme"
|
16
|
+
```
|
17
|
+
|
18
|
+
And add this line to your Jekyll site's `_config.yml`:
|
19
|
+
|
20
|
+
```yaml
|
21
|
+
theme: ultra-minimal-theme
|
22
|
+
```
|
23
|
+
|
24
|
+
And then execute:
|
25
|
+
|
26
|
+
$ bundle
|
27
|
+
|
28
|
+
Or install it yourself as:
|
29
|
+
|
30
|
+
$ gem install ultra-minimal-theme
|
31
|
+
|
32
|
+
## Usage
|
33
|
+
|
34
|
+
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`.
|
35
|
+
|
36
|
+
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
37
|
+
|
38
|
+
## Contributing
|
39
|
+
|
40
|
+
Bug reports and pull requests are welcome on GitHub.
|
41
|
+
|
42
|
+
## Development
|
43
|
+
|
44
|
+
To set up your environment to develop this theme, run `bundle install`.
|
45
|
+
|
46
|
+
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.
|
47
|
+
|
48
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
49
|
+
To add a custom directory to your theme-gem, please edit the regexp in `ultra-minimal-theme.gemspec` accordingly.
|
50
|
+
|
51
|
+
### Note
|
52
|
+
There is currently a [bug](https://github.com/jekyll/jekyll/issues/8523) with Jekyll and Ruby 3.0, and it's possible you wil be required to run `bundle add webrick` in order to run the server.
|
53
|
+
|
54
|
+
## License
|
55
|
+
|
56
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
57
|
+
|
data/_config.yml
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
title: YOUR_TITLE_HERE
|
2
|
+
author:
|
3
|
+
name: YOUR_USERNAME_HERE
|
4
|
+
email: your-email@domain.com
|
5
|
+
description: > # this means to ignore newlines until "show_excerpts:"
|
6
|
+
Write an awesome description for your new site here. You can edit this
|
7
|
+
line in _config.yml. It will appear in your document head meta (for
|
8
|
+
Google search results) and in your feed.xml site description.
|
9
|
+
|
10
|
+
show_excerpts: true # set to true to show excerpts on the homepage
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<footer>
|
2
|
+
<data href="{{ "/" | relative_url }}"></data>
|
3
|
+
<hr>
|
4
|
+
{%- if site.author %}
|
5
|
+
<ul>
|
6
|
+
{% if site.author.name -%}
|
7
|
+
<li>{{ site.author.name | escape }}</li>
|
8
|
+
{% endif -%}
|
9
|
+
{% if site.author.email -%}
|
10
|
+
<li><a href="mailto:{{ site.author.email }}">{{ site.author.email }}</a></li>
|
11
|
+
{%- endif %}
|
12
|
+
</ul>
|
13
|
+
{%- endif %}
|
14
|
+
<p>{{ site.description | escape }}</p>
|
15
|
+
<br></br>
|
16
|
+
|
17
|
+
</footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
|
6
|
+
<!-- Custom Style Sheet using Slightly Better CSS -->
|
7
|
+
<!-- Delete and add your own styles here -->
|
8
|
+
<link rel="stylesheet" href="https://printerscanner.github.io/slightly-better-css/slightly-better.css">
|
9
|
+
</head>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<header>
|
2
|
+
<br></br>
|
3
|
+
<div>
|
4
|
+
{%- assign default_paths = site.pages | map: "path" -%}
|
5
|
+
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
6
|
+
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
|
7
|
+
<h1><a rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a></h1>
|
8
|
+
|
9
|
+
{%- if titles_size > 0 -%}
|
10
|
+
<nav>
|
11
|
+
|
12
|
+
|
13
|
+
<div>
|
14
|
+
{%- for path in page_paths -%}
|
15
|
+
{%- assign my_page = site.pages | where: "path", path | first -%}
|
16
|
+
{%- if my_page.title -%}
|
17
|
+
<h4><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></h4>
|
18
|
+
{%- endif -%}
|
19
|
+
{%- endfor -%}
|
20
|
+
</div>
|
21
|
+
</nav>
|
22
|
+
{%- endif -%}
|
23
|
+
</div>
|
24
|
+
</header>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{%- include head.html -%}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
|
8
|
+
{%- include header.html -%}
|
9
|
+
|
10
|
+
<main aria-label="Content">
|
11
|
+
<div>
|
12
|
+
{{ content }}
|
13
|
+
</div>
|
14
|
+
</main>
|
15
|
+
|
16
|
+
{%- include footer.html -%}
|
17
|
+
|
18
|
+
</body>
|
19
|
+
|
20
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div>
|
6
|
+
{%- if page.title -%}
|
7
|
+
<h1>{{ page.title }}</h1>
|
8
|
+
{%- endif -%}
|
9
|
+
|
10
|
+
{{ content }}
|
11
|
+
|
12
|
+
|
13
|
+
{% if site.paginate %}
|
14
|
+
{% assign posts = paginator.posts %}
|
15
|
+
{% else %}
|
16
|
+
{% assign posts = site.posts %}
|
17
|
+
{% endif %}
|
18
|
+
|
19
|
+
|
20
|
+
{%- if posts.size > 0 -%}
|
21
|
+
{%- if page.list_title -%}
|
22
|
+
<h2>{{ page.list_title }}</h2>
|
23
|
+
{%- endif -%}
|
24
|
+
<ul>
|
25
|
+
<!-- {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} -->
|
26
|
+
{%- for post in posts -%}
|
27
|
+
<li>
|
28
|
+
|
29
|
+
<h2>
|
30
|
+
<a href="{{ post.url | relative_url }}">
|
31
|
+
{{ post.title | escape }}
|
32
|
+
</a>
|
33
|
+
</h2>
|
34
|
+
{%- if site.show_excerpts -%}
|
35
|
+
{{ post.excerpt }}
|
36
|
+
{%- endif -%}
|
37
|
+
</li>
|
38
|
+
<small><span>{{ post.date | date: date_format }}</span></small>
|
39
|
+
{%- endfor -%}
|
40
|
+
</ul>
|
41
|
+
|
42
|
+
|
43
|
+
{%- endif -%}
|
44
|
+
|
45
|
+
</div>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<article itemscope itemtype="http://schema.org/BlogPosting">
|
5
|
+
|
6
|
+
<header>
|
7
|
+
<h1 itemprop="name headline">{{ page.title | escape }}</h1>
|
8
|
+
<p>
|
9
|
+
{%- if page.modified_date -%}
|
10
|
+
~
|
11
|
+
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
|
12
|
+
<time datetime="{{ mdate }}" itemprop="dateModified">
|
13
|
+
{{ mdate | date: date_format }}
|
14
|
+
</time>
|
15
|
+
{%- endif -%}
|
16
|
+
{%- if page.author -%}
|
17
|
+
• {% for author in page.author %}
|
18
|
+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
|
19
|
+
<span itemprop="name">{{ author }}</span></span>
|
20
|
+
{%- if forloop.last == false %}, {% endif -%}
|
21
|
+
{% endfor %}
|
22
|
+
{%- endif -%}</p>
|
23
|
+
</header>
|
24
|
+
|
25
|
+
<div itemprop="articleBody">
|
26
|
+
{{ content }}
|
27
|
+
</div>
|
28
|
+
|
29
|
+
{%- if site.disqus.shortname -%}
|
30
|
+
{%- include disqus_comments.html -%}
|
31
|
+
{%- endif -%}
|
32
|
+
|
33
|
+
<a href="{{ page.url | relative_url }}" hidden></a>
|
34
|
+
</article>
|
@@ -0,0 +1 @@
|
|
1
|
+
// Write your custom CSS here
|
metadata
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ultra-minimal-theme
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- abbeyyacoe
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-05-06 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.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.2'
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- abbeyyacoe@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
|
+
- _layouts/default.html
|
41
|
+
- _layouts/home.html
|
42
|
+
- _layouts/page.html
|
43
|
+
- _layouts/post.html
|
44
|
+
- _sass/custom_styles.scss
|
45
|
+
- assets/css/style.scss
|
46
|
+
homepage: https://github.com/abbeyyacoe/ultra-minimal-theme
|
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.2.32
|
66
|
+
signing_key:
|
67
|
+
specification_version: 4
|
68
|
+
summary: Ultra minimal jekyll theme that gets out of its own way
|
69
|
+
test_files: []
|