Skip to content

Commit d8b14cf

Browse files
author
Anders L. Hurum
committed
feat: implemented the flexible theme to the site
1 parent 0b218e8 commit d8b14cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+8640
-1201
lines changed

.gitignore

100644100755
+29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
11
_site
22
.sass-cache
33
.jekyll-metadata
4+
yarn.lock
5+
node_modules/
6+
7+
### macOS ###
8+
*.DS_Store
9+
.AppleDouble
10+
.LSOverride
11+
12+
# Icon must end with two \r
13+
Icon
14+
15+
# Thumbnails
16+
._*
17+
18+
# Files that might appear in the root of a volume
19+
.DocumentRevisions-V100
20+
.fseventsd
21+
.Spotlight-V100
22+
.TemporaryItems
23+
.Trashes
24+
.VolumeIcon.icns
25+
.com.apple.timemachine.donotpresent
26+
27+
# Directories potentially created on remote AFP share
28+
.AppleDB
29+
.AppleDesktop
30+
Network Trash Folder
31+
Temporary Items
32+
.apdisk

Gemfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
group :jekyll_plugins do
2+
gem "jekyll-sitemap"
3+
gem "jekyll-paginate"
4+
gem "jemoji"
5+
end

LICENSE

+674-21
Large diffs are not rendered by default.

_config-dev.yml

+28-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,37 @@
11
# Site settings
2-
title: peakbreaker
2+
title: Hello, world! I'm Anders
33
name: Anders # your name
44
email: [email protected] # your email address
5-
description: >
6-
A Simple Jekyll Blog for myself. # this means to ignore newlines until "baseurl:"'
7-
baseurl: "localhost:4000/"
5+
description: > # this means to ignore newlines until "baseurl:"
6+
This is where I write my daily technology insights - Here you'll find tech,
7+
tuts and talk from my life as an engineer.
8+
9+
baseurl: "localhost:4000/blog/" # the subpath of your site, e.g. /blog
810
url: "https://peakbreaker.com" # the base hostname & protocol for your site
9-
twitter_username: peakbreaker # your Twitter username
10-
github_username: peakbreaker # your Github username
11-
disqus_username: # your disqus username
11+
site-twitter: peakbreaker # your Twitter username
12+
social-twitter: @peakbreaker # add your Twitter handle
13+
social-facebook: # add your Facebook handle
14+
social-linkedin: anders-l-hurum # add your Linkedin handle
15+
social-github: peakbreaker # your Github username
16+
social-email: [email protected] # add your Email address
1217

13-
google-analytics: # add it if you have one
18+
# Author Settings
19+
author: Anders L. Hurum # add your name
20+
author-img: profile_portrait.jpg # add your photo
21+
about-author: I am a web developer focusing on front-end development. Always hungry to keep learning. # add description
1422

15-
skillstree: false # turn on or off the skills tree in about page
23+
discus-identifier: # your disqus username
24+
analytics: # Google Analytics
1625

1726
# Build settings
18-
permalink: none
27+
permalink: ':title/'
1928
markdown: kramdown
29+
plugins:
30+
- jekyll-sitemap
31+
- jekyll-paginate
32+
- jemoji
33+
34+
paginate: 8
35+
paginate_path: "/page/:num"
36+
37+
exclude: ["node_modules", "gulpfile.js", "package.json", "yarn.lock"]

_config.yml

+28-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,37 @@
11
# Site settings
2-
title: peakbreaker
2+
title: Hello, world! I'm Anders
33
name: Anders # your name
44
email: [email protected] # your email address
5-
description: >
6-
A Simple Jekyll Blog for myself. # this means to ignore newlines until "baseurl:"
7-
baseurl: "/" # the subpath of your site, e.g. /blog
8-
url: "https://peakbreaker.com" # the base hostname & protocol for your site
9-
twitter_username: peakbreaker # your Twitter username
10-
github_username: peakbreaker # your Github username
11-
disqus_username: # your disqus username
5+
description: > # this means to ignore newlines until "baseurl:"
6+
This is where I write my daily technology insights - Here you'll find tech,
7+
tuts and talk from my life as an engineer.
128
9+
baseurl: "/blog/" # the subpath of your site, e.g. /blog
10+
url: "https://peakbreaker.com" # the base hostname & protocol for your site
11+
site-twitter: peakbreaker # your Twitter username
12+
social-twitter: @peakbreaker # add your Twitter handle
13+
social-facebook: # add your Facebook handle
14+
social-linkedin: anders-l-hurum # add your Linkedin handle
15+
social-github: peakbreaker # your Github username
16+
social-email: [email protected] # add your Email address
1317

14-
google-analytics: # add it if you have one
18+
# Author Settings
19+
author: Anders L. Hurum # add your name
20+
author-img: profile_portrait.jpg # add your photo
21+
about-author: I am a web developer focusing on front-end development. Always hungry to keep learning. # add description
1522

16-
skillstree: false # turn on or off the skills tree in about page
23+
discus-identifier: # your disqus username
24+
analytics: # Google Analytics
1725

1826
# Build settings
19-
permalink: none
27+
permalink: ':title/'
2028
markdown: kramdown
29+
plugins:
30+
- jekyll-sitemap
31+
- jekyll-paginate
32+
- jemoji
33+
34+
paginate: 8
35+
paginate_path: "/page/:num"
36+
37+
exclude: ["node_modules", "gulpfile.js", "package.json", "yarn.lock"]

_includes/analytics.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<script>
2+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6+
ga('create', '{{ site.analytics }}', 'auto');
7+
ga('send', 'pageview');
8+
</script> <!-- End Analytics -->

_includes/disqus.html

+16-17
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
<div id="disqus_thread"></div>
2-
3-
{% if site.disqus_username %}
4-
<script type="text/javascript">
5-
/* * * CONFIGURATION VARIABLES * * */
6-
var disqus_shortname = "{{site.disqus_username}}";
7-
var disqus_identifier = "{{page.id}}";
8-
var disqus_url = "{{site.url}}{{page.url}}";
9-
(function() {
10-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
11-
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
12-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
13-
})();
14-
</script>
15-
{% endif %}
16-
17-
</div>
1+
<section class="comment-area">
2+
<div class="comment-wrapper">
3+
{% if site.discus-identifier %}
4+
<div id="disqus_thread" class="article-comments"></div>
5+
<script>
6+
(function() {
7+
var d = document, s = d.createElement('script');
8+
s.src = '//{{ site.discus-identifier }}.disqus.com/embed.js';
9+
s.setAttribute('data-timestamp', +new Date());
10+
(d.head || d.body).appendChild(s);
11+
})();
12+
</script>
13+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
14+
{% endif %}
15+
</div>
16+
</section> <!-- End Comment Area -->

_includes/foot.html

-19
This file was deleted.

_includes/footer-blog.html

-23
This file was deleted.

_includes/footer-index.html

-23
This file was deleted.

_includes/footer.html

-24
This file was deleted.

_includes/google-analytics.html

-11
This file was deleted.

_includes/head.html

100644100755
+83-14
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,89 @@
11
<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">
2+
<meta charset="utf-8">
3+
<title>{% if page.title %}{{page.title}} - {{site.title}}{% else %}{{site.title}}{% endif %}</title>
54

6-
<!-- CSS -->
5+
<!-- Edit site and author settings in `_config.yml` to make the social details your own -->
76

8-
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
9-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
10-
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
7+
<meta content="{{ site.title }}" property="og:site_name">
8+
{% if page.title %}
9+
<meta content="{{ page.title }}" property="og:title">
10+
{% else %}
11+
<meta content="{{ site.title }}" property="og:title">
12+
{% endif %}
13+
{% if page.title %}
14+
<meta content="article" property="og:type">
15+
{% else %}
16+
<meta content="website" property="og:type">
17+
{% endif %}
18+
{% if page.description %}
19+
<meta content="{{ page.description }}" property="og:description">
20+
{% else %}
21+
<meta content="{{ site.description }}" property="og:description">
22+
{% endif %}
23+
{% if page.url %}
24+
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
25+
{% endif %}
26+
{% if page.date %}
27+
<meta content="{{ page.date | date_to_xmlschema }}" property="article:published_time">
28+
<meta content="{{ site.url }}/about/" property="article:author">
29+
{% endif %}
30+
{% if page.img %}
31+
<meta content="{{ site.url }}{{ site.baseurl }}/assets/img/{{ page.img }}" property="og:image">
32+
{% else %}
33+
<meta content="{{ site.url }}{{ site.baseurl }}/assets/img/{{ site.author-img }}" property="og:image">
34+
{% endif %}
35+
{% if page.categories %}
36+
{% for category in page.categories limit:1 %}
37+
<meta content="{{ category }}" property="article:section">
38+
{% endfor %}
39+
{% endif %}
40+
{% if page.tags %}
41+
{% for tag in page.tags %}
42+
<meta content="{{ tag }}" property="article:tag">
43+
{% endfor %}
44+
{% endif %}
1145

12-
<!-- Google font -->
13-
14-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Noto Sans">
15-
16-
<!-- font awesome -->
17-
18-
<link rel="stylesheet" href="/css/font-awesome/css/font-awesome.min.css">
46+
<meta name="twitter:card" content="summary">
47+
<meta name="twitter:site" content="@{{ site.site-twitter }}">
48+
<meta name="twitter:creator" content="@{{ site.social-twitter }}">
49+
{% if page.title %}
50+
<meta name="twitter:title" content="{{ page.title }}">
51+
{% else %}
52+
<meta name="twitter:title" content="{{ site.title }}">
53+
{% endif %}
54+
{% if page.url %}
55+
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}">
56+
{% endif %}
57+
{% if page.description %}
58+
<meta name="twitter:description" content="{{ page.description }}">
59+
{% else %}
60+
<meta name="twitter:description" content="{{ site.description }}">
61+
{% endif %}
62+
{% if page.img %}
63+
<meta name="twitter:image:src" content="{{ site.url }}{{ site.baseurl }}/assets/img/{{ page.img }}">
64+
{% else %}
65+
<meta name="twitter:image:src" content="{{ site.url }}{{ site.baseurl }}/assets/img/{{ site.author-img }}">
66+
{% endif %}
1967

68+
<meta name="description" content="{{ page.description }}">
69+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
70+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
71+
<meta property="og:image" content="">
72+
<link rel="shortcut icon" href="{{ "/assets/img/favicon/favicon.ico" | prepend: site.baseurl }}" type="image/x-icon">
73+
<link rel="apple-touch-icon" href="{{ "/assets/img/favicon/apple-touch-icon.png" | prepend: site.baseurl }}">
74+
<link rel="apple-touch-icon" sizes="72x72" href="{{ "/assets/img/favicon/apple-touch-icon-72x72.png" | prepend: site.baseurl }}">
75+
<link rel="apple-touch-icon" sizes="114x114" href="{{ "/assets/img/favicon/apple-touch-icon-114x114.png" | prepend: site.baseurl }}">
76+
<!-- Chrome, Firefox OS and Opera -->
77+
<meta name="theme-color" content="#263959">
78+
<!-- Windows Phone -->
79+
<meta name="msapplication-navbutton-color" content="#263959">
80+
<!-- iOS Safari -->
81+
<meta name="apple-mobile-web-app-status-bar-style" content="#263959">
82+
<!-- Google Fonts -->
83+
<link href="https://fonts.googleapis.com/css?family=PT+Serif:400,700" rel="stylesheet">
84+
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet">
85+
<!-- Font Awesome -->
86+
<link rel="stylesheet" href="{{ "/assets/fonts/font-awesome/css/font-awesome.min.css" | prepend: site.baseurl }}">
87+
<!-- Styles -->
88+
<link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.baseurl }}">
2089
</head>

_includes/header.html

-8
This file was deleted.

_includes/javascripts.html

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- Main Js -->
2+
<script src="{{site.baseurl}}/assets/js/main.js"></script>

0 commit comments

Comments
 (0)