simple-gh-pages-theme 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3182d134b44acc94d186145ae91f03996475b96bca8f2b2821a2fa9d6c5dfb8
4
- data.tar.gz: b59e2a96ce1944ca44e8d9d8b1534066115f352410c367abbbf3177c2ba270f5
3
+ metadata.gz: b7b807d8c650f10418abcc0c706ffd1c650507409b2ef50a4a6f278333a22622
4
+ data.tar.gz: 973d492bd1fa490a39071abfbc1bcbd1454caa6064be5f62194c99d3e8b84d9d
5
5
  SHA512:
6
- metadata.gz: 3d1fd77df7585e8b3d39d2b83110a86925244e96a899c8680b6abf1b9a94b2711d5942af2e4756219a94e50e5121933911db6fccf1c539ec941c304e9faf9d79
7
- data.tar.gz: abf4e45bcf5ca2f76db5967fe6a276a092d9d88160b8754ebcab089f0f967b6b1386ca2d9d03c8dc036050ab42fcf2f7a8d2d4253ee45f8e422a763146237a0a
6
+ metadata.gz: 47549fede30cf7138a9393174e48757585a4d96d1fa79eee44ef12dfa30945cd028b1f95388e42861106d42238a6fe09c41ef25fcae0040af9deb9928c7f893d
7
+ data.tar.gz: ce01829d02aa82aa0abc54af35291121ac55c47239824ade736ce189a75a480b5dc3a352a514ce98286f8895c7e72f3d5dbf9743f3fd5beee058439fbcc2eed8
data/README.md CHANGED
@@ -1,49 +1,107 @@
1
1
  # simple-gh-pages-theme
2
2
 
3
- Welcome to your new Jekyll theme! 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`.
4
-
5
- To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
-
7
- TODO: Delete this and the text above, and describe your gem
3
+ <table>
4
+ <tr><td>
5
+ <img width="500" alt="empty default" src="https://user-images.githubusercontent.com/5443727/229302809-750132e5-d461-4ec8-a38a-ccdc62b3b72e.png">
6
+ </td><td>
7
+ <img width="500" alt="jordiwippert.nl" src="https://user-images.githubusercontent.com/5443727/229302812-d481eb40-b0ca-49cd-95d5-c7fef5228b7a.png">
8
+ </td>
9
+ <tr>
10
+ <td>
11
+ simple-gh-pages-theme, after install and first post setup
12
+ </td>
13
+ <td>
14
+ in-use
15
+ </td>
16
+ </tr>
17
+ </table>
8
18
 
9
19
  ## Installation
10
20
 
11
21
  Add this line to your Jekyll site's `Gemfile`:
12
-
13
22
  ```ruby
14
23
  gem "simple-gh-pages-theme"
15
24
  ```
16
25
 
17
- And add this line to your Jekyll site's `_config.yml`:
18
-
26
+ And add this line to your Jekyll site's `_config.yml`. Remove/disable possibly already enabled themes:
19
27
  ```yaml
20
28
  theme: simple-gh-pages-theme
21
29
  ```
22
30
 
23
31
  And then execute:
32
+ ```shell
33
+ bundle
34
+ OR
35
+ gem install simple-gh-pages-theme
36
+ ```
37
+ ### !!! Important. To make the layouts work properly.
24
38
 
25
- $ bundle
39
+ If you created a new website (`jekyll new sitename`), you can make your pages use the layout by changing:
26
40
 
27
- Or install it yourself as:
41
+ - **index.markdown**:
42
+ ```
43
+ ---
44
+ layout: index
45
+ ---
46
+ ```
47
+ - **about.markdown**:
48
+ ```
49
+ ---
50
+ layout: post
51
+ permalink: /about.html
52
+ ---
53
+ ```
54
+ - **posts.markdown**: (file might not exist yet)
55
+ ```
56
+ ---
57
+ layout: posts
58
+ ---
59
+ ```
60
+ - **404.markdown**: (file might not exist yet)
61
+ ```
62
+ ---
63
+ layout: 404
64
+ ---
65
+ ```
66
+
67
+ ## Configuration:
28
68
 
29
- $ gem install simple-gh-pages-theme
69
+ See/use example config [here](https://github.com/LiveNL/simple-gh-pages-theme/blob/main/example-config.yml). Copy to `_config.yml`
30
70
 
31
71
  ## Usage
72
+ ### Posts
32
73
 
33
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
74
+ Create your posts like:
34
75
 
35
- ## Contributing
76
+ ```
77
+ docs/_posts/published/yyyy-mm-dd-postname.md
78
+ ```
36
79
 
37
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/simple-gh-pages-theme. 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.
80
+ Each post can have the following options (with defaults):
81
+
82
+ ```
83
+ layout: post
84
+ title: "Title here"
85
+ image: assets/images/image.png OR https://example.com/image.png
86
+ categories: [category]
87
+ tags: [tag]
88
+ highlight: false (if true: it will be used on about page, more here)
89
+ short: false (if true: it shown in 'short' list on home page)
90
+ list_post: false (if true: it shown in list on home/posts page)
91
+ ```
38
92
 
39
93
  ## Development
40
94
 
41
95
  To set up your environment to develop this theme, run `bundle install`.
42
96
 
43
- 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.
97
+ To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`.
98
+
99
+ 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.
44
100
 
45
101
  When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
46
- To add a custom directory to your theme-gem, please edit the regexp in `simple-gh-pages-theme.gemspec` accordingly.
102
+
103
+ ## Contributing
104
+ Bug reports and pull requests are welcome on GitHub at https://github.com/lvenl/simple-gh-pages-theme. 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.
47
105
 
48
106
  ## License
49
107
 
@@ -3,19 +3,21 @@ layout: default
3
3
  title: categories
4
4
  ---
5
5
 
6
- <div class="posts-all">
7
- <!-- prettier-ignore -->
8
- {% assign selection = page.posts | where_exp:"post", "post.list_post == true" %}
6
+ <div class="content">
7
+ <div class="posts-all">
8
+ <!-- prettier-ignore -->
9
+ {% assign selection = page.posts | where_exp:"post", "post.list_post == true" %}
9
10
  {% for post in selection %}
10
11
  {% include post-list-item.html %}
11
12
  {% assign nr_of_posts = nr_of_posts | plus:1 %}
12
13
  {% endfor %}
13
- </div>
14
-
15
- <div class="sidebar-short">
16
- <div class="div-subtitle">
17
- <h4>{{nr_of_posts}} posts with {{ page.type }} '{{ page.title }}'</h4>
18
14
  </div>
19
15
 
20
- {% include sidebar-categories.html %}
16
+ <div class="sidebar-short">
17
+ <div class="div-subtitle">
18
+ <h4>{{nr_of_posts}} posts with {{ page.type }} '{{ page.title }}'</h4>
19
+ </div>
20
+
21
+ {% include sidebar-categories.html %}
22
+ </div>
21
23
  </div>
data/assets/css/main.scss CHANGED
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  ---
3
+
3
4
  $base: #272b32;
4
5
  $light: $base;
5
6
  $highlight: #fc036f;
@@ -260,7 +261,7 @@ body {
260
261
  .social {
261
262
  margin-left: auto;
262
263
  a {
263
- padding-right: 10px;
264
+ padding-right: 0px;
264
265
  text-decoration: none;
265
266
  }
266
267
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-gh-pages-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - LiveNL