jekyll-theme-dusk 0.2.3 → 0.2.5

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: 78642afdc7325d840ce411425624f75c0f0fab2c01ebe9a5029d7081455aa31d
4
- data.tar.gz: 92e26fa4bf184725d992c930bb8295086c3be450d1f26775fe595bd48dbace0f
3
+ metadata.gz: 0aaddb7cdb1b910335bd0a657c733cc741d711d5baaff9dee8a8261ec39dcca1
4
+ data.tar.gz: 97bf2558d4113fe0c418c8a0de7959198b65a48a5ad42e7475a85977d176e466
5
5
  SHA512:
6
- metadata.gz: 562d2479705bb9235236efecf26ecbf8a69a8e2d9540b1bee9091ee2463595b83db8b28952d12e2b6d1e7283796e1eda640c46d7118009a38ccc1165c0d1a9dd
7
- data.tar.gz: 5247a38e48013cedeebabf7f963a9a4a426fc96111b9f8e8986a2b735e59ae0ea6976e01c9ed8dbd896063b618eca63ab57c7cff22fee50c6855c148bceae55c
6
+ metadata.gz: 364219768d8342d5d545eb3a6ad4f4ef84c443a71200e3fba9658a197cbbfee443280cdbde6d2c31ada0cc6e84fde926fd1d18a423ff3734a4798499118bf7f8
7
+ data.tar.gz: 929dced2ffe00192bcfa8fc7b3fb0c10ef72cce825356fd6d7cd62c1ef3b92b3a408927d1c3f6d83061fcdf067bf3daec702d3316b54698a88147b36930bf933
data/README.md CHANGED
@@ -1,10 +1,6 @@
1
1
  # jekyll-theme-dusk
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
+ This theme was built for GitHub Pages.
8
4
 
9
5
  ## Installation
10
6
 
@@ -30,20 +26,48 @@ Or install it yourself as:
30
26
 
31
27
  ## Usage
32
28
 
33
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
29
+ This theme has many features in it. They are written here so that it is easier to use them.
34
30
 
35
- ## Contributing
31
+ - ### Navigation Menu
36
32
 
37
- Bug reports and pull requests are welcome on GitHub at https://github.com/Parmjot-Singh/jekyll-theme-dusk. 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.
33
+ To edit entries in the navigation menu, edit;
34
+ ```
35
+ _data/navigation.yml
36
+ ```
37
+ and add your pages, and icons if you want them.
38
+ Here is an example:
39
+ ```
40
+ - name: Home
41
+ icon:
42
+ link: /
43
+ - name: About
44
+ icon: /assets/images/about-icon.png
45
+ link: /about.html
46
+ - name: Blog
47
+ icon: /assets/images/blog-icon.png
48
+ link: /blog.html
49
+ ```
50
+ ![Editing the navigation menu, as a GIF](.readme/edit-nav.gif "Edit the navigation menu")
51
+ Crunchy gif :)
52
+
53
+ - ### Home Page
38
54
 
39
- ## Development
55
+ To edit the home page, you need to include a title for the page, and a small summary.
56
+ This can be found in the front matter. Here is an example.
57
+ ```
58
+ layout: home
59
+ permalink: /
60
+ title: "Dusk"
61
+ summary: "Dusk is a theme built for GitHub Pages."
62
+ ```
40
63
 
41
- To set up your environment to develop this theme, run `bundle install`.
64
+ - ### Blog Page
42
65
 
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.
66
+ This page contains all your posts that you have made on your website. All you need to do is just to make some posts, and then they will all appear there.
44
67
 
45
- 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 `jekyll-theme-dusk.gemspec` accordingly.
68
+ ## Contributing
69
+
70
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Parmjot-Singh/jekyll-theme-dusk. 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
71
 
48
72
  ## License
49
73
 
data/_config.yml CHANGED
@@ -6,6 +6,7 @@ exclude:
6
6
  - Gemfile.lock
7
7
  - jekyll-theme-dusk.gemspec
8
8
  - .jekyll-metadata
9
+ - .readme
9
10
 
10
11
  # Installed Gems - no SEO because privacy :)
11
12
  plugins:
@@ -0,0 +1,5 @@
1
+ - image: tux.jpg
2
+ - image: tux-flag.jpg
3
+ - image: tux-old.jpg
4
+ - image: tux-trollface.jpg
5
+ - image: tux-unfaithful.jpg
data/_data/navigation.yml CHANGED
@@ -7,4 +7,4 @@
7
7
  - name: Blog
8
8
  icon: /assets/images/blog-icon.png
9
9
  link: /blog.html
10
-
10
+
@@ -0,0 +1,11 @@
1
+ <!-- credit to Tim Van Damme at css-tricks.com -->
2
+ <!-- https://css-tricks.com/adaptive-photo-layout-with-flexbox -->
3
+ <div id="image-gallery">
4
+ <ul>
5
+ {%- for item in site.data.galleries[include.gallery_id] -%}
6
+ <li>
7
+ <img src="/assets/images/gallery/{{ include.gallery_id }}/{{ item.image }}">
8
+ </li>
9
+ {%- endfor -%}
10
+ </ul>
11
+ </div>
data/_sass/base.scss CHANGED
@@ -80,4 +80,33 @@ hr {
80
80
 
81
81
  article {
82
82
  margin: 20px 0;
83
+
84
+ #image-gallery {
85
+ background-color: green;
86
+
87
+ ul {
88
+ display: flex;
89
+ flex-wrap: wrap;
90
+ list-style: none;
91
+ padding-left: 0;
92
+
93
+ &:after {
94
+ content:'';
95
+ display:block;
96
+ flex-grow: 10;
97
+ }
98
+ }
99
+
100
+ li {
101
+ height: 40vh;
102
+ flex-grow: 1;
103
+ }
104
+
105
+ img {
106
+ max-height: 100%;
107
+ min-width: 100%;
108
+ object-fit: cover;
109
+ vertical-align: bottom;
110
+ }
111
+ }
83
112
  }
data/_sass/include.scss CHANGED
@@ -29,7 +29,7 @@
29
29
  transform: translate(-50%, -50%);
30
30
  }
31
31
  }
32
- #why {
32
+ #why {/* container around .b2b-container div. Button doesn't look correct without this for some reason, hence the name #why */
33
33
  display: flex;
34
34
  flex-direction: row;
35
35
  justify-content: flex-start;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-dusk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parmjot Singh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-25 00:00:00.000000000 Z
11
+ date: 2023-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-pages
@@ -48,12 +48,14 @@ files:
48
48
  - LICENSE.txt
49
49
  - README.md
50
50
  - _config.yml
51
+ - _data/galleries/example.yml
51
52
  - _data/navigation.yml
52
53
  - _includes/footer.html
53
54
  - _includes/head.html
54
55
  - _includes/header-default.html
55
56
  - _includes/header-home.html
56
57
  - _includes/header-post.html
58
+ - _includes/image-gallery.html
57
59
  - _includes/navigation.html
58
60
  - _layouts/blog.html
59
61
  - _layouts/default.html
@@ -69,6 +71,11 @@ files:
69
71
  - assets/images/cross.png
70
72
  - assets/images/dusk-gray.jpg
71
73
  - assets/images/dusk.jpg
74
+ - assets/images/gallery/example/tux-flag.jpg
75
+ - assets/images/gallery/example/tux-old.jpg
76
+ - assets/images/gallery/example/tux-trollface.jpg
77
+ - assets/images/gallery/example/tux-unfaithful.jpg
78
+ - assets/images/gallery/example/tux.jpg
72
79
  - assets/images/github-logo.png
73
80
  - assets/images/noise.png
74
81
  homepage: https://github.com/Parmjot-Singh/jekyll-theme-dusk/