jekyll-theme-cayman-blog 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/404.md +10 -0
- data/README.md +109 -8
- data/_includes/site-header.html +4 -1
- data/_includes/social-metatags.html +130 -0
- data/_layouts/default.html +77 -18
- data/_layouts/home.html +9 -5
- data/_sass/blog/_layout.scss +18 -5
- data/_sass/jekyll-theme-cayman-blog.scss +69 -0
- data/about.md +13 -0
- data/contact.md +14 -0
- data/index.md +17 -0
- metadata +9 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e715bbba71a3bd42266de1b8619c9ebe498b5a1
|
4
|
+
data.tar.gz: e830cc4d2d9a842c4f82ec293f30f9e4ebae70e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af561465748224a9f863f4a431cf4f16cbd4711d4ecf428cdc773987d9894454fff235054c2ddc4a3523b82e358d2aea8487b6b63886d3ce8090a6a4c9bd0b5c
|
7
|
+
data.tar.gz: 00651f67dd88204ab4d60b84ad14ac5b5323ea120685498d8a69820c5635ef80b909ba30f7dc06b282f737b59e789693f93d5e6945ee0b22c9d9b155379773b4
|
data/404.md
ADDED
data/README.md
CHANGED
@@ -6,23 +6,75 @@
|
|
6
6
|
|
7
7
|
<img src="thumbnail.png" alt="Thumbnail of cayman-blog" style="max-width:30%; border: 1px solid grey;"/> <img src="thumbnail-mobile.png" alt="Thumbnail of cayman-blog for mobile" style="width: 239px; height: 424px;"/>
|
8
8
|
|
9
|
-
##
|
9
|
+
## Install
|
10
10
|
|
11
|
-
|
11
|
+
Cayman Blog Theme has been developed as a Jekyll theme gem for easier use. It is also 100% compatible with GitHub Pages — just with a more involved installation process according to whether you’re _running Jekyll v3.3+ and self-hosting_, or if you’re *hosting with GitHub Pages*.
|
12
12
|
|
13
|
-
|
13
|
+
## Self hosting
|
14
14
|
|
15
|
-
|
15
|
+
If you’re running Jekyll v3.3+ and **self-hosting** you can quickly install the theme as Ruby gem:
|
16
|
+
|
17
|
+
1. Add this line to your Jekyll site’s Gemfile:
|
18
|
+
|
19
|
+
```
|
20
|
+
gem "jekyll-theme-cayman-blog"
|
21
|
+
```
|
22
|
+
|
23
|
+
2. Add this line to your Jekyll site’s _config.yml file:
|
24
|
+
|
25
|
+
```
|
16
26
|
theme: jekyll-theme-cayman-blog
|
17
27
|
```
|
18
28
|
|
19
|
-
|
29
|
+
3. Then run Bundler to install the theme gem and dependencies:
|
20
30
|
|
21
|
-
```ruby
|
22
|
-
gem "github-pages", group: :jekyll_plugins
|
23
31
|
```
|
32
|
+
script/bootstrap
|
33
|
+
```
|
34
|
+
|
35
|
+
## Hosting with GitHub Pages
|
36
|
+
|
37
|
+
If you’re *hosting your blog with GitHub Pages* you’ll have to consider this:
|
38
|
+
|
39
|
+
:warning: As stated in the official [Jekyll documentation](https://jekyllrb.com/docs/themes/#installing-a-theme):
|
24
40
|
|
41
|
+
> If you’re publishing your Jekyll site on [GitHub Pages](https://pages.github.com/), note that GitHub Pages supports only some gem-based themes. See [Supported Themes](https://pages.github.com/themes/) in GitHub’s documentation to see which themes are supported.
|
25
42
|
|
43
|
+
Therefore, this theme, as well as many others, can not be installed in the same way as the ones officially supported by GitHub Pages (e.g. Cayman, Minima), a bit more effort has to be put on.
|
44
|
+
|
45
|
+
The easiest way I found to install _Cayman Blog Theme_, is [installing the theme gem](gem-install), and then [converting the gem-based theme to regular theme](https://jekyllrb.com/docs/themes/#converting-gem-based-themes-to-regular-themes).
|
46
|
+
|
47
|
+
Alternatively, for new projects, one could fork the whole theme, and keep only the interesting files.
|
48
|
+
|
49
|
+
|
50
|
+
### Gem Install
|
51
|
+
|
52
|
+
This method is preferred for existing _Jekyll blogs_, as well as newly created ones. Notice that the files `index.md`, `about.md`, `contact.md` will be overwritten (only `index.md` is really needed, the other two are just placeholders).
|
53
|
+
|
54
|
+
1. Install the theme gem: ` $ gem install jekyll-theme-cayman-blog`
|
55
|
+
3. Run `$ gem env gemdir` to know where the gem was installed
|
56
|
+
4. Open the folder shown in the output
|
57
|
+
5. Open the folder `gems`
|
58
|
+
5. Open the theme folder (e.g. `jekyll-theme-cayman-blog-0.0.5`)
|
59
|
+
6. Copy all the files into your newly created or existing blog folder
|
60
|
+
7. Leave empty `theme` your site's `_config.yml`:
|
61
|
+
|
62
|
+
```yml
|
63
|
+
theme:
|
64
|
+
```
|
65
|
+
6. Modify `_config.yml`, `about.md`, `contact.md` for your project
|
66
|
+
7. [Customize the theme](customizing)
|
67
|
+
|
68
|
+
### Install as a Fork
|
69
|
+
|
70
|
+
1. [Fork the repo](https://github.com/lorepirri/cayman-blog)
|
71
|
+
2. Clone down the repo with `$ git clone git@github.com:username/reponame.git`
|
72
|
+
3. Delete the `screenshot.png` and `screenshot-mobile.png` files
|
73
|
+
3. Empty the `_posts` folder
|
74
|
+
4. Install bundler and gems with `$ script/bootstrap`
|
75
|
+
5. Run Jekyll with `$ script/server`
|
76
|
+
6. Modify `_config.yml`, `about.md`, `contact.md` for your project
|
77
|
+
7. [Customize the theme](customizing)
|
26
78
|
|
27
79
|
## Customizing
|
28
80
|
|
@@ -42,6 +94,55 @@ show_downloads: ["true" or "false" to indicate whether to provide a download URL
|
|
42
94
|
google_analytics: [Your Google Analytics tracking ID]
|
43
95
|
```
|
44
96
|
|
97
|
+
### RSS feeds
|
98
|
+
|
99
|
+
To enable RSS feeds and also make visible an RSS feeds button in the footer, the [Jekyll Feed plugin](https://github.com/jekyll/jekyll-feed) must be installed.
|
100
|
+
|
101
|
+
Add this line to your site's Gemfile:
|
102
|
+
|
103
|
+
```ruby
|
104
|
+
gem 'jekyll-feed'
|
105
|
+
```
|
106
|
+
|
107
|
+
And then add this line to your site's `_config.yml`:
|
108
|
+
|
109
|
+
```yml
|
110
|
+
gems:
|
111
|
+
- jekyll-feed
|
112
|
+
```
|
113
|
+
|
114
|
+
For more information about configuring this plugin, see the official [Jekyll Feed plugin](https://github.com/jekyll/jekyll-feed) page.
|
115
|
+
|
116
|
+
### SEO tags
|
117
|
+
|
118
|
+
Cayman Blog includes simple SEO tags from [jekyll-social-metatags](https://github.com/lorepirri/jekyll-social-metatags). Have a look at the page for its usage.
|
119
|
+
|
120
|
+
The usage is compatible with the plugin [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag), which provides a battle-tested template of crowdsourced best-practices.
|
121
|
+
|
122
|
+
To switch to a better SEO tags however, one should install [Jekyll Feed plugin](https://github.com/jekyll/jekyll-feed):
|
123
|
+
|
124
|
+
1. Add this line to your site's Gemfile:
|
125
|
+
|
126
|
+
```ruby
|
127
|
+
gem 'jekyll-seo-tag'
|
128
|
+
```
|
129
|
+
|
130
|
+
2. And then add this line to your site's `_config.yml`:
|
131
|
+
|
132
|
+
```yml
|
133
|
+
gems:
|
134
|
+
- jekyll-seo-tag
|
135
|
+
```
|
136
|
+
|
137
|
+
3. Replace with the following, the `<!-- jekyll-seo-tag -->` comment in your site's `default.html`:
|
138
|
+
|
139
|
+
```liquid
|
140
|
+
{% seo %}
|
141
|
+
```
|
142
|
+
|
143
|
+
For more information about configuring this plugin, see the official [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag) page.
|
144
|
+
|
145
|
+
|
45
146
|
### Stylesheet
|
46
147
|
|
47
148
|
If you'd like to add your own custom styles:
|
@@ -94,7 +195,7 @@ If you'd like to preview the theme locally (for example, in the process of propo
|
|
94
195
|
1. Clone down the theme's repository (`git clone https://github.com/lorepirri/cayman-blog`)
|
95
196
|
2. `cd` into the theme's directory
|
96
197
|
3. Run `script/bootstrap` to install the necessary dependencies
|
97
|
-
4. Run `
|
198
|
+
4. Run `script/server` to start the preview server
|
98
199
|
5. Visit [`localhost:4000`](http://localhost:4000) in your browser to preview the theme
|
99
200
|
|
100
201
|
### Running tests
|
data/_includes/site-header.html
CHANGED
@@ -25,7 +25,10 @@
|
|
25
25
|
{% for path in page_paths %}
|
26
26
|
{% assign my_page = site.pages | where: "path", path | first %}
|
27
27
|
{% if my_page.title %}
|
28
|
-
|
28
|
+
{% if my_page.title contains "404" %}
|
29
|
+
{% else %}
|
30
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
31
|
+
{% endif %}
|
29
32
|
{% endif %}
|
30
33
|
{% endfor %}
|
31
34
|
</div>
|
@@ -0,0 +1,130 @@
|
|
1
|
+
<!-- Update your html tag to include the itemscope and itemtype attributes. -->
|
2
|
+
<html itemscope itemtype="http://schema.org/Article">
|
3
|
+
|
4
|
+
{% if page.title %}
|
5
|
+
{% assign page_title = page.title | escape %}
|
6
|
+
{% else %}
|
7
|
+
{% assign page_title = site.title | escape %}
|
8
|
+
{% endif %}
|
9
|
+
|
10
|
+
|
11
|
+
{% if page.author or page.facebook.publisher %}
|
12
|
+
{% assign page_author = page.author | default: nil | escape %}
|
13
|
+
{% assign facebook_publisher = page.facebook.publisher | default: nil | escape %}
|
14
|
+
{% assign twitter_creator = page.twitter.username | default: site.twitter.site | default: nil | escape %}
|
15
|
+
{% else %}
|
16
|
+
{% assign page_author = site.author | default: nil | escape %}
|
17
|
+
{% assign facebook_publisher = site.facebook.publisher | default: nil | escape %}
|
18
|
+
{% assign twitter_creator = site.twitter.username | default: nil | escape %}
|
19
|
+
{% endif %}
|
20
|
+
|
21
|
+
{% assign page_description = page.excerpt | default: site.description | default: site.github.project_tagline | strip_html | normalize_whitespace | truncate: 152 | escape %}
|
22
|
+
|
23
|
+
{%if page.image %}
|
24
|
+
{% assign page_image = site.url | append: site.baseurl | append: page.image %}
|
25
|
+
{%else if site.image %}
|
26
|
+
{% assign page_image = site.url | append: site.baseurl | append: site.image %}
|
27
|
+
{%endif %}
|
28
|
+
|
29
|
+
{% assign canonical_url = page.url | replace:'index.html','' | absolute_url %}
|
30
|
+
|
31
|
+
<!-- Place this data between the <head> tags of your website -->
|
32
|
+
{%if page_author %}
|
33
|
+
<meta name="author" content="{{ page_author }}">
|
34
|
+
{%endif %}
|
35
|
+
<meta name="description" content="{{ page_description }}" />
|
36
|
+
{%if page.tags.length > 0 %}
|
37
|
+
<meta name="keywords" itemprop="tags" content="{{ page.tags | join: ', ' | escape }}"/>
|
38
|
+
{%endif %}
|
39
|
+
{%if page.keywords %}
|
40
|
+
<meta name="keywords" itemprop="keywords" content="{{ page.keywords | escape }}">
|
41
|
+
{%endif %}
|
42
|
+
{%if page.categories.length > 0 %}
|
43
|
+
<meta name="keywords" itemprop="categories" content="{{ page.categories | join: ', ' | escape }}">
|
44
|
+
{%endif %}
|
45
|
+
{%if page.category %}
|
46
|
+
<meta name="keywords" itemprop="category" content="{{ category | escape }}">
|
47
|
+
{%endif %}
|
48
|
+
|
49
|
+
<!-- Schema.org markup for Google+ -->
|
50
|
+
<meta itemprop="name" content="{{ page_title }}">
|
51
|
+
<meta itemprop="description" content="{{ page_description }}">
|
52
|
+
{%if page_image %}
|
53
|
+
<meta itemprop="image" content="{{ page_image }}">
|
54
|
+
{%endif %}
|
55
|
+
|
56
|
+
<!-- Twitter Card data -->
|
57
|
+
<meta name="twitter:card" content="summary_large_image">
|
58
|
+
|
59
|
+
{%if site.twitter.site %}
|
60
|
+
<meta name="twitter:site" content="@{{ site.twitter.site }}">
|
61
|
+
{%endif %}
|
62
|
+
|
63
|
+
<meta name="twitter:title" content="{{ page_title }}">
|
64
|
+
<meta name="twitter:description" content="{{ page_description }}">
|
65
|
+
|
66
|
+
{%if twitter_creator %}
|
67
|
+
<meta name="twitter:creator" content="@{{ twitter_creator }}">
|
68
|
+
{%endif %}
|
69
|
+
|
70
|
+
<!-- Twitter summary card with large image must be at least 280x150px -->
|
71
|
+
{%if page_image %}
|
72
|
+
<meta name="twitter:image:src" content="{{ page_image }}">
|
73
|
+
<meta property="twitter:image" content="{{ page_image }}">
|
74
|
+
{%endif %}
|
75
|
+
<meta property="twitter:url" content="{{ canonical_url }}">
|
76
|
+
|
77
|
+
<!-- Open Graph data -->
|
78
|
+
<meta property="og:title" content="{{ page_title }}" />
|
79
|
+
<meta property="og:type" content="article" />
|
80
|
+
<meta property="og:url" content="{{ canonical_url }}" />
|
81
|
+
{%if page_image %}
|
82
|
+
<meta property="og:image" content="{{ page_image }}" />
|
83
|
+
{%endif %}
|
84
|
+
<meta property="og:description" content="{{ page_description }}" />
|
85
|
+
<meta property="og:site_name" content="{{ site.title }}" />
|
86
|
+
{%if page.date %}
|
87
|
+
<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}" />
|
88
|
+
{%endif %}
|
89
|
+
{%if page.modified_date %}
|
90
|
+
<meta property="article:modified_time" content="{{ page.modified_date | date_to_xmlschema }}" />
|
91
|
+
{%endif %}
|
92
|
+
|
93
|
+
{%if site.facebook.admins %}
|
94
|
+
<meta property="fb:admins" content="{{ site.facebook.admins }}" />
|
95
|
+
{%endif %}
|
96
|
+
|
97
|
+
{%if site.facebook.app_id %}
|
98
|
+
<meta property="fb:app_id" content="{{ site.facebook.app_id }}">
|
99
|
+
{%endif %}
|
100
|
+
|
101
|
+
{%if site.facebook.profile_id %}
|
102
|
+
<meta property="fb:profile_id" content="{{ site.facebook.profile_id }}">
|
103
|
+
{%endif %}
|
104
|
+
|
105
|
+
{%if facebook_publisher %}
|
106
|
+
<meta property="article:author" content="https://www.facebook.com/{{ facebook_publisher }}">
|
107
|
+
{%endif %}
|
108
|
+
|
109
|
+
{%if page.tags %}
|
110
|
+
{% for tag in page.tags %}
|
111
|
+
<meta property="article:tag" content="{{ tag | escape }}">
|
112
|
+
{% endfor %}
|
113
|
+
{%endif %}
|
114
|
+
|
115
|
+
{%if page.keywords %}
|
116
|
+
{% assign keywordsList = page.keywords | split:', ' %}
|
117
|
+
{% for keyword in keywordsList %}
|
118
|
+
<meta property="article:tag" content="{{ keyword | escape }}">
|
119
|
+
{% endfor %}
|
120
|
+
{%endif %}
|
121
|
+
|
122
|
+
{%if page.categories %}
|
123
|
+
{% for category in page.categories %}
|
124
|
+
<meta property="article:tag" content="{{ category | escape }}">
|
125
|
+
{% endfor %}
|
126
|
+
{%endif %}
|
127
|
+
|
128
|
+
{%if page.category %}
|
129
|
+
<meta property="article:tag" content="{{ category | escape }}">
|
130
|
+
{%endif %}
|
data/_layouts/default.html
CHANGED
@@ -1,11 +1,41 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
|
-
<html lang="{{ site.lang | default: "en
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
3
4
|
<head>
|
4
|
-
|
5
|
-
|
6
|
-
<meta
|
7
|
-
<meta
|
5
|
+
|
6
|
+
<!-- Non social metatags -->
|
7
|
+
<meta charset="utf-8">
|
8
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
8
10
|
<meta name="theme-color" content="#157878">
|
11
|
+
|
12
|
+
{% if page.title %}
|
13
|
+
{% assign page-title = page.title | escape %}
|
14
|
+
{% else %}
|
15
|
+
{% assign page-title = site.title | escape %}
|
16
|
+
{% endif %}
|
17
|
+
|
18
|
+
<title>{{ page-title }}</title>
|
19
|
+
|
20
|
+
{% if site.gems contains "jekyll-seo-tag" %}
|
21
|
+
<!-- jekyll-seo-tag -->
|
22
|
+
{% else %}
|
23
|
+
{% include social-metatags.html %}
|
24
|
+
{% endif %}
|
25
|
+
|
26
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
27
|
+
|
28
|
+
{% if site.gems contains "jekyll-feed" %}
|
29
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
30
|
+
{% endif %}
|
31
|
+
|
32
|
+
<link rel="shortcut icon" href="{{ site.url }}/favicon.ico">
|
33
|
+
<meta name="robots" content="noarchive">
|
34
|
+
|
35
|
+
<!-- <link rel="alternate" media="only screen and (max-width: 640px)" href="">
|
36
|
+
<link rel="alternate" media="handheld" href=""> -->
|
37
|
+
|
38
|
+
|
9
39
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
|
10
40
|
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
|
11
41
|
</head>
|
@@ -14,21 +44,18 @@
|
|
14
44
|
{% include site-header.html %}
|
15
45
|
|
16
46
|
{% if page.layout == 'home' %}
|
17
|
-
{% assign
|
18
|
-
{% assign project-tagline = site.description | default: site.github.project_tagline %}
|
47
|
+
{% assign page-tagline = site.description | default: site.github.project_tagline | escape %}
|
19
48
|
{% endif %}
|
20
49
|
{% if page.layout == 'page' %}
|
21
|
-
{% assign
|
22
|
-
{% assign project-tagline = page.tagline | escape %}
|
50
|
+
{% assign page-tagline = page.tagline | escape %}
|
23
51
|
{% endif %}
|
24
52
|
{% if page.layout == 'post' %}
|
25
|
-
{% assign
|
26
|
-
{% assign project-tagline = page.tagline | default: site.github.project_tagline %}
|
53
|
+
{% assign page-tagline = page.tagline | escape %}
|
27
54
|
{% endif %}
|
28
55
|
|
29
56
|
<section class="page-header">
|
30
|
-
<h1 class="project-name">{{
|
31
|
-
<h2 class="project-tagline">{{
|
57
|
+
<h1 class="project-name">{{ page-title }}</h1>
|
58
|
+
<h2 class="project-tagline">{{ page-tagline }}</h2>
|
32
59
|
{% if page.layout == 'home' and site.github.is_project_page %}
|
33
60
|
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
|
34
61
|
{% if site.show_downloads %}
|
@@ -43,8 +70,9 @@
|
|
43
70
|
{% assign date_format = site.cayman-blog.date_format | default: "%b %-d, %Y" %}
|
44
71
|
{{ page.date | date: date_format }}
|
45
72
|
</time>
|
46
|
-
{%
|
47
|
-
|
73
|
+
{% assign page_author = page.author | default: site.author | default: nil | escape %}
|
74
|
+
{% if page_author %}
|
75
|
+
• <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page_author }}</span></span>
|
48
76
|
{% endif %}
|
49
77
|
</h2>
|
50
78
|
{% endif %}
|
@@ -52,13 +80,44 @@
|
|
52
80
|
</section>
|
53
81
|
|
54
82
|
<section class="main-content">
|
83
|
+
|
55
84
|
{{ content }}
|
56
85
|
|
57
86
|
<footer class="site-footer">
|
58
|
-
|
59
|
-
|
87
|
+
<!-- SVG icons from https://iconmonstr.com -->
|
88
|
+
|
89
|
+
<!-- Github icon -->
|
90
|
+
<span class="my-span-icon">
|
91
|
+
<a href="{{ site.github.owner_url }}" aria-label="{{ site.github.owner_name }}'s GitHub" title="{{ site.github.owner_name }}'s GitHub">
|
92
|
+
<svg class="my-svg-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
|
93
|
+
</a>
|
94
|
+
</span>
|
95
|
+
|
96
|
+
<!-- Twitter icon -->
|
97
|
+
<span class="my-span-icon">
|
98
|
+
<a href="https://twitter.com/{{ site.twitter.username }}" aria-label="{{ site.github.owner_name }}'s Twitter" title="{{ site.github.owner_name }}'s Twitter">
|
99
|
+
<svg class="my-svg-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm6.066 9.645c.183 4.04-2.83 8.544-8.164 8.544-1.622 0-3.131-.476-4.402-1.291 1.524.18 3.045-.244 4.252-1.189-1.256-.023-2.317-.854-2.684-1.995.451.086.895.061 1.298-.049-1.381-.278-2.335-1.522-2.304-2.853.388.215.83.344 1.301.359-1.279-.855-1.641-2.544-.889-3.835 1.416 1.738 3.533 2.881 5.92 3.001-.419-1.796.944-3.527 2.799-3.527.825 0 1.572.349 2.096.907.654-.128 1.27-.368 1.824-.697-.215.671-.67 1.233-1.263 1.589.581-.07 1.135-.224 1.649-.453-.384.578-.87 1.084-1.433 1.489z"/></svg>
|
100
|
+
</a>
|
101
|
+
</span>
|
102
|
+
|
103
|
+
<!-- RSS icon -->
|
104
|
+
{% if site.gems contains "jekyll-feed" %}
|
105
|
+
<span class="my-span-icon">
|
106
|
+
<a href="{{ "/feed.xml" | relative_url }}" aria-label="RSS feed" title="{{ site.github.owner_name }}'s RSS feed">
|
107
|
+
<svg class="my-svg-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm-3.374 17c-.897 0-1.626-.727-1.626-1.624s.729-1.624 1.626-1.624 1.626.727 1.626 1.624-.729 1.624-1.626 1.624zm3.885 0c-.03-3.022-2.485-5.474-5.511-5.504v-2.406c4.361.03 7.889 3.555 7.92 7.91h-2.409zm4.081 0c-.016-5.297-4.303-9.571-9.592-9.594v-2.406c6.623.023 11.985 5.384 12 12h-2.408z"/></svg>
|
108
|
+
</a>
|
109
|
+
</span>
|
60
110
|
{% endif %}
|
61
|
-
|
111
|
+
<!-- Contact icon -->
|
112
|
+
{% assign about_page = site.pages | where: "path", "about.md" | first %}
|
113
|
+
{% if about_page.title %}
|
114
|
+
<span class="my-span-icon">
|
115
|
+
<a href="{{ about_page.url | relative_url }}" aria-label="Contact" title="Contact {{ site.github.owner_name }}">
|
116
|
+
<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
|
+
</a>
|
118
|
+
</span>
|
119
|
+
{% endif %}
|
120
|
+
|
62
121
|
</footer>
|
63
122
|
</section>
|
64
123
|
|
data/_layouts/home.html
CHANGED
@@ -4,23 +4,27 @@ layout: default
|
|
4
4
|
|
5
5
|
<div>
|
6
6
|
|
7
|
-
<h2>Posts</h2>
|
8
|
-
|
9
7
|
{{ content }}
|
10
8
|
|
9
|
+
<h2>Latest Posts</h2>
|
10
|
+
|
11
|
+
<div> </div>
|
12
|
+
|
11
13
|
<ul class="post-list">
|
12
14
|
{% for post in site.posts %}
|
13
15
|
<li>
|
16
|
+
|
14
17
|
{% assign date_format = site.cayman-blog.date_format | default: "%b %-d, %Y" %}
|
15
18
|
<span class="post-meta">{{ post.date | date: date_format }}</span>
|
16
19
|
|
17
20
|
<h2>
|
18
|
-
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
21
|
+
<a class="post-link" href="{{ post.url | relative_url }}" title="{{ post.title }}">{{ post.title | escape }}</a>
|
19
22
|
</h2>
|
23
|
+
|
24
|
+
<span>{{ post.excerpt | markdownify | truncatewords: 30 }}</span>
|
25
|
+
|
20
26
|
</li>
|
21
27
|
{% endfor %}
|
22
28
|
</ul>
|
23
29
|
|
24
|
-
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
|
25
|
-
|
26
30
|
</div>
|
data/_sass/blog/_layout.scss
CHANGED
@@ -90,15 +90,20 @@
|
|
90
90
|
padding-bottom: 5px;
|
91
91
|
}
|
92
92
|
|
93
|
+
.trigger {
|
94
|
+
padding-top: 20px;
|
95
|
+
}
|
93
96
|
.page-link {
|
94
97
|
display: block;
|
95
|
-
padding:
|
98
|
+
padding: 10px 10px;
|
96
99
|
|
97
|
-
&:
|
98
|
-
margin-
|
100
|
+
&:last-child {
|
101
|
+
margin-bottom: 10px;
|
99
102
|
}
|
100
|
-
margin-
|
103
|
+
margin-right: 10px;
|
104
|
+
margin-left: 10px;
|
101
105
|
}
|
106
|
+
|
102
107
|
}
|
103
108
|
}
|
104
109
|
|
@@ -110,11 +115,19 @@
|
|
110
115
|
list-style: none;
|
111
116
|
|
112
117
|
> li {
|
113
|
-
margin-bottom: $spacing-unit * 1.
|
118
|
+
margin-bottom: $spacing-unit * 1.5;
|
114
119
|
}
|
115
120
|
|
116
121
|
> li > h2 {
|
117
122
|
margin-top: 0rem;
|
123
|
+
margin-bottom: 0.4rem;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
@include media-query($on-palm) {
|
128
|
+
.post-list {
|
129
|
+
-webkit-margin-end: 10px;
|
130
|
+
-webkit-padding-start: 10px;
|
118
131
|
}
|
119
132
|
}
|
120
133
|
|
@@ -352,6 +352,7 @@ a {
|
|
352
352
|
|
353
353
|
@include small {
|
354
354
|
font-size: 0.9rem;
|
355
|
+
margin-bottom: 0.5rem;
|
355
356
|
}
|
356
357
|
}
|
357
358
|
|
@@ -363,3 +364,71 @@ a {
|
|
363
364
|
.site-footer-credits {
|
364
365
|
color: $blockquote-text-color;
|
365
366
|
}
|
367
|
+
|
368
|
+
.site-footer {
|
369
|
+
|
370
|
+
@include large {
|
371
|
+
}
|
372
|
+
|
373
|
+
@include medium {
|
374
|
+
}
|
375
|
+
|
376
|
+
@include small {
|
377
|
+
}
|
378
|
+
|
379
|
+
.my-span-icon {
|
380
|
+
|
381
|
+
a {
|
382
|
+
text-decoration: none;
|
383
|
+
}
|
384
|
+
a:hover {
|
385
|
+
text-decoration: none;
|
386
|
+
}
|
387
|
+
|
388
|
+
@include large {
|
389
|
+
padding: 0px 5px 0px 5px;
|
390
|
+
}
|
391
|
+
|
392
|
+
@include medium {
|
393
|
+
//font-size: 1rem;
|
394
|
+
padding: 0px 10px 10px 10px;
|
395
|
+
}
|
396
|
+
|
397
|
+
@include small {
|
398
|
+
padding: 0px 10px 10px 10px;
|
399
|
+
}
|
400
|
+
}
|
401
|
+
|
402
|
+
.my-svg-icon {
|
403
|
+
|
404
|
+
color: $body-text-color; // IE8
|
405
|
+
fill: $body-text-color; // IE8
|
406
|
+
width: 24px;
|
407
|
+
height: 24px;
|
408
|
+
|
409
|
+
&:hover {
|
410
|
+
text-decoration: none;
|
411
|
+
color: $section-headings-color; // IE8
|
412
|
+
fill: $section-headings-color;
|
413
|
+
transform: scale(1.25);
|
414
|
+
transition: color .5s, transform .2s ease-out
|
415
|
+
}
|
416
|
+
|
417
|
+
@include large {
|
418
|
+
width: 28px;
|
419
|
+
height: 28px;
|
420
|
+
}
|
421
|
+
|
422
|
+
@include medium {
|
423
|
+
width: 32px;
|
424
|
+
height: 32px;
|
425
|
+
}
|
426
|
+
|
427
|
+
@include small {
|
428
|
+
width: 36px;
|
429
|
+
height: 36px;
|
430
|
+
}
|
431
|
+
|
432
|
+
} // social-icons
|
433
|
+
|
434
|
+
}
|
data/about.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
title: About
|
4
|
+
tagline: A few more words about this theme
|
5
|
+
permalink: /about/
|
6
|
+
---
|
7
|
+
|
8
|
+
This is the _Cayman Blog_ Jekyll theme. You can find out more info about customizing this theme, as well as basic usage documentation, and source code at: [cayman-blog](https://github.com/lorepirri/cayman-blog)
|
9
|
+
|
10
|
+
You can find the source code for _Jekyll_ at [jekyll](https://github.com/jekyll/jekyll)
|
11
|
+
|
12
|
+
|
13
|
+
[Go to the Home Page](./)
|
data/contact.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
title: Contact
|
4
|
+
tagline: Create a contact form and you are good to go
|
5
|
+
---
|
6
|
+
|
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 it's hard to put a form on a Jekyll site.
|
8
|
+
|
9
|
+
Here listed some resources which provide a saas service as a backend for forms (contact forms, hiring forms, etc.) to designers and developers like you:
|
10
|
+
1. [Formspree (also open source, free)](https://formspree.io/)
|
11
|
+
2. [FormKeep](https://formkeep.com/guides/contact-form-jekyll)
|
12
|
+
3. [Simple Form](https://getsimpleform.com/)
|
13
|
+
|
14
|
+
[Go to the Home Page](./)
|
data/index.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
#
|
3
|
+
# Here you can change the text shown in the Home page before the Latest Posts section.
|
4
|
+
#
|
5
|
+
# Edit cayman-blog's home layout in _layouts instead if you wanna make some changes
|
6
|
+
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
|
7
|
+
#
|
8
|
+
layout: home
|
9
|
+
---
|
10
|
+
|
11
|
+
Cayman Blog Theme is a clean, responsive blogging theme for Jekyll, with social features. It is inspired by the Cayman Theme for Github Pages, which can be greatly used for single projects but not as blogging platform.
|
12
|
+
|
13
|
+
This theme has instead all you need to start today blogging with Jekyll, and no effort: pages, posts, few social buttons. Try loading this on mobile too.
|
14
|
+
|
15
|
+
Have a look at the Github page for more information.
|
16
|
+
|
17
|
+
You find this descriptive text in the `index.md` file, so you can change it, or remove it completely, according to your needs.
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lorenzo Pirritano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -31,9 +31,11 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
+
- 404.md
|
34
35
|
- LICENSE
|
35
36
|
- README.md
|
36
37
|
- _includes/site-header.html
|
38
|
+
- _includes/social-metatags.html
|
37
39
|
- _layouts/default.html
|
38
40
|
- _layouts/home.html
|
39
41
|
- _layouts/page.html
|
@@ -45,7 +47,10 @@ files:
|
|
45
47
|
- _sass/normalize.scss
|
46
48
|
- _sass/rouge-github.scss
|
47
49
|
- _sass/variables.scss
|
50
|
+
- about.md
|
48
51
|
- assets/css/style.scss
|
52
|
+
- contact.md
|
53
|
+
- index.md
|
49
54
|
homepage: https://github.com/lorepirri/cayman-blog
|
50
55
|
licenses:
|
51
56
|
- CC0-1.0
|
@@ -69,6 +74,6 @@ rubyforge_project:
|
|
69
74
|
rubygems_version: 2.6.8
|
70
75
|
signing_key:
|
71
76
|
specification_version: 4
|
72
|
-
summary: Cayman Blog is a
|
73
|
-
|
77
|
+
summary: Cayman Blog Theme is a clean, responsive blogging theme for Jekyll and GitHub
|
78
|
+
Pages, with social/SEO features. Based on Cayman theme.
|
74
79
|
test_files: []
|