harms-columns-front-page 2.0.5 → 2.1.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 +10 -0
- data/_includes/header.html +1 -1
- data/_layouts/home.html +2 -2
- data/_layouts/page.html +2 -2
- data/_sass/_posts.sass +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 075d9c58918a7010d697e3b65a32052a7f86473a
|
4
|
+
data.tar.gz: c3b84033040ab983eb448f337eb5f047017f6895
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4849ba11e61f25832519b86818ef00c052ac08f4bf02b048f8b2bbf5f4385d99811395ef5e97357af0d874a82fc351f2ee6ff80356b83b0ceeb0cacbdad69299
|
7
|
+
data.tar.gz: 51fc7b142df0eb37d998ae2e994bd6f09b320cfd684d8346589edd9f5a88a93e1ed3644da6601078f0c392a43e9673132ae8c1e6492a38f3a02ac3fa6f52da4f
|
data/README.md
CHANGED
@@ -471,6 +471,16 @@ featured-image: /assets/img/your-image.jpg
|
|
471
471
|
|
472
472
|
<br>
|
473
473
|
|
474
|
+
#### _Post excerpt_
|
475
|
+
|
476
|
+
When listed in a list of blog posts, a small preview of the content of your post is shown. You can choose how long this post excerpt is. The following front matter variable defines a string, which you can use in your blog post markdown to determine where a post excerpt of that post should end.
|
477
|
+
|
478
|
+
```yaml
|
479
|
+
excerpt_separator: <!--more-->
|
480
|
+
```
|
481
|
+
|
482
|
+
<br>
|
483
|
+
|
474
484
|
#### _Layout_
|
475
485
|
|
476
486
|
You can specify a layout for a post like this:
|
data/_includes/header.html
CHANGED
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
<!-- displays the header (If the page has a featured-image set it uses it as the header. If not, it shows the default header with the profile/logo image and the site's title and subtitle) -->
|
46
46
|
{% if page.featured-image %}
|
47
|
-
<div class="header" style="height: 120px; background-image: url({{ page.featured-image }}); background-size:
|
47
|
+
<div class="header" style="height: 120px; background-image: url({{ page.featured-image }}); background-size: contain; background-position: center; background-repeat: no-repeat;">
|
48
48
|
{% else %}
|
49
49
|
<div class="header">
|
50
50
|
<div class="header-content">
|
data/_layouts/home.html
CHANGED
@@ -72,7 +72,7 @@
|
|
72
72
|
<!-- if there's a featured-image set in the posts front matter, then it's dipslayed alongside the content -->
|
73
73
|
{% if post.featured-image %}
|
74
74
|
|
75
|
-
<
|
75
|
+
<h2 class="dark with-img">{{ post.title }}</h2>
|
76
76
|
<div class="post-contents">
|
77
77
|
<div class="left">
|
78
78
|
<img src="{{ post.featured-image }}" />
|
@@ -90,7 +90,7 @@
|
|
90
90
|
<!-- loop that displays the posts without a featured image set -->
|
91
91
|
{% else %}
|
92
92
|
|
93
|
-
<
|
93
|
+
<h2 class="dark">{{ post.title }}</h2>
|
94
94
|
<div class="post-contents">
|
95
95
|
<div class="left">
|
96
96
|
|
data/_layouts/page.html
CHANGED
@@ -51,7 +51,7 @@
|
|
51
51
|
<!-- if there's a featured-image set in the posts front matter, then it's dipslayed alongside the content -->
|
52
52
|
{% if post.featured-image %}
|
53
53
|
|
54
|
-
<
|
54
|
+
<h2 class="dark with-img">{{ post.title }}</h2>
|
55
55
|
<div class="post-contents">
|
56
56
|
<div class="left">
|
57
57
|
<img src="{{ post.featured-image }}" />
|
@@ -69,7 +69,7 @@
|
|
69
69
|
<!-- loop that displays the posts without a featured image set -->
|
70
70
|
{% else %}
|
71
71
|
|
72
|
-
<
|
72
|
+
<h2 class="dark">{{ post.title }}</h2>
|
73
73
|
<div class="post-contents">
|
74
74
|
<div class="left">
|
75
75
|
|
data/_sass/_posts.sass
CHANGED
@@ -7,13 +7,20 @@
|
|
7
7
|
&.hidden
|
8
8
|
display: none !important
|
9
9
|
visibility: hidden !important
|
10
|
-
|
10
|
+
h2
|
11
|
+
font-size: 25px
|
12
|
+
@media screen and ($tablet)
|
13
|
+
font-size: 20px
|
14
|
+
margin-bottom: 12px
|
15
|
+
margin-bottom: 8px
|
11
16
|
&.with-img
|
12
17
|
margin-left: 330px
|
13
18
|
@media screen and ($tablet)
|
14
19
|
margin-left: 230px
|
15
20
|
@media screen and ($mobile)
|
16
21
|
margin-left: 0
|
22
|
+
h3
|
23
|
+
margin-top: 10px
|
17
24
|
margin-bottom: 50px
|
18
25
|
padding-bottom: 50px
|
19
26
|
@media screen and ($tablet)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: harms-columns-front-page
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Harms
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|