beautiful-jekyll-theme 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +261 -0
- data/_includes/disqus.html +17 -0
- data/_includes/footer-minimal.html +19 -0
- data/_includes/footer-scripts.html +34 -0
- data/_includes/footer.html +158 -0
- data/_includes/google_analytics.html +12 -0
- data/_includes/head.html +111 -0
- data/_includes/header.html +76 -0
- data/_includes/nav.html +47 -0
- data/_includes/navbarlink.html +16 -0
- data/_includes/social-share.html +39 -0
- data/_layouts/base.html +33 -0
- data/_layouts/default.html +9 -0
- data/_layouts/minimal.html +26 -0
- data/_layouts/page.html +18 -0
- data/_layouts/post.html +46 -0
- data/_layouts/tag_index.html +41 -0
- data/assets/css/bootstrap-social.css +147 -0
- data/assets/css/bootstrap-theme.css +476 -0
- data/assets/css/bootstrap-theme.css.map +1 -0
- data/assets/css/bootstrap-theme.min.css +5 -0
- data/assets/css/bootstrap.css +6566 -0
- data/assets/css/bootstrap.css.map +1 -0
- data/assets/css/bootstrap.min.css +5 -0
- data/assets/css/main-minimal.css +13 -0
- data/assets/css/main.css +628 -0
- data/assets/css/normalize.css +427 -0
- data/assets/css/pygment_highlights.css +66 -0
- data/assets/js/bootstrap.js +2306 -0
- data/assets/js/bootstrap.min.js +7 -0
- data/assets/js/jquery-1.11.2.min.js +4 -0
- data/assets/js/main.js +138 -0
- metadata +135 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
{% if site.google_analytics %}
|
2
|
+
<!-- Google Analytics -->
|
3
|
+
<script>
|
4
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
5
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
6
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
7
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
8
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
9
|
+
ga('send', 'pageview');
|
10
|
+
</script>
|
11
|
+
<!-- End Google Analytics -->
|
12
|
+
{% endif %}
|
data/_includes/head.html
ADDED
@@ -0,0 +1,111 @@
|
|
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.0, maximum-scale=1.0">
|
5
|
+
|
6
|
+
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
7
|
+
|
8
|
+
<meta name="author" content="{{ site.author.name }}" />
|
9
|
+
|
10
|
+
{% if page.subtitle %}
|
11
|
+
<meta name="description" content="{{ page.subtitle }}">
|
12
|
+
{% endif %}
|
13
|
+
|
14
|
+
{% if layout.common-ext-css %}
|
15
|
+
{% for css in layout.common-ext-css %}
|
16
|
+
<link rel="stylesheet" href="{{ css }}" />
|
17
|
+
{% endfor %}
|
18
|
+
{% endif %}
|
19
|
+
|
20
|
+
{% if layout.common-css %}
|
21
|
+
{% for css in layout.common-css %}
|
22
|
+
<link rel="stylesheet" href="{{ css | replace: '//', '/' }}" />
|
23
|
+
{% endfor %}
|
24
|
+
{% endif %}
|
25
|
+
|
26
|
+
{% if layout.common-googlefonts %}
|
27
|
+
{% for font in layout.common-googlefonts %}
|
28
|
+
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
|
29
|
+
{% endfor %}
|
30
|
+
{% endif %}
|
31
|
+
|
32
|
+
{% if page.ext-css %}
|
33
|
+
{% for css in page.ext-css %}
|
34
|
+
<link rel="stylesheet" href="{{ css }}" />
|
35
|
+
{% endfor %}
|
36
|
+
{% endif %}
|
37
|
+
|
38
|
+
{% if page.css %}
|
39
|
+
{% for css in page.css %}
|
40
|
+
<link rel="stylesheet" href="{{ css | replace: '//', '/' }}" />
|
41
|
+
{% endfor %}
|
42
|
+
{% endif %}
|
43
|
+
|
44
|
+
{% if page.googlefonts %}
|
45
|
+
{% for font in page.googlefonts %}
|
46
|
+
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
|
47
|
+
{% endfor %}
|
48
|
+
{% endif %}
|
49
|
+
|
50
|
+
{% if page.meta-title %}
|
51
|
+
<meta property="og:title" content="{{ page.meta-title }}" />
|
52
|
+
{% elsif page.title %}
|
53
|
+
<meta property="og:title" content="{{ page.title }}" />
|
54
|
+
{% else %}
|
55
|
+
<meta property="og:title" content="{{ site.title }}" />
|
56
|
+
{% endif %}
|
57
|
+
|
58
|
+
{% if page.meta-description %}
|
59
|
+
<meta property="og:description" content="{{ page.meta-description }}">
|
60
|
+
{% elsif page.subtitle %}
|
61
|
+
<meta property="og:description" content="{{ page.subtitle }}">
|
62
|
+
{% else %}
|
63
|
+
<meta property="og:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}">
|
64
|
+
{% endif %}
|
65
|
+
|
66
|
+
|
67
|
+
<meta property="og:type" content="website" />
|
68
|
+
|
69
|
+
{% if page.id %}
|
70
|
+
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
|
71
|
+
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
|
72
|
+
{% else %}
|
73
|
+
<meta property="og:url" content="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" />
|
74
|
+
<link rel="canonical" href="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" />
|
75
|
+
{% endif %}
|
76
|
+
|
77
|
+
{% if page.share-img %}
|
78
|
+
<meta property="og:image" content="{{ page.share-img }}" />
|
79
|
+
{% elsif site.avatar %}
|
80
|
+
<meta property="og:image" content="{{ site.url }}{{ site.avatar }}" />
|
81
|
+
{% endif %}
|
82
|
+
|
83
|
+
|
84
|
+
<!-- Twitter summary cards -->
|
85
|
+
<meta name="twitter:card" content="summary" />
|
86
|
+
<meta name="twitter:site" content="@{{ site.author.twitter }}" />
|
87
|
+
<meta name="twitter:creator" content="@{{ site.author.twitter }}" />
|
88
|
+
|
89
|
+
{% if page.meta-title %}
|
90
|
+
<meta name="twitter:title" content="{{ page.meta-title }}" />
|
91
|
+
{% elsif page.title %}
|
92
|
+
<meta name="twitter:title" content="{{ page.title }}" />
|
93
|
+
{% else %}
|
94
|
+
<meta name="twitter:title" content="{{ site.title }}" />
|
95
|
+
{% endif %}
|
96
|
+
|
97
|
+
{% if page.meta-description %}
|
98
|
+
<meta name="twitter:description" content="{{ page.meta-description }}">
|
99
|
+
{% elsif page.subtitle %}
|
100
|
+
<meta name="twitter:description" content="{{ page.subtitle }}">
|
101
|
+
{% else %}
|
102
|
+
<meta name="twitter:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}">
|
103
|
+
{% endif %}
|
104
|
+
|
105
|
+
{% if page.share-img %}
|
106
|
+
<meta name="twitter:image" content="{{ page.share-img }}" />
|
107
|
+
{% elsif site.avatar %}
|
108
|
+
<meta name="twitter:image" content="{{ site.url }}{{ site.avatar }}" />
|
109
|
+
{% endif %}
|
110
|
+
|
111
|
+
</head>
|
@@ -0,0 +1,76 @@
|
|
1
|
+
<!-- TODO this file has become a mess, refactor it -->
|
2
|
+
|
3
|
+
{% if page.bigimg or page.title %}
|
4
|
+
|
5
|
+
{% if page.bigimg %}
|
6
|
+
<div id="header-big-imgs" data-num-img={% if page.bigimg.first %}{{ page.bigimg.size }}{% else %}1{% endif %}
|
7
|
+
{% for bigimg in page.bigimg %}
|
8
|
+
{% assign imgnum = forloop.index %}
|
9
|
+
{% for imginfo in bigimg %}
|
10
|
+
{% if imginfo[0] %}
|
11
|
+
data-img-src-{{ imgnum }}="{{ imginfo[0] | replace: '//', '/' }}"
|
12
|
+
data-img-desc-{{ imgnum }}="{{ imginfo[1] }}"
|
13
|
+
{% else %}
|
14
|
+
data-img-src-{{ imgnum }}="{{ imginfo | replace: '//', '/' }}"
|
15
|
+
{% endif %}
|
16
|
+
{% endfor %}
|
17
|
+
{% endfor %}
|
18
|
+
></div>
|
19
|
+
{% endif %}
|
20
|
+
|
21
|
+
<header class="header-section {% if page.bigimg %}has-img{% endif %}">
|
22
|
+
{% if page.bigimg %}
|
23
|
+
<div class="big-img intro-header">
|
24
|
+
<div class="container">
|
25
|
+
<div class="row">
|
26
|
+
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
27
|
+
<div class="{{ include.type }}-heading">
|
28
|
+
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
29
|
+
{% if page.subtitle %}
|
30
|
+
{% if include.type == "page" %}
|
31
|
+
<hr class="small">
|
32
|
+
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
|
33
|
+
{% else %}
|
34
|
+
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
|
35
|
+
{% endif %}
|
36
|
+
{% endif %}
|
37
|
+
|
38
|
+
{% if include.type == "post" %}
|
39
|
+
<span class="post-meta">Posted on {{ page.date | date: "%B %-d, %Y" }}</span>
|
40
|
+
{% endif %}
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
<span class='img-desc'></span>
|
46
|
+
</div>
|
47
|
+
{% endif %}
|
48
|
+
<div class="intro-header no-img">
|
49
|
+
<div class="container">
|
50
|
+
<div class="row">
|
51
|
+
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
52
|
+
<div class="{{ include.type }}-heading">
|
53
|
+
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
54
|
+
{% if page.subtitle %}
|
55
|
+
{% if include.type == "page" %}
|
56
|
+
<hr class="small">
|
57
|
+
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
|
58
|
+
{% else %}
|
59
|
+
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
|
60
|
+
{% endif %}
|
61
|
+
{% endif %}
|
62
|
+
|
63
|
+
{% if include.type == "post" %}
|
64
|
+
<span class="post-meta">Posted on {{ page.date | date: "%B %-d, %Y" }}</span>
|
65
|
+
{% endif %}
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
</header>
|
72
|
+
|
73
|
+
|
74
|
+
{% else %}
|
75
|
+
<div class="intro-header"></div>
|
76
|
+
{% endif %}
|
data/_includes/nav.html
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
<nav class="navbar navbar-default navbar-fixed-top navbar-custom">
|
2
|
+
<div class="container-fluid">
|
3
|
+
<div class="navbar-header">
|
4
|
+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar">
|
5
|
+
<span class="sr-only">Toggle navigation</span>
|
6
|
+
<span class="icon-bar"></span>
|
7
|
+
<span class="icon-bar"></span>
|
8
|
+
<span class="icon-bar"></span>
|
9
|
+
</button>
|
10
|
+
<a class="navbar-brand" href="{{ site.url }}">{{ site.title }}</a>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<div class="collapse navbar-collapse" id="main-navbar">
|
14
|
+
<ul class="nav navbar-nav navbar-right">
|
15
|
+
{% for link in site.navbar-links %}
|
16
|
+
{% if link[1].first %}
|
17
|
+
<li class="navlinks-container">
|
18
|
+
<a class="navlinks-parent" href="javascript:void(0)">{{ link[0] }}</a>
|
19
|
+
<div class="navlinks-children">
|
20
|
+
{% for childlink in link[1] %}
|
21
|
+
{% for linkparts in childlink %}
|
22
|
+
{% include navbarlink.html link=linkparts %}
|
23
|
+
{% endfor %}
|
24
|
+
{% endfor %}
|
25
|
+
</div>
|
26
|
+
</li>
|
27
|
+
{% else %}
|
28
|
+
<li>
|
29
|
+
{% include navbarlink.html link=link %}
|
30
|
+
</li>
|
31
|
+
{% endif %}
|
32
|
+
{% endfor %}
|
33
|
+
</ul>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
{% if site.avatar %}
|
37
|
+
<div class="avatar-container">
|
38
|
+
<div class="avatar-img-border">
|
39
|
+
<a href="{{ site.url }} ">
|
40
|
+
<img class="avatar-img" src="{{ site.avatar | replace: '//', '/' }}" />
|
41
|
+
</a>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
{% endif %}
|
45
|
+
|
46
|
+
</div>
|
47
|
+
</nav>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{% capture before %}{{ include.link[1] | split: "://" | first }}{% endcapture %}
|
2
|
+
{% capture after %}{{ include.link[1] | split: "://" | last }}{% endcapture %}
|
3
|
+
{% assign internal = true %}
|
4
|
+
{% if before != after %}
|
5
|
+
{% if before == "http" or before == "https" %}
|
6
|
+
{% assign internal = false %}
|
7
|
+
{% endif %}
|
8
|
+
{% endif %}
|
9
|
+
|
10
|
+
{% if internal %}
|
11
|
+
{% capture linkurl %}/{{ include.link[1] }}{% endcapture %}
|
12
|
+
{% else %}
|
13
|
+
{% capture linkurl %}{{ include.link[1] }}{% endcapture %}
|
14
|
+
{% endif %}
|
15
|
+
|
16
|
+
<a href="{{ linkurl }}">{{ include.link[0] }}</a>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{% if site.share-links-active.twitter == false and site.share-links-active.facebook == false and site.share-links-active.google == false and site.share-links-active.linkedin == false %}
|
2
|
+
{% else %}
|
3
|
+
<section id = "social-share-section">
|
4
|
+
|
5
|
+
<!--- Share on Twitter -->
|
6
|
+
{% unless site.share-links-active.twitter == false %}
|
7
|
+
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}+{{ site.url }}{{ page.url }}"
|
8
|
+
class="btn btn-social-icon btn-twitter" title="Share on Twitter">
|
9
|
+
<span class="fa fa-fw fa-twitter" aria-hidden="true"></span>
|
10
|
+
</a>
|
11
|
+
{% endunless %}
|
12
|
+
|
13
|
+
<!--- Share on Facebook -->
|
14
|
+
{% unless site.share-links-active.facebook == false %}
|
15
|
+
<a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}"
|
16
|
+
class="btn btn-social-icon btn-facebook" title="Share on Facebook">
|
17
|
+
<span class="fa fa-fw fa-facebook" aria-hidden="true"></span>
|
18
|
+
</a>
|
19
|
+
{% endunless %}
|
20
|
+
|
21
|
+
<!--- Share on Google Plus -->
|
22
|
+
{% unless site.share-links-active.google == false %}
|
23
|
+
<a href="https://plus.google.com/share?url={{ site.url }}{{ page.url }}"
|
24
|
+
class="btn btn-social-icon btn-google" title="Share on Google+">
|
25
|
+
<span class="fa fa-fw fa-google-plus" aria-hidden="true"></span>
|
26
|
+
</a>
|
27
|
+
{% endunless %}
|
28
|
+
|
29
|
+
<!--- Share on LinkedIn -->
|
30
|
+
{% unless site.share-links-active.linkedin == false %}
|
31
|
+
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ page.url }}"
|
32
|
+
class="btn btn-social-icon btn-linkedin" title="Share on LinkedIn">
|
33
|
+
<span class="fa fa-fw fa-linkedin" aria-hidden="true"></span>
|
34
|
+
</a>
|
35
|
+
{% endunless %}
|
36
|
+
|
37
|
+
</section>
|
38
|
+
|
39
|
+
{% endif %}
|
data/_layouts/base.html
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
common-css:
|
3
|
+
- "/assets/css/bootstrap.min.css"
|
4
|
+
- "/assets/css/bootstrap-social.css"
|
5
|
+
- "/assets/css/main.css"
|
6
|
+
common-ext-css:
|
7
|
+
- "//maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css"
|
8
|
+
common-googlefonts:
|
9
|
+
- "Lora:400,700,400italic,700italic"
|
10
|
+
- "Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"
|
11
|
+
common-js:
|
12
|
+
- "/assets/js/jquery-1.11.2.min.js"
|
13
|
+
- "/assets/js/bootstrap.min.js"
|
14
|
+
- "/assets/js/main.js"
|
15
|
+
---
|
16
|
+
|
17
|
+
<!DOCTYPE html>
|
18
|
+
<html lang="en">
|
19
|
+
<!-- Beautiful Jekyll | MIT license | Copyright Dean Attali 2016 -->
|
20
|
+
{% include head.html %}
|
21
|
+
|
22
|
+
<body>
|
23
|
+
|
24
|
+
{% include nav.html %}
|
25
|
+
|
26
|
+
{{ content }}
|
27
|
+
|
28
|
+
{% include footer.html %}
|
29
|
+
|
30
|
+
{% include footer-scripts.html %}
|
31
|
+
|
32
|
+
</body>
|
33
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
common-css:
|
3
|
+
- "/assets/css/bootstrap.min.css"
|
4
|
+
- "/assets/css/main-minimal.css"
|
5
|
+
common-js:
|
6
|
+
- "/assets/js/jquery-1.11.2.min.js"
|
7
|
+
- "/assets/js/bootstrap.min.js"
|
8
|
+
---
|
9
|
+
|
10
|
+
<!DOCTYPE html>
|
11
|
+
<html lang="en">
|
12
|
+
|
13
|
+
{% include head.html %}
|
14
|
+
|
15
|
+
<body>
|
16
|
+
|
17
|
+
<div role="main" class="container main-content">
|
18
|
+
{{ content }}
|
19
|
+
</div>
|
20
|
+
|
21
|
+
{% include footer-minimal.html %}
|
22
|
+
|
23
|
+
{% include footer-scripts.html %}
|
24
|
+
|
25
|
+
</body>
|
26
|
+
</html>
|
data/_layouts/page.html
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
layout: base
|
3
|
+
---
|
4
|
+
|
5
|
+
{% include header.html type="page" %}
|
6
|
+
|
7
|
+
<div class="container" role="main">
|
8
|
+
<div class="row">
|
9
|
+
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
10
|
+
{{ content }}
|
11
|
+
{% if page.comments %}
|
12
|
+
<div class="disqus-comments">
|
13
|
+
{% include disqus.html %}
|
14
|
+
</div>
|
15
|
+
{% endif %}
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
layout: base
|
3
|
+
---
|
4
|
+
|
5
|
+
{% include header.html type="post" %}
|
6
|
+
|
7
|
+
<div class="container">
|
8
|
+
<div class="row">
|
9
|
+
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
10
|
+
|
11
|
+
<article role="main" class="blog-post">
|
12
|
+
{{ content }}
|
13
|
+
</article>
|
14
|
+
|
15
|
+
{% if page.tags.size > 0 %}
|
16
|
+
<div class="blog-tags">
|
17
|
+
Tags:
|
18
|
+
{{ page.tags | join: ", " }}
|
19
|
+
</div>
|
20
|
+
{% endif %}
|
21
|
+
|
22
|
+
{% unless page.social-share == false %}
|
23
|
+
{% include social-share.html %}
|
24
|
+
{% endunless %}
|
25
|
+
|
26
|
+
<ul class="pager blog-pager">
|
27
|
+
{% if page.previous.url %}
|
28
|
+
<li class="previous">
|
29
|
+
<a href="{{ page.previous.url | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.previous.title}}">← Previous Post</a>
|
30
|
+
</li>
|
31
|
+
{% endif %}
|
32
|
+
{% if page.next.url %}
|
33
|
+
<li class="next">
|
34
|
+
<a href="{{ page.next.url | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.next.title}}">Next Post →</a>
|
35
|
+
</li>
|
36
|
+
{% endif %}
|
37
|
+
</ul>
|
38
|
+
|
39
|
+
{% unless page.comments == false %}
|
40
|
+
<div class="disqus-comments">
|
41
|
+
{% include disqus.html %}
|
42
|
+
</div>
|
43
|
+
{% endunless %}
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</div>
|