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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc1cfd94b103c639954338e73e23e7517c52b3176596944b4ee9739cceab8acd
4
- data.tar.gz: f8f20afd5637f1f21e34e8076c45f92de9582260ba071d39f1106bff082a7662
3
+ metadata.gz: c4931613fa693afd5baae6754d3def6fd25a050a8d32dff2af2677733c7cea89
4
+ data.tar.gz: 84e3124bb32ba0c8b40b3cc6a9f1daa74d92619bf23ec1e29d89ea3612ac797e
5
5
  SHA512:
6
- metadata.gz: b912823076fc1a523aff578b553be4541aa30048bc32425b0405cfff96eea2041ef4038f1cea26be321887025ce2ee338f4ffe48f5423c421ca7b65a89cf7dd0
7
- data.tar.gz: 2cb08e1e607572372001608adc24b991f7722a3bae047d3a428e20bdf5f722b221e8e5760d3f4132d6bbf1621f1209cb36b261422586c1f6cfbed84cacce6bee
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, inspired by [elly's site](http://tilde.town/~elly/).
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.
@@ -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: http://github.com/riggraz/no-style-please # root address of the site
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
@@ -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" />
@@ -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>
@@ -7,5 +7,9 @@
7
7
  {{ content }}
8
8
  </div>
9
9
  </main>
10
+
11
+ {% if site.goat_counter and jekyll.environment == "production" %}
12
+ {% include goat_counter.html %}
13
+ {% endif %}
10
14
  </body>
11
15
  </html>
@@ -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>
@@ -1,20 +1,26 @@
1
- body {
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.3rem;
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: fit-content;
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.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-12 00:00:00.000000000 Z
11
+ date: 2020-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll