no-style-please 0.1.6
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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +75 -0
- data/_config.yml +23 -0
- data/_includes/goat_counter.html +6 -0
- data/_includes/head.html +19 -0
- data/_includes/menu_item.html +19 -0
- data/_includes/post_list.html +9 -0
- data/_layouts/default.html +15 -0
- data/_layouts/home.html +11 -0
- data/_layouts/post.html +16 -0
- data/_sass/no-style-please.scss +56 -0
- data/assets/css/main.scss +4 -0
- metadata +97 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c4931613fa693afd5baae6754d3def6fd25a050a8d32dff2af2677733c7cea89
|
4
|
+
data.tar.gz: 84e3124bb32ba0c8b40b3cc6a9f1daa74d92619bf23ec1e29d89ea3612ac797e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fabf42e3b09173948965662902c70c1992dab8a54a655da8628c3985d26c4c04442d3c73695ee2e69c6f08ba97bbb7e978c17bc0116457449c038b527161725f
|
7
|
+
data.tar.gz: 11842ec0ad987981435b3da948a25ab05bf007f4f9362daf597b9d69c4479a67abea9b573f9845821b9130b762d48af9050e24a2e084418685423db5e5f5044c
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Riccardo Graziosi
|
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,75 @@
|
|
1
|
+
# no style, please!
|
2
|
+
|
3
|
+
<img src="./logo.png" width="64" align="left" /> A (nearly) no-css minimalist [Jekyll](https://jekyllrb.com/) theme. Inspired by [elly's site](http://tilde.town/~elly/), expressly created for [my personal blog](https://riggraz.dev/).
|
4
|
+
|
5
|
+
[Try the demo out!](https://riggraz.dev/no-style-please/)
|
6
|
+
|
7
|
+
<img src="./screenshots/featured-image.png" />
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
If you haven't already created your blog using Jekyll, follow the [instructions](https://jekyllrb.com/docs/) to do so from Jekyll's documentation.
|
12
|
+
|
13
|
+
NOTE: if you are using Jekyll with GitHub Pages, see the [GitHub Pages installation section](#github-pages-installation).
|
14
|
+
|
15
|
+
Then, to style your blog with this theme, add this line to your Jekyll site's `Gemfile`:
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
gem "no-style-please"
|
19
|
+
```
|
20
|
+
|
21
|
+
And add this line to your Jekyll site's `_config.yml`:
|
22
|
+
|
23
|
+
```yaml
|
24
|
+
theme: no-style-please
|
25
|
+
```
|
26
|
+
|
27
|
+
And then execute:
|
28
|
+
|
29
|
+
$ bundle
|
30
|
+
|
31
|
+
Or install it yourself as:
|
32
|
+
|
33
|
+
$ gem install no-style-please
|
34
|
+
|
35
|
+
### GitHub Pages installation
|
36
|
+
|
37
|
+
If you want to use this theme for your Jekyll's site deployed on [GitHub Pages](https://pages.github.com/), follow the instructions on [this page](https://docs.github.com/en/github/working-with-github-pages/adding-a-theme-to-your-github-pages-site-using-jekyll#adding-a-theme).
|
38
|
+
|
39
|
+
## Usage
|
40
|
+
|
41
|
+
You can edit `_config.yml` file to customize your blog. You can change things such as the name of the blog, the author, how dates are formatted, etc. Customizable fields should be straightforward to understand, however `_config.yml` contains some comments to help you understand what each fields does.
|
42
|
+
|
43
|
+
For further customization (e.g. layout, CSS) see the [official Jekyll's documentation](https://jekyllrb.com/docs/themes/#overriding-theme-defaults) on customizing gem-based themes.
|
44
|
+
|
45
|
+
### Customize the menu
|
46
|
+
|
47
|
+
In order to add/edit/delete entries from the main menu, you have to edit the `menu.yml` file inside `_data` folder. Through that file you can define the structure of the menu. Take a look at the default configuration to get an idea of how it works and read on for a more comprehensive explanation.
|
48
|
+
|
49
|
+
The `menu.yml` file accepts the following fields:
|
50
|
+
|
51
|
+
- `entries` define a new unordered list that will contain menu entries
|
52
|
+
- each entry is marked by a `-` at the beginning of the line
|
53
|
+
- each entry has the following attributes:
|
54
|
+
- `title`, which defines the text to render for that menu entry
|
55
|
+
- `url`, which can either be a URL or `false`. If it is `false`, the entry will be rendered as plain text; otherwise the entry will be rendered as a link pointing to the specified URL. Note that the URL can either be relative or absolute.
|
56
|
+
- `post_list`, which can be `true` or `false`. If it is true, the entry will have all posts in the site as subentries. This is used to render your post list.
|
57
|
+
- `entries`, yes, you can have entries inside entries. In this way you can create nested sublists!
|
58
|
+
|
59
|
+
## Contributing
|
60
|
+
|
61
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
62
|
+
|
63
|
+
## Development
|
64
|
+
|
65
|
+
To set up your environment to develop this theme, run `bundle install`.
|
66
|
+
|
67
|
+
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.
|
68
|
+
|
69
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
70
|
+
To add a custom directory to your theme-gem, please edit the regexp in `no-style-please.gemspec` accordingly.
|
71
|
+
|
72
|
+
## License
|
73
|
+
|
74
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
75
|
+
|
data/_config.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
title: no style, please! # name of the site
|
2
|
+
author: Riccardo Graziosi # name of site's author
|
3
|
+
email: riccardo.graziosi97@gmail.com # email of site's author
|
4
|
+
url: https://riggraz.dev/no-style-please # root address of the site
|
5
|
+
description: > # description of the site (multiple lines allowed)
|
6
|
+
A (nearly) no-css minimalist Jekyll theme.
|
7
|
+
|
8
|
+
favicon: "./logo.png" # relative path to site's favicon
|
9
|
+
# goat_counter: "yoursitename" # put your GoatCounter name if you want to use GoatCounter analytics
|
10
|
+
|
11
|
+
theme: no-style-please # if you are using GitHub Pages, change it to remote_theme: riggraz/no-style-please
|
12
|
+
|
13
|
+
theme_config:
|
14
|
+
back_home_text: ".." # customize text for homepage link in post layout
|
15
|
+
date_format: "%Y-%m-%d" # customize how date is formatted
|
16
|
+
show_description: false # show blog description in home page
|
17
|
+
|
18
|
+
sass:
|
19
|
+
style: :compressed
|
20
|
+
|
21
|
+
plugins:
|
22
|
+
- jekyll-feed
|
23
|
+
- jekyll-seo-tag
|
data/_includes/head.html
ADDED
@@ -0,0 +1,19 @@
|
|
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
|
+
|
6
|
+
<title>
|
7
|
+
{% if page.title %}
|
8
|
+
{{ page.title }}
|
9
|
+
{% else %}
|
10
|
+
{{ site.title }}
|
11
|
+
{% endif %}
|
12
|
+
</title>
|
13
|
+
|
14
|
+
{% seo title=false %}
|
15
|
+
{% feed_meta %}
|
16
|
+
|
17
|
+
<link rel="shortcut icon" type="image/x-icon" href="/{{ site.favicon }}" />
|
18
|
+
<link rel="stylesheet" href="{{ site.url }}/assets/css/main.css" />
|
19
|
+
</head>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<ul>
|
2
|
+
{% for item in include.collection %}
|
3
|
+
<li>
|
4
|
+
{% if item.url != false %}
|
5
|
+
<a href="{{ item.url }}">{{ item.title }}</a>
|
6
|
+
{% else %}
|
7
|
+
{{ item.title }}
|
8
|
+
{% endif %}
|
9
|
+
</li>
|
10
|
+
|
11
|
+
{% if item.post_list == true %}
|
12
|
+
{% include post_list.html %}
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
{% if item.entries != blank %}
|
16
|
+
{% include menu_item.html collection=item.entries %}
|
17
|
+
{% endif %}
|
18
|
+
{% endfor %}
|
19
|
+
</ul>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: "en" }}">
|
3
|
+
{%- include head.html -%}
|
4
|
+
<body>
|
5
|
+
<main class="page-content" aria-label="Content">
|
6
|
+
<div class="wrapper">
|
7
|
+
{{ content }}
|
8
|
+
</div>
|
9
|
+
</main>
|
10
|
+
|
11
|
+
{% if site.goat_counter and jekyll.environment == "production" %}
|
12
|
+
{% include goat_counter.html %}
|
13
|
+
{% endif %}
|
14
|
+
</body>
|
15
|
+
</html>
|
data/_layouts/home.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<a href="{{ site.url }}">{{ site.theme_config.back_home_text }}</a>
|
6
|
+
<h1>{{ page.title }}</h1>
|
7
|
+
{{ content }}
|
8
|
+
|
9
|
+
<hr data-content="keep in touch">
|
10
|
+
<form style="padding:3px;text-align:center;" action="https://tinyletter.com/riggraz" method="post" target="popupwindow" onsubmit="window.open('https://tinyletter.com/riggraz', 'popupwindow', 'scrollbars=yes,width=800,height=600');return true">
|
11
|
+
<label for="tlemail">Your email address:</label>
|
12
|
+
<input type="text" style="width:140px" name="email" id="tlemail" />
|
13
|
+
<input type="hidden" value="1" name="embed"/>
|
14
|
+
<input type="submit" value="Subscribe" />
|
15
|
+
<p>No spam</p>
|
16
|
+
</form>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
html {
|
2
|
+
color: black;
|
3
|
+
background-color: white;
|
4
|
+
font-family: monospace;
|
5
|
+
font-size: 1.3rem;
|
6
|
+
line-height: 1.3;
|
7
|
+
-webkit-font-smoothing: antialiased;
|
8
|
+
}
|
9
|
+
|
10
|
+
h2, h3, h4, h5, h6 { margin-top: 3rem; }
|
11
|
+
|
12
|
+
hr { margin: 2rem 0; }
|
13
|
+
|
14
|
+
p { margin: 1rem 0; }
|
15
|
+
|
16
|
+
li { margin: 0.4rem 0; }
|
17
|
+
|
18
|
+
.wrapper {
|
19
|
+
max-width: 60ch;
|
20
|
+
margin: 4rem auto;
|
21
|
+
padding: 0 1rem;
|
22
|
+
}
|
23
|
+
|
24
|
+
hr {
|
25
|
+
text-align: center;
|
26
|
+
border: 0;
|
27
|
+
|
28
|
+
&:before { content: '/////' }
|
29
|
+
&:after { content: attr(data-content) '/////' }
|
30
|
+
}
|
31
|
+
|
32
|
+
table, th, td {
|
33
|
+
width: 100%;
|
34
|
+
border: thin solid black;
|
35
|
+
border-collapse: collapse;
|
36
|
+
padding: 0.4rem;
|
37
|
+
}
|
38
|
+
|
39
|
+
code {
|
40
|
+
color: white;
|
41
|
+
background-color: black;
|
42
|
+
}
|
43
|
+
|
44
|
+
div.highlighter-rouge code {
|
45
|
+
display: block;
|
46
|
+
overflow-x: auto;
|
47
|
+
padding: 1rem;
|
48
|
+
}
|
49
|
+
|
50
|
+
blockquote {
|
51
|
+
font-style: italic;
|
52
|
+
border: thin solid black;
|
53
|
+
padding: 1rem;
|
54
|
+
|
55
|
+
p { margin: 0; }
|
56
|
+
}
|
metadata
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: no-style-please
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Riccardo Graziosi
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-07-21 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: 3.8.7
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.8.7
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jekyll-feed
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.13.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.13.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jekyll-seo-tag
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.6.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.6.1
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- riccardo.graziosi97@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- LICENSE.txt
|
63
|
+
- README.md
|
64
|
+
- _config.yml
|
65
|
+
- _includes/goat_counter.html
|
66
|
+
- _includes/head.html
|
67
|
+
- _includes/menu_item.html
|
68
|
+
- _includes/post_list.html
|
69
|
+
- _layouts/default.html
|
70
|
+
- _layouts/home.html
|
71
|
+
- _layouts/post.html
|
72
|
+
- _sass/no-style-please.scss
|
73
|
+
- assets/css/main.scss
|
74
|
+
homepage: https://github.com/riggraz/no-style-please
|
75
|
+
licenses:
|
76
|
+
- MIT
|
77
|
+
metadata: {}
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements: []
|
93
|
+
rubygems_version: 3.0.3
|
94
|
+
signing_key:
|
95
|
+
specification_version: 4
|
96
|
+
summary: A (nearly) no-css minimalist Jekyll theme.
|
97
|
+
test_files: []
|