coppermind 2.3 → 3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +251 -2
- data/_config.yml +2 -30
- data/_includes/footer.html +20 -2
- data/_sass/monophase/_layout.scss +18 -2
- data/assets/pins/hundredrabbits.gif +0 -0
- data/assets/pins/kitchen.gif +0 -0
- data/assets/pins/landchad.gif +0 -0
- data/assets/pins/larbs.gif +0 -0
- data/assets/pins/luke.gif +0 -0
- data/assets/pins/xxiivv.gif +0 -0
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 683e638992784d15f1ea672a4abf2422cc14527ef1fe84eed3d9c30625555149
|
4
|
+
data.tar.gz: 7c61912367a4ec02f3aec430cdd661f0c9cf124b1344e93e7ad44ea5e983ce42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e0ff2e506cd23276d7fd43ac7133ba8c345b7741d781371b06dd067964e71af570f6bf6248cb09f7211c29ea85607eb0c72d7cd3d35eb7b8365ea7a4e137604
|
7
|
+
data.tar.gz: f5792db063f2a433e516da3adcae07c83210e321e20ff713cabded983c69fa410e19badac2b39842af3c0b2827288385ee8856f9f0c9bf6e5ba25b145daf3722
|
data/README.md
CHANGED
@@ -1,3 +1,252 @@
|
|
1
|
-
# Coppermind
|
1
|
+
# Coppermind
|
2
2
|
|
3
|
-
Coppermind is a minimal
|
3
|
+
Coppermind is *a one-column minimal responsive Jekyll blog theme*.
|
4
|
+
|
5
|
+
## Why Another Jekyll Theme?
|
6
|
+
|
7
|
+
The modern web is bloated and disorganised. Pages load slowly and require large, resource-hungry web browsers to acess them. The machines and networks of years ago would be entirely adequate today if the programs they run were better optimised. This project seeks to provide a simple, low-dependency framework for creation of static sites.
|
8
|
+
|
9
|
+
## About
|
10
|
+
|
11
|
+
This project:
|
12
|
+
|
13
|
+
- Is built as a theme for [Jekyll](https://jekyllrb.com)
|
14
|
+
- Was built on the now abandoned [Monophase](https://github.com/whk-io/monophase), but adds several features, updates, and fixes.
|
15
|
+
|
16
|
+
## Installation and Initial Setup
|
17
|
+
|
18
|
+
### Adding the gem
|
19
|
+
|
20
|
+
|
21
|
+
Add this line to your Jekyll site's `Gemfile`:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
gem "coppermind"
|
25
|
+
```
|
26
|
+
|
27
|
+
And add this line to your Jekyll site's `_config.yml`:
|
28
|
+
|
29
|
+
```yaml
|
30
|
+
theme: coppermind
|
31
|
+
```
|
32
|
+
|
33
|
+
And then execute:
|
34
|
+
|
35
|
+
```shell
|
36
|
+
bundle
|
37
|
+
```
|
38
|
+
|
39
|
+
Or install it yourself as:
|
40
|
+
|
41
|
+
```shell
|
42
|
+
gem install coppermind
|
43
|
+
```
|
44
|
+
|
45
|
+
### The navigation bar and homepage
|
46
|
+
|
47
|
+
Before the site is fully functional, you will need to add an index.html file and navigation bar config files.
|
48
|
+
|
49
|
+
```html
|
50
|
+
<!-- index.html -->
|
51
|
+
|
52
|
+
---
|
53
|
+
layout: home
|
54
|
+
---
|
55
|
+
```
|
56
|
+
|
57
|
+
To set up the navigation bar you need to specify titles and URLs in the file `_data/navigation.yml`. For example, the following will give you a navbar with an *about* page and three archive pages.
|
58
|
+
|
59
|
+
```yml
|
60
|
+
- title: About
|
61
|
+
url: /about/
|
62
|
+
|
63
|
+
- title: Years
|
64
|
+
url: /years/
|
65
|
+
|
66
|
+
- title: Categories
|
67
|
+
url: /categories/
|
68
|
+
|
69
|
+
- title: Tags
|
70
|
+
url: /tags/
|
71
|
+
|
72
|
+
```
|
73
|
+
|
74
|
+
You will also need to add markdown files corresponding to these links in the site's root directory:
|
75
|
+
|
76
|
+
```md
|
77
|
+
<!-- about.md -->
|
78
|
+
|
79
|
+
---
|
80
|
+
layout: page
|
81
|
+
title: About
|
82
|
+
permalink: /about/
|
83
|
+
---
|
84
|
+
|
85
|
+
some text
|
86
|
+
```
|
87
|
+
|
88
|
+
```md
|
89
|
+
<!-- categories.md -->
|
90
|
+
|
91
|
+
---
|
92
|
+
layout: archive
|
93
|
+
type: categories
|
94
|
+
title: Categories
|
95
|
+
permalink: /categories/
|
96
|
+
---
|
97
|
+
```
|
98
|
+
|
99
|
+
```md
|
100
|
+
<!-- tags.md -->
|
101
|
+
|
102
|
+
---
|
103
|
+
layout: archive
|
104
|
+
type: tags
|
105
|
+
title: Tags
|
106
|
+
permalink: /tags/
|
107
|
+
---
|
108
|
+
```
|
109
|
+
|
110
|
+
```md
|
111
|
+
<!-- years.md -->
|
112
|
+
|
113
|
+
---
|
114
|
+
layout: archive
|
115
|
+
type: years
|
116
|
+
title: Years
|
117
|
+
permalink: /years/
|
118
|
+
---
|
119
|
+
```
|
120
|
+
|
121
|
+
### The footbar pins
|
122
|
+
To include pins in the footer, you need to specify titles, image names, and URLs in the file `_data/pins.yml` as shown in the example below.
|
123
|
+
|
124
|
+
```yml
|
125
|
+
- title: Larbs
|
126
|
+
url: https://larbs.xyz/
|
127
|
+
image: larbs
|
128
|
+
|
129
|
+
- title: XXIIVV
|
130
|
+
url: https://wiki.xxiivv.com/site/home.html
|
131
|
+
image: xxiivv
|
132
|
+
|
133
|
+
- title: Luke Smith
|
134
|
+
url: https://lukesmith.xyz/index
|
135
|
+
image: luke
|
136
|
+
|
137
|
+
- title: Hundred Rabbits
|
138
|
+
url: https://100r.co/site/home.html
|
139
|
+
image: hundredrabbits
|
140
|
+
|
141
|
+
- title: Landchad
|
142
|
+
url: https://landchad.net/
|
143
|
+
image: landchad
|
144
|
+
|
145
|
+
- title: Kitchen
|
146
|
+
url: https://grimgrains.com/site/home.html
|
147
|
+
image: kitchen
|
148
|
+
```
|
149
|
+
|
150
|
+
This configuration corresponds to the following fiiles:
|
151
|
+
1. `assets/pins/larbs.gif`
|
152
|
+
2. `assets/pins/xxiivv.gif`
|
153
|
+
3. `assets/pins/luke.gif`
|
154
|
+
4. `assets/pins/hundredrabbits.gif`
|
155
|
+
5. `assets/pins/landchad.gif`
|
156
|
+
6. `assets/pins/kitchen.gif`
|
157
|
+
|
158
|
+
|
159
|
+
## Customisation
|
160
|
+
|
161
|
+
### Config.yml options
|
162
|
+
In addition to the standard Jekyll config.yml settings, Coppermind supports the following:
|
163
|
+
|
164
|
+
| Variable | Type | Default | Specification |
|
165
|
+
| -------- | ---- | ------- | ------------- |
|
166
|
+
| `paginate` | int | --- | The number of posts to include on the homepage |
|
167
|
+
| `title` | String | --- | The title of the website |
|
168
|
+
| `tagline` | String | --- | The tagline of the website |
|
169
|
+
| `lang` | String | `en` | The language of pages; The value can be overwritten by the `lang` variable on each page |
|
170
|
+
| `author.name` | String | --- | The name of the website author |
|
171
|
+
| `author.url` | String | --- | A URL of the website author |
|
172
|
+
| `tags_path` | String | --- | A path to the archive-by-tags page; It is used by tags on each post |
|
173
|
+
| `categories_path` | String | --- | A path to the archive-by-categories page; It is used by categories on each post |
|
174
|
+
|
175
|
+
The default config is shown below:
|
176
|
+
|
177
|
+
```md
|
178
|
+
<!-- config.yml -->
|
179
|
+
|
180
|
+
title: Coppermind
|
181
|
+
tagline: Your tagline here
|
182
|
+
author:
|
183
|
+
name: Author
|
184
|
+
|
185
|
+
# Build settings
|
186
|
+
markdown: kramdown
|
187
|
+
plugins:
|
188
|
+
- jekyll-feed
|
189
|
+
- jekyll-paginate
|
190
|
+
- jekyll-seo-tag
|
191
|
+
- kramdown-parser-gfm
|
192
|
+
|
193
|
+
paginate: 2
|
194
|
+
|
195
|
+
tags_path: /tags/
|
196
|
+
categories_path: /categories/
|
197
|
+
```
|
198
|
+
|
199
|
+
### Page frontmatter
|
200
|
+
|
201
|
+
In addition to the standard Jekyll frontmatter configuration, Coppermind supports the following:
|
202
|
+
|
203
|
+
| Variable | Type | Default | Specification |
|
204
|
+
| -------- | ---- | ------- | ------------- |
|
205
|
+
| `description` | String | --- | A description of the current post |
|
206
|
+
| `last_modified_at` | String | --- | The date of the last modification you made on a post after its publishing |
|
207
|
+
| `author` | String or Array | --- | The author name(s) of the post |
|
208
|
+
| `comments` | Boolean | `true` | Does enable the Disqus comment system |
|
209
|
+
| `math` | Boolean | `false` | Does enable MathJax on this page |
|
210
|
+
|
211
|
+
A sample post is shown below:
|
212
|
+
|
213
|
+
```md
|
214
|
+
<!-- 2021-10-09-welcome-to-jekyll.markdown -->
|
215
|
+
|
216
|
+
---
|
217
|
+
layout: post
|
218
|
+
title: "Welcome to Jekyll!"
|
219
|
+
date: 2021-10-09 11:25:13 +1100
|
220
|
+
categories: jekyll update
|
221
|
+
tags: jekyll
|
222
|
+
---
|
223
|
+
|
224
|
+
some text
|
225
|
+
```
|
226
|
+
|
227
|
+
### Homepage
|
228
|
+
|
229
|
+
You can customise the homepage by setting `layout: home` in the frontmatter in an `index.html` file in the base directory.
|
230
|
+
|
231
|
+
### Custom Head
|
232
|
+
|
233
|
+
Coppermind leaves a placeholder to allow inserting custom HTML into the page head. HTML code in `_includes/custom-head.html` will be automatically included in `<head>`.
|
234
|
+
|
235
|
+
### Alert Messages
|
236
|
+
|
237
|
+
Coppermind provides some predefined classes to specify different levels of **alert messages**. In order of tone from light to heavy, they are: `message-info`, `message-warning`, and `message-danger`. You may add it to single elements like a `<p>`, or to a parent if there are multiple elements to show.
|
238
|
+
|
239
|
+
### Alignment
|
240
|
+
|
241
|
+
Coppermind also provides some predefined classes to specify the alignment of HTML elements—e.g. images. They are `align-center`, `align-left`, and `align-right`.
|
242
|
+
|
243
|
+
|
244
|
+
## Development
|
245
|
+
|
246
|
+
To set up your environment to develop this theme, run `bundle install`. This theme is setup just like a normal Jekyll site with various filler files for testing. To test the theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`.
|
247
|
+
|
248
|
+
When a new gem version is released, only the files in specified in the gemspec regexp and tracked with Git will be bundled.
|
249
|
+
|
250
|
+
## License
|
251
|
+
|
252
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_config.yml
CHANGED
@@ -1,22 +1,7 @@
|
|
1
|
-
# Welcome to Jekyll!
|
2
|
-
#
|
3
|
-
# This config file is meant for settings that affect your whole blog, values
|
4
|
-
# which you are expected to set up once and rarely edit after that. If you find
|
5
|
-
# yourself editing this file very often, consider using Jekyll's data files
|
6
|
-
# feature for the data you need to update frequently.
|
7
|
-
#
|
8
|
-
# For technical reasons, this file is *NOT* reloaded automatically when you use
|
9
|
-
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
|
10
|
-
|
11
|
-
# Site settings
|
12
|
-
# These are used to personalize your new site. If you look in the HTML files,
|
13
|
-
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
|
14
|
-
# You can create any custom variable you would like, and they will be accessible
|
15
|
-
# in the templates via {{ site.myvariable }}.
|
16
1
|
title: Coppermind
|
17
|
-
tagline:
|
2
|
+
tagline: Your tagline here
|
18
3
|
author:
|
19
|
-
name:
|
4
|
+
name: Author
|
20
5
|
|
21
6
|
# Build settings
|
22
7
|
markdown: kramdown
|
@@ -30,16 +15,3 @@ paginate: 2
|
|
30
15
|
|
31
16
|
tags_path: /tags/
|
32
17
|
categories_path: /categories/
|
33
|
-
|
34
|
-
|
35
|
-
# Exclude from processing.
|
36
|
-
# The following items will not be processed, by default. Create a custom list
|
37
|
-
# to override the default setting.
|
38
|
-
# exclude:
|
39
|
-
# - Gemfile
|
40
|
-
# - Gemfile.lock
|
41
|
-
# - node_modules
|
42
|
-
# - vendor/bundle/
|
43
|
-
# - vendor/cache/
|
44
|
-
# - vendor/gems/
|
45
|
-
# - vendor/ruby/
|
data/_includes/footer.html
CHANGED
@@ -1,5 +1,23 @@
|
|
1
|
+
|
1
2
|
<footer class="footer">
|
2
|
-
|
3
|
+
|
4
|
+
<div class="pinlist">
|
5
|
+
{% if site.data.pins %}
|
6
|
+
{% for item in site.data.pins %}
|
7
|
+
<a href="{{ item.url }}" class="pin">
|
8
|
+
<img src="/assets/pins/{{ item.image }}.gif">
|
9
|
+
</a>
|
10
|
+
{% endfor %}
|
11
|
+
{% endif %}
|
12
|
+
</div>
|
13
|
+
<br>
|
14
|
+
|
15
|
+
<!-- <p>The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. </p> -->
|
16
|
+
|
17
|
+
|
18
|
+
<div class="attribution">
|
19
|
+
|
20
|
+
<div class="attribution-column">
|
3
21
|
<p>
|
4
22
|
<small>
|
5
23
|
©
|
@@ -24,7 +42,7 @@
|
|
24
42
|
</p>
|
25
43
|
</div>
|
26
44
|
{% if site.data.social %}
|
27
|
-
<div class="
|
45
|
+
<div class="attribution-column">
|
28
46
|
<ul class="social-icons">
|
29
47
|
{% for social in site.data.social %}
|
30
48
|
<li class="social-icon-item">
|
@@ -269,6 +269,11 @@ a.pagination-item:hover {
|
|
269
269
|
}
|
270
270
|
}
|
271
271
|
|
272
|
+
.pin{
|
273
|
+
width: 88px;
|
274
|
+
padding-right: var(--spacer);
|
275
|
+
}
|
276
|
+
|
272
277
|
.social-icons {
|
273
278
|
list-style: none;
|
274
279
|
padding: 0;
|
@@ -281,10 +286,21 @@ a.pagination-item:hover {
|
|
281
286
|
}
|
282
287
|
|
283
288
|
@media screen and (min-width: $md-screen) {
|
284
|
-
.footer
|
289
|
+
// .footer{
|
290
|
+
// padding-left: var(--spacer-2);
|
291
|
+
// padding-right: var(--spacer-2);
|
292
|
+
// }
|
293
|
+
.attribution {
|
285
294
|
display: flex;
|
286
295
|
}
|
287
|
-
.
|
296
|
+
.pinlist{
|
297
|
+
display:flex;
|
298
|
+
// border:3px solid black;
|
299
|
+
flex-direction:row;
|
300
|
+
flex-wrap:wrap;
|
301
|
+
// justify-content: center;
|
302
|
+
}
|
303
|
+
.attribution-column {
|
288
304
|
width: 100%;
|
289
305
|
}
|
290
306
|
.social-icons {
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coppermind
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '
|
4
|
+
version: '3.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Williamson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -115,6 +115,12 @@ files:
|
|
115
115
|
- assets/monophase/styles.scss
|
116
116
|
- assets/normalize.css
|
117
117
|
- assets/open-color.css
|
118
|
+
- assets/pins/hundredrabbits.gif
|
119
|
+
- assets/pins/kitchen.gif
|
120
|
+
- assets/pins/landchad.gif
|
121
|
+
- assets/pins/larbs.gif
|
122
|
+
- assets/pins/luke.gif
|
123
|
+
- assets/pins/xxiivv.gif
|
118
124
|
homepage: https://github.com/zivhub/monophase
|
119
125
|
licenses:
|
120
126
|
- MIT
|
@@ -134,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
140
|
- !ruby/object:Gem::Version
|
135
141
|
version: '0'
|
136
142
|
requirements: []
|
137
|
-
rubygems_version: 3.
|
143
|
+
rubygems_version: 3.2.21
|
138
144
|
signing_key:
|
139
145
|
specification_version: 4
|
140
146
|
summary: A one-column minimal responsive Jekyll blog theme
|