really-simple 0.3.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -16
- data/_layouts/archives.html +1 -1
- data/_layouts/default.html +20 -4
- data/_layouts/home.html +7 -6
- data/_layouts/post.html +1 -2
- data/_sass/_colors.scss +1 -0
- data/_sass/_simple.scss +38 -8
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16ee2275cfc8a68fae207bb3ef029a5249ebb810
|
4
|
+
data.tar.gz: aa0cfebf5ce73a42529daddf190af4856466fb37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4be1efc34960833ae3b8fb4d57959fd4a81b1028698dc555b8d03ac270cecdc4ae6288dbfec9ac6750595f93a6d35595c36508bb74aa73ff48a65ee30706ce1
|
7
|
+
data.tar.gz: 37bdda513c238b481254e054f400d39bf2e08de2c58fbb7af416a4715c5dad188e51a40614ac4da8392af56e725f9d24c3218a83f5af3a670714c7e65598b163
|
data/README.md
CHANGED
@@ -31,31 +31,30 @@ And then execute:
|
|
31
31
|
$ bundle
|
32
32
|
```
|
33
33
|
|
34
|
-
Now create or update your `archives.md` in the project root folder. Specify the archives layout:
|
35
|
-
|
36
|
-
```
|
37
|
-
---
|
38
|
-
layout: archives
|
39
|
-
---
|
40
|
-
```
|
41
|
-
Any content in this file will be included in the page.
|
42
|
-
|
43
|
-
Alternately you can simply fork this repo and go from there.
|
44
|
-
|
45
34
|
## Customization
|
46
35
|
|
47
36
|
### Configuration
|
48
37
|
|
49
38
|
The following settings are configurable in `_config.yml`:
|
50
39
|
|
51
|
-
-
|
52
|
-
|
40
|
+
- `title` - Title of your site. This is used in the header and footer.
|
41
|
+
|
42
|
+
- `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.
|
43
|
+
|
44
|
+
- `post_excerpt` - When the `active` property for `post_excerpt` is set to true the home page will display only the post excerpt of each post. The `caption` property allows customization of the "more" link under the post excerpt. See example below.
|
45
|
+
|
46
|
+
- `google_analytics` - The google analytics Tracking ID. When specified, the appropriate script is included in the header.
|
53
47
|
|
54
48
|
Here's an example:
|
55
49
|
|
56
50
|
```yml
|
57
51
|
title: Really Simple # Title of site.
|
58
52
|
post_limit: 3 # Number of posts to display on the home page.
|
53
|
+
google_analytics: UA-111111111-1 # Google Analytics Tracking ID.
|
54
|
+
post_excerpt:
|
55
|
+
active: true # Show excerpts of posts when true instead of entire posts on home page.
|
56
|
+
caption: "More..." # Anchor text that links to the entire post.
|
57
|
+
archives_link_caption: Browse Archives # Anchor text for the link to archives.
|
59
58
|
```
|
60
59
|
|
61
60
|
### Colors
|
@@ -63,6 +62,7 @@ The color palette can be changed and configured by changing the rgb in `_sass/_c
|
|
63
62
|
|
64
63
|
```scss
|
65
64
|
$header-text-color: #ee4035;
|
65
|
+
$header-nav-color: #0090B2;
|
66
66
|
$content-text-color: #333;
|
67
67
|
$footer-text-color: #ee4035;
|
68
68
|
|
@@ -79,12 +79,31 @@ The above will render the palette like so:
|
|
79
79
|
|
80
80
|
![Screenshot of customized colors](really-simple-rainbow-pallete.png)
|
81
81
|
|
82
|
+
### Menu
|
82
83
|
|
83
|
-
|
84
|
+
The menu items are configuration driven. Any pages with the [front matter](https://jekyllrb.com/docs/frontmatter/) property of `menu_item` set to true will be rendered as part of the menu in the header. For example the consider the following pages:
|
85
|
+
|
86
|
+
`archives.md`:
|
87
|
+
```yml
|
88
|
+
---
|
89
|
+
title: Archives
|
90
|
+
permalink: archives
|
91
|
+
menu_item: true
|
92
|
+
---
|
93
|
+
```
|
94
|
+
|
95
|
+
`about.md`:
|
96
|
+
```yml
|
97
|
+
---
|
98
|
+
title: About
|
99
|
+
menu_item: true
|
100
|
+
---
|
101
|
+
```
|
84
102
|
|
85
|
-
|
103
|
+
Will render the menu items "About" and "Archives."
|
86
104
|
|
87
|
-
|
105
|
+
### Layouts
|
106
|
+
Really Simple comes with a simple layout for archives. Just include `layout: archives` front matter in your pages. You can find an example of this here.
|
88
107
|
|
89
108
|
## Philosophy
|
90
109
|
|
data/_layouts/archives.html
CHANGED
data/_layouts/default.html
CHANGED
@@ -5,17 +5,33 @@
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
6
|
<title>{{ site.title | escape }}</title>
|
7
7
|
<link rel="stylesheet" href="{{ "assets/main.css" | relative_url }}">
|
8
|
+
|
9
|
+
{% if jekyll.environment == 'production' and site.google_analytics %}
|
10
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
11
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
12
|
+
<script>
|
13
|
+
window.dataLayer = window.dataLayer || [];
|
14
|
+
function gtag(){dataLayer.push(arguments);}
|
15
|
+
gtag('js', new Date());
|
16
|
+
|
17
|
+
gtag('config', '{{ site.google_analytics }}');
|
18
|
+
</script>
|
19
|
+
{% endif %}
|
20
|
+
|
8
21
|
</head>
|
9
22
|
<body>
|
10
23
|
{% assign post_limit = site.post_limit | default: 3 %}
|
11
24
|
<div class="content">
|
12
25
|
<div class="header">
|
13
26
|
<a class="title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
27
|
+
|
14
28
|
<span class="nav">
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
29
|
+
<ul>
|
30
|
+
{% assign pages = site.pages | where: "menu_item", "true" %}
|
31
|
+
{% for page in pages %}
|
32
|
+
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
|
33
|
+
{% endfor %}
|
34
|
+
</ul>
|
19
35
|
</span>
|
20
36
|
</div>
|
21
37
|
|
data/_layouts/home.html
CHANGED
@@ -9,20 +9,21 @@ layout: default
|
|
9
9
|
<ul class="post-list">
|
10
10
|
{% assign post_limit = site.post_limit | default: 3 %}
|
11
11
|
{% for post in site.posts limit: post_limit %}
|
12
|
+
|
12
13
|
<li>
|
13
|
-
|
14
|
+
{% if site.post_excerpt.active %}
|
15
|
+
{% include post_excerpt.html %}
|
16
|
+
{% else %}
|
14
17
|
<h1 class="post-title">
|
15
18
|
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
16
19
|
</h1>
|
17
|
-
<span class="post-meta">posted on {{ post.date | date:
|
20
|
+
<span class="post-meta">posted on {{ post.date | date: "%b %-d, %Y" }}</span>
|
18
21
|
<div class="post-content">
|
19
|
-
|
22
|
+
{{ post.content }}
|
20
23
|
</div>
|
21
24
|
</li>
|
25
|
+
{% endif %}
|
22
26
|
{% endfor %}
|
23
27
|
</ul>
|
24
28
|
|
25
|
-
{% if site.posts.size > post_limit %}
|
26
|
-
<a class="post-link" href="{{ "archives" | relative_url }}">More...</a>
|
27
|
-
{% endif %}
|
28
29
|
</div>
|
data/_layouts/post.html
CHANGED
@@ -2,11 +2,10 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
|
5
|
-
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
|
6
5
|
<h1 class="post-title">
|
7
6
|
<a class="post-link" href="{{ page.url | relative_url }}">{{ page.title | escape }}</a>
|
8
7
|
</h1>
|
9
|
-
<span class="post-meta">posted on {{ page.date | date:
|
8
|
+
<span class="post-meta">posted on {{ page.date | date: "%b %-d, %Y" }}</span>
|
10
9
|
<div class="post-content">
|
11
10
|
{{ page.content }}
|
12
11
|
</div>
|
data/_sass/_colors.scss
CHANGED
data/_sass/_simple.scss
CHANGED
@@ -60,17 +60,28 @@ blockquote {
|
|
60
60
|
|
61
61
|
.nav {
|
62
62
|
margin-top:5px;
|
63
|
-
margin-left:20px;
|
64
63
|
font-size:1em;
|
65
|
-
float:right;
|
64
|
+
float: right;
|
66
65
|
white-space: nowrap;
|
67
66
|
|
67
|
+
ul {
|
68
|
+
list-style-type: none;
|
69
|
+
margin: 0;
|
70
|
+
padding: 0;
|
71
|
+
}
|
72
|
+
|
73
|
+
li {
|
74
|
+
display: inline;
|
75
|
+
margin-left:20px;
|
76
|
+
}
|
77
|
+
|
68
78
|
a {
|
69
|
-
color: $header-
|
79
|
+
color: $header-nav-color;
|
70
80
|
text-decoration: none;
|
71
81
|
|
72
82
|
&:hover {
|
73
|
-
color: darken($header-
|
83
|
+
color: darken($header-nav-color, 20%);
|
84
|
+
text-decoration: underline;
|
74
85
|
}
|
75
86
|
}
|
76
87
|
}
|
@@ -112,14 +123,14 @@ blockquote {
|
|
112
123
|
|
113
124
|
}
|
114
125
|
|
115
|
-
.post-meta {
|
126
|
+
.post-meta, .post-excerpt-meta {
|
116
127
|
color: lighten($content-text-color,40%);
|
117
128
|
font-size: 0.9em;
|
118
129
|
}
|
119
130
|
|
120
|
-
.post-title { margin-bottom: 5px; }
|
131
|
+
.post-title, .post-excerpt-title { margin-bottom: 5px; }
|
121
132
|
|
122
|
-
.post-link {
|
133
|
+
.post-link, .post-excerpt-link {
|
123
134
|
color: $post-link-color;
|
124
135
|
text-decoration: none;
|
125
136
|
|
@@ -128,7 +139,26 @@ blockquote {
|
|
128
139
|
}
|
129
140
|
}
|
130
141
|
|
131
|
-
.post-content {
|
142
|
+
.post-content, .post-excerpt-content {
|
132
143
|
line-height: 1.5em;
|
144
|
+
}
|
145
|
+
|
146
|
+
.post-excerpt-title {
|
147
|
+
font-size: 1.3em;
|
148
|
+
}
|
149
|
+
|
150
|
+
.home-footer-archive-link {
|
151
|
+
border:1px solid lighten($post-link-color, 30%);
|
152
|
+
padding: 7px;
|
153
|
+
border-radius: 5px;
|
154
|
+
|
155
|
+
&:hover {
|
156
|
+
border:1px solid darken($post-link-color, 10%);
|
157
|
+
background: $post-link-color;
|
158
|
+
color: lighten($post-link-color, 45%);
|
159
|
+
}
|
160
|
+
}
|
133
161
|
|
162
|
+
.home-footer {
|
163
|
+
text-align: center;
|
134
164
|
}
|
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: 1.0.1
|
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
|
+
date: 2017-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -69,7 +69,7 @@ files:
|
|
69
69
|
- _sass/_simple.scss
|
70
70
|
- _sass/_syntax-highlighting.scss
|
71
71
|
- assets/main.scss
|
72
|
-
homepage: https://github.com/jusx/really-simple
|
72
|
+
homepage: https://github.com/jusx/really-simple/tree/1.0.0
|
73
73
|
licenses:
|
74
74
|
- MIT
|
75
75
|
metadata: {}
|