jekyll-theme-image-grid 0.1.1 → 1.0.0

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: 599adfc64eacd037cccacc8ff45996f337cbddcb4a1d5386e14ea76d34552372
4
- data.tar.gz: 8703b5995833aff593d94728ac49cd74695a3cdd61e254546deacb99703e880c
3
+ metadata.gz: 90e8b3c78a11cc2a2b47df12bb8e08cf62921a970c7eac1fbfe31b11edb3c4b1
4
+ data.tar.gz: fa2439a070f8a5d0facb7ae3c06671f1fa2d49830d4d350ac9e1334cb9749da6
5
5
  SHA512:
6
- metadata.gz: f4ed576b21c98310db836a7fcc3ed7d80730ef3076fc67e668a620b04348ce163f36156d56292cb739937c01be82e0c59b10a6b94a2b1ffb37d3b4540f819481
7
- data.tar.gz: d818062e9bb887a829b4e25e08c29e1a86a5dcde7303fd955c682b55879233eb8e07f23885da0b321d3f8291fd76f1860e6b999e62fb8bd69866e70dc714a665
6
+ metadata.gz: c1d0f1036cdd29d4b1cbc01332d84ec2af91d8648c64360e741b774d3dfbd3ac4dfb44670c6aedc9b2164a3833f8651bafee1373a46007e7faa9448ad939ed89
7
+ data.tar.gz: b598fffcad054ad56f6e9562ef93fe0df7bcabf0c724d4cc60b55c7df77e2cac7bf0c90cde4c5bd2e7e5973e6f2c7ae13931b5b147e1b6d2712aaef02adb7923
File without changes
data/README.md CHANGED
@@ -1,9 +1,19 @@
1
1
  # jekyll-theme-image-grid
2
2
 
3
- A simple responsive image grid theme for displaying image-based content with various built-in customization options. See a [live example](https://www.jzhong.today/jekyll-theme-image-grid/).
3
+ A simple responsive image grid theme for displaying image-based content with various built-in customization options.
4
+
5
+ - [Live example site](http://www.jzhong.today/image-grid-example/)
6
+ - [Example site repository](https://github.com/jirrian/image-grid-example)
7
+ - [In-depth installation tutorial](https://pages.virtualgoodsdealer.com/articles/2021/01/21/simple-website-tutorial-part-three/)
4
8
 
5
9
  ![Example Screenshot](screenshot.png)
6
10
 
11
+ ## Dependencies
12
+
13
+ This theme uses the jekyll plugin [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag).
14
+
15
+ This theme also uses [Bootstrap 4](https://getbootstrap.com/docs/4.6/getting-started/introduction/). Edit the files `_includes/bootstrap-scripts.html` and `_includes/bootstrap-style.html` to change the Bootstrap version.
16
+
7
17
  ## Installation
8
18
 
9
19
  [Create a new Jekyll site.](https://jekyllrb.com/docs/#instructions)
@@ -20,50 +30,31 @@ And then execute:
20
30
  To use this theme with Github Pages, add this line to your Jekyll site's `_config.yml`:
21
31
 
22
32
  ```yaml
23
- remote_theme: jirrian/jekyll-theme-image-grid
33
+ remote_theme: jirrian/jekyll-theme-image-grid@main
24
34
  ```
25
35
 
26
36
  Then build your site:
27
37
 
28
38
  $ bundle exec jekyll serve
29
39
 
30
- Preview your new site at `http://localhost:4000`.
40
+ Preview your new site at `http://localhost:4000`. Now you should be able to test your site locally as well as deploy it on Github Pages.
31
41
 
32
- ## Adding a New Post
42
+ ## Usage
43
+ ### First time setup
33
44
 
34
- Posts in this theme are image based. A post must have at least one corresponding image for it to show on the home grid page.
45
+ Copy the contents of the [sample `_config.yml` file](https://github.com/jirrian/image-grid-example/blob/main/_config.yml) into your `_config.yml` file and edit the values with your information and preferred settings.
35
46
 
36
- All post markdown files are stored in the `_posts` folder.
37
- All images are stored in folders in the `_images` folder. Post images are stored in folders `_images/yyyy-mm-dd-name-of-post` that correspond to the name of the post `yyyy-mm-dd-name-of-post.md`. For example, if your post markdown file is named `2020-12-26-hello-world.md`, it must be in the `_posts` folder. And, all images that are displayed in that post must be in a folder `2020-12-26-hello-world` that is inside the `_images` folder.
47
+ Delete the contents of the `_posts` folder.
38
48
 
39
- Post markdown files can contain the following:
40
- ```
41
- ---
42
- layout: post
43
- title: Title of Post (optional)
44
- show_title: true (optional)
45
- ---
49
+ Create a folder named `_images` in the root of your site directory. Make sure the `_images` folder is included in `_config.yml`.
46
50
 
47
- Post content here. (optional)
48
- ```
49
-
50
- ## Adding a Page
51
-
52
- Pages are linked in the top nav bar. Markdown files for pages are stored in the root of the repository. Page markdown files can contain the following:
53
- ```
54
- ---
55
- layout: page
56
- title: About
57
- ---
51
+ Check out the [example site repo](https://github.com/jirrian/image-grid-example) for reference.
58
52
 
59
- Add your about me here. (optional)
60
- ```
53
+ ### Display Settings
61
54
 
62
- ## Display Settings
55
+ Edit settings in the `_config.yml` file to change display settings for the grid and post pages. See the [sample `_config.yml` file](https://github.com/jirrian/image-grid-example/blob/main/_config.yml) for reference.
63
56
 
64
- Edit settings in the `_config.yml` file to change display settings for the grid and post pages.
65
-
66
- ### Grid Page Display Settings
57
+ #### Grid Page Display Settings
67
58
 
68
59
  Choose whether to show all images from posts on home grid page or only show the first image from posts by editing the following field.
69
60
  ```yaml
@@ -82,7 +73,7 @@ square-cropped - Images are displayed in square grid and cropped to a square asp
82
73
  square-og - Images are displayed in square grid and with original aspect ratios.
83
74
  masonry - Images are displayed in original aspect ratios but staggered (like Pinterest). Please note this will display the images in top to bottom (then left to right) order instead of left to right (then top to bottom).
84
75
 
85
- ### Post Page Display Settings
76
+ #### Post Page Display Settings
86
77
 
87
78
  Change settings for what information is displayed on post pages.
88
79
 
@@ -110,22 +101,73 @@ post_settings:
110
101
  true - Displays date of post.
111
102
  false - Does not show date of post.
112
103
 
113
- ## Built-in Style Customization
104
+ ### Adding a New Post
105
+
106
+ Posts in this theme are image based. A post must have at least one corresponding image for it to show on the home grid page.
107
+
108
+ All post markdown files are stored in the `_posts` folder.
109
+ All images are stored in folders in the `_images` folder. Post images are stored in folders `_images/yyyy-mm-dd-name-of-post` that correspond to the name of the post `yyyy-mm-dd-name-of-post.md`. For example, if your post markdown file is named `2020-12-26-hello-world.md`, it must be in the `_posts` folder. And, all images that are displayed in that post must be in a folder `2020-12-26-hello-world` that is inside the `_images` folder.
110
+
111
+ Post markdown files can contain the following:
112
+ ```
113
+ ---
114
+ layout: post
115
+ title: Title of Post (optional)
116
+ show_title: true (optional)
117
+ ---
118
+
119
+ Post content here. (optional)
120
+ ```
121
+
122
+ ### Adding a Page
123
+
124
+ Pages are linked in the top nav bar. Markdown files for pages are stored in the root of the repository. Page markdown files can contain the following:
125
+ ```
126
+ ---
127
+ layout: page
128
+ title: About
129
+ ---
130
+
131
+ Add your about me here. (optional)
132
+ ```
133
+
134
+ ## Customization
135
+ Customize the layout HTML, includes HTML, and sass files, by copying the theme files to your site directory and making edits to it there.
136
+
137
+ ### Theme files structure
138
+ - `_layouts` - folder of layouts
139
+ - `default.html` - default layout
140
+ - `home.html` - grid page layout
141
+ - `page.html` - page layout
142
+ - `post.html` - post layout
143
+ - `_includes` - folder of html code used in other layouts
144
+ - `bootstrap-scripts.html` - Bootstrap 4 scripts (edit to change version of Bootstrap)
145
+ - `bootstrap-style.html` - Bootstrap 4 stylesheet (edit to change version of Bootstrap)
146
+ - `footer.html` - footer
147
+ - `head.html` - head tag
148
+ - `header.html` - navigation bar
149
+ - `_sass` - folder of scss files
150
+ - `style.scss` - styles for theme
151
+
152
+ ### Built in customization
114
153
 
115
154
  The following variables can be edited in the `_sass/style.scss` file to change colors of the website's design.
116
155
  ```sass
117
- $body-bg-color: white; // background color
118
- $header-title-color: blue; // color of title of website
119
- $header-bg-color: white; // color of nav bar
120
- $footer-color: silver; // color of footer icons
121
- $post-title-color: gray; // color of post titles
122
- $post-date-color: darkgray; // color of post dates
123
- $page-title-color: gray; // color of page titles
156
+ $body-bg-color: white; /* background color */
157
+ $header-title-color: blue; /* color of title of website */
158
+ $header-bg-color: white; /* color of nav bar */
159
+ $footer-color: silver; /* color of footer icons */
160
+ $post-title-color: gray; /* color of post titles */
161
+ $post-date-color: darkgray; /* color of post dates */
162
+ $page-title-color: gray; /* color of page titles */
124
163
  ```
125
164
 
126
- For complete customization, add css to the `_sass/style.scss` file.
127
-
128
165
  ## License
129
166
 
130
167
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
131
168
 
169
+ ## Future updates
170
+
171
+ - lazy loading
172
+ - video post support
173
+ - text post support
@@ -1,12 +1,12 @@
1
1
  title: image grid
2
2
  author: author
3
3
  email: your-email@example.com
4
- description: A simple image grid theme. Add your site description here in the _config.yml file. It will appear in your document head meta (for
4
+ description: A simple responsive image grid theme for displaying image-based content with various built-in customization options. Add your site description here in the _config.yml file. It will appear in your document head meta (for
5
5
  Google search results).
6
6
 
7
7
  # generate social links in footer
8
8
  social_links:
9
- twitter: jirrian
9
+ twitter: jekyll
10
10
  github: jekyll
11
11
  # facebook: jekyll
12
12
  # instagram: jekyll
@@ -0,0 +1,3 @@
1
+ <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
2
+ <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
3
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.min.js" integrity="sha384-+YQ4JLhjyBLPDQt//I+STsc9iw4uQqACwlvpslubQzn4u2UU2UFM80nGisd026JF" crossorigin="anonymous"></script>
@@ -0,0 +1 @@
1
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
@@ -2,7 +2,7 @@
2
2
  <meta charset='utf-8'>
3
3
  <meta name='viewport' content='width=device-width, initial-scale=1'>
4
4
 
5
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
5
+ {% include bootstrap-style.html %}
6
6
 
7
7
  <link rel='stylesheet' href='{{ '/assets/style.css' | relative_url }}'>
8
8
 
@@ -11,8 +11,6 @@
11
11
  {% include footer.html %}
12
12
  </div>
13
13
  </div>
14
- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
15
- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
16
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
14
+ {% include bootstrap-scripts.html %}
17
15
  </body>
18
16
  </html>
File without changes
@@ -5,7 +5,6 @@ layout: default
5
5
  <div class="mt-5">
6
6
  <div class="page-title">{{ page.title }}</div>
7
7
 
8
- <div class="lead">
9
8
  {{ content }}
10
- </div>
9
+
11
10
  </div>
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,44 +1,64 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-image-grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jirrian
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-30 00:00:00.000000000 Z
11
+ date: 2021-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.5'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '4.1'
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '3.5'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '4.1'
32
+ version: '5.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: jekyll-seo-tag
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '2.7'
34
- type: :development
39
+ version: '2.1'
40
+ type: :runtime
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
44
  - - "~>"
39
45
  - !ruby/object:Gem::Version
40
- version: '2.7'
41
- description:
46
+ version: '2.1'
47
+ - !ruby/object:Gem::Dependency
48
+ name: bundler
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ description:
42
62
  email:
43
63
  - jillianzhong@yahoo.com
44
64
  executables: []
@@ -48,11 +68,13 @@ files:
48
68
  - LICENSE.txt
49
69
  - README.md
50
70
  - _config.yml
71
+ - _includes/bootstrap-scripts.html
72
+ - _includes/bootstrap-style.html
51
73
  - _includes/footer.html
52
74
  - _includes/head.html
53
75
  - _includes/header.html
54
76
  - _layouts/default.html
55
- - _layouts/grid.html
77
+ - _layouts/home.html
56
78
  - _layouts/page.html
57
79
  - _layouts/post.html
58
80
  - _sass/style.scss
@@ -62,7 +84,7 @@ homepage: https://github.com/jirrian/jekyll-theme-image-grid
62
84
  licenses:
63
85
  - MIT
64
86
  metadata: {}
65
- post_install_message:
87
+ post_install_message:
66
88
  rdoc_options: []
67
89
  require_paths:
68
90
  - lib
@@ -78,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
100
  version: '0'
79
101
  requirements: []
80
102
  rubygems_version: 3.0.8
81
- signing_key:
103
+ signing_key:
82
104
  specification_version: 4
83
105
  summary: A simple responsive image grid theme for displaying image-based content with
84
106
  various built-in customization options.