jekyll-theme-cayman-blog 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/404.md +1 -1
- data/README.md +22 -3
- data/_includes/social-metatags.html +5 -5
- data/_layouts/default.html +18 -18
- data/_sass/jekyll-theme-cayman-blog.scss +33 -0
- data/about.md +1 -1
- data/contact.md +1 -1
- metadata +46 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fe71156ace05f0aeb55e1b6f7d7d5538a718e16
|
4
|
+
data.tar.gz: 3d757da1d4e513f677a8276c8c043aa5208e8423
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08df00c96301ff22337e8428791cf357ae31b56afe85531fe968a3d9ebef45a620befb8824a9365a8c7b6e7a1fa2ef23524e808d68fa451a3e298b6567983204'
|
7
|
+
data.tar.gz: 994ff89a290b6ca6de404818f0f63d32dc94a815c2164995921b28aa45d9673108d5fee08b3dd8d103690565237d12c8e1b3a7e77d2f9406e7f8621563e6e286
|
data/404.md
CHANGED
data/README.md
CHANGED
@@ -157,6 +157,8 @@ If you'd like to add your own custom styles:
|
|
157
157
|
```
|
158
158
|
3. Add any custom CSS (or Sass, including imports) you'd like immediately after the `@import` line
|
159
159
|
|
160
|
+
*Note: If you'd like to change the theme's Sass variables, you must set new values before the `@import` line in your stylesheet.*
|
161
|
+
|
160
162
|
### Layouts
|
161
163
|
|
162
164
|
If you'd like to change the theme's HTML layout:
|
@@ -176,6 +178,23 @@ $section-headings-color: #0086b3;
|
|
176
178
|
@import "{{ site.theme }}";
|
177
179
|
```
|
178
180
|
|
181
|
+
### Overriding GitHub-generated URLs
|
182
|
+
|
183
|
+
Templates often rely on URLs supplied by GitHub such as links to your repository or links to download your project. If you'd like to override one or more default URLs:
|
184
|
+
|
185
|
+
1. Look at [the template source](https://github.com/lorepirri/cayman-blog/blob/master/_layouts/default.html) to determine the name of the variable. It will be in the form of `{{ site.github.zip_url }}`.
|
186
|
+
2. Specify the URL that you'd like the template to use in your site's `_config.yml`. For example, if the variable was `site.github.url`, you'd add the following:
|
187
|
+
```yml
|
188
|
+
github:
|
189
|
+
zip_url: http://example.com/download.zip
|
190
|
+
another_url: another value
|
191
|
+
```
|
192
|
+
3. When your site is built, Jekyll will use the URL you specified, rather than the default one provided by GitHub.
|
193
|
+
|
194
|
+
*Note: You must remove the `site.` prefix, and each variable name (after the `github.`) should be indent with two space below `github:`.*
|
195
|
+
|
196
|
+
For more information, see [the Jekyll variables documentation](https://jekyllrb.com/docs/variables/).
|
197
|
+
|
179
198
|
## Roadmap
|
180
199
|
|
181
200
|
See the [open issues](https://github.com/lorepirri/cayman-blog/issues) for a list of proposed features (and known issues).
|
@@ -186,7 +205,7 @@ The Cayman Blog theme is intended to make it quick and easy for GitHub Pages use
|
|
186
205
|
|
187
206
|
## Contributing
|
188
207
|
|
189
|
-
Interested in contributing to Cayman Blog? We'd love your help. Cayman Blog is an open source project, built one contribution at a time by users like you. See [the CONTRIBUTING file](CONTRIBUTING.md) for instructions on how to contribute.
|
208
|
+
Interested in contributing to Cayman Blog? We'd love your help. Cayman Blog is an open source project, built one contribution at a time by users like you. See [the CONTRIBUTING file](docs/CONTRIBUTING.md) for instructions on how to contribute.
|
190
209
|
|
191
210
|
### Previewing the theme locally
|
192
211
|
|
@@ -195,9 +214,9 @@ If you'd like to preview the theme locally (for example, in the process of propo
|
|
195
214
|
1. Clone down the theme's repository (`git clone https://github.com/lorepirri/cayman-blog`)
|
196
215
|
2. `cd` into the theme's directory
|
197
216
|
3. Run `script/bootstrap` to install the necessary dependencies
|
198
|
-
4. Run `
|
217
|
+
4. Run `bundle exec jekyll serve` to start the preview server
|
199
218
|
5. Visit [`localhost:4000`](http://localhost:4000) in your browser to preview the theme
|
200
219
|
|
201
220
|
### Running tests
|
202
221
|
|
203
|
-
The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run `script/cibuild`. You'll need to run `script/bootstrap`
|
222
|
+
The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run `script/cibuild`. You'll need to run `script/bootstrap` once before the test script will work.
|
@@ -1,5 +1,3 @@
|
|
1
|
-
<!-- Update your html tag to include the itemscope and itemtype attributes. -->
|
2
|
-
<html itemscope itemtype="http://schema.org/Article">
|
3
1
|
|
4
2
|
{% if page.title %}
|
5
3
|
{% assign page_title = page.title | escape %}
|
@@ -19,12 +17,13 @@
|
|
19
17
|
{% assign page_description = page.excerpt | default: page.tagline | default: site.description | strip_html | normalize_whitespace | truncate: 300 | escape %}
|
20
18
|
|
21
19
|
{%if page.image %}
|
22
|
-
{% assign page_image =
|
20
|
+
{% assign page_image = page.image | absolute_url %}
|
23
21
|
{%else if site.image %}
|
24
|
-
{% assign page_image = site.
|
22
|
+
{% assign page_image = site.image | absolute_url %}
|
25
23
|
{%endif %}
|
26
24
|
|
27
|
-
{% assign
|
25
|
+
{% assign abs_url = '' | absolute_url %}
|
26
|
+
{% assign canonical_url = page.url | replace:'index.html','' | prepend: abs_url %}
|
28
27
|
|
29
28
|
<!-- Place this data between the <head> tags of your website -->
|
30
29
|
{%if page_author %}
|
@@ -75,6 +74,7 @@
|
|
75
74
|
<meta property="og:title" content="{{ page_title }}" />
|
76
75
|
<meta property="og:type" content="article" />
|
77
76
|
<meta property="og:url" content="{{ canonical_url }}" />
|
77
|
+
|
78
78
|
{%if page_image %}
|
79
79
|
<meta property="og:image" content="{{ page_image }}" />
|
80
80
|
{%endif %}
|
data/_layouts/default.html
CHANGED
@@ -3,11 +3,22 @@
|
|
3
3
|
|
4
4
|
<head>
|
5
5
|
|
6
|
+
{% if site.google_analytics %}
|
7
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
8
|
+
<script>
|
9
|
+
window.dataLayer = window.dataLayer || [];
|
10
|
+
function gtag(){dataLayer.push(arguments);}
|
11
|
+
gtag('js', new Date());
|
12
|
+
gtag('config', '{{ site.google_analytics }}');
|
13
|
+
</script>
|
14
|
+
{% endif %}
|
15
|
+
|
6
16
|
<!-- Non social metatags -->
|
7
17
|
<meta charset="utf-8">
|
8
18
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
9
19
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
10
20
|
<meta name="theme-color" content="#157878">
|
21
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
11
22
|
|
12
23
|
{% if page.title %}
|
13
24
|
{% assign page-title = page.title | escape %}
|
@@ -29,15 +40,15 @@
|
|
29
40
|
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
30
41
|
{% endif %}
|
31
42
|
|
32
|
-
<link rel="shortcut icon" href="{{
|
43
|
+
<link rel="shortcut icon" href="{{ "/favicon.ico" | absolute_url }}">
|
44
|
+
|
33
45
|
<meta name="robots" content="noarchive">
|
34
46
|
|
35
47
|
<!-- <link rel="alternate" media="only screen and (max-width: 640px)" href="">
|
36
48
|
<link rel="alternate" media="handheld" href=""> -->
|
37
49
|
|
38
50
|
|
39
|
-
<link href='
|
40
|
-
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
|
51
|
+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | absolute_url }}">
|
41
52
|
</head>
|
42
53
|
<body>
|
43
54
|
|
@@ -108,11 +119,12 @@
|
|
108
119
|
</a>
|
109
120
|
</span>
|
110
121
|
{% endif %}
|
122
|
+
|
111
123
|
<!-- Contact icon -->
|
112
|
-
{% assign
|
113
|
-
{% if
|
124
|
+
{% assign contact_page = site.pages | where: "path", "contact.md" | first %}
|
125
|
+
{% if contact_page.title %}
|
114
126
|
<span class="my-span-icon">
|
115
|
-
<a href="{{
|
127
|
+
<a href="{{ contact_page.url | relative_url }}" aria-label="Contact" title="Contact {{ site.github.owner_name }}">
|
116
128
|
<svg class="my-svg-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 .02c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm6.99 6.98l-6.99 5.666-6.991-5.666h13.981zm.01 10h-14v-8.505l7 5.673 7-5.672v8.504z"/></svg>
|
117
129
|
</a>
|
118
130
|
</span>
|
@@ -120,17 +132,5 @@
|
|
120
132
|
|
121
133
|
</footer>
|
122
134
|
</section>
|
123
|
-
|
124
|
-
{% if site.google_analytics %}
|
125
|
-
<script type="text/javascript">
|
126
|
-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
127
|
-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
128
|
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
129
|
-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
130
|
-
|
131
|
-
ga('create', '{{ site.google_analytics }}', 'auto');
|
132
|
-
ga('send', 'pageview');
|
133
|
-
</script>
|
134
|
-
{% endif %}
|
135
135
|
</body>
|
136
136
|
</html>
|
@@ -1,6 +1,7 @@
|
|
1
1
|
@import "normalize";
|
2
2
|
@import "rouge-github";
|
3
3
|
@import "variables";
|
4
|
+
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700');
|
4
5
|
@import "blog";
|
5
6
|
|
6
7
|
@mixin large {
|
@@ -34,6 +35,24 @@ body {
|
|
34
35
|
color: $body-text-color;
|
35
36
|
}
|
36
37
|
|
38
|
+
#skip-to-content {
|
39
|
+
height: 1px;
|
40
|
+
width: 1px;
|
41
|
+
position: absolute;
|
42
|
+
overflow: hidden;
|
43
|
+
top: -10px;
|
44
|
+
|
45
|
+
&:focus {
|
46
|
+
position: fixed;
|
47
|
+
top: 10px;
|
48
|
+
left: 10px;
|
49
|
+
height: auto;
|
50
|
+
width: auto;
|
51
|
+
background: invert($body-link-color);
|
52
|
+
outline: thick solid invert($body-link-color);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
37
56
|
a {
|
38
57
|
color: $body-link-color;
|
39
58
|
text-decoration: none;
|
@@ -184,6 +203,20 @@ a {
|
|
184
203
|
font-size: 1rem;
|
185
204
|
}
|
186
205
|
|
206
|
+
kbd {
|
207
|
+
background-color: #fafbfc;
|
208
|
+
border: 1px solid #c6cbd1;
|
209
|
+
border-bottom-color: #959da5;
|
210
|
+
border-radius: 3px;
|
211
|
+
box-shadow: inset 0 -1px 0 #959da5;
|
212
|
+
color: #444d56;
|
213
|
+
display: inline-block;
|
214
|
+
font-size: 11px;
|
215
|
+
line-height: 10px;
|
216
|
+
padding: 3px 5px;
|
217
|
+
vertical-align: middle;
|
218
|
+
}
|
219
|
+
|
187
220
|
img {
|
188
221
|
max-width: 100%;
|
189
222
|
}
|
data/about.md
CHANGED
@@ -10,4 +10,4 @@ This is the _Cayman Blog_ Jekyll theme. You can find out more info about customi
|
|
10
10
|
You can find the source code for _Jekyll_ at [jekyll](https://github.com/jekyll/jekyll)
|
11
11
|
|
12
12
|
|
13
|
-
[Go to the Home Page]({{
|
13
|
+
[Go to the Home Page]({{ '/' | absolute_url }})
|
data/contact.md
CHANGED
@@ -6,4 +6,4 @@ tagline: Create a contact form and you are good to go
|
|
6
6
|
|
7
7
|
Jekyll is a great tool to create static sites but with static site, there's no backend to send your data to: that is why you need a third part service.
|
8
8
|
|
9
|
-
[Go to the Home Page]({{
|
9
|
+
[Go to the Home Page]({{ '/' | absolute_url }})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-cayman-blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lorenzo Pirritano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.6
|
19
|
+
version: 3.8.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.6
|
26
|
+
version: 3.8.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jekyll-target-blank
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +38,48 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: html-proofer
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.50'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.50'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: w3c_validators
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.3'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.3'
|
41
83
|
description:
|
42
84
|
email:
|
43
85
|
- lorepirri@gmail.com
|