googletheme 0.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +218 -52
  3. metadata +47 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6006921ccea85c1f738615f4cd931618a1724b1c35680df09c3b6dedc7900769
4
- data.tar.gz: 7b82cfe153c0cb13f6ca97e937570063fbe7d610098882c7543f23d7e0e4bac2
3
+ metadata.gz: edfd68469f6b0790db63b06fbb946a68f2031a9995edf9e369e8c4e9ea1c059e
4
+ data.tar.gz: 8fad9d87edf581e1af82b50eda013e26c1cf5208cad22e0fe09cc0b849cf9938
5
5
  SHA512:
6
- metadata.gz: 76f2e14a3432c0593fb98a4ee3db6ecfa6e48f1013c727a348325bdeec9a06c781ec3e72b07009d74b7cdcef0a1b9ed98e5a77848d9fa0c584c047e6259ffc27
7
- data.tar.gz: 1e9141faab1276d0324b54519d6534b6bdf05c329251ec28dbdca0fcb98a23ddf27724daded23ed0304aa400d3844ebe4d007918b3cba9fd99fa09837a95723d
6
+ metadata.gz: 871df538a8b5322c5ad940d8965ab632481ca8b666604d95796abef9732d44fa948170ee55fa54c32085306e5ad391ccde4457961ba806b83b4b1b3dc77d0104
7
+ data.tar.gz: f77e762e09f172738d488ae67bc9dfb511250e772d95c7b8fb84cf450fb5927809b35c0540118192ebc6b4ceaf0896d75c2e3704c5b1603d1ed9676492e5fe5f
data/README.md CHANGED
@@ -1,52 +1,218 @@
1
- # googletheme
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
8
-
9
-
10
- ## Installation
11
-
12
- Add this line to your Jekyll site's `Gemfile`:
13
-
14
- ```ruby
15
- gem "googletheme"
16
- ```
17
-
18
- And add this line to your Jekyll site's `_config.yml`:
19
-
20
- ```yaml
21
- theme: googletheme
22
- ```
23
-
24
- And then execute:
25
-
26
- $ bundle
27
-
28
- Or install it yourself as:
29
-
30
- $ gem install googletheme
31
-
32
- ## Usage
33
-
34
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
35
-
36
- ## Contributing
37
-
38
- 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.
39
-
40
- ## Development
41
-
42
- To set up your environment to develop this theme, run `bundle install`.
43
-
44
- 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.
45
-
46
- When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
47
- To add a custom directory to your theme-gem, please edit the regexp in `googletheme.gemspec` accordingly.
48
-
49
- ## License
50
-
51
- The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
-
1
+ # minima
2
+
3
+ *Minima is a one-size-fits-all Jekyll theme for writers*. It's Jekyll's default (and first) theme. It's what you get when you run `jekyll new`.
4
+
5
+ [Theme preview](https://jekyll.github.io/minima/)
6
+
7
+ ![minima theme preview](/screenshot.png)
8
+
9
+ ## Installation
10
+
11
+ Add this line to your Jekyll site's Gemfile:
12
+
13
+ ```ruby
14
+ gem "minima"
15
+ ```
16
+
17
+ And add this line to your Jekyll site:
18
+
19
+ ```yaml
20
+ theme: minima
21
+ ```
22
+
23
+ And then execute:
24
+
25
+ $ bundle
26
+
27
+
28
+ ## Contents At-A-Glance
29
+
30
+ Minima has been scaffolded by the `jekyll new-theme` command and therefore has all the necessary files and directories to have a new Jekyll site up and running with zero-configuration.
31
+
32
+ ### Layouts
33
+
34
+ Refers to files within the `_layouts` directory, that define the markup for your theme.
35
+
36
+ - `default.html` — The base layout that lays the foundation for subsequent layouts. The derived layouts inject their contents into this file at the line that says ` {{ content }} ` and are linked to this file via [FrontMatter](https://jekyllrb.com/docs/frontmatter/) declaration `layout: default`.
37
+ - `home.html` — The layout for your landing-page / home-page / index-page. [[More Info.](#home-layout)]
38
+ - `page.html` — The layout for your documents that contain FrontMatter, but are not posts.
39
+ - `post.html` — The layout for your posts.
40
+
41
+ ### Includes
42
+
43
+ Refers to snippets of code within the `_includes` directory that can be inserted in multiple layouts (and another include-file as well) within the same theme-gem.
44
+
45
+ - `disqus_comments.html` — Code to markup disqus comment box.
46
+ - `footer.html` — Defines the site's footer section.
47
+ - `google-analytics.html` — Inserts Google Analytics module (active only in production environment).
48
+ - `head.html` &mdash; Code-block that defines the `<head></head>` in *default* layout.
49
+ - `header.html` &mdash; Defines the site's main header section. By default, pages with a defined `title` attribute will have links displayed here.
50
+
51
+ ### Sass
52
+
53
+ Refers to `.scss` files within the `_sass` directory that define the theme's styles.
54
+
55
+ - `minima.scss` &mdash; The core file imported by preprocessed `main.scss`, it defines the variable defaults for the theme and also further imports sass partials to supplement itself.
56
+ - `minima/_base.scss` &mdash; Resets and defines base styles for various HTML elements.
57
+ - `minima/_layout.scss` &mdash; Defines the visual style for various layouts.
58
+ - `minima/_syntax-highlighting.scss` &mdash; Defines the styles for syntax-highlighting.
59
+
60
+ ### Assets
61
+
62
+ Refers to various asset files within the `assets` directory.
63
+ Contains the `main.scss` that imports sass files from within the `_sass` directory. This `main.scss` is what gets processed into the theme's main stylesheet `main.css` called by `_layouts/default.html` via `_includes/head.html`.
64
+
65
+ This directory can include sub-directories to manage assets of similar type, and will be copied over as is, to the final transformed site directory.
66
+
67
+ ### Plugins
68
+
69
+ Minima comes with [`jekyll-seo-tag`](https://github.com/jekyll/jekyll-seo-tag) plugin preinstalled to make sure your website gets the most useful meta tags. See [usage](https://github.com/jekyll/jekyll-seo-tag#usage) to know how to set it up.
70
+
71
+ ## Usage
72
+
73
+ ### Home Layout
74
+
75
+ `home.html` is a flexible HTML layout for the site's landing-page / home-page / index-page. <br/>
76
+
77
+ #### Main Heading and Content-injection
78
+
79
+ From Minima v2.2 onwards, the *home* layout will inject all content from your `index.md` / `index.html` **before** the **`Posts`** heading. This will allow you to include non-posts related content to be published on the landing page under a dedicated heading. *We recommended that you title this section with a Heading2 (`##`)*.
80
+
81
+ Usually the `site.title` itself would suffice as the implicit 'main-title' for a landing-page. But, if your landing-page would like a heading to be explicitly displayed, then simply define a `title` variable in the document's front matter and it will be rendered with an `<h1>` tag.
82
+
83
+ #### Post Listing
84
+
85
+ This section is optional from Minima v2.2 onwards.<br/>
86
+ It will be automatically included only when your site contains one or more valid posts or drafts (if the site is configured to `show_drafts`).
87
+
88
+ The title for this section is `Posts` by default and rendered with an `<h2>` tag. You can customize this heading by defining a `list_title` variable in the document's front matter.
89
+
90
+ --
91
+
92
+ ### Customization
93
+
94
+ To override the default structure and style of minima, simply create the concerned directory at the root of your site, copy the file you wish to customize to that directory, and then edit the file.
95
+ e.g., to override the [`_includes/head.html `](_includes/head.html) file to specify a custom style path, create an `_includes` directory, copy `_includes/head.html` from minima gem folder to `<yoursite>/_includes` and start editing that file.
96
+
97
+ The site's default CSS has now moved to a new place within the gem itself, [`assets/main.scss`](assets/main.scss). To **override the default CSS**, the file has to exist at your site source. Do either of the following:
98
+ - Create a new instance of `main.scss` at site source.
99
+ - Create a new file `main.scss` at `<your-site>/assets/`
100
+ - Add the frontmatter dashes, and
101
+ - Add `@import "minima";`, to `<your-site>/assets/main.scss`
102
+ - Add your custom CSS.
103
+ - Download the file from this repo
104
+ - Create a new file `main.scss` at `<your-site>/assets/`
105
+ - Copy the contents at [assets/main.scss](assets/main.scss) onto the `main.scss` you just created, and edit away!
106
+ - Copy directly from Minima 2.0 gem
107
+ - Go to your local minima gem installation directory ( run `bundle show minima` to get the path to it ).
108
+ - Copy the `assets/` folder from there into the root of `<your-site>`
109
+ - Change whatever values you want, inside `<your-site>/assets/main.scss`
110
+
111
+ --
112
+
113
+ ### Customize navigation links
114
+
115
+ This allows you to set which pages you want to appear in the navigation area and configure order of the links.
116
+
117
+ For instance, to only link to the `about` and the `portfolio` page, add the following to you `_config.yml`:
118
+
119
+ ```yaml
120
+ header_pages:
121
+ - about.md
122
+ - portfolio.md
123
+ ```
124
+
125
+ --
126
+
127
+ ### Change default date format
128
+
129
+ You can change the default date format by specifying `site.minima.date_format`
130
+ in `_config.yml`.
131
+
132
+ ```
133
+ # Minima date format
134
+ # refer to http://shopify.github.io/liquid/filters/date/ if you want to customize this
135
+ minima:
136
+ date_format: "%b %-d, %Y"
137
+ ```
138
+
139
+ --
140
+
141
+ ### Enabling comments (via Disqus)
142
+
143
+ Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.
144
+
145
+ To enable it, add the following lines to your Jekyll site:
146
+
147
+ ```yaml
148
+ disqus:
149
+ shortname: my_disqus_shortname
150
+ ```
151
+
152
+ You can find out more about Disqus' shortnames [here](https://help.disqus.com/customer/portal/articles/466208).
153
+
154
+ Comments are enabled by default and will only appear in production, i.e., `JEKYLL_ENV=production`
155
+
156
+ If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's YAML Front Matter.
157
+
158
+ --
159
+
160
+ ### Social networks
161
+
162
+ You can add links to the accounts you have on other sites, with respective icon, by adding one or more of the following options in your config:
163
+
164
+ ```yaml
165
+ twitter_username: jekyllrb
166
+ github_username: jekyll
167
+ dribbble_username: jekyll
168
+ facebook_username: jekyll
169
+ flickr_username: jekyll
170
+ instagram_username: jekyll
171
+ linkedin_username: jekyll
172
+ pinterest_username: jekyll
173
+ youtube_username: jekyll
174
+ googleplus_username: +jekyll
175
+ rss: rss
176
+
177
+ mastodon:
178
+ - username: jekyll
179
+ instance: example.com
180
+ - username: jekyll2
181
+ instance: example.com
182
+ ```
183
+
184
+ --
185
+
186
+ ### Enabling Google Analytics
187
+
188
+ To enable Google Analytics, add the following lines to your Jekyll site:
189
+
190
+ ```yaml
191
+ google_analytics: UA-NNNNNNNN-N
192
+ ```
193
+
194
+ Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
195
+
196
+ --
197
+
198
+ ### Enabling Excerpts on the Home Page
199
+
200
+ To display post-excerpts on the Home Page, simply add the following to your `_config.yml`:
201
+
202
+ ```yaml
203
+ show_excerpts: true
204
+ ```
205
+
206
+ ## Contributing
207
+
208
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jekyll/minima. 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.
209
+
210
+ ## Development
211
+
212
+ To set up your environment to develop this theme, run `script/bootstrap`.
213
+
214
+ To test your theme, run `script/server` (or `bundle exec jekyll serve`) and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme and the contents. As you make modifications, your site will regenerate and you should see the changes in the browser after a refresh.
215
+
216
+ ## License
217
+
218
+ The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: googletheme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - NanobugXL
@@ -24,6 +24,48 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jekyll-feed
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.9'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.9'
41
+ - !ruby/object:Gem::Dependency
42
+ name: jekyll-seo-tag
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jekyll-admin
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
27
69
  - !ruby/object:Gem::Dependency
28
70
  name: bundler
29
71
  requirement: !ruby/object:Gem::Requirement
@@ -63,7 +105,8 @@ files:
63
105
  homepage: https://dev.azure.com/Nanobug/Jekyll-Google-Theme
64
106
  licenses:
65
107
  - MIT
66
- metadata: {}
108
+ metadata:
109
+ plugin_type: theme
67
110
  post_install_message:
68
111
  rdoc_options: []
69
112
  require_paths:
@@ -82,7 +125,6 @@ requirements: []
82
125
  rubygems_version: 3.0.3
83
126
  signing_key:
84
127
  specification_version: 4
85
- summary: The Jekyll Google Theme is something great for many, who are inspired by
86
- the way Google Company presents their websites in a Material-like. This is great
87
- for those who like to setup a Jekyll Blog or a Personal Website.
128
+ summary: The Jekyll Google Theme is something great for many, minimal and inspriational.
129
+ This is great for those who like to setup a Jekyll Blog or a Personal Website.
88
130
  test_files: []