retrorock-jekyll-theme 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +42 -0
- data/_includes/footer.html +17 -0
- data/_includes/google_analytics.html +10 -0
- data/_includes/head.html +16 -0
- data/_includes/header.html +12 -0
- data/_layouts/default.html +22 -0
- data/_layouts/home.html +17 -0
- data/_layouts/page.html +16 -0
- data/_layouts/post.html +15 -0
- data/_sass/retrorock.scss +30 -0
- data/_sass/retrorock/_base.scss +14 -0
- data/_sass/retrorock/_layout.scss +84 -0
- data/assets/main.scss +5 -0
- metadata +100 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fa8fa056db92c6a8f57fd6ac6e237515d8dd213c
|
4
|
+
data.tar.gz: 3db2d20fa210db46195d4940286e2f1b886a4d74
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fff71c0075c4a4ef2f740dff5a6e56cab23f5694ec712b5aed9a95e44865042a8cb5f33b90448a318ea9733ce52ebef36a00b5d6cb0d90f5d1a6c4a52b0f1dd0
|
7
|
+
data.tar.gz: 4a4eda6c99787fa6d4cb0ac8a94d7405884b2c926ec8cb5b7f987e1448fb9849269f7800ca7d2ff0f2960b2a0546cfcf22f5be9505b47bdb7b0325daa9b1e611
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Wilbur Suero
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# retrorock-jekyll-theme
|
2
|
+
|
3
|
+
Retrorock is a succinct theme for blogging. It features large and prominent titles and is suited for reading.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your Jekyll site's `Gemfile`:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem "retrorock-jekyll-theme"
|
11
|
+
```
|
12
|
+
|
13
|
+
And add this line to your Jekyll site's `_config.yml`:
|
14
|
+
|
15
|
+
```yaml
|
16
|
+
theme: retrorock-jekyll-theme
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
$ gem install retrorock-jekyll-theme
|
26
|
+
|
27
|
+
## Contributing
|
28
|
+
|
29
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/wilburhimself/retrorock-jekyll-theme. 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.
|
30
|
+
|
31
|
+
## Development
|
32
|
+
|
33
|
+
To set up your environment to develop this theme, run `bundle install`.
|
34
|
+
|
35
|
+
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.
|
36
|
+
|
37
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
38
|
+
To add a custom directory to your theme-gem, please edit the regexp in `retrorock-jekyll-theme.gemspec` accordingly.
|
39
|
+
|
40
|
+
## License
|
41
|
+
|
42
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<footer class="site_footer">
|
2
|
+
{% if site.author %}
|
3
|
+
<span class="author">By: {{ site.author | escape }}</span>
|
4
|
+
{% endif %}
|
5
|
+
|
6
|
+
{% if site.twitter_username %}
|
7
|
+
<a href="http://twitter.com/{{site.twitter_username}}">Twitter</a>
|
8
|
+
{% endif %}
|
9
|
+
|
10
|
+
{% if site.linkedin_username %}
|
11
|
+
<a href="http://linkedin.com/in/{{site.linkedin_username}}">Linkedin</a>
|
12
|
+
{% endif %}
|
13
|
+
|
14
|
+
{% if site.github_username %}
|
15
|
+
<a href="http://github.com/{{ site.github_username }}">Github</a>
|
16
|
+
{% endif %}
|
17
|
+
</footer>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<script>
|
2
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
3
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
4
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
5
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
6
|
+
|
7
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
8
|
+
ga('send', 'pageview');
|
9
|
+
|
10
|
+
</script>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
|
6
|
+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
|
7
|
+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
10
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
11
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
12
|
+
|
13
|
+
{% if jekyll.environment == 'production' and site.google_analytics %}
|
14
|
+
{% include google-analytics.html %}
|
15
|
+
{% endif %}
|
16
|
+
</head>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<nav class="site_header">
|
2
|
+
<a class="page-link" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
3
|
+
{% assign default_paths = site.pages | map: "path" %}
|
4
|
+
{% assign page_paths = site.header_pages | default: default_paths %}
|
5
|
+
{% for path in page_paths %}
|
6
|
+
{% assign my_page = site.pages | where: "path", path | first %}
|
7
|
+
{% if my_page.title || my_page.menu_title %}
|
8
|
+
{% assign title = my_page.menu_title ? my_page.menu_title : my_page.title %}
|
9
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ title | escape }}</a>
|
10
|
+
{% endif %}
|
11
|
+
{% endfor %}
|
12
|
+
</nav>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{% include head.html %}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
|
8
|
+
<div class="container">
|
9
|
+
{% include header.html %}
|
10
|
+
|
11
|
+
<main class="page-content" aria-label="Content">
|
12
|
+
<div class="wrapper">
|
13
|
+
{{ content }}
|
14
|
+
</div>
|
15
|
+
</main>
|
16
|
+
|
17
|
+
{% include footer.html %}
|
18
|
+
</div>
|
19
|
+
|
20
|
+
</body>
|
21
|
+
|
22
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="home">
|
6
|
+
{{ content }}
|
7
|
+
|
8
|
+
<section class="posts">
|
9
|
+
{% for post in site.posts %}
|
10
|
+
<a href="{{ post.url | relative_url}}">
|
11
|
+
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
|
12
|
+
<span class="post-meta">{{ post.date | date: date_format }}</span>
|
13
|
+
{{ post.title | escape }}
|
14
|
+
</a>
|
15
|
+
{% endfor %}
|
16
|
+
</section>
|
17
|
+
</div>
|
data/_layouts/page.html
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<article class="page">
|
5
|
+
|
6
|
+
<hgroup>
|
7
|
+
<h3 class="main_title">{{ page.title }}</h3>
|
8
|
+
{% if page.sub_title %}
|
9
|
+
<h4 class="secondary_title">{{ page.sub_title }}</h4>
|
10
|
+
{% endif %}
|
11
|
+
</hgroup>
|
12
|
+
|
13
|
+
<section class="page_content">
|
14
|
+
{{ content }}
|
15
|
+
</section>
|
16
|
+
</article>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<article class="post">
|
5
|
+
<hgroup>
|
6
|
+
<h3 class="main_title">{{ page.title }}</h3>
|
7
|
+
{% if page.sub_title %}
|
8
|
+
<h4 class="secondary_title">{{ page.sub_title }}</h4>
|
9
|
+
{% endif %}
|
10
|
+
</hgroup>
|
11
|
+
<section class="post_content">
|
12
|
+
{{ content }}
|
13
|
+
</section>
|
14
|
+
|
15
|
+
</article>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
@import url('https://fonts.googleapis.com/css?family=Libre+Baskerville:400,700');
|
3
|
+
@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700,900');
|
4
|
+
|
5
|
+
// Define defaults for each variable.
|
6
|
+
|
7
|
+
$base-font-family: "Libre Baskerville", serif !default;
|
8
|
+
$base-font-size: 17px !default;
|
9
|
+
$base-font-weight: 400 !default;
|
10
|
+
$small-font-size: $base-font-size * 0.875 !default;
|
11
|
+
$base-line-height: 1.8em !default;
|
12
|
+
|
13
|
+
$spacing-unit: 3em !default;
|
14
|
+
|
15
|
+
$text-color: #111 !default;
|
16
|
+
$background-color: #fafafa !default;
|
17
|
+
$brand-color: #2a7ae2 !default;
|
18
|
+
|
19
|
+
$grey-color: #828282 !default;
|
20
|
+
$grey-color-light: lighten($grey-color, 30%) !default;
|
21
|
+
$grey-color-dark: darken($grey-color, 25%) !default;
|
22
|
+
|
23
|
+
// Width of the content area
|
24
|
+
$content-width: 42em !default;
|
25
|
+
|
26
|
+
$on-palm: 600px !default;
|
27
|
+
$on-laptop: 800px !default;
|
28
|
+
|
29
|
+
@import 'retrorock/base';
|
30
|
+
@import 'retrorock/layout';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* Basic styling
|
3
|
+
*/
|
4
|
+
body {
|
5
|
+
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
|
6
|
+
color: $text-color;
|
7
|
+
background-color: $background-color;
|
8
|
+
-webkit-text-size-adjust: 100%;
|
9
|
+
-webkit-font-feature-settings: "kern" 1;
|
10
|
+
-moz-font-feature-settings: "kern" 1;
|
11
|
+
-o-font-feature-settings: "kern" 1;
|
12
|
+
font-feature-settings: "kern" 1;
|
13
|
+
font-kerning: normal;
|
14
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
.container {
|
2
|
+
max-width: $content-width;
|
3
|
+
margin: $spacing-unit auto;
|
4
|
+
}
|
5
|
+
|
6
|
+
/**
|
7
|
+
* Site Header
|
8
|
+
*/
|
9
|
+
|
10
|
+
.site_header {
|
11
|
+
margin-bottom: $spacing-unit * 1.65;
|
12
|
+
|
13
|
+
a {
|
14
|
+
color: $grey-color;
|
15
|
+
font-family: 'Lato', sans-serif;
|
16
|
+
margin-right: 1em;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Site footer
|
22
|
+
*/
|
23
|
+
.site_footer {
|
24
|
+
border-top: 1px solid $grey-color-light;
|
25
|
+
padding: $spacing-unit 0;
|
26
|
+
font-family: 'Lato', sans-serif;
|
27
|
+
font-weight: 300;
|
28
|
+
|
29
|
+
a {
|
30
|
+
color: $grey-color;
|
31
|
+
margin-left: 1em;
|
32
|
+
border-left: 1px solid $grey-color-light;
|
33
|
+
padding-left: 1em;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
hgroup {
|
38
|
+
text-align: center;
|
39
|
+
.main_title {
|
40
|
+
font-family: 'Lato', sans-serif;
|
41
|
+
font-weight: 900;
|
42
|
+
font-size: 2.6em;
|
43
|
+
}
|
44
|
+
.secondary_title {
|
45
|
+
font-family: 'Lato', sans-serif;
|
46
|
+
font-size: 1.8em;
|
47
|
+
font-weight: 300;
|
48
|
+
color: $grey-color;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.page_content, .post_content {
|
53
|
+
p {
|
54
|
+
margin: ($spacing-unit / 2) 0;
|
55
|
+
}
|
56
|
+
|
57
|
+
img {
|
58
|
+
display: block;
|
59
|
+
border: none;
|
60
|
+
width: 100%;
|
61
|
+
height: auto;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
.posts {
|
66
|
+
a {
|
67
|
+
display: block;
|
68
|
+
text-decoration: none;
|
69
|
+
padding-bottom: $spacing-unit / 2;
|
70
|
+
|
71
|
+
.post-meta {
|
72
|
+
font-family: 'Lato', sans-serif;
|
73
|
+
color: $grey-color;
|
74
|
+
font-weight: 300;
|
75
|
+
|
76
|
+
&:after {
|
77
|
+
content: '-';
|
78
|
+
color: $text-color;
|
79
|
+
display: inline-block;
|
80
|
+
margin: 0 0.4em;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
data/assets/main.scss
ADDED
metadata
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: retrorock-jekyll-theme
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Wilbur Suero
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-11-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.6'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.12'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.12'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- wilbur.himself@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- LICENSE.txt
|
63
|
+
- README.md
|
64
|
+
- _includes/footer.html
|
65
|
+
- _includes/google_analytics.html
|
66
|
+
- _includes/head.html
|
67
|
+
- _includes/header.html
|
68
|
+
- _layouts/default.html
|
69
|
+
- _layouts/home.html
|
70
|
+
- _layouts/page.html
|
71
|
+
- _layouts/post.html
|
72
|
+
- _sass/retrorock.scss
|
73
|
+
- _sass/retrorock/_base.scss
|
74
|
+
- _sass/retrorock/_layout.scss
|
75
|
+
- assets/main.scss
|
76
|
+
homepage: https://github.com/wilburhimself/retrorock-jekyll-theme
|
77
|
+
licenses:
|
78
|
+
- MIT
|
79
|
+
metadata: {}
|
80
|
+
post_install_message:
|
81
|
+
rdoc_options: []
|
82
|
+
require_paths:
|
83
|
+
- lib
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
requirements: []
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 2.6.12
|
97
|
+
signing_key:
|
98
|
+
specification_version: 4
|
99
|
+
summary: Gem theme originally for retrorock.info
|
100
|
+
test_files: []
|