jekyll-theme-cayman 0.0.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +38 -14
- data/_includes/head-custom-google-analytics.html +10 -0
- data/_includes/head-custom.html +9 -0
- data/_layouts/default.html +15 -22
- data/_sass/cayman.scss +4 -0
- data/_sass/jekyll-theme-cayman.scss +33 -0
- data/_sass/variables.scss +14 -14
- metadata +75 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 89749bdfd9ed875f2dd38c2d3db82a05430f324254f26ab020f940dfc8540e60
|
4
|
+
data.tar.gz: f4099a802bd7fa7b13aa8c229f226d1e7d2166759a357f53c099eb1822ddd129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53e4a441c6e8fa4f6fb0aaa3dc741077ab166e05a7b411d426cdd00518340418df94e8b96543004095a8c9f5224289117b9c738960ec13be37348637d0d17f58
|
7
|
+
data.tar.gz: 9c0e53440e85633f77e2646092392a5246dd95990583a8918e1e68d667bda0a367731e353ee716c63ad0c812f67f0e5671ecf970263304a8982d4c882f7c1f02
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# The Cayman theme
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![.github/workflows/ci.yaml](https://github.com/pages-themes/cayman/actions/workflows/ci.yaml/badge.svg)](https://github.com/pages-themes/cayman/actions/workflows/ci.yaml) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-cayman.svg)](https://badge.fury.io/rb/jekyll-theme-cayman)
|
4
4
|
|
5
5
|
*Cayman is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://pages-themes.github.io/cayman), or even [use it today](#usage).*
|
6
6
|
|
7
|
-
![Thumbnail of
|
7
|
+
![Thumbnail of Cayman](thumbnail.png)
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
@@ -13,7 +13,9 @@ To use the Cayman theme:
|
|
13
13
|
1. Add the following to your site's `_config.yml`:
|
14
14
|
|
15
15
|
```yml
|
16
|
-
|
16
|
+
remote_theme: pages-themes/cayman@v0.2.0
|
17
|
+
plugins:
|
18
|
+
- jekyll-remote-theme # add this line to the plugins list if you already have one
|
17
19
|
```
|
18
20
|
|
19
21
|
2. Optionally, if you'd like to preview your site on your computer, add the following to your site's `Gemfile`:
|
@@ -22,8 +24,6 @@ To use the Cayman theme:
|
|
22
24
|
gem "github-pages", group: :jekyll_plugins
|
23
25
|
```
|
24
26
|
|
25
|
-
|
26
|
-
|
27
27
|
## Customizing
|
28
28
|
|
29
29
|
### Configuration variables
|
@@ -38,7 +38,7 @@ description: [A short description of your site's purpose]
|
|
38
38
|
Additionally, you may choose to set the following optional variables:
|
39
39
|
|
40
40
|
```yml
|
41
|
-
show_downloads: ["true" or "false" to indicate whether to provide a download URL]
|
41
|
+
show_downloads: ["true" or "false" (unquoted) to indicate whether to provide a download URL]
|
42
42
|
google_analytics: [Your Google Analytics tracking ID]
|
43
43
|
```
|
44
44
|
|
@@ -46,7 +46,7 @@ google_analytics: [Your Google Analytics tracking ID]
|
|
46
46
|
|
47
47
|
If you'd like to add your own custom styles:
|
48
48
|
|
49
|
-
1. Create a file called `/assets/css/style.
|
49
|
+
1. Create a file called `/assets/css/style.scss` in your site
|
50
50
|
2. Add the following content to the top of the file, exactly as shown:
|
51
51
|
```scss
|
52
52
|
---
|
@@ -56,18 +56,42 @@ If you'd like to add your own custom styles:
|
|
56
56
|
```
|
57
57
|
3. Add any custom CSS (or Sass, including imports) you'd like immediately after the `@import` line
|
58
58
|
|
59
|
+
*Note: If you'd like to change the theme's Sass variables, you must set new values before the `@import` line in your stylesheet.*
|
60
|
+
|
59
61
|
### Layouts
|
60
62
|
|
61
63
|
If you'd like to change the theme's HTML layout:
|
62
64
|
|
63
|
-
1. [
|
64
|
-
2.
|
65
|
-
3.
|
66
|
-
4.
|
65
|
+
1. For some changes such as a custom `favicon`, you can add custom files in your local `_includes` folder. The files [provided with the theme](https://github.com/pages-themes/cayman/tree/master/_includes) provide a starting point and are included by the [original layout template](https://github.com/pages-themes/cayman/blob/master/_layouts/default.html).
|
66
|
+
2. For more extensive changes, [copy the original template](https://github.com/pages-themes/cayman/blob/master/_layouts/default.html) from the theme's repository<br />(*Pro-tip: click "raw" to make copying easier*)
|
67
|
+
3. Create a file called `/_layouts/default.html` in your site
|
68
|
+
4. Paste the default layout content copied in the first step
|
69
|
+
5. Customize the layout as you'd like
|
70
|
+
|
71
|
+
### Customizing Google Analytics code
|
72
|
+
|
73
|
+
Google has released several iterations to their Google Analytics code over the years since this theme was first created. If you would like to take advantage of the latest code, paste it into `_includes/head-custom-google-analytics.html` in your Jekyll site.
|
74
|
+
|
75
|
+
### Overriding GitHub-generated URLs
|
76
|
+
|
77
|
+
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:
|
78
|
+
|
79
|
+
1. Look at [the template source](https://github.com/pages-themes/cayman/blob/master/_layouts/default.html) to determine the name of the variable. It will be in the form of `{{ site.github.zip_url }}`.
|
80
|
+
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:
|
81
|
+
```yml
|
82
|
+
github:
|
83
|
+
zip_url: http://example.com/download.zip
|
84
|
+
another_url: another value
|
85
|
+
```
|
86
|
+
3. When your site is built, Jekyll will use the URL you specified, rather than the default one provided by GitHub.
|
87
|
+
|
88
|
+
*Note: You must remove the `site.` prefix, and each variable name (after the `github.`) should be indent with two space below `github:`.*
|
89
|
+
|
90
|
+
For more information, see [the Jekyll variables documentation](https://jekyllrb.com/docs/variables/).
|
67
91
|
|
68
92
|
## Roadmap
|
69
93
|
|
70
|
-
See the [open issues](https://github.com/
|
94
|
+
See the [open issues](https://github.com/pages-themes/cayman/issues) for a list of proposed features (and known issues).
|
71
95
|
|
72
96
|
## Project philosophy
|
73
97
|
|
@@ -75,7 +99,7 @@ The Cayman theme is intended to make it quick and easy for GitHub Pages users to
|
|
75
99
|
|
76
100
|
## Contributing
|
77
101
|
|
78
|
-
Interested in contributing to Cayman? We'd love your help. Cayman 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.
|
102
|
+
Interested in contributing to Cayman? We'd love your help. Cayman 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.
|
79
103
|
|
80
104
|
### Previewing the theme locally
|
81
105
|
|
@@ -89,4 +113,4 @@ If you'd like to preview the theme locally (for example, in the process of propo
|
|
89
113
|
|
90
114
|
### Running tests
|
91
115
|
|
92
|
-
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`
|
116
|
+
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.
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{% if site.google_analytics %}
|
2
|
+
<script>
|
3
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
4
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
5
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
6
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
7
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
8
|
+
ga('send', 'pageview');
|
9
|
+
</script>
|
10
|
+
{% endif %}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
|
2
|
+
|
3
|
+
<!-- Setup Google Analytics -->
|
4
|
+
{% include head-custom-google-analytics.html %}
|
5
|
+
|
6
|
+
<!-- You can set your favicon here -->
|
7
|
+
<!-- link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}" -->
|
8
|
+
|
9
|
+
<!-- end custom head snippets -->
|
data/_layouts/default.html
CHANGED
@@ -1,17 +1,23 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
|
-
<html lang="en-
|
2
|
+
<html lang="{{ site.lang | default: "en-US" }}">
|
3
3
|
<head>
|
4
4
|
<meta charset="UTF-8">
|
5
|
-
|
5
|
+
|
6
|
+
{% seo %}
|
7
|
+
<link rel="preconnect" href="https://fonts.gstatic.com">
|
8
|
+
<link rel="preload" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" as="style" type="text/css" crossorigin>
|
6
9
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7
10
|
<meta name="theme-color" content="#157878">
|
8
|
-
<
|
11
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
9
12
|
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
|
13
|
+
{% include head-custom.html %}
|
10
14
|
</head>
|
11
15
|
<body>
|
12
|
-
<
|
13
|
-
|
14
|
-
|
16
|
+
<a id="skip-to-content" href="#content">Skip to the content.</a>
|
17
|
+
|
18
|
+
<header class="page-header" role="banner">
|
19
|
+
<h1 class="project-name">{{ page.title | default: site.title | default: site.github.repository_name }}</h1>
|
20
|
+
<h2 class="project-tagline">{{ page.description | default: site.description | default: site.github.project_tagline }}</h2>
|
15
21
|
{% if site.github.is_project_page %}
|
16
22
|
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
|
17
23
|
{% endif %}
|
@@ -19,9 +25,9 @@
|
|
19
25
|
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
|
20
26
|
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
|
21
27
|
{% endif %}
|
22
|
-
</
|
28
|
+
</header>
|
23
29
|
|
24
|
-
<
|
30
|
+
<main id="content" class="main-content" role="main">
|
25
31
|
{{ content }}
|
26
32
|
|
27
33
|
<footer class="site-footer">
|
@@ -30,19 +36,6 @@
|
|
30
36
|
{% endif %}
|
31
37
|
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
|
32
38
|
</footer>
|
33
|
-
</
|
34
|
-
|
35
|
-
{% if site.google_analytics %}
|
36
|
-
<script type="text/javascript">
|
37
|
-
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
38
|
-
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
39
|
-
</script>
|
40
|
-
<script type="text/javascript">
|
41
|
-
try {
|
42
|
-
var pageTracker = _gat._getTracker("{{ site.google_analytics }}");
|
43
|
-
pageTracker._trackPageview();
|
44
|
-
} catch(err) {}
|
45
|
-
</script>
|
46
|
-
{% endif %}
|
39
|
+
</main>
|
47
40
|
</body>
|
48
41
|
</html>
|
data/_sass/cayman.scss
ADDED
@@ -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&display=swap');
|
4
5
|
|
5
6
|
@mixin large {
|
6
7
|
@media screen and (min-width: #{$large-breakpoint}) {
|
@@ -33,6 +34,24 @@ body {
|
|
33
34
|
color: $body-text-color;
|
34
35
|
}
|
35
36
|
|
37
|
+
#skip-to-content {
|
38
|
+
height: 1px;
|
39
|
+
width: 1px;
|
40
|
+
position: absolute;
|
41
|
+
overflow: hidden;
|
42
|
+
top: -10px;
|
43
|
+
|
44
|
+
&:focus {
|
45
|
+
position: fixed;
|
46
|
+
top: 10px;
|
47
|
+
left: 10px;
|
48
|
+
height: auto;
|
49
|
+
width: auto;
|
50
|
+
background: invert($body-link-color);
|
51
|
+
outline: thick solid invert($body-link-color);
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
36
55
|
a {
|
37
56
|
color: $body-link-color;
|
38
57
|
text-decoration: none;
|
@@ -163,6 +182,20 @@ a {
|
|
163
182
|
padding: 2rem 1rem;
|
164
183
|
font-size: 1rem;
|
165
184
|
}
|
185
|
+
|
186
|
+
kbd {
|
187
|
+
background-color: #fafbfc;
|
188
|
+
border: 1px solid #c6cbd1;
|
189
|
+
border-bottom-color: #959da5;
|
190
|
+
border-radius: 3px;
|
191
|
+
box-shadow: inset 0 -1px 0 #959da5;
|
192
|
+
color: #444d56;
|
193
|
+
display: inline-block;
|
194
|
+
font-size: 11px;
|
195
|
+
line-height: 10px;
|
196
|
+
padding: 3px 5px;
|
197
|
+
vertical-align: middle;
|
198
|
+
}
|
166
199
|
|
167
200
|
img {
|
168
201
|
max-width: 100%;
|
data/_sass/variables.scss
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
// Breakpoints
|
2
|
-
$large-breakpoint: 64em;
|
3
|
-
$medium-breakpoint: 42em;
|
2
|
+
$large-breakpoint: 64em !default;
|
3
|
+
$medium-breakpoint: 42em !default;
|
4
4
|
|
5
5
|
// Headers
|
6
|
-
$header-heading-color: #fff;
|
7
|
-
$header-bg-color: #159957;
|
8
|
-
$header-bg-color-secondary: #155799;
|
6
|
+
$header-heading-color: #fff !default;
|
7
|
+
$header-bg-color: #159957 !default;
|
8
|
+
$header-bg-color-secondary: #155799 !default;
|
9
9
|
|
10
10
|
// Text
|
11
|
-
$section-headings-color: #159957;
|
12
|
-
$body-text-color: #606c71;
|
13
|
-
$body-link-color: #1e6bb8;
|
14
|
-
$blockquote-text-color: #819198;
|
11
|
+
$section-headings-color: #159957 !default;
|
12
|
+
$body-text-color: #606c71 !default;
|
13
|
+
$body-link-color: #1e6bb8 !default;
|
14
|
+
$blockquote-text-color: #819198 !default;
|
15
15
|
|
16
16
|
// Code
|
17
|
-
$code-bg-color: #f3f6fa;
|
18
|
-
$code-text-color: #567482;
|
17
|
+
$code-bg-color: #f3f6fa !default;
|
18
|
+
$code-text-color: #567482 !default;
|
19
19
|
|
20
20
|
// Borders
|
21
|
-
$border-color: #dce6f0;
|
22
|
-
$table-border-color: #e9ebec;
|
23
|
-
$hr-border-color: #eff0f1;
|
21
|
+
$border-color: #dce6f0 !default;
|
22
|
+
$table-border-color: #e9ebec !default;
|
23
|
+
$hr-border-color: #eff0f1 !default;
|
metadata
CHANGED
@@ -1,31 +1,93 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-cayman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Long
|
8
8
|
- GitHub, Inc.
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-07-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '3.5'
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '5.0'
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ">"
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '3.5'
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.0'
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: jekyll-seo-tag
|
16
36
|
requirement: !ruby/object:Gem::Requirement
|
17
37
|
requirements:
|
18
38
|
- - "~>"
|
19
39
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
40
|
+
version: '2.0'
|
21
41
|
type: :runtime
|
22
42
|
prerelease: false
|
23
43
|
version_requirements: !ruby/object:Gem::Requirement
|
24
44
|
requirements:
|
25
45
|
- - "~>"
|
26
46
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
28
|
-
|
47
|
+
version: '2.0'
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: html-proofer
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rubocop-github
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.16'
|
69
|
+
type: :development
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.16'
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: w3c_validators
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.3'
|
83
|
+
type: :development
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.3'
|
90
|
+
description:
|
29
91
|
email:
|
30
92
|
- opensource+jekyll-theme-cayman@github.com
|
31
93
|
executables: []
|
@@ -34,7 +96,10 @@ extra_rdoc_files: []
|
|
34
96
|
files:
|
35
97
|
- LICENSE
|
36
98
|
- README.md
|
99
|
+
- _includes/head-custom-google-analytics.html
|
100
|
+
- _includes/head-custom.html
|
37
101
|
- _layouts/default.html
|
102
|
+
- _sass/cayman.scss
|
38
103
|
- _sass/jekyll-theme-cayman.scss
|
39
104
|
- _sass/normalize.scss
|
40
105
|
- _sass/rouge-github.scss
|
@@ -44,7 +109,7 @@ homepage: https://github.com/pages-themes/cayman
|
|
44
109
|
licenses:
|
45
110
|
- CC0-1.0
|
46
111
|
metadata: {}
|
47
|
-
post_install_message:
|
112
|
+
post_install_message:
|
48
113
|
rdoc_options: []
|
49
114
|
require_paths:
|
50
115
|
- lib
|
@@ -52,16 +117,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
117
|
requirements:
|
53
118
|
- - ">="
|
54
119
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
120
|
+
version: 2.4.0
|
56
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
122
|
requirements:
|
58
123
|
- - ">="
|
59
124
|
- !ruby/object:Gem::Version
|
60
125
|
version: '0'
|
61
126
|
requirements: []
|
62
|
-
|
63
|
-
|
64
|
-
signing_key:
|
127
|
+
rubygems_version: 3.2.15
|
128
|
+
signing_key:
|
65
129
|
specification_version: 4
|
66
130
|
summary: Cayman is a Jekyll theme for GitHub Pages
|
67
131
|
test_files: []
|