bfdotcom-theme 0.1.0
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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +8 -0
- data/_includes/head.html +10 -0
- data/_includes/header.html +38 -0
- data/_layouts/default.html +20 -0
- data/_layouts/home.html +58 -0
- data/_layouts/page.html +16 -0
- data/_layouts/post.html +19 -0
- data/_layouts/postlist.html +37 -0
- data/_sass/bfdotcom.scss +72 -0
- data/assets/css/style.scss +4 -0
- data/assets/images/brian.jpg +0 -0
- metadata +125 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 671323c4e2d340bdfc7677eb836e6dc0466a935146488e57055a17272b994cce
|
4
|
+
data.tar.gz: f460f148bfd1ff85145cd330ad80f0598a788094dda1cbb8a9e836f730417b80
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9bbb23f5246cb4933e231f7ba71d891e49a00b609891ae369c1d8b59ed3bbed4221f0eaf20ffad598469a5c47160f44f5d9e049fd9707d7fa9a787018a17ff63
|
7
|
+
data.tar.gz: 7e5b19feb5a4601dafb4f239685f5fa8ebd2efcf37c4071ae8ac259e05e7c796feec50cad0e66a9ecec690ffccb7e3b6d7b58716737f4e088b4939a9209d7dcc
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Brian Farnhill
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
# Blog theme
|
2
|
+
|
3
|
+
This is the theme I use for my blog. It's done in Jekyll. This one's really for me but have a look
|
4
|
+
through the code if you're interested.
|
5
|
+
|
6
|
+
## License
|
7
|
+
|
8
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_includes/head.html
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
4
|
+
|
5
|
+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
6
|
+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
|
7
|
+
|
8
|
+
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
|
9
|
+
{%- seo -%}
|
10
|
+
</head>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
2
|
+
|
3
|
+
{%- assign default_paths = site.pages | map: "path" -%}
|
4
|
+
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
5
|
+
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
|
6
|
+
|
7
|
+
<div class="container">
|
8
|
+
<a class="navbar-brand" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
9
|
+
|
10
|
+
{%- if titles_size > 0 -%}
|
11
|
+
|
12
|
+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
|
13
|
+
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
14
|
+
<span class="navbar-toggler-icon"></span>
|
15
|
+
</button>
|
16
|
+
<div class="collapse navbar-collapse" id="navbarNav">
|
17
|
+
<div class="mr-auto"></div>
|
18
|
+
<ul class="navbar-nav">
|
19
|
+
{%- for path in page_paths -%}
|
20
|
+
|
21
|
+
{%- assign my_page = site.pages | where: "path", path | first -%}
|
22
|
+
|
23
|
+
{%- if my_page.title -%}
|
24
|
+
|
25
|
+
<li class="nav-item active">
|
26
|
+
<a class="nav-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
27
|
+
</li>
|
28
|
+
|
29
|
+
{%- endif -%}
|
30
|
+
|
31
|
+
{%- endfor -%}
|
32
|
+
</ul>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
{%- endif -%}
|
36
|
+
|
37
|
+
</div>
|
38
|
+
</nav>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{%- include head.html -%}
|
5
|
+
<body>
|
6
|
+
{%- include header.html -%}
|
7
|
+
|
8
|
+
<div class="container">
|
9
|
+
{{ content }}
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<!-- Optional JavaScript -->
|
13
|
+
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
14
|
+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
15
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
16
|
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
17
|
+
</body>
|
18
|
+
</html>
|
19
|
+
|
20
|
+
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div> </div>
|
6
|
+
|
7
|
+
<div class="jumbotron">
|
8
|
+
<div class="container">
|
9
|
+
<div class="row">
|
10
|
+
<div class="col-md-3">
|
11
|
+
<div class="circle-avatar" style="background-image:url(/assets/images/brian.jpg)"></div>
|
12
|
+
</div>
|
13
|
+
<div class="col-md-9">
|
14
|
+
<h1 class="display-4">Brian Farnhill</h1>
|
15
|
+
<p class="lead">Solutions Architect at AWS, father of 1, fan of anything technical and believer that bacon will change the world one day. Opinions here are my own.</p>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div class="row">
|
22
|
+
<div class="col-md social-list">
|
23
|
+
<h2 class="display-4">Find me online</h2>
|
24
|
+
<ul>
|
25
|
+
<li><i class="fab fa-twitter"></i> <a href="https://twitter.com/BrianFarnhill">twitter.com/BrianFarnhill</a></li>
|
26
|
+
<li><i class="fab fa-facebook"></i> <a href="https://www.facebook.com/BFarnhill">www.facebook.com/BFarnhill</a></li>
|
27
|
+
<li><i class="fab fa-linkedin"></i> <a href="https://www.linkedin.com/in/brianfarnhill">www.linkedin.com/in/brianfarnhill</a></li>
|
28
|
+
<li><i class="fab fa-github"></i> <a href="https://github.com/BrianFarnhill">github.com/BrianFarnhill</a></li>
|
29
|
+
</ul>
|
30
|
+
<ul>
|
31
|
+
<li><i class="fas fa-rss-square"></i> <a href="{{ 'feed.xml' | relative_url }}">Subscribe to RSS updates</a></li>
|
32
|
+
</ul>
|
33
|
+
</div>
|
34
|
+
<div class="col-md post-list">
|
35
|
+
{%- if site.posts.size > 0 -%}
|
36
|
+
<h2 class="display-4">{{ page.list_title | default: "Posts" }}</h2>
|
37
|
+
|
38
|
+
{%- for post in site.posts limit: 5 -%}
|
39
|
+
<div class="row">
|
40
|
+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
41
|
+
<div class="col">
|
42
|
+
<a class="lead" href="{{ post.url | relative_url }}">
|
43
|
+
{{ post.title | escape }}
|
44
|
+
</a>
|
45
|
+
</div>
|
46
|
+
<div class="col text-right">
|
47
|
+
<span class="text-muted">{{ post.date | date: date_format }}</span>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
<div class="row">
|
51
|
+
<div class="col">
|
52
|
+
{{ post.excerpt | strip_html | strip_newlines | truncate: 256 }}
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
{%- endfor -%}
|
56
|
+
{%- endif -%}
|
57
|
+
</div>
|
58
|
+
</div>
|
data/_layouts/page.html
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div> </div>
|
5
|
+
|
6
|
+
<div class="jumbotron">
|
7
|
+
<div class="container">
|
8
|
+
<div class="row">
|
9
|
+
<div class="col">
|
10
|
+
<h1 class="display-4">{{ page.title | escape }}</h1>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
{{ content }}
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="jumbotron">
|
6
|
+
<div class="container">
|
7
|
+
<div class="row">
|
8
|
+
<div class="col">
|
9
|
+
<h1 class="display-4">{{ page.title | escape }}</h1>
|
10
|
+
<p class="text-muted">
|
11
|
+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
12
|
+
{{ page.date | date: date_format }}
|
13
|
+
</p>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
{{ content }}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div> </div>
|
5
|
+
|
6
|
+
<div class="jumbotron">
|
7
|
+
<div class="container">
|
8
|
+
<div class="row">
|
9
|
+
<div class="col">
|
10
|
+
<h1 class="display-4">{{ page.title | escape }}</h1>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
{{ content }}
|
17
|
+
|
18
|
+
{%- if site.posts.size > 0 -%}
|
19
|
+
{%- for post in site.posts -%}
|
20
|
+
<div class="row">
|
21
|
+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
22
|
+
<div class="col">
|
23
|
+
<a class="lead" href="{{ post.url | relative_url }}">
|
24
|
+
{{ post.title | escape }}
|
25
|
+
</a>
|
26
|
+
</div>
|
27
|
+
<div class="col text-right">
|
28
|
+
<span class="text-muted">{{ post.date | date: date_format }}</span>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
<div class="row">
|
32
|
+
<div class="col">
|
33
|
+
{{ post.excerpt | strip_html | strip_newlines | truncate: 256 }}
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
{%- endfor -%}
|
37
|
+
{%- endif -%}
|
data/_sass/bfdotcom.scss
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
$primary-background: #222;
|
2
|
+
$link-colour: #a0dfdf;
|
3
|
+
$link-colour-hover: #669999;
|
4
|
+
|
5
|
+
body {
|
6
|
+
background-color: $primary-background;
|
7
|
+
color: #fff;
|
8
|
+
}
|
9
|
+
|
10
|
+
a {
|
11
|
+
color: $link-colour;
|
12
|
+
}
|
13
|
+
|
14
|
+
a:hover {
|
15
|
+
color: $link-colour-hover
|
16
|
+
}
|
17
|
+
|
18
|
+
.bg-dark {
|
19
|
+
background-color: $primary-background !important;
|
20
|
+
}
|
21
|
+
|
22
|
+
.jumbotron {
|
23
|
+
color: #000;
|
24
|
+
padding: 20px;
|
25
|
+
}
|
26
|
+
|
27
|
+
div.circle-avatar{
|
28
|
+
/* make it responsive */
|
29
|
+
max-width: 100%;
|
30
|
+
width:100%;
|
31
|
+
height:auto;
|
32
|
+
display:block;
|
33
|
+
/* div height to be the same as width*/
|
34
|
+
padding-top:100%;
|
35
|
+
|
36
|
+
/* make it a circle */
|
37
|
+
border-radius:50%;
|
38
|
+
|
39
|
+
/* Centering on image`s center*/
|
40
|
+
background-position-y: center;
|
41
|
+
background-position-x: center;
|
42
|
+
background-repeat: no-repeat;
|
43
|
+
|
44
|
+
/* it makes the clue thing, takes smaller dimension to fill div */
|
45
|
+
background-size: cover;
|
46
|
+
|
47
|
+
/* it is optional, for making this div centered in parent*/
|
48
|
+
margin: 0 auto;
|
49
|
+
top: 0;
|
50
|
+
left: 0;
|
51
|
+
right: 0;
|
52
|
+
bottom: 0;
|
53
|
+
}
|
54
|
+
|
55
|
+
.social-list h2.display-4, .post-list h2.display-4 {
|
56
|
+
font-size: 2rem;
|
57
|
+
}
|
58
|
+
|
59
|
+
.social-list i {
|
60
|
+
font-size: 2rem;
|
61
|
+
}
|
62
|
+
|
63
|
+
.social-list li {
|
64
|
+
list-style-type: none;
|
65
|
+
padding-bottom: 16px;
|
66
|
+
}
|
67
|
+
|
68
|
+
.social-list a {
|
69
|
+
position: relative;
|
70
|
+
top: -6px;
|
71
|
+
padding-left: 20px;
|
72
|
+
}
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,125 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bfdotcom-theme
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Brian Farnhill
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-08-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.8'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '12.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '12.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jekyll-feed
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.9'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.9'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jekyll-seo-tag
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.1'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.1'
|
83
|
+
description:
|
84
|
+
email:
|
85
|
+
- brfarn@amazon.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- LICENSE.txt
|
91
|
+
- README.md
|
92
|
+
- _includes/head.html
|
93
|
+
- _includes/header.html
|
94
|
+
- _layouts/default.html
|
95
|
+
- _layouts/home.html
|
96
|
+
- _layouts/page.html
|
97
|
+
- _layouts/post.html
|
98
|
+
- _layouts/postlist.html
|
99
|
+
- _sass/bfdotcom.scss
|
100
|
+
- assets/css/style.scss
|
101
|
+
- assets/images/brian.jpg
|
102
|
+
homepage: https://www.brianfarnhill.com
|
103
|
+
licenses:
|
104
|
+
- MIT
|
105
|
+
metadata: {}
|
106
|
+
post_install_message:
|
107
|
+
rdoc_options: []
|
108
|
+
require_paths:
|
109
|
+
- lib
|
110
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
requirements: []
|
121
|
+
rubygems_version: 3.0.1
|
122
|
+
signing_key:
|
123
|
+
specification_version: 4
|
124
|
+
summary: Theme for BrianFarnhill.com
|
125
|
+
test_files: []
|