really-simple 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +63 -14
- data/_layouts/default.html +2 -1
- data/_layouts/home.html +4 -3
- data/_sass/_colors.scss +18 -0
- data/_sass/_simple.scss +59 -57
- data/_sass/_syntax-highlighting.scss +2 -2
- data/assets/main.scss +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 637a119baafca5676209954dd486bf133f237921
|
4
|
+
data.tar.gz: 333cb92694dfdd48bd86938b8094f1ff850ee645
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4693aa6adf9015dd9b1c34f308e7335b413084545abb190bf03944753d9d5c949e5648195ba68fece54309d1b6975430200a4bc1b0f8c475eead92fe5256b60c
|
7
|
+
data.tar.gz: 0b29f909c9bc754e2c689eca60833b68c497b7cc00e482f4f8cbfe4766a16c95fc81b0cd15388fbdeca994591f70b62a7ab181edc1e9428f94585d375a835717
|
data/README.md
CHANGED
@@ -1,19 +1,15 @@
|
|
1
1
|
[![CircleCI](https://circleci.com/gh/jusx/really-simple/tree/master.svg?style=shield)](https://circleci.com/gh/jusx/really-simple/tree/master)
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/really-simple.svg)](https://badge.fury.io/rb/really-simple)
|
3
3
|
|
4
|
-
# Really Simple
|
4
|
+
# Really Simple
|
5
5
|
|
6
|
-
Really Simple is a really simple [Jekyll](https://jekyllrb.com) theme. It is barebones and is meant to get a site
|
6
|
+
Really Simple is a really simple [Jekyll](https://jekyllrb.com) theme. It is barebones and is meant to get a blogging site up very quickly. The Really Simple design is basic yet aesthetically pleasing. In other words it's good enough for an MVP allowing the author to quickly publish content without worrying about the details.
|
7
7
|
|
8
|
-
|
8
|
+
![Screenshot of customized colors](screenshot.png)
|
9
9
|
|
10
|
-
|
10
|
+
There are no bells and no whistles. Those can be added later -- when the author is ready.
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
While flying from Los Angeles (LAX) to San Diego (SAN) our flight was refused landing due to fog. We had to turn back to LAX. After landing back in LAX, Delta booked a bus to drive us to SAN instead. It was late, I couldn't sleep. I was inspired to create and I had time to burn.
|
15
|
-
|
16
|
-
So, I hacked this together during the two hour bus ride.
|
12
|
+
Preview the theme to [see what it looks like](https://jusx.github.io/really-simple/).
|
17
13
|
|
18
14
|
## Usage
|
19
15
|
This Really Simple Jekyll theme is a gem.
|
@@ -24,11 +20,10 @@ In your `Gemfile` add the line:
|
|
24
20
|
gem 'really-simple'
|
25
21
|
```
|
26
22
|
|
27
|
-
In your `_config.yml` file specify the theme
|
23
|
+
In your `_config.yml` file specify the theme:
|
28
24
|
|
29
25
|
```yml
|
30
26
|
theme: really-simple
|
31
|
-
title: Your Title
|
32
27
|
```
|
33
28
|
|
34
29
|
And then execute:
|
@@ -47,14 +42,68 @@ Any content in this file will be included in the page.
|
|
47
42
|
|
48
43
|
Alternately you can simply fork this repo and go from there.
|
49
44
|
|
50
|
-
##
|
45
|
+
## Customization
|
46
|
+
|
47
|
+
### Configuration
|
48
|
+
|
49
|
+
The following settings are configurable in `_config.yml`:
|
51
50
|
|
52
|
-
-
|
51
|
+
- **Title** - Title of your site. This is used in the header and footer.
|
52
|
+
- **Post Limit** - The number of posts to show on the home page. Link to archives in the header and at the end of the home page will only display based on this setting. When this is not specified, Really Simple defaults the limit to 3.
|
53
53
|
|
54
|
-
|
54
|
+
Here's an example:
|
55
|
+
|
56
|
+
```yml
|
57
|
+
title: Really Simple # Title of site.
|
58
|
+
post_limit: 3 # Number of posts to display on the home page.
|
59
|
+
```
|
60
|
+
|
61
|
+
### Colors
|
62
|
+
The color palette can be changed and configured by changing the rgb in `_sass/_colors.scss`. If using the gem, merely create the file `_colors.scss` under the folder `_sass` and set the colors appropriately. Here's an example:
|
63
|
+
|
64
|
+
```scss
|
65
|
+
$header-text-color: #ee4035;
|
66
|
+
$content-text-color: #333;
|
67
|
+
$footer-text-color: #ee4035;
|
68
|
+
|
69
|
+
$post-link-color: #7bc043;
|
70
|
+
$normal-link-color: #0392cf;
|
71
|
+
$hover-link-color: #f37736;
|
72
|
+
|
73
|
+
$table-border-color: #eee;
|
74
|
+
$blockquote-txt-color: #999;
|
75
|
+
$blockquote-border-color: #fdf498;
|
76
|
+
$code-bg-color: #fdf498;
|
77
|
+
```
|
78
|
+
The above will render the palette like so:
|
79
|
+
|
80
|
+
![Screenshot of customized colors](really-simple-rainbow-pallete.png)
|
81
|
+
|
82
|
+
|
83
|
+
## Details
|
84
|
+
|
85
|
+
- Link to archives in the header and at the end of the home page will only display when there are more than post limit configured (or the default of 3 if it is not configured).
|
55
86
|
|
56
87
|
- The header has two links: `Archives` and `About`. Really Simple expects these files to be in the root project folder. The `jekyll new` command will create a dummy `about.md` file in the root folder. Remove the layout metadata so that the Really Simple default template is used.
|
57
88
|
|
89
|
+
## Philosophy
|
90
|
+
|
91
|
+
The Really Simple theme is meant to be minimal and be a design starting point. It follows the following principles:
|
92
|
+
|
93
|
+
- It should work out of the box without additional configuration.
|
94
|
+
|
95
|
+
- It should be lightweight. No external dependencies on CSS or JS frameworks.
|
96
|
+
|
97
|
+
- It should be responsive.
|
98
|
+
|
99
|
+
## Background
|
100
|
+
|
101
|
+
I had been struggling to find a really simple Jekyll theme that supported blogging out of the box. It was either esthetically not pleasing to me or that it had too many bells and whistles forcing me to think about things I did not wish to have to think about immediately. I just wanted to launch.
|
102
|
+
|
103
|
+
While flying from Los Angeles (LAX) to San Diego (SAN) our flight was refused landing due to fog. We had to turn back to LAX. After landing back in LAX, Delta booked a bus to drive us to SAN instead. It was late, I couldn't sleep. I was inspired to create and I had time to burn.
|
104
|
+
|
105
|
+
So, I hacked this together during the two hour bus ride.
|
106
|
+
|
58
107
|
## Contributions
|
59
108
|
Bug reports and pull requests are most welcome.
|
60
109
|
|
data/_layouts/default.html
CHANGED
@@ -7,11 +7,12 @@
|
|
7
7
|
<link rel="stylesheet" href="{{ "assets/main.css" | relative_url }}">
|
8
8
|
</head>
|
9
9
|
<body>
|
10
|
+
{% assign post_limit = site.post_limit | default: 3 %}
|
10
11
|
<div class="content">
|
11
12
|
<div class="header">
|
12
13
|
<a class="title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
13
14
|
<span class="nav">
|
14
|
-
{% if site.posts.size >
|
15
|
+
{% if site.posts.size > post_limit %}
|
15
16
|
» <a href="{{ "archives" | relative_url }}">archives</a>
|
16
17
|
{% endif %}
|
17
18
|
» <a href="{{ "about" | relative_url }}">about</a>
|
data/_layouts/home.html
CHANGED
@@ -7,7 +7,8 @@ layout: default
|
|
7
7
|
{{ content }}
|
8
8
|
|
9
9
|
<ul class="post-list">
|
10
|
-
{%
|
10
|
+
{% assign post_limit = site.post_limit | default: 3 %}
|
11
|
+
{% for post in site.posts limit: post_limit %}
|
11
12
|
<li>
|
12
13
|
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
|
13
14
|
<h1 class="post-title">
|
@@ -21,7 +22,7 @@ layout: default
|
|
21
22
|
{% endfor %}
|
22
23
|
</ul>
|
23
24
|
|
24
|
-
{% if site.posts.size >
|
25
|
-
<a class="post-link" href="{{ "
|
25
|
+
{% if site.posts.size > post_limit %}
|
26
|
+
<a class="post-link" href="{{ "archives" | relative_url }}">More...</a>
|
26
27
|
{% endif %}
|
27
28
|
</div>
|
data/_sass/_colors.scss
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Color definitions.
|
3
|
+
**/
|
4
|
+
|
5
|
+
$header-text-color: #999; // text and nav link color in the header.
|
6
|
+
$content-text-color: #333; // content text color
|
7
|
+
$footer-text-color: #999; // text color in the footer.
|
8
|
+
|
9
|
+
$post-link-color: #ff9b0b; // post title link color.
|
10
|
+
$normal-link-color: #0090B2; // anchor tags within the content area.
|
11
|
+
$hover-link-color: #ff7a00; // on hover of anchor tags within the content area.
|
12
|
+
|
13
|
+
$table-border-color: #eee; // border color for tables.
|
14
|
+
|
15
|
+
$blockquote-txt-color: #999; // text color for blockquote.
|
16
|
+
$blockquote-border-color: #eee; // left border color of blockquote.
|
17
|
+
|
18
|
+
$code-bg-color: #eee; // background color for highlighted code.
|
data/_sass/_simple.scss
CHANGED
@@ -1,17 +1,61 @@
|
|
1
|
+
// all the base.
|
1
2
|
body {
|
2
3
|
font-family: Georgia, Cambria, 'Josefin Slab';
|
3
|
-
color:
|
4
|
+
color: $content-text-color;
|
4
5
|
}
|
5
6
|
|
7
|
+
a {
|
8
|
+
color: $normal-link-color;
|
9
|
+
text-decoration:none;
|
10
|
+
|
11
|
+
&:hover {
|
12
|
+
color: $hover-link-color;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
code { background: $code-bg-color; padding:3px; border-radius: 2px; }
|
17
|
+
|
18
|
+
table {
|
19
|
+
margin-bottom: 30px;
|
20
|
+
width: 100%;
|
21
|
+
text-align: left;
|
22
|
+
border-collapse: collapse;
|
23
|
+
border: 1px solid $table-border-color;
|
24
|
+
tr {
|
25
|
+
&:nth-child(even) {
|
26
|
+
background-color: lighten($table-border-color, 6%);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
th, td {
|
30
|
+
padding: 10px 10px;
|
31
|
+
}
|
32
|
+
th {
|
33
|
+
background-color: lighten($table-border-color, 3%);
|
34
|
+
border: 1px solid darken($table-border-color, 4%);
|
35
|
+
border-bottom-color: darken($table-border-color, 12%);
|
36
|
+
}
|
37
|
+
td {
|
38
|
+
border: 1px solid $table-border-color;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
blockquote {
|
43
|
+
color: $blockquote-txt-color;
|
44
|
+
border-left: 5px solid $blockquote-border-color;
|
45
|
+
padding: 10px 10px 10px 20px;
|
46
|
+
background: lighten($blockquote-txt-color, 37%);
|
47
|
+
}
|
48
|
+
|
49
|
+
// all the layout.
|
6
50
|
.header {
|
7
|
-
color:
|
51
|
+
color: $header-text-color;
|
8
52
|
padding-top: 20px;
|
9
53
|
padding-bottom: 20px;
|
10
54
|
|
11
55
|
.title {
|
12
56
|
font-size:1.5em;
|
13
57
|
text-decoration: none;
|
14
|
-
color:
|
58
|
+
color: $header-text-color;
|
15
59
|
}
|
16
60
|
|
17
61
|
.nav {
|
@@ -22,21 +66,21 @@ body {
|
|
22
66
|
white-space: nowrap;
|
23
67
|
|
24
68
|
a {
|
25
|
-
color:
|
69
|
+
color: $header-text-color;
|
26
70
|
text-decoration: none;
|
27
71
|
|
28
72
|
&:hover {
|
29
|
-
color: darken(
|
73
|
+
color: darken($header-text-color, 20%);
|
30
74
|
}
|
31
75
|
}
|
32
76
|
}
|
33
77
|
}
|
34
78
|
|
35
79
|
.footer {
|
36
|
-
color:
|
80
|
+
color: $footer-text-color;
|
37
81
|
padding-top: 20px;
|
38
82
|
padding-bottom: 20px;
|
39
|
-
border-top: 1px solid
|
83
|
+
border-top: 1px solid lighten($footer-text-color, 30%);
|
40
84
|
margin-top: 70px;
|
41
85
|
font-size: 0.8em;
|
42
86
|
}
|
@@ -48,7 +92,11 @@ body {
|
|
48
92
|
|
49
93
|
h1, h2, h3, h4, h5, h6 {
|
50
94
|
font-family: "Lucida Grande", verdana, 'Lato', sans-serif;
|
51
|
-
color:
|
95
|
+
color: lighten($content-text-color, 10%);
|
96
|
+
}
|
97
|
+
|
98
|
+
img {
|
99
|
+
width: 100%;
|
52
100
|
}
|
53
101
|
}
|
54
102
|
|
@@ -65,18 +113,18 @@ body {
|
|
65
113
|
}
|
66
114
|
|
67
115
|
.post-meta {
|
68
|
-
color:
|
116
|
+
color: lighten($content-text-color,40%);
|
69
117
|
font-size: 0.9em;
|
70
118
|
}
|
71
119
|
|
72
120
|
.post-title { margin-bottom: 5px; }
|
73
121
|
|
74
122
|
.post-link {
|
75
|
-
color:
|
123
|
+
color: $post-link-color;
|
76
124
|
text-decoration: none;
|
77
125
|
|
78
126
|
&:hover {
|
79
|
-
color: darken(
|
127
|
+
color: darken($post-link-color, 10%);
|
80
128
|
}
|
81
129
|
}
|
82
130
|
|
@@ -84,49 +132,3 @@ body {
|
|
84
132
|
line-height: 1.5em;
|
85
133
|
|
86
134
|
}
|
87
|
-
|
88
|
-
a {
|
89
|
-
color:#111;
|
90
|
-
color: #0090B2;
|
91
|
-
text-decoration:none;
|
92
|
-
|
93
|
-
&:hover {
|
94
|
-
color: #FF7A00;
|
95
|
-
}
|
96
|
-
}
|
97
|
-
|
98
|
-
code { background: #eee; padding:3px; border-radius: 2px; }
|
99
|
-
|
100
|
-
/**
|
101
|
-
* Tables
|
102
|
-
*/
|
103
|
-
table {
|
104
|
-
margin-bottom: 30px;
|
105
|
-
width: 100%;
|
106
|
-
text-align: left;
|
107
|
-
border-collapse: collapse;
|
108
|
-
border: 1px solid #eee;
|
109
|
-
tr {
|
110
|
-
&:nth-child(even) {
|
111
|
-
background-color: lighten(#eee, 6%);
|
112
|
-
}
|
113
|
-
}
|
114
|
-
th, td {
|
115
|
-
padding: 10px 10px;
|
116
|
-
}
|
117
|
-
th {
|
118
|
-
background-color: lighten(#eee, 3%);
|
119
|
-
border: 1px solid darken(#eee, 4%);
|
120
|
-
border-bottom-color: darken(#eee, 12%);
|
121
|
-
}
|
122
|
-
td {
|
123
|
-
border: 1px solid #eee;
|
124
|
-
}
|
125
|
-
}
|
126
|
-
|
127
|
-
blockquote {
|
128
|
-
color: #999;
|
129
|
-
border-left: 5px solid #eee;
|
130
|
-
padding: 10px 10px 10px 20px;
|
131
|
-
background: lighten(#999, 37%);
|
132
|
-
}
|
@@ -3,12 +3,12 @@
|
|
3
3
|
* Adapted from https://github.com/jekyll/minima/blob/master/_sass/minima/_syntax-highlighting.scss
|
4
4
|
*/
|
5
5
|
.highlight {
|
6
|
-
background:
|
6
|
+
background: $code-bg-color;
|
7
7
|
padding: 3px 5px 3px 10px;
|
8
8
|
border-radius: 10px;
|
9
9
|
margin-bottom: 30px;
|
10
10
|
margin-left: 20px;
|
11
|
-
|
11
|
+
|
12
12
|
.c { color: #998; font-style: italic } // Comment
|
13
13
|
.err { color: #a61717; background-color: #e3d2d2 } // Error
|
14
14
|
.k { font-weight: bold } // Keyword
|
data/assets/main.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: really-simple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jusx
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- _layouts/default.html
|
66
66
|
- _layouts/home.html
|
67
67
|
- _layouts/post.html
|
68
|
+
- _sass/_colors.scss
|
68
69
|
- _sass/_simple.scss
|
69
70
|
- _sass/_syntax-highlighting.scss
|
70
71
|
- assets/main.scss
|