Skip to content

Commit 21626e7

Browse files
committed
Merge branch 'master' of https://github.com/amanabt/startbootstrap-clean-blog-jekyll into amanabt-master
2 parents 796fe71 + 5df5f48 commit 21626e7

26 files changed

+503
-6
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: ruby
2+
rvm:
3+
- 2.4.1
4+
script: "./bin/cibuild"
5+
6+
env:
7+
global:
8+
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
9+
sudo: false
10+
cache: bundler
11+
notifications:
12+
email: false

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ gem "jekyll", "~> 3.8.5"
55
group :jekyll_plugins do
66
gem "jekyll-feed", "~> 0.6"
77
gem "jekyll-paginate", "~> 1.1.0"
8+
gem "jekyll-sitemap" ## Uncomment this line to silently generate a sitemaps.org compliant sitemap for your Jekyll site
9+
gem "jekyll-archives"
810
end
911

1012
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem

_config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ url: "https://blackrockdigital.github.io"
99
twitter_username: SBootstrap
1010
github_username: BlackrockDigital
1111
facebook_username: StartBootstrap
12+
linkedin_username:
13+
goodreads_username:
14+
15+
# Add your google-analytics ID here to activate google analytics
16+
google_analytics: UA-XXXXXXXXX-X # out your google-analytics code
1217

1318
# Build settings
1419
markdown: kramdown
@@ -17,3 +22,12 @@ paginate_path: "/posts/page:num/"
1722
plugins:
1823
- jekyll-feed
1924
- jekyll-paginate
25+
- jekyll-archives
26+
- jekyll-sitemap ## Uncomment this line to silently generate a sitemaps.org compliant sitemap for your Jekyll site
27+
28+
jekyll-archives:
29+
enabled:
30+
- categories
31+
layout: archive
32+
permalinks:
33+
category: '/category/:name/'

_includes/footer.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
<div class="row">
88
<div class="col-lg-8 col-md-10 mx-auto">
99
<ul class="list-inline text-center">
10+
{% if site.email %}
11+
<li class="list-inline-item">
12+
<a href="mailto:{{ site.email | encode_email }}">
13+
<span class="fa-stack fa-lg">
14+
<i class="fas fa-circle fa-stack-2x"></i>
15+
<i class="fab fa-mailchimp fa-stack-1x fa-inverse"></i>
16+
</span>
17+
</a>
18+
</li>
19+
{% endif %}
1020
{% if site.twitter_username %}
1121
<li class="list-inline-item">
1222
<a href="https://twitter.com/{{ site.twitter_username }}">
@@ -47,6 +57,16 @@
4757
</a>
4858
</li>
4959
{% endif %}
60+
{% if site.goodreads_username %}
61+
<li class="list-inline-item">
62+
<a href="https://www.goodreads.com/user/show/{{ site.goodreads_username }}">
63+
<span class="fa-stack fa-lg">
64+
<i class="fas fa-circle fa-stack-2x"></i>
65+
<i class="fab fa-goodreads fa-stack-1x fa-inverse"></i>
66+
</span>
67+
</a>
68+
</li>
69+
{% endif %}
5070
</ul>
5171
<p class="copyright text-muted">Copyright &copy; {{ site.author }} {{ 'now' | date: "%Y" }}</p>
5272
</div>

_includes/google-analytics.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!-- Global site tag (gtag.js) - Google Analytics -->
2+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
3+
<script>
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
7+
8+
gtag('config', '{{ site.google_analytics }}');
9+
</script>
10+

_includes/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<link rel="stylesheet" href="{{"/assets/vendor/fontawesome-free/css/all.min.css" | relative_url }}">
1919

2020
<link rel="stylesheet" href="{{"/assets/main.css" | relative_url }}">
21+
<link rel="stylesheet" href="{{"/assets/scss/additional.css" | relative_url }}">
2122
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
2223
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
2324

_includes/navbar.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@
1414
<li class="nav-item">
1515
<a class="nav-link" href="{{"/about" | relative_url }}">About</a>
1616
</li>
17-
<li class="nav-item">
18-
<a class="nav-link" href="{{"/posts" | relative_url }}">Posts</a>
17+
<li class="nav-item dropdown" style="text-decoration: none;">
18+
<a href="{{ "/posts" | relative_url }}">Posts &#9660;</a>
19+
<div class="dropdown-content">
20+
{% for category in site.categories %}
21+
<a href="{{ category[0] | prepend: "/" | relative_url }}">
22+
{{ category[0] | capitalize }}
23+
</a>
24+
{% endfor %}
25+
</div>
1926
</li>
2027
<li class="nav-item">
2128
<a class="nav-link" href="{{"/contact" | relative_url }}">Contact</a>

_layouts/archive.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
layout: default
3+
---
4+
5+
<!-- Page Header -->
6+
{% if page.background %}
7+
<header class="masthead" style="background-image: url('{{ page.background | prepend: site.baseurl | replace: '//', '/' }}')">
8+
{% else %}
9+
<header class="masthead">
10+
{% endif %}
11+
<div class="overlay"></div>
12+
<div class="container">
13+
<div class="row">
14+
<div class="col-lg-8 col-md-10 mx-auto">
15+
<div class="page-heading">
16+
<h1>{{ page.title }}</h1>
17+
{% if page.description %}
18+
<span class="subheading">{{ page.description }}</span>
19+
{% endif %}
20+
{% if page.credits %}
21+
<span class="meta"> {{ page.credits }} </span>
22+
{% endif %}
23+
</div>
24+
</div>
25+
</div>
26+
</div>
27+
</header>
28+
29+
<div class="container">
30+
<div class="row">
31+
<div class="col-lg-8 col-md-10 mx-auto">
32+
33+
{{ content }}
34+
35+
</div>
36+
</div>
37+
</div>

_layouts/default.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
{% include scripts.html %}
1616

17+
{% include google-analytics.html %}
18+
1719
</body>
1820

1921
</html>

_layouts/home.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ <h1>{{ site.title }}</h1>
1717
{% if site.description %}
1818
<span class="subheading">{{ site.description }}</span>
1919
{% endif %}
20+
{% if page.credits %}
21+
<span class="meta"> {{ page.credits }} </span>
22+
{% endif %}
2023
</div>
2124
</div>
2225
</div>
@@ -48,7 +51,15 @@ <h3 class="post-subtitle">{{ post.excerpt | strip_html | truncatewords: 15 }}</h
4851
{{ site.author }}
4952
{% endif %}
5053
on
51-
{{ post.date | date: '%B %d, %Y' }} &middot; {% include read_time.html content=post.content %}</p>
54+
{{ post.date | date: '%B %d, %Y' }} &middot; {% include read_time.html content=post.content %}
55+
<br>
56+
Categories:
57+
{% for category in post.categories %}
58+
<a href="{{ category | prepend: "/" | relative_url }}">
59+
{{ category | capitalize }}
60+
</a>
61+
{% endfor %}
62+
</p>
5263
</article>
5364

5465
<hr>
@@ -62,4 +73,4 @@ <h3 class="post-subtitle">{{ post.excerpt | strip_html | truncatewords: 15 }}</h
6273

6374
</div>
6475
</div>
65-
</div>
76+
</div>

0 commit comments

Comments
 (0)