jekyll-theme-artisan 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 +140 -0
- data/_includes/desktop_nav.html +21 -0
- data/_includes/disqus_comments.html +17 -0
- data/_includes/footer.html +44 -0
- data/_includes/google_analytics.html +12 -0
- data/_includes/head.html +16 -0
- data/_includes/header.html +13 -0
- data/_includes/mobile_nav.html +27 -0
- data/_includes/social.html +70 -0
- data/_layouts/default.html +17 -0
- data/_layouts/home.html +49 -0
- data/_layouts/page.html +10 -0
- data/_layouts/post.html +84 -0
- data/_sass/highlighting.scss +81 -0
- data/_sass/variables.scss +9 -0
- data/assets/background.png +0 -0
- data/categories.html +17 -0
- data/css/site.scss +104 -0
- metadata +175 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d7244584e3d3ba496436b7ba89dd0f2248ac81906e2fb936f5ed898ac5351da3
|
4
|
+
data.tar.gz: 408efc206abe7bd39a5ab8dcca7b5d1d493f97566a79ae1bbe31e44fe3d6a064
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 30b69717759223ff78354b9973a7c0079839fa49190844748065938e351d037b75bd75a8774da760a6c98e858b239b9e059d4132e43c8b8d5d480332aaf22257
|
7
|
+
data.tar.gz: e9431f7559b03bc7d8b1b130e8d56bb321c834002e79632f416dd3120633d008283ab036784147279e4d9b887a17989b766e5052dc5fb68f0afba4a370198fa3
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Eric Hripko
|
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,140 @@
|
|
1
|
+
# jekyll-theme-artisan
|
2
|
+
*Artisan is a Jekyll theme for programmer blogs*.
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
|
6
|
+
Add this line to your Jekyll site's `Gemfile`:
|
7
|
+
|
8
|
+
```ruby
|
9
|
+
gem "jekyll-theme-artisan"
|
10
|
+
```
|
11
|
+
|
12
|
+
And add this line to your Jekyll site's `_config.yml`:
|
13
|
+
|
14
|
+
```yaml
|
15
|
+
theme: jekyll-theme-artisan
|
16
|
+
```
|
17
|
+
|
18
|
+
And then execute:
|
19
|
+
|
20
|
+
$ bundle
|
21
|
+
|
22
|
+
Or install it yourself as:
|
23
|
+
|
24
|
+
$ gem install jekyll-theme-artisan
|
25
|
+
|
26
|
+
## Contents At-A-Glance
|
27
|
+
|
28
|
+
Artisan has been scaffolded by the `jekyll new-theme` command and therefore has
|
29
|
+
all the necessary files and directories to have a new Jekyll site up and
|
30
|
+
running with zero-configuration.
|
31
|
+
|
32
|
+
## Usage
|
33
|
+
|
34
|
+
### Home Layout
|
35
|
+
|
36
|
+
`home.html` is a flexible HTML layout for the site's landing-page / home-page /
|
37
|
+
index-page.
|
38
|
+
|
39
|
+
### Customization
|
40
|
+
|
41
|
+
To override the default structure and style of Artisan, simply create the
|
42
|
+
concerned directory at the root of your site, copy the file you wish to
|
43
|
+
customize to that directory, and then edit the file.
|
44
|
+
e.g., to override the [`_includes/head.html `](_includes/head.html) file to
|
45
|
+
specify a custom style path, create an `_includes` directory,
|
46
|
+
copy `_includes/head.html` from Artisan gem folder to `<yoursite>/_includes` and
|
47
|
+
start editing that file.
|
48
|
+
|
49
|
+
### Customize navigation links
|
50
|
+
|
51
|
+
This allows you to set which pages you want to appear in the navigation area and configure order of the links.
|
52
|
+
|
53
|
+
For instance, to only link to the `about` and the `portfolio` page, add the following to you `_config.yml`:
|
54
|
+
|
55
|
+
```yaml
|
56
|
+
header_pages:
|
57
|
+
- about.md
|
58
|
+
- portfolio.md
|
59
|
+
```
|
60
|
+
|
61
|
+
### Change default date format
|
62
|
+
|
63
|
+
You can change the default date format by specifying `site.artisan.date_format`
|
64
|
+
in `_config.yml`.
|
65
|
+
|
66
|
+
```
|
67
|
+
# Artisan date format
|
68
|
+
# refer to http://shopify.github.io/liquid/filters/date/ if you want to
|
69
|
+
# customize this
|
70
|
+
artisan:
|
71
|
+
date_format: "%b %-d, %Y"
|
72
|
+
```
|
73
|
+
|
74
|
+
### Enabling comments (via Disqus)
|
75
|
+
|
76
|
+
Optionally, if you have a Disqus account, you can tell Jekyll to use it to show
|
77
|
+
a comments section below each post.
|
78
|
+
|
79
|
+
To enable it, add the following lines to your Jekyll site:
|
80
|
+
|
81
|
+
```yaml
|
82
|
+
disqus:
|
83
|
+
shortname: my_disqus_shortname
|
84
|
+
```
|
85
|
+
|
86
|
+
You can find out more about Disqus' shortnames [here](https://help.disqus.com/customer/portal/articles/466208).
|
87
|
+
|
88
|
+
Comments are enabled by default and will only appear in production, i.e.,
|
89
|
+
`JEKYLL_ENV=production`
|
90
|
+
|
91
|
+
If you don't want to display comments for a particular post you can disable
|
92
|
+
them by adding `comments: false` to that post's YAML Front Matter.
|
93
|
+
|
94
|
+
### Social networks
|
95
|
+
|
96
|
+
You can add links to the accounts you have on other sites, with respective
|
97
|
+
icon, by adding one or more of the following options in your config:
|
98
|
+
|
99
|
+
```yaml
|
100
|
+
twitter_username: jekyllrb
|
101
|
+
github_username: jekyll
|
102
|
+
facebook_username: jekyll
|
103
|
+
linkedin_username: jekyll
|
104
|
+
rss: rss
|
105
|
+
```
|
106
|
+
|
107
|
+
--
|
108
|
+
|
109
|
+
### Enabling Google Analytics
|
110
|
+
|
111
|
+
To enable Google Analytics, add the following lines to your Jekyll site:
|
112
|
+
|
113
|
+
```yaml
|
114
|
+
google_analytics: UA-NNNNNNNN-N
|
115
|
+
```
|
116
|
+
|
117
|
+
Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
|
118
|
+
|
119
|
+
## Contributing
|
120
|
+
|
121
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/EricHripko/artisan.
|
122
|
+
This project is intended to be a safe, welcoming space for collaboration, and
|
123
|
+
contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org)
|
124
|
+
code of conduct.
|
125
|
+
|
126
|
+
## Development
|
127
|
+
|
128
|
+
To set up your environment to develop this theme, run `bundle install`.
|
129
|
+
|
130
|
+
To test the theme, run `bundle exec jekyll serve` and open your browser
|
131
|
+
at `http://localhost:4000`. This starts a Jekyll server using your theme. Add
|
132
|
+
pages, documents, data, etc. like normal to test your theme's contents. As you
|
133
|
+
make modifications to your theme and to your content, your site will regenerate
|
134
|
+
and you should see the changes in the browser after a refresh, just like
|
135
|
+
normal.
|
136
|
+
|
137
|
+
## License
|
138
|
+
|
139
|
+
The theme is available as open source under the terms of the
|
140
|
+
[MIT License](https://opensource.org/licenses/MIT).
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{%- assign default_paths = site.pages | map: "path" -%}
|
2
|
+
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
3
|
+
<nav class="navbar navbar-light bg-light sticky-top navbar-expand d-none d-md-block">
|
4
|
+
<ul class="navbar-nav mr-auto">
|
5
|
+
<li class="nav-item">
|
6
|
+
<a class="nav-link" href="{{ "/" | relative_url }}">
|
7
|
+
Home
|
8
|
+
</a>
|
9
|
+
</li>
|
10
|
+
{%- for path in page_paths -%}
|
11
|
+
{%- assign my_page = site.pages | where: "path", path | first -%}
|
12
|
+
{%- if my_page.title -%}
|
13
|
+
<li class="nav-item">
|
14
|
+
<a class="nav-link" href="{{ my_page.url | relative_url }}">
|
15
|
+
{{ my_page.title | escape }}
|
16
|
+
</a>
|
17
|
+
</li>
|
18
|
+
{%- endif -%}
|
19
|
+
{%- endfor -%}
|
20
|
+
</ul>
|
21
|
+
</nav>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{%- if site.disqus.shortname and page.comments != false and jekyll.environment == "production" -%}
|
2
|
+
<div id="disqus_thread"></div>
|
3
|
+
<script>
|
4
|
+
|
5
|
+
var disqus_config = function () {
|
6
|
+
this.page.url = "{{ page.url | absolute_url }}";
|
7
|
+
this.page.identifier = "{{ page.id }}";
|
8
|
+
};
|
9
|
+
(function() { // DON'T EDIT BELOW THIS LINE
|
10
|
+
var d = document, s = d.createElement('script');
|
11
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
12
|
+
s.setAttribute('data-timestamp', +new Date());
|
13
|
+
(d.head || d.body).appendChild(s);
|
14
|
+
})();
|
15
|
+
</script>
|
16
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
17
|
+
{%- endif -%}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<footer class="artisan-footer pb-4 text-muted">
|
2
|
+
<div class="container">
|
3
|
+
<div class="row">
|
4
|
+
<section class="col-md-4 pt-4">
|
5
|
+
<h6>Categories</h6>
|
6
|
+
<ul class="nav flex-column">
|
7
|
+
{%- for category in site.categories -%}
|
8
|
+
{%- capture category_name -%}{{ category | first }}{%- endcapture -%}
|
9
|
+
<li class="nav-item">
|
10
|
+
<a class="nav-link artisan-footer__link px-0" href="#">{{ category_name | escape }}</a>
|
11
|
+
</li>
|
12
|
+
{%- endfor -%}
|
13
|
+
</ul>
|
14
|
+
</section>
|
15
|
+
<section class="col-md-4 pt-4">
|
16
|
+
<h6>Social</h6>
|
17
|
+
{%- include social.html -%}
|
18
|
+
</section>
|
19
|
+
<section class="col-md-4 pt-4">
|
20
|
+
<h6>{{ site.title | escape }}</h6>
|
21
|
+
<small>
|
22
|
+
<p class="text-justify d-md-none">
|
23
|
+
{{ site.description | escape }}
|
24
|
+
</p>
|
25
|
+
<p>
|
26
|
+
Copyright
|
27
|
+
{{ site.time | date: '%Y' }}
|
28
|
+
<span>
|
29
|
+
{%- if site.author -%}
|
30
|
+
{{ site.author | escape }}
|
31
|
+
{%- else -%}
|
32
|
+
{{ site.title | escape }}
|
33
|
+
{%- endif -%}
|
34
|
+
.
|
35
|
+
</span>
|
36
|
+
<a href="https://github.com/EricHripko/artisan">Artisan</a>
|
37
|
+
theme designed and developed by
|
38
|
+
<a href="https://github.com/EricHripko">Eric Hripko</a>.
|
39
|
+
</p>
|
40
|
+
</small>
|
41
|
+
</section>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</footer>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{%- if jekyll.environment == 'production' and site.google.analytics -%}
|
2
|
+
<script>
|
3
|
+
if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) {
|
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','https://www.google-analytics.com/analytics.js','ga');
|
8
|
+
ga('create', '{{ site.google.analytics }}', 'auto');
|
9
|
+
ga('send', 'pageview');
|
10
|
+
}
|
11
|
+
</script>
|
12
|
+
{%- endif -%}
|
data/_includes/head.html
ADDED
@@ -0,0 +1,16 @@
|
|
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, shrink-to-fit=no">
|
5
|
+
{%- seo -%}
|
6
|
+
|
7
|
+
<link href="https://fonts.googleapis.com/css?family=Miriam+Libre:400,700" rel="stylesheet">
|
8
|
+
<link href="{{ "/css/site.css" | relative_url }}" rel="stylesheet" type="text/css">
|
9
|
+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
|
10
|
+
|
11
|
+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
12
|
+
<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>
|
13
|
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
|
14
|
+
{%- feed_meta -%}
|
15
|
+
{%- include google_analytics.html -%}
|
16
|
+
</head>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<header class="col-md-3 artisan-profile bg-light mvh-100">
|
2
|
+
<div class="sticky-top">
|
3
|
+
<a class="artisan-profile-banner text-center pt-3 pb-2" href="{{ "/" | relative_url }}">
|
4
|
+
<img src="http://via.placeholder.com/128x128" class="artisan-profile-banner__avatar mb-2">
|
5
|
+
<h5>{{ site.title | escape }}</h5>
|
6
|
+
<h6 class="text-muted">{{ site.subtitle | escape }}</h6>
|
7
|
+
</a>
|
8
|
+
|
9
|
+
<p class="p-3 text-muted d-none d-md-block">
|
10
|
+
{{ site.description | escape }}
|
11
|
+
</p>
|
12
|
+
</div>
|
13
|
+
</header>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{%- assign default_paths = site.pages | map: "path" -%}
|
2
|
+
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
3
|
+
<nav class="navbar navbar-light bg-light sticky-top d-md-none">
|
4
|
+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
5
|
+
<span class="navbar-toggler-icon"></span>
|
6
|
+
</button>
|
7
|
+
|
8
|
+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
9
|
+
<ul class="navbar-nav mr-auto">
|
10
|
+
<li class="nav-item py-2">
|
11
|
+
<a class="nav-link" href="{{ "/" | relative_url }}">
|
12
|
+
Home
|
13
|
+
</a>
|
14
|
+
</li>
|
15
|
+
{%- for path in page_paths -%}
|
16
|
+
{%- assign my_page = site.pages | where: "path", path | first -%}
|
17
|
+
{%- if my_page.title -%}
|
18
|
+
<li class="nav-item py-2">
|
19
|
+
<a class="nav-link" href="{{ my_page.url | relative_url }}">
|
20
|
+
{{ my_page.title | escape }}
|
21
|
+
</a>
|
22
|
+
</li>
|
23
|
+
{%- endif -%}
|
24
|
+
{%- endfor -%}
|
25
|
+
</ul>
|
26
|
+
</div>
|
27
|
+
</nav>
|
@@ -0,0 +1,70 @@
|
|
1
|
+
<table>
|
2
|
+
{%- if site.linkedin_username -%}
|
3
|
+
<tr>
|
4
|
+
<td>
|
5
|
+
<i class="fab fa-linkedin fa-lg float-left text-primary"></i>
|
6
|
+
</td>
|
7
|
+
<td class="pl-1 py-2">
|
8
|
+
<a href="https://www.linkedin.com/in/{{ site.linkedin_username | cgi_escape | escape }}"
|
9
|
+
class="artisan-footer__link"
|
10
|
+
target="_blank">
|
11
|
+
{{ site.linkedin_username | escape }}
|
12
|
+
</a>
|
13
|
+
</td>
|
14
|
+
</tr>
|
15
|
+
{%- endif -%}
|
16
|
+
{%- if site.github_username -%}
|
17
|
+
<tr>
|
18
|
+
<td>
|
19
|
+
<i class="fab fa-github-square fa-lg float-left text-primary"></i>
|
20
|
+
</td>
|
21
|
+
<td class="pl-1 py-2">
|
22
|
+
<a href="https://github.com/{{ site.github_username | cgi_escape | escape }}"
|
23
|
+
class="artisan-footer__link"
|
24
|
+
target="_blank">
|
25
|
+
{{ site.github_username | escape }}
|
26
|
+
</a>
|
27
|
+
</td>
|
28
|
+
</tr>
|
29
|
+
{%- endif -%}
|
30
|
+
{%- if site.twitter_username -%}
|
31
|
+
<tr>
|
32
|
+
<td>
|
33
|
+
<i class="fab fa-twitter-square fa-lg float-left text-primary"></i>
|
34
|
+
</td>
|
35
|
+
<td class="pl-1 py-2">
|
36
|
+
<a href="https://twitter.com/{{ site.twitter_username | cgi_escape | escape }}"
|
37
|
+
class="artisan-footer__link"
|
38
|
+
target="_blank">
|
39
|
+
{{ site.twitter_username | escape }}
|
40
|
+
</a>
|
41
|
+
</td>
|
42
|
+
</tr>
|
43
|
+
{%- endif -%}
|
44
|
+
{%- if site.facebook_username -%}
|
45
|
+
<tr>
|
46
|
+
<td>
|
47
|
+
<i class="fab fa-facebook-square fa-lg float-left text-primary"></i>
|
48
|
+
</td>
|
49
|
+
<td class="pl-1 py-2">
|
50
|
+
<a href="https://www.facebook.com/{{ site.facebook_username| cgi_escape | escape }}"
|
51
|
+
class="artisan-footer__link"
|
52
|
+
target="_blank">
|
53
|
+
{{ site.facebook_username | escape }}
|
54
|
+
</a>
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
{%- endif -%}
|
58
|
+
{%- if site.rss -%}
|
59
|
+
<tr>
|
60
|
+
<td>
|
61
|
+
<i class="fas fa-rss-square fa-lg float-left text-primary"></i>
|
62
|
+
</td>
|
63
|
+
<td class="pl-1 py-2">
|
64
|
+
<a href="{{ "feed.xml" | relative_url }}" class="artisan-footer__link">
|
65
|
+
{{ site.rss | escape }}
|
66
|
+
</a>
|
67
|
+
</td>
|
68
|
+
</tr>
|
69
|
+
{%- endif -%}
|
70
|
+
</table>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
{%- include head.html -%}
|
4
|
+
<body>
|
5
|
+
{%- include mobile_nav.html -%}
|
6
|
+
<div class="container-fluid mvh-100">
|
7
|
+
<div class="row mvh-100">
|
8
|
+
{%- include header.html -%}
|
9
|
+
<main class="artisan-content col-md-9">
|
10
|
+
{%- include desktop_nav.html -%}
|
11
|
+
{{ content }}
|
12
|
+
{%- include footer.html -%}
|
13
|
+
</main>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
</body>
|
17
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{%- if page.title -%}
|
6
|
+
<h1 class="display-4">{{ page.title | escape }}</h1>
|
7
|
+
{%- endif -%}
|
8
|
+
|
9
|
+
{{ content }}
|
10
|
+
|
11
|
+
<div class="container pb-4">
|
12
|
+
<div class="row">
|
13
|
+
{%- if site.posts.size > 0 -%}
|
14
|
+
{%- assign date_format = site.artisan.date_format | default: "%b %-d, %Y" -%}
|
15
|
+
{%- for post in site.posts -%}
|
16
|
+
<div class="col-md-4 pt-4">
|
17
|
+
<div class="card">
|
18
|
+
<div class="article-preview card-body">
|
19
|
+
<h6 class="text-muted">
|
20
|
+
on
|
21
|
+
<time datetime="{{ page.date | date_to_xmlschema }}">
|
22
|
+
{{ post.date | date: date_format }}
|
23
|
+
</time>
|
24
|
+
{%- if post.categories.size > 0 -%}
|
25
|
+
in
|
26
|
+
{%- for category in post.categories -%}
|
27
|
+
<a href="{{ "categories" | relative_url }}#{{ category | slugize }}" class="artisan-link">
|
28
|
+
{{ category | escape }}
|
29
|
+
</a>
|
30
|
+
{%- endfor -%}
|
31
|
+
{%- endif -%}
|
32
|
+
</h6>
|
33
|
+
<h5 class="card-title">{{ post.title | escape }}</h5>
|
34
|
+
<div class="card-text">
|
35
|
+
{{ post.excerpt }}
|
36
|
+
</div>
|
37
|
+
<div class="article-preview__readmore p-3">
|
38
|
+
<a href="{{ post.url | relative_url }}"
|
39
|
+
class="btn btn-primary">
|
40
|
+
Read More
|
41
|
+
</a>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
{%- endfor -%}
|
47
|
+
{%- endif -%}
|
48
|
+
</div>
|
49
|
+
</div>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="artisan-article p-4">
|
6
|
+
<h6 class="text-muted">
|
7
|
+
on
|
8
|
+
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
9
|
+
{%- assign date_format = site.artisan.date_format | default: "%b %-d, %Y" -%}
|
10
|
+
{{ page.date | date: date_format }}
|
11
|
+
</time>
|
12
|
+
{%- if page.categories.size > 0 -%}
|
13
|
+
in
|
14
|
+
{%- for category in page.categories -%}
|
15
|
+
<a href="{{ "categories" | relative_url }}#{{ category | slugize }}" class="artisan-link">
|
16
|
+
{{ category | escape }}
|
17
|
+
{%- unless forloop.last -%},{%- endunless -%}
|
18
|
+
</a>
|
19
|
+
{%- endfor -%}
|
20
|
+
{%- endif -%}
|
21
|
+
</h6>
|
22
|
+
|
23
|
+
<h1 class="display-4">{{ page.title | escape }}</h1>
|
24
|
+
|
25
|
+
<div class="text-muted text-justify">
|
26
|
+
{{ content }}
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div class="pb-2">
|
30
|
+
{% for tag in page.tags %}
|
31
|
+
<span class="badge badge-primary p-1">
|
32
|
+
<i class="fas fa-tag"></i>
|
33
|
+
{{ tag | escape }}
|
34
|
+
</span>
|
35
|
+
{% endfor %}
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div class="container-fluid my-2">
|
39
|
+
<div class="row">
|
40
|
+
{%- if page.previous -%}
|
41
|
+
<a href="{{ page.previous.url | relative_url }}"
|
42
|
+
class="col-sm pl-0 artisan-article__seealso">
|
43
|
+
<table class="text-muted h-100">
|
44
|
+
<tr>
|
45
|
+
<td class="pr-2">
|
46
|
+
<i class="fas fa-chevron-left fa-2x text-primary"></i>
|
47
|
+
</td>
|
48
|
+
<td>
|
49
|
+
<small>Previous Post</small>
|
50
|
+
<h6>
|
51
|
+
{{ page.previous.title }}
|
52
|
+
</h6>
|
53
|
+
</td>
|
54
|
+
</tr>
|
55
|
+
</table>
|
56
|
+
</a>
|
57
|
+
{%- else -%}
|
58
|
+
<div class="col-sm"> </div>
|
59
|
+
{%- endif -%}
|
60
|
+
{%- if page.next -%}
|
61
|
+
<a href="{{ page.next.url | relative_url }}" class="col-sm pr-0 artisan-article__seealso">
|
62
|
+
<table class="text-muted w-100 h-100">
|
63
|
+
<tr>
|
64
|
+
<td>
|
65
|
+
<h6>
|
66
|
+
<small>Next Post</small>
|
67
|
+
<br>
|
68
|
+
{{ page.next.title }}
|
69
|
+
</h6>
|
70
|
+
</td>
|
71
|
+
<td class="pl-2 text-right">
|
72
|
+
<i class="fas fa-chevron-right fa-2x text-primary"></i>
|
73
|
+
</td>
|
74
|
+
</tr>
|
75
|
+
</table>
|
76
|
+
</a>
|
77
|
+
{%- else -%}
|
78
|
+
<div class="col-sm"> </div>
|
79
|
+
{%- endif -%}
|
80
|
+
</div>
|
81
|
+
</div>
|
82
|
+
|
83
|
+
{%- include disqus_comments.html -%}
|
84
|
+
</article>
|
@@ -0,0 +1,81 @@
|
|
1
|
+
/**
|
2
|
+
* Monokai code highlighting by francescoes.
|
3
|
+
* See: https://gist.github.com/francescoes/c82317c831371a0807e1.
|
4
|
+
*/
|
5
|
+
|
6
|
+
.highlight {
|
7
|
+
background: #272822;
|
8
|
+
border-radius: 8px;
|
9
|
+
padding: 16px;
|
10
|
+
|
11
|
+
pre { margin-bottom: 0; }
|
12
|
+
|
13
|
+
.c { color: #75715e; font-style: italic } // Comment
|
14
|
+
.err { color: #960050; background-color: #1e0010 } // Error
|
15
|
+
.k { color: #66d9ef; font-weight:bold } // Keyword
|
16
|
+
.o { color: #f92672; font-weight: bold } // Operator
|
17
|
+
.l { color: #ae81ff } // Literal
|
18
|
+
.n { color: #f8f8f2 } // Name
|
19
|
+
.p { color: #f8f8f2 } // Punctuation
|
20
|
+
.cm { color: #75715e; font-style: italic } // Comment.Multiline
|
21
|
+
.cp { color: #75715e; font-weight: bold } // Comment.Preproc
|
22
|
+
.c1 { color: #75715e; font-style: italic } // Comment.Single
|
23
|
+
.cs { color: #75715e; font-weight: bold; font-style: italic } // Comment.Special
|
24
|
+
.gd { color: #f92672; background-color: #fdd } // Generic.Deleted
|
25
|
+
.gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
|
26
|
+
.ge { font-style: italic } // Generic.Emph
|
27
|
+
.gr { color: #a00 } // Generic.Error
|
28
|
+
.gh { color: #999 } // Generic.Heading
|
29
|
+
.gi { color: #a6e22e; background-color: #dfd } // Generic.Inserted
|
30
|
+
.gi .x { color: #a6e22e; background-color: #afa } // Generic.Inserted.Specific
|
31
|
+
.go { color: #888 } // Generic.Output
|
32
|
+
.gp { color: #555 } // Generic.Prompt
|
33
|
+
.gs { font-weight: bold } // Generic.Strong
|
34
|
+
.gu { color: #75715e } // Generic.Subheading
|
35
|
+
.gt { color: #a00 } // Generic.Traceback
|
36
|
+
.kc { color: #66d9ef; font-weight: bold } // Keyword.Constant
|
37
|
+
.kd { color: #66d9ef; font-weight: bold } // Keyword.Declaration
|
38
|
+
.kn { color: #f92672 } // Keyword.Namespace
|
39
|
+
.kp { color: #66d9ef; font-weight: bold } // Keyword.Pseudo
|
40
|
+
.kr { color: #66d9ef; font-weight: bold } // Keyword.Reserved
|
41
|
+
.kt { color: #66d9ef; font-weight: bold } // Keyword.Type
|
42
|
+
.m { color: #ae81ff } // Literal.Number
|
43
|
+
.s { color: #e6db74} // Literal.String
|
44
|
+
.ld { color: #e6db74 } // Literal.Date
|
45
|
+
.na { color: #a6e22e } // Name.Attribute
|
46
|
+
.nb { color: #f8f8f2 } // Name.Builtin
|
47
|
+
.nc { color: #a6e22e; font-weight: bold } // Name.Class
|
48
|
+
.no { color: #66d9ef } // Name.Constant
|
49
|
+
.nd { color: #a6e22e } // Name.Decorator
|
50
|
+
.ni { color: #f8f8f2 } // Name.Entity
|
51
|
+
.ne { color: #a6e22e } // Name.Exception
|
52
|
+
.nf { color: #a6e22e } // Name.Function
|
53
|
+
.nl { color: #f8f8f2 } // Name.Label
|
54
|
+
.nn { color: #f8f8f2 } // Name.Namespace
|
55
|
+
.nx { color: #a6e22e } // Name.Other
|
56
|
+
.py { color: #f8f8f2 } // Name.Property
|
57
|
+
.nt { color: #f92672 } // Name.Tag
|
58
|
+
.nv { color: #f8f8f2 } // Name.Variable
|
59
|
+
.ow { color: #f92672; font-weight: bold } // Operator.Word
|
60
|
+
.w { color: #f8f8f2 } // Text.Whitespace
|
61
|
+
.mf { color: #ae81ff } // Literal.Number.Float
|
62
|
+
.mh { color: #ae81ff } // Literal.Number.Hex
|
63
|
+
.mi { color: #ae81ff } // Literal.Number.Integer
|
64
|
+
.mo { color: #ae81ff } // Literal.Number.Oct
|
65
|
+
.sb { color: #e6db74 } // Literal.String.Backtick
|
66
|
+
.sc { color: #e6db74 } // Literal.String.Char
|
67
|
+
.sd { color: #e6db74 } // Literal.String.Doc
|
68
|
+
.s2 { color: #e6db74 } // Literal.String.Double
|
69
|
+
.se { color: #ae81ff } // Literal.String.Escape
|
70
|
+
.sh { color: #e6db74 } // Literal.String.Heredoc
|
71
|
+
.si { color: #e6db74 } // Literal.String.Interpol
|
72
|
+
.sx { color: #e6db74 } // Literal.String.Other
|
73
|
+
.sr { color: #e6db74 } // Literal.String.Regex
|
74
|
+
.s1 { color: #e6db74 } // Literal.String.Single
|
75
|
+
.ss { color: #e6db74 } // Literal.String.Symbol
|
76
|
+
.bp { color: #f8f8f2 } // Name.Builtin.Pseudo
|
77
|
+
.vc { color: #f8f8f2 } // Name.Variable.Class
|
78
|
+
.vg { color: #f8f8f2 } // Name.Variable.Global
|
79
|
+
.vi { color: #f8f8f2 } // Name.Variable.Instance
|
80
|
+
.il { color: #ae81ff } // Literal.Number.Integer.Long
|
81
|
+
}
|
Binary file
|
data/categories.html
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
title: Categories
|
4
|
+
---
|
5
|
+
|
6
|
+
{% for category in site.categories %}
|
7
|
+
<div class="py-2">
|
8
|
+
{% capture category_name %}{{ category | first }}{% endcapture %}
|
9
|
+
<div id="#{{ category_name | slugize }}"></div>
|
10
|
+
|
11
|
+
<a name="{{ category_name | slugize }}"></a>
|
12
|
+
<h5>{{ category_name }}</h5>
|
13
|
+
{% for post in site.categories[category_name] %}
|
14
|
+
<h6><a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a></h6>
|
15
|
+
{% endfor %}
|
16
|
+
</div>
|
17
|
+
{% endfor %}
|
data/css/site.scss
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
---
|
2
|
+
# Main stylesheet for the website
|
3
|
+
---
|
4
|
+
$primary: {{ site.artisan.accent }};
|
5
|
+
|
6
|
+
@import 'highlighting';
|
7
|
+
@import 'variables';
|
8
|
+
@import 'bootstrap';
|
9
|
+
|
10
|
+
$border-light: solid rgba(0, 0, 0, .12) 1px;
|
11
|
+
|
12
|
+
html, body, .mvh-100 {
|
13
|
+
min-height: 100vh;
|
14
|
+
}
|
15
|
+
|
16
|
+
.navbar {
|
17
|
+
border-top: solid $primary 4px;
|
18
|
+
border-bottom: $border-light;
|
19
|
+
}
|
20
|
+
|
21
|
+
.artisan-profile {
|
22
|
+
border-right: $border-light;
|
23
|
+
min-height: 100%;
|
24
|
+
padding-left: 0;
|
25
|
+
padding-right: 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
.artisan-profile-banner {
|
29
|
+
display: block;
|
30
|
+
|
31
|
+
background-image: url('../assets/background.png');
|
32
|
+
border-bottom: $border-light;
|
33
|
+
|
34
|
+
&:hover, &:visited, &:active {
|
35
|
+
text-decoration: none;
|
36
|
+
}
|
37
|
+
|
38
|
+
&__avatar {
|
39
|
+
border: solid $primary 4px;
|
40
|
+
border-radius: 100%;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
.artisan-content {
|
45
|
+
padding-left: 0;
|
46
|
+
padding-right: 0;
|
47
|
+
}
|
48
|
+
|
49
|
+
.artisan-article {
|
50
|
+
max-width: 700px;
|
51
|
+
margin: 0 auto;
|
52
|
+
|
53
|
+
&__seealso {
|
54
|
+
text-decoration: none;
|
55
|
+
|
56
|
+
&:hover, &:active, &:visited, &:focus {
|
57
|
+
text-decoration: none;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
.artisan-link {
|
63
|
+
color: inherit;
|
64
|
+
|
65
|
+
&:hover, &:active, &:visited, &:focus {
|
66
|
+
color: inherit;
|
67
|
+
}
|
68
|
+
|
69
|
+
&:hover {
|
70
|
+
text-decoration: underline;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.article-preview {
|
75
|
+
height: 320px;
|
76
|
+
overflow: hidden;
|
77
|
+
|
78
|
+
&__readmore {
|
79
|
+
position: absolute;
|
80
|
+
left: 0;
|
81
|
+
bottom: 0;
|
82
|
+
right: 0;
|
83
|
+
|
84
|
+
border-top: $border-light;
|
85
|
+
background: $card-bg;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.artisan-footer {
|
90
|
+
background-color: #F5F5F5;
|
91
|
+
border-top: $border-light;
|
92
|
+
|
93
|
+
&__link {
|
94
|
+
color: inherit;
|
95
|
+
|
96
|
+
&:hover, &:active, &:visited, &:focus {
|
97
|
+
color: inherit;
|
98
|
+
}
|
99
|
+
|
100
|
+
&:hover {
|
101
|
+
text-decoration: underline;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
metadata
ADDED
@@ -0,0 +1,175 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-theme-artisan
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Eric Hripko
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-05-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: autoprefixer-rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '8.4'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '8.4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bootstrap
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 4.1.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 4.1.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jekyll
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.8'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.8'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jekyll-assets
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jekyll-feed
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.9'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.9'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: jekyll-seo-tag
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '2.1'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '2.1'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: bundler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.16'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.16'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '12.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '12.0'
|
125
|
+
description:
|
126
|
+
email:
|
127
|
+
- yksirius@gmail.com
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- LICENSE.txt
|
133
|
+
- README.md
|
134
|
+
- _includes/desktop_nav.html
|
135
|
+
- _includes/disqus_comments.html
|
136
|
+
- _includes/footer.html
|
137
|
+
- _includes/google_analytics.html
|
138
|
+
- _includes/head.html
|
139
|
+
- _includes/header.html
|
140
|
+
- _includes/mobile_nav.html
|
141
|
+
- _includes/social.html
|
142
|
+
- _layouts/default.html
|
143
|
+
- _layouts/home.html
|
144
|
+
- _layouts/page.html
|
145
|
+
- _layouts/post.html
|
146
|
+
- _sass/highlighting.scss
|
147
|
+
- _sass/variables.scss
|
148
|
+
- assets/background.png
|
149
|
+
- categories.html
|
150
|
+
- css/site.scss
|
151
|
+
homepage: https://github.com/EricHripko/artisan
|
152
|
+
licenses:
|
153
|
+
- MIT
|
154
|
+
metadata: {}
|
155
|
+
post_install_message:
|
156
|
+
rdoc_options: []
|
157
|
+
require_paths:
|
158
|
+
- lib
|
159
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '0'
|
164
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
requirements: []
|
170
|
+
rubyforge_project:
|
171
|
+
rubygems_version: 2.7.6
|
172
|
+
signing_key:
|
173
|
+
specification_version: 4
|
174
|
+
summary: Jekyll theme for developer websites.
|
175
|
+
test_files: []
|