type-on-strap 0.5.3 → 0.6.3
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 +4 -4
- data/README.md +13 -17
- data/_includes/blog.html +42 -0
- data/_includes/head.html +12 -0
- data/_includes/navbar.html +9 -6
- data/_includes/portfolio.html +13 -14
- data/_includes/post_nav.html +2 -2
- data/_includes/share_buttons.html +76 -0
- data/_includes/tags_list.html +4 -4
- data/_layouts/custom.html +35 -0
- data/_layouts/default.html +1 -1
- data/_layouts/home.html +4 -49
- data/_layouts/page.html +9 -1
- data/_layouts/post.html +21 -8
- data/_layouts/tags.html +9 -5
- data/_sass/base/_global.scss +2 -1
- data/_sass/base/_variables.scss +1 -1
- data/_sass/external/_syntax.scss +10 -1
- data/_sass/includes/_footer.scss +4 -1
- data/_sass/includes/_portfolio.scss +42 -66
- data/_sass/includes/_share_buttons.scss +29 -0
- data/_sass/layouts/_tags.scss +2 -0
- data/_sass/type-on-strap.scss +2 -1
- data/assets/css/bootstrap-iso.less +12 -0
- data/assets/css/vendor/bootstrap-iso.css +8232 -0
- data/assets/css/vendor/bootstrap-iso.min.css +6 -8
- data/assets/css/vendor/bootstrap.css +9030 -0
- data/assets/data/search.json +4 -3
- data/assets/js/.DS_Store +0 -0
- data/assets/js/main.min.js +1 -1
- data/assets/js/partials/.DS_Store +0 -0
- data/assets/js/{katex_init.js → partials/katex_init.js} +3 -1
- data/assets/js/partials/masonry_init.js +22 -0
- data/assets/js/{navbar.js → partials/navbar.js} +0 -10
- metadata +14 -7
- data/_layouts/bootstrap.html +0 -33
- data/assets/js/masonry_init.js +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18220ff2bed115de2551c0c321e20eb7f00ced8b
|
4
|
+
data.tar.gz: 5fa58a662a070f5e6fa29557a8bd96e4288c98b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7d1318ac7cbc99abac531afe29bd37b72356417b3635f559bf51f97e96010eaef1819231b3edf8b4061475a2b5b277f79dd6bc5409dbd2d09a40bae8873971a
|
7
|
+
data.tar.gz: b6564989ef79bdac3295e4c437f6c28927c485efa0bec9dfeffb6d2e2d3ae71dfa3e562a4cf7280ca9055014765d2258fc3369ac5a4645900ad62a4d92a2a2e5
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Type on Strap
|
2
2
|
|
3
|
-
[](https://travis-ci.org/sylhare/Type-on-Strap)
|
4
4
|
[](https://badge.fury.io/rb/type-on-strap)
|
5
5
|
|
6
6
|
A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chandra [type-theme](https://github.com/rohanchandra/type-theme) with a few new features:
|
@@ -58,7 +58,8 @@ jekyll-theme-basically-basic
|
|
58
58
|
├── pages
|
59
59
|
| ├── 404.md # To be displayed when url is wrong
|
60
60
|
| ├── about.md # About example page
|
61
|
-
| ├──
|
61
|
+
| ├── gallery.md # Gallery page for your photos
|
62
|
+
| ├── portfolio.md # Portfolio page for your projects
|
62
63
|
| ├── search.html # Search page
|
63
64
|
| └── search.json # Specify the search target (page, post, collection)
|
64
65
|
├── _config.yml # sample configuration
|
@@ -235,15 +236,18 @@ This are the basic features you can use with the `post` layout.
|
|
235
236
|
---
|
236
237
|
layout: post
|
237
238
|
title: Hello World # Title of the page
|
238
|
-
|
239
|
+
hide_title: true # Hide the title when displaying the post, but shown in lists of posts
|
239
240
|
feature-img: "assets/img/sample.png" # Add a feature-image to the post
|
240
241
|
thumbnail: "assets/img/thumbnail/sample-th.png" # Add a thumbnail image on blog view
|
242
|
+
bootstrap: true # Add bootstrap to the page
|
241
243
|
tags: [sample, markdown, html]
|
242
244
|
---
|
243
245
|
```
|
244
246
|
|
245
247
|
With `thumbnail`, you can add a smaller image than the `feature-img`. If you don't want/have a thumbnail you can still use the same image as the feature one.
|
246
248
|
|
249
|
+
So the **bootstrap** is not mandatory and is only usefull if you want to add bootstrapped content in your page. It will respect the page and theme layout, mind the padding on the sides.
|
250
|
+
|
247
251
|
### Layout: Page
|
248
252
|
|
249
253
|
The page layout have a bit more features explained here.
|
@@ -262,16 +266,6 @@ tags: [sample, markdown, html]
|
|
262
266
|
|
263
267
|
The hide only hides your page from the navigation bar, it is however still generated and can be access through its link. Use the `_draft` folder to keep files from being generated on your site.
|
264
268
|
|
265
|
-
### Layout: Bootstrap
|
266
|
-
|
267
|
-
This is the page layout modified to have bootstrap activated to format your content accordingly with the theme.
|
268
|
-
|
269
|
-
```yml
|
270
|
-
---
|
271
|
-
layout: bootstrap
|
272
|
-
---
|
273
|
-
```
|
274
|
-
|
275
269
|
### Layout: Default
|
276
270
|
|
277
271
|
This layout includes the head, navigation bar and footer around your content.
|
@@ -287,14 +281,16 @@ Here are the documentation for the other feature pages that can be added through
|
|
287
281
|
This page is the used as the home page of the template (in the `index.html`). It displays the list of article in `_posts`.
|
288
282
|
You can use this layout in another page (adding a title to it will make it appear in the navigation bar).
|
289
283
|
|
284
|
+
The recommended width and height for the home picture is width:`2484px;` and height:`1280px` which are the dimension of the actual picture for it to be rolling down as you scroll the page.
|
285
|
+
|
290
286
|
### Portfolio
|
291
287
|
|
292
|
-
Portfolio is a feature
|
288
|
+
Portfolio is a feature page that will take all the markdown/html files in the `_portfolio` folder to create a 3-columns image portfolio matrix.
|
293
289
|
|
294
290
|
To use the portfolio, simply create a `portfolio.md` with this information inside:
|
295
291
|
```yml
|
296
292
|
---
|
297
|
-
layout:
|
293
|
+
layout: page
|
298
294
|
title : Portfolio
|
299
295
|
---
|
300
296
|
|
@@ -320,7 +316,7 @@ gallery: "assets/img/pexels"
|
|
320
316
|
|
321
317
|
The search feature is based on [Simple-Jekyll-search](https://github.com/christian-fei/Simple-Jekyll-Search) there is a `search.json` file that will create a list of all of the site posts, pages and portfolios.
|
322
318
|
|
323
|
-
Then there's a `search.js` displaying the
|
319
|
+
Then there's a `search.js` displaying the formatted results entered in the `search.html` page.
|
324
320
|
|
325
321
|
|
326
322
|
The search page can be enable/disable in the navigation bar through the `_config.yml` via:
|
@@ -333,7 +329,7 @@ special_page:
|
|
333
329
|
|
334
330
|
### Tags
|
335
331
|
|
336
|
-
Tags should be placed between `[]` in your post metadata.
|
332
|
+
Tags should be placed between `[]` in your post metadata. Separate each tag with a comma. Tags are recommended for posts and portfolio items.
|
337
333
|
|
338
334
|
For example:
|
339
335
|
|
data/_includes/blog.html
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
<div class="posts">
|
2
|
+
{% for post in paginator.posts %}
|
3
|
+
<div class="post-teaser">
|
4
|
+
{% if post.thumbnail %}
|
5
|
+
<div class="post-img">
|
6
|
+
<img alt="{{ post.title }}" src="{{ site.baseurl }}/{{ post.thumbnail }}">
|
7
|
+
</div>
|
8
|
+
{% endif %}
|
9
|
+
<span>
|
10
|
+
<header>
|
11
|
+
<h1>
|
12
|
+
<a alt="{{ post.title }}" class="post-link" href="{{ post.url | prepend: site.baseurl }}">
|
13
|
+
{{ post.title }}
|
14
|
+
</a>
|
15
|
+
</h1>
|
16
|
+
<p class="meta">
|
17
|
+
{{ post.date | date: "%B %-d, %Y" }}
|
18
|
+
</p>
|
19
|
+
</header>
|
20
|
+
<div class="excerpt">
|
21
|
+
{{ post.excerpt | strip_html | escape }}
|
22
|
+
</div>
|
23
|
+
</span>
|
24
|
+
</div>
|
25
|
+
{% endfor %}
|
26
|
+
</div>
|
27
|
+
|
28
|
+
{% if paginator.total_pages > 1 %}
|
29
|
+
<div class="pagination">
|
30
|
+
{% if paginator.previous_page %}
|
31
|
+
<a alt="{{ site.theme_settings.str_previous_page }}"
|
32
|
+
href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button">
|
33
|
+
<i class="fa fa-chevron-left"></i>
|
34
|
+
{{ site.theme_settings.str_previous_page }}
|
35
|
+
</a> {% endif %} {% if paginator.next_page %}
|
36
|
+
<a alt="{{ site.theme_settings.str_next_page }}"
|
37
|
+
href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button">
|
38
|
+
{{ site.theme_settings.str_next_page }}
|
39
|
+
<i class="fa fa-chevron-right"></i>
|
40
|
+
</a> {% endif %}
|
41
|
+
</div>
|
42
|
+
{% endif %}
|
data/_includes/head.html
CHANGED
@@ -20,6 +20,18 @@
|
|
20
20
|
<!-- Font Awesome -->
|
21
21
|
<!-- <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> -->
|
22
22
|
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/assets/css/vendor/font-awesome.min.css">
|
23
|
+
|
24
|
+
{% if page.bootstrap %}
|
25
|
+
<!-- Bootstrap-4.1.3 isolation CSS -->
|
26
|
+
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/assets/css/vendor/bootstrap-iso.min.css">
|
27
|
+
|
28
|
+
<!-- JQuery 3.3.1 -->
|
29
|
+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
30
|
+
<!-- Popper, a dependency of Bootstrap-->
|
31
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
32
|
+
<!-- Bootstrap 4.1.3 compiled and minified JavaScript -->
|
33
|
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
34
|
+
{% endif %}
|
23
35
|
|
24
36
|
<!-- Google Fonts -->
|
25
37
|
{% if site.theme_settings.google_fonts %}
|
data/_includes/navbar.html
CHANGED
@@ -2,18 +2,19 @@
|
|
2
2
|
|
3
3
|
<!-- Logo and title -->
|
4
4
|
<div class="branding">
|
5
|
-
<a href="{{ site.baseurl }}/">
|
6
|
-
<img class="avatar" src="{{ site.baseurl }}/{{ site.theme_settings.avatar }}"
|
5
|
+
<a alt="logo" href="{{ site.baseurl }}/">
|
6
|
+
<img alt="logo img" class="avatar" src="{{ site.baseurl }}/{{ site.theme_settings.avatar }}"/>
|
7
7
|
</a>
|
8
8
|
|
9
9
|
<h1 class="site-title">
|
10
|
-
<a
|
10
|
+
<a alt="{{ site.theme_settings.title }}" href="{{ site.baseurl }}/">
|
11
|
+
{{ site.theme_settings.title }}</a>
|
11
12
|
</h1>
|
12
13
|
</div>
|
13
14
|
|
14
15
|
<!-- Toggle menu -->
|
15
16
|
<nav class="clear">
|
16
|
-
<a id="pull" class="toggle" href="#">
|
17
|
+
<a name="pull" id="pull" class="toggle" href="#">
|
17
18
|
<i class="fa fa-bars fa-lg"></i>
|
18
19
|
</a>
|
19
20
|
|
@@ -28,7 +29,8 @@
|
|
28
29
|
{% else %}
|
29
30
|
<li class="separator"> | </li>
|
30
31
|
<li>
|
31
|
-
<a class="clear"
|
32
|
+
<a class="clear" name="{{ page.title }}"
|
33
|
+
href="{{ page.url | relative_url }}">
|
32
34
|
{{ page.title }}
|
33
35
|
</a>
|
34
36
|
</li>
|
@@ -42,7 +44,8 @@
|
|
42
44
|
{% if item[1].enabled %}
|
43
45
|
<li class="separator"> | </li>
|
44
46
|
<li>
|
45
|
-
<a class="clear"
|
47
|
+
<a class="clear" id="{{ item[0] }}" name="{{ item[0] }}"
|
48
|
+
href="{{ site.url }}{{ site.baseurl }}/{{ item[0] }}">
|
46
49
|
<i class="fa fa-{{ item[1].icon }}" aria-hidden="true"></i>
|
47
50
|
</a>
|
48
51
|
</li>
|
data/_includes/portfolio.html
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
<!-- Portfolio Grid Section -->
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
</div>
|
2
|
+
|
3
|
+
<div class="portfolio-grid">
|
4
|
+
{% for item in site.portfolio %}
|
5
|
+
<div class="portfolio-cell">
|
6
|
+
<a href="{{ site.baseurl }}{{ item.url }}" class="portfolio-link" data-keyboard="true">
|
7
|
+
<div class="caption" title="{{ item.title }}">
|
8
|
+
<div class="caption-content">
|
9
|
+
<i class="fa fa-search-plus fa-3x"></i>
|
11
10
|
</div>
|
12
|
-
|
13
|
-
|
14
|
-
</
|
15
|
-
{% endfor %}
|
11
|
+
</div>
|
12
|
+
<img src="{{ site.baseurl }}/{{ item.img }}" class="" alt="">
|
13
|
+
</a>
|
16
14
|
</div>
|
17
|
-
|
15
|
+
{% endfor %}
|
16
|
+
</div>
|
data/_includes/post_nav.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
{% if page.previous.url %}
|
3
3
|
<div id="previous-post" class="post-nav-post">
|
4
4
|
<p>{{ site.theme_settings.str_previous_post }}</p>
|
5
|
-
<a href="{{ site.baseurl }}{{ page.previous.url }}">
|
5
|
+
<a alt="{{ page.previous.title }}" href="{{ site.baseurl }}{{ page.previous.url }}">
|
6
6
|
{{ page.previous.title }}
|
7
7
|
</a>
|
8
8
|
</div>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
{% if page.next.url %}
|
11
11
|
<div id="next-post" class="post-nav-post">
|
12
12
|
<p>{{ site.theme_settings.str_next_post }}</p>
|
13
|
-
<a href="{{ site.baseurl }}{{ page.next.url }}">
|
13
|
+
<a alt="{{ page.next.title }}" href="{{ site.baseurl }}{{ page.next.url }}">
|
14
14
|
{{ page.next.title }}
|
15
15
|
</a>
|
16
16
|
</div>
|
@@ -0,0 +1,76 @@
|
|
1
|
+
<div class="share-buttons">
|
2
|
+
<ul class="share-buttons">
|
3
|
+
<div class="meta">Share</div>
|
4
|
+
{% if site.theme_settings.share_buttons.facebook %}
|
5
|
+
<li>
|
6
|
+
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | prepend: site.baseurl | prepend: site.url }}" target="_blank" title="{{ site.theme_settings.str_share_on }} Facebook">
|
7
|
+
<i class="fa fa-facebook-square fa-2x" aria-hidden="true"></i>
|
8
|
+
<span class="sr-only">{{ site.theme_settings.str_share_on }} Facebook</span>
|
9
|
+
</a>
|
10
|
+
</li>
|
11
|
+
{% endif %} {% if site.theme_settings.share_buttons.twitter %}
|
12
|
+
<li>
|
13
|
+
<a href="https://twitter.com/intent/tweet?source={{ page.url | prepend: site.baseurl | prepend: site.url }}&text={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}:%20{{ page.url | prepend: site.baseurl | prepend: site.url }}" target="_blank" title="{{ site.theme_settings.str_tweet }}">
|
14
|
+
<i class="fa fa-twitter-square fa-2x" aria-hidden="true"></i>
|
15
|
+
<span class="sr-only">{{ site.theme_settings.str_tweet }}</span>
|
16
|
+
</a>
|
17
|
+
</li>
|
18
|
+
{% endif %} {% if site.theme_settings.share_buttons.google_plus %}
|
19
|
+
<li>
|
20
|
+
<a href="https://plus.google.com/share?url={{ page.url | prepend: site.baseurl | prepend: site.url }}" target="_blank" title="{{ site.theme_settings.str_share_on }} Google+">
|
21
|
+
<i class="fa fa-google-plus-square fa-2x" aria-hidden="true"></i>
|
22
|
+
<span class="sr-only">{{ site.theme_settings.str_share_on }} Google+</span>
|
23
|
+
</a>
|
24
|
+
</li>
|
25
|
+
{% endif %} {% if site.theme_settings.share_buttons.tumblr %}
|
26
|
+
<li>
|
27
|
+
<a href="http://www.tumblr.com/share?v=3&u={{ page.url | prepend: site.baseurl | prepend: site.url }}"e={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&s=" target="_blank" title="{{ site.theme_settings.str_share_on }} Tumblr">
|
28
|
+
<i class="fa fa-tumblr-square fa-2x" aria-hidden="true"></i>
|
29
|
+
<span class="sr-only">{{ site.theme_settings.str_share_on }} Tumblr</span>
|
30
|
+
</a>
|
31
|
+
</li>
|
32
|
+
{% endif %} {% if site.theme_settings.share_buttons.pinterest %}
|
33
|
+
<li>
|
34
|
+
<a href="http://pinterest.com/pin/create/button/?url={{ page.url | prepend: site.baseurl | prepend: site.url }}&description=" target="_blank" title="{{ site.theme_settings.str_pin_it }}">
|
35
|
+
<i class="fa fa-pinterest-square fa-2x" aria-hidden="true"></i>
|
36
|
+
<span class="sr-only">{{ site.theme_settings.str_pin_it }}</span>
|
37
|
+
</a>
|
38
|
+
</li>
|
39
|
+
{% endif %} {% if site.theme_settings.share_buttons.pocket %}
|
40
|
+
<li>
|
41
|
+
<a href="https://getpocket.com/save?url={{ page.url | prepend: site.baseurl | prepend: site.url }}&title={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}" target="_blank" title="{{ site.theme_settings.str_add_to }} Pocket">
|
42
|
+
<i class="fa fa fa-get-pocket fa-2x" aria-hidden="true"></i>
|
43
|
+
<span class="sr-only">{{ site.theme_settings.str_add_to }} Pocket</span>
|
44
|
+
</a>
|
45
|
+
</li>
|
46
|
+
{% endif %} {% if site.theme_settings.share_buttons.reddit %}
|
47
|
+
<li>
|
48
|
+
<a href="http://www.reddit.com/submit?url={{ page.url | prepend: site.baseurl | prepend: site.url }}&title={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}" target="_blank" title="{{ site.theme_settings.str_share_on }} Reddit">
|
49
|
+
<i class="fa fa-reddit-square fa-2x" aria-hidden="true"></i>
|
50
|
+
<span class="sr-only">{{ site.theme_settings.str_share_on }} Reddit</span>
|
51
|
+
</a>
|
52
|
+
</li>
|
53
|
+
{% endif %} {% if site.theme_settings.share_buttons.linkedin %}
|
54
|
+
<li>
|
55
|
+
<a href="http://www.linkedin.com/shareArticle?mini=true&url={{ page.url | prepend: site.baseurl | prepend: site.url }}&title={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&summary=&source={{ page.url | prepend: site.baseurl | prepend: site.url }}" target="_blank" title="{{ site.theme_settings.str_share_on }} LinkedIn">
|
56
|
+
<i class="fa fa-linkedin fa-2x" aria-hidden="true"></i>
|
57
|
+
<span class="sr-only">{{ site.theme_settings.str_share_on }} LinkedIn</span>
|
58
|
+
</a>
|
59
|
+
</li>
|
60
|
+
{% endif %} {% if site.theme_settings.share_buttons.wordpress %}
|
61
|
+
<li>
|
62
|
+
<a href="http://wordpress.com/press-this.php?u={{ page.url | prepend: site.baseurl | prepend: site.url }}"e={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&s=" target="_blank" title="{{ site.theme_settings.str_share_on }} WordPress">
|
63
|
+
<i class="fa fa-wordpress fa-2x" aria-hidden="true"></i>
|
64
|
+
<span class="sr-only">{{ site.theme_settings.str_share_on }} WordPress</span>
|
65
|
+
</a>
|
66
|
+
</li>
|
67
|
+
{% endif %} {% if site.theme_settings.share_buttons.email %}
|
68
|
+
<li>
|
69
|
+
<a href="mailto:?subject={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&body=:%20{{ page.url | prepend: site.baseurl | prepend: site.url }}" target="_blank" title="{{ site.theme_settings.str_email }}">
|
70
|
+
<i class="fa fa-envelope-square fa-2x" aria-hidden="true"></i>
|
71
|
+
<span class="sr-only">{{ site.theme_settings.str_email }}</span>
|
72
|
+
</a>
|
73
|
+
</li>
|
74
|
+
{% endif %}
|
75
|
+
</ul>
|
76
|
+
</div>
|
data/_includes/tags_list.html
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
{% assign tags = include.tags | split:'|' | sort | uniq %}
|
2
2
|
|
3
|
-
{% if
|
3
|
+
{% if tags.size > 0 %}
|
4
4
|
<footer>
|
5
5
|
<div class="tag-list">
|
6
|
-
{% if
|
6
|
+
{% if tags.size == 1 %}
|
7
7
|
<div class="meta">Tag</div>
|
8
|
-
{%
|
8
|
+
{% else %}
|
9
9
|
<div class="meta">Tags</div>
|
10
10
|
{% endif %}
|
11
11
|
|
12
12
|
{% for tag in tags %}
|
13
|
-
<a class="button" href="{{site.baseurl}}/tags#{{tag}}">
|
13
|
+
<a class="button" href="{{site.baseurl}}/tags#{{ tag | cgi_escape }}">
|
14
14
|
<p><i class="fa fa-tag fa-fw"></i> {{ tag }}</p>
|
15
15
|
</a>
|
16
16
|
{% endfor %}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<article {% if page.feature-img %}class="feature-image"{% endif %} style="padding:0;">
|
5
|
+
<header id="main" style="background-image: url('{{ site.baseurl }}/{{ page.feature-img }}')">
|
6
|
+
<h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
|
7
|
+
<p class="meta">
|
8
|
+
{{ page.date | date: "%B %-d, %Y" }}
|
9
|
+
{% if page.author %} - {{ page.author }}{% endif %}
|
10
|
+
</p>
|
11
|
+
</header>
|
12
|
+
<section class="post-content">{{ content }}</section>
|
13
|
+
|
14
|
+
<div style="display: inline-block;">
|
15
|
+
<!-- Social media shares -->
|
16
|
+
{% include share_buttons.html %}
|
17
|
+
|
18
|
+
<!-- Tag list -->
|
19
|
+
{% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
|
20
|
+
{% include tags_list.html tags=tag_list %}
|
21
|
+
</div>
|
22
|
+
|
23
|
+
</article>
|
24
|
+
|
25
|
+
<!-- Disqus -->
|
26
|
+
{% if site.theme_settings.disqus_shortname %}
|
27
|
+
<div class="comments">
|
28
|
+
{% include disqus.html %}
|
29
|
+
</div>
|
30
|
+
{% endif %}
|
31
|
+
|
32
|
+
<!-- Post navigation -->
|
33
|
+
{% if site.theme_settings.post_navigation %}
|
34
|
+
{% include post_nav.html %}
|
35
|
+
{% endif %}
|
data/_layouts/default.html
CHANGED
data/_layouts/home.html
CHANGED
@@ -4,57 +4,12 @@ layout: default
|
|
4
4
|
|
5
5
|
<div class="home">
|
6
6
|
{% if site.theme_settings.header_text %}
|
7
|
-
<div id="main" class="call-out"
|
8
|
-
|
7
|
+
<div id="main" class="call-out"
|
8
|
+
style="background-image: url('{{ site.baseurl }}/{{ site.theme_settings.header_feature_image }}')">
|
9
9
|
{{ site.theme_settings.header_text }}
|
10
10
|
</div>
|
11
11
|
{% endif %}
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
<div class="post-teaser">
|
16
|
-
{% if post.thumbnail %}
|
17
|
-
<div class="post-img">
|
18
|
-
<img src="{{ site.baseurl }}/{{ post.thumbnail }}">
|
19
|
-
</div>
|
20
|
-
{% endif %}
|
21
|
-
<span>
|
22
|
-
<header>
|
23
|
-
<h1>
|
24
|
-
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
|
25
|
-
{{ post.title }}
|
26
|
-
</a>
|
27
|
-
</h1>
|
28
|
-
<p class="meta">
|
29
|
-
{{ post.date | date: "%B %-d, %Y" }}
|
30
|
-
</p>
|
31
|
-
</header>
|
32
|
-
<div class="excerpt">
|
33
|
-
{{ post.excerpt | strip_html | escape }}
|
34
|
-
<!--{{ post.content | strip_html | truncate: "250" }}-->
|
35
|
-
<!--<a class="button" href="{{ post.url | prepend: site.baseurl }}">
|
36
|
-
{{ site.theme_settings.str_continue_reading }}
|
37
|
-
</a>-->
|
38
|
-
</div>
|
39
|
-
</span>
|
40
|
-
</div>
|
41
|
-
{% endfor %}
|
42
|
-
</div>
|
43
|
-
|
44
|
-
{% if paginator.total_pages > 1 %}
|
45
|
-
<div class="pagination">
|
46
|
-
{% if paginator.previous_page %}
|
47
|
-
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button" >
|
48
|
-
<i class="fa fa-chevron-left"></i>
|
49
|
-
{{ site.theme_settings.str_previous_page }}
|
50
|
-
</a>
|
51
|
-
{% endif %}
|
52
|
-
{% if paginator.next_page %}
|
53
|
-
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button" >
|
54
|
-
{{ site.theme_settings.str_next_page }}
|
55
|
-
<i class="fa fa-chevron-right"></i>
|
56
|
-
</a>
|
57
|
-
{% endif %}
|
58
|
-
</div>
|
59
|
-
{% endif %}
|
13
|
+
{% include blog.html %}
|
14
|
+
|
60
15
|
</div>
|