no-style-please 0.1.1 → 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 +4 -4
- data/README.md +19 -1
- data/_config.yml +4 -1
- data/_includes/head.html +9 -5
- data/_includes/post_list.html +1 -1
- data/_layouts/default.html +4 -0
- data/_layouts/post.html +9 -0
- data/_sass/no-style-please.scss +33 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4931613fa693afd5baae6754d3def6fd25a050a8d32dff2af2677733c7cea89
|
4
|
+
data.tar.gz: 84e3124bb32ba0c8b40b3cc6a9f1daa74d92619bf23ec1e29d89ea3612ac797e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fabf42e3b09173948965662902c70c1992dab8a54a655da8628c3985d26c4c04442d3c73695ee2e69c6f08ba97bbb7e978c17bc0116457449c038b527161725f
|
7
|
+
data.tar.gz: 11842ec0ad987981435b3da948a25ab05bf007f4f9362daf597b9d69c4479a67abea9b573f9845821b9130b762d48af9050e24a2e084418685423db5e5f5044c
|
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# no style, please!
|
2
2
|
|
3
|
-
A (nearly) no-css minimalist [Jekyll](https://jekyllrb.com/) theme
|
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" />
|
4
8
|
|
5
9
|
## Installation
|
6
10
|
|
@@ -38,6 +42,20 @@ You can edit `_config.yml` file to customize your blog. You can change things su
|
|
38
42
|
|
39
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.
|
40
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
|
+
|
41
59
|
## Contributing
|
42
60
|
|
43
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.
|
data/_config.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
title: no style, please! # name of the site
|
2
2
|
author: Riccardo Graziosi # name of site's author
|
3
3
|
email: riccardo.graziosi97@gmail.com # email of site's author
|
4
|
-
url:
|
4
|
+
url: https://riggraz.dev/no-style-please # root address of the site
|
5
5
|
description: > # description of the site (multiple lines allowed)
|
6
6
|
A (nearly) no-css minimalist Jekyll theme.
|
7
7
|
|
@@ -15,6 +15,9 @@ theme_config:
|
|
15
15
|
date_format: "%Y-%m-%d" # customize how date is formatted
|
16
16
|
show_description: false # show blog description in home page
|
17
17
|
|
18
|
+
sass:
|
19
|
+
style: :compressed
|
20
|
+
|
18
21
|
plugins:
|
19
22
|
- jekyll-feed
|
20
23
|
- jekyll-seo-tag
|
data/_includes/head.html
CHANGED
@@ -3,12 +3,16 @@
|
|
3
3
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
5
5
|
|
6
|
+
<title>
|
7
|
+
{% if page.title %}
|
8
|
+
{{ page.title }}
|
9
|
+
{% else %}
|
10
|
+
{{ site.title }}
|
11
|
+
{% endif %}
|
12
|
+
</title>
|
13
|
+
|
14
|
+
{% seo title=false %}
|
6
15
|
{% feed_meta %}
|
7
|
-
{% seo %}
|
8
|
-
|
9
|
-
{% if site.goat_counter and jekyll.environment == "production" %}
|
10
|
-
{% include goat_counter.html %}
|
11
|
-
{% endif %}
|
12
16
|
|
13
17
|
<link rel="shortcut icon" type="image/x-icon" href="/{{ site.favicon }}" />
|
14
18
|
<link rel="stylesheet" href="{{ site.url }}/assets/css/main.css" />
|
data/_includes/post_list.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<ul>
|
3
3
|
{% for post in site.posts %}
|
4
4
|
<li>
|
5
|
-
{{ post.date | date: site.theme_config.date_format }} <a href="{{ post.url }}">{{ post.title | downcase }}</a>
|
5
|
+
{{ post.date | date: site.theme_config.date_format }} <a href="{{ post.url | relative_url }}">{{ post.title | downcase }}</a>
|
6
6
|
</li>
|
7
7
|
{% endfor %}
|
8
8
|
</ul>
|
data/_layouts/default.html
CHANGED
data/_layouts/post.html
CHANGED
@@ -5,3 +5,12 @@ layout: default
|
|
5
5
|
<a href="{{ site.url }}">{{ site.theme_config.back_home_text }}</a>
|
6
6
|
<h1>{{ page.title }}</h1>
|
7
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>
|
data/_sass/no-style-please.scss
CHANGED
@@ -1,20 +1,26 @@
|
|
1
|
-
|
1
|
+
html {
|
2
2
|
color: black;
|
3
3
|
background-color: white;
|
4
4
|
font-family: monospace;
|
5
5
|
font-size: 1.3rem;
|
6
|
-
line-height: 1.
|
6
|
+
line-height: 1.3;
|
7
|
+
-webkit-font-smoothing: antialiased;
|
7
8
|
}
|
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
|
+
|
9
18
|
.wrapper {
|
10
|
-
width:
|
11
|
-
max-width: 640px;
|
19
|
+
max-width: 60ch;
|
12
20
|
margin: 4rem auto;
|
13
21
|
padding: 0 1rem;
|
14
22
|
}
|
15
23
|
|
16
|
-
h1 { line-height: 2rem; }
|
17
|
-
|
18
24
|
hr {
|
19
25
|
text-align: center;
|
20
26
|
border: 0;
|
@@ -24,6 +30,27 @@ hr {
|
|
24
30
|
}
|
25
31
|
|
26
32
|
table, th, td {
|
33
|
+
width: 100%;
|
27
34
|
border: thin solid black;
|
28
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; }
|
29
56
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: no-style-please
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Riccardo Graziosi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|