doccoli-jekyll 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 +152 -0
- data/_includes/disqus_comments.html +20 -0
- data/_includes/footer.html +40 -0
- data/_includes/google-analytics.html +11 -0
- data/_includes/head.html +12 -0
- data/_includes/header.html +35 -0
- data/_includes/icon-facebook.html +1 -0
- data/_includes/icon-facebook.svg +1 -0
- data/_includes/icon-github.html +1 -0
- data/_includes/icon-github.svg +1 -0
- data/_includes/icon-twitter.html +1 -0
- data/_includes/icon-twitter.svg +1 -0
- data/_includes/sidebar.html +13 -0
- data/_layouts/default.html +27 -0
- data/_layouts/home.html +30 -0
- data/_layouts/page.html +17 -0
- data/_layouts/post.html +30 -0
- data/_sass/doccoli-jekyll.scss +6 -0
- data/_sass/scss/_base.scss +245 -0
- data/_sass/scss/_content.scss +3 -0
- data/_sass/scss/_footer.scss +37 -0
- data/_sass/scss/_header.scss +193 -0
- data/_sass/scss/_layout.scss +250 -0
- data/_sass/scss/_reusable.scss +560 -0
- data/_sass/scss/_sidebar.scss +43 -0
- data/_sass/scss/_syntax-highlighting.scss +202 -0
- data/assets/images/favicon.ico +0 -0
- data/assets/images/heart.svg +1 -0
- data/assets/images/logo.png +0 -0
- data/assets/images/logo.svg +1 -0
- data/assets/images/search.svg +4 -0
- data/assets/images/usa.svg +1 -0
- data/assets/main.scss +5 -0
- metadata +135 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 91095e6a25bdaf976355a9b4e4c60aa5c69db38d
|
4
|
+
data.tar.gz: 6ec9153a95d1cec4f1aadfa0b28252a0932ab5c6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0dab69e9786884239882fe7ffdf60b1aca7c36ce98d132c2fb50e804afdfb2b58165ab8c33462a0aca50db4fb904ea7cc4a9ef92163d9a77caf745884d1c7406
|
7
|
+
data.tar.gz: 3af7838b7baf6748384cf432dbcea7fbd65d7989e6a681c5d57e37651203f856f5796eabea52960c9051a0f0fc4e2a55b4996b5ce19bc03fcd85fc0835d80577
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Marvin Danig
|
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,152 @@
|
|
1
|
+
# doccoli-jekyll
|
2
|
+
|
3
|
+
The `doccoli-jekyll` is the Jekyll theme in use at [The Bubblin Blog](https://bubblin.io/blog/). It is a particularly useful theme for situations where you want to add a blog to your site, say on the side of your rails app (website) or over a url like this:
|
4
|
+
|
5
|
+
> https://example.com/blog/
|
6
|
+
|
7
|
+
|
8
|
+
`doccoli-jekyll` was originally a fork off of [Minima](https://github.com/jekyll/minima)—the default gem-theme of Jekyll-but it has been rewritten completely using the [Toucaan CSS](https://github.com/marvindanig/toucaan) fundamentals for its themed layout.
|
9
|
+
|
10
|
+
A tutorial on how to setup a jekyll blog using the `doccoli-jekyll` theme alongside your rails app is available [here](https://bubblin.io/blog/).
|
11
|
+
|
12
|
+
[Theme preview](https://jekyll.github.io/doccoli-jekyll/)
|
13
|
+
|
14
|
+

|
15
|
+
|
16
|
+
## Installation
|
17
|
+
|
18
|
+
Add this line to your Jekyll site's Gemfile:
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
gem "doccoli-jekyll"
|
22
|
+
```
|
23
|
+
|
24
|
+
And add this line to your Jekyll site:
|
25
|
+
|
26
|
+
```yaml
|
27
|
+
theme: doccoli-jekyll
|
28
|
+
```
|
29
|
+
|
30
|
+
And then execute:
|
31
|
+
|
32
|
+
$ bundle
|
33
|
+
|
34
|
+
### Layouts
|
35
|
+
|
36
|
+
Refers to files within the `_layouts` directory, that define the markup for your theme.
|
37
|
+
|
38
|
+
- `default.html` — The base layout that lays the foundation for subsequent layouts. The derived layouts inject their contents into this file at the line that says ` {{ content }} ` and are linked to this file via [FrontMatter](https://jekyllrb.com/docs/frontmatter/) declaration `layout: default`.
|
39
|
+
- `home.html` — The layout for your landing-page / home-page / index-page.
|
40
|
+
- `page.html` — The layout for your documents that contain FrontMatter, but are not posts.
|
41
|
+
- `post.html` — The layout for your posts.
|
42
|
+
|
43
|
+
### Includes
|
44
|
+
|
45
|
+
Refers to snippets of code within the `_includes` directory that can be inserted in multiple layouts (and another include-file as well) within the same theme-gem.
|
46
|
+
|
47
|
+
- `disqus_comments.html` — Code to markup disqus comment box.
|
48
|
+
- `footer.html` — Defines the site's footer section.
|
49
|
+
- `google-analytics.html` — Inserts Google Analytics module (active only in production environment).
|
50
|
+
- `head.html` — Code-block that defines the `<head></head>` in *default* layout.
|
51
|
+
- `header.html` — Defines the site's main header section. By default, pages with a defined `title` attribute will have links displayed here.
|
52
|
+
- `icon-* files` — Inserts github and twitter ids with respective icons.
|
53
|
+
|
54
|
+
### Sass
|
55
|
+
|
56
|
+
Refers to `.scss` files within the `_sass` directory that define the theme's styles.
|
57
|
+
|
58
|
+
- `doccoli-jekyll.scss` — The core file imported by preprocessed `main.scss`, it defines the variable defaults for the theme and also further imports sass partials to supplement itself.
|
59
|
+
- `doccoli-jekyll/_base.scss` — Resets and defines base styles for various HTML elements.
|
60
|
+
- `doccoli-jekyll/_layout.scss` — Defines the visual style for various layouts.
|
61
|
+
- `doccoli-jekyll/_syntax-highlighting.scss` — Defines the styles for syntax-highlighting.
|
62
|
+
|
63
|
+
### Assets
|
64
|
+
|
65
|
+
Refers to various asset files within the `assets` directory.
|
66
|
+
Contains the `main.scss` that imports sass files from within the `_sass` directory. This `main.scss` is what gets processed into the theme's main stylesheet `main.css` called by `_layouts/default.html` via `_includes/head.html`.
|
67
|
+
|
68
|
+
This directory can include sub-directories to manage assets of similar type, and will be copied over as is, to the final transformed site directory.
|
69
|
+
|
70
|
+
### Plugins
|
71
|
+
|
72
|
+
doccoli-jekyll comes preinstalled with the [`jekyll-seo-tag`](https://github.com/jekyll/jekyll-seo-tag) plugin to make sure your website gets the most useful meta tags. See [usage](https://github.com/jekyll/jekyll-seo-tag#usage) to know how to set it up.
|
73
|
+
|
74
|
+
## Usage
|
75
|
+
|
76
|
+
### Customization
|
77
|
+
|
78
|
+
To override the default structure and style of doccoli-jekyll, simply create the concerned directory at the root of your site, copy the file you wish to customize to that directory, and then edit the file.
|
79
|
+
e.g., to override the [`_includes/head.html `](_includes/head.html) file to specify a custom style path, create an `_includes` directory, copy `_includes/head.html` from minima gem folder to `<yoursite>/_includes` and start editing that file.
|
80
|
+
|
81
|
+
The site's default CSS has now moved to a new place within the gem itself, [`assets/main.scss`](assets/main.scss). To **override the default CSS**, the file has to exist at your site source. Do either of the following:
|
82
|
+
- Create a new instance of `main.scss` at site source.
|
83
|
+
- Create a new file `main.scss` at `<your-site>/assets/`
|
84
|
+
- Add the frontmatter dashes, and
|
85
|
+
- Add `@import "doccoli-jekyll";`, to `<your-site>/assets/main.scss`
|
86
|
+
- Add your custom CSS.
|
87
|
+
- Download the file from this repo
|
88
|
+
- Create a new file `main.scss` at `<your-site>/assets/`
|
89
|
+
- Copy the contents at [assets/main.scss](assets/main.scss) onto the `main.scss` you just created, and edit away!
|
90
|
+
- Copy directly from doccoli-jekyll gem
|
91
|
+
- Go to your local doccoli-jekyll gem installation directory ( run `bundle show doccoli-jekyll` to get the path to it ).
|
92
|
+
- Copy the `assets/` folder from there into the root of `<your-site>`
|
93
|
+
- Change whatever values you want, inside `<your-site>/assets/main.scss`
|
94
|
+
|
95
|
+
--
|
96
|
+
|
97
|
+
### Change default date format
|
98
|
+
|
99
|
+
You can change the default date format by specifying `site.doccoli-jekyll.date_format`
|
100
|
+
in `_config.yml`.
|
101
|
+
|
102
|
+
```
|
103
|
+
# doccoli-jekyll date format
|
104
|
+
# Refer to http://shopify.github.io/liquid/filters/date/ to customize
|
105
|
+
doccoli-jekyll:
|
106
|
+
date_format: "%b %-d, %Y"
|
107
|
+
```
|
108
|
+
|
109
|
+
--
|
110
|
+
|
111
|
+
### Enabling comments (via Disqus)
|
112
|
+
|
113
|
+
Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.
|
114
|
+
|
115
|
+
To enable it, add the following lines to your Jekyll site:
|
116
|
+
|
117
|
+
```yaml
|
118
|
+
disqus:
|
119
|
+
shortname: my_disqus_shortname
|
120
|
+
```
|
121
|
+
|
122
|
+
You can find out more about Disqus' shortnames [here](https://help.disqus.com/customer/portal/articles/466208).
|
123
|
+
|
124
|
+
Comments are enabled by default and will only appear in production, i.e., `JEKYLL_ENV=production`
|
125
|
+
|
126
|
+
If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's YAML Front Matter.
|
127
|
+
|
128
|
+
--
|
129
|
+
|
130
|
+
### Enabling Google Analytics
|
131
|
+
|
132
|
+
To enable Google Anaytics, add the following lines to your Jekyll site:
|
133
|
+
|
134
|
+
```yaml
|
135
|
+
google_analytics: UA-NNNNNNNN-N
|
136
|
+
```
|
137
|
+
|
138
|
+
Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
|
139
|
+
|
140
|
+
## Contributing
|
141
|
+
|
142
|
+
Bug reports and pull requests are welcome on GitHub at . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
143
|
+
|
144
|
+
## Development
|
145
|
+
|
146
|
+
To set up your environment to develop this theme, run `script/bootstrap`.
|
147
|
+
|
148
|
+
To test your theme, run `script/server` (or `bundle exec jekyll serve`) and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme and the contents. As you make modifications, your site will regenerate and you should see the changes in the browser after a refresh.
|
149
|
+
|
150
|
+
## License
|
151
|
+
|
152
|
+
The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{% if page.comments != false and jekyll.environment == "development" %}
|
2
|
+
|
3
|
+
<div id="disqus_thread"></div>
|
4
|
+
<script>
|
5
|
+
var disqus_config = function() {
|
6
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
7
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
8
|
+
};
|
9
|
+
|
10
|
+
(function() {
|
11
|
+
var d = document,
|
12
|
+
s = d.createElement('script');
|
13
|
+
|
14
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
15
|
+
|
16
|
+
s.setAttribute('data-timestamp', +new Date());
|
17
|
+
(d.head || d.body).appendChild(s);
|
18
|
+
})();
|
19
|
+
</script>
|
20
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript> {% endif %}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<footer class="legend proxima double-top-gap pad-vertically">
|
2
|
+
<div class="flex">
|
3
|
+
<menu class="horizontal-list foot-menu">
|
4
|
+
<li>
|
5
|
+
<a rel="About us" href="https://bubblin.io/about">About</a>
|
6
|
+
</li>
|
7
|
+
<li>
|
8
|
+
<a rel="Frequently Asked Questions" href="https://bubblin.io/faq">FAQs</a>
|
9
|
+
</li>
|
10
|
+
<li class="hide-on-mobiles">
|
11
|
+
<a rel="Writers" href="https://bubblin.io/writers">Writers</a>
|
12
|
+
</li>
|
13
|
+
<li class="hide-on-mobiles">
|
14
|
+
<a rel="Documentation" href="https://bubblin.io/documentation">Documentation</a>
|
15
|
+
</li>
|
16
|
+
<li class="hide-on-mobiles">
|
17
|
+
<a href="{{ '/' | relative_url }}" rel="Official blog">Blog</a>
|
18
|
+
</li>
|
19
|
+
<li>
|
20
|
+
<a rel="Privacy Policy" href="/policy">Policy</a>
|
21
|
+
</li>
|
22
|
+
<li>
|
23
|
+
<a rel="Terms of Service" href="/terms">Terms</a>
|
24
|
+
</li>
|
25
|
+
</menu>
|
26
|
+
<span class="side-gap">
|
27
|
+
<h6 class="small">
|
28
|
+
© 2017+ Bubblin Superbooks Inc.
|
29
|
+
</h6>
|
30
|
+
</span>
|
31
|
+
</div>
|
32
|
+
<div class="one-half center small flex double-top-gap">
|
33
|
+
<span class="lobster faded-text">
|
34
|
+
Made with
|
35
|
+
<i class="heart"></i>
|
36
|
+
in the
|
37
|
+
</span>
|
38
|
+
<div class="usa side-gap"></div>
|
39
|
+
</div>
|
40
|
+
</footer>
|
@@ -0,0 +1,11 @@
|
|
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
|
+
|
7
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
8
|
+
ga('send', 'pageview');
|
9
|
+
|
10
|
+
</script>
|
11
|
+
|
data/_includes/head.html
ADDED
@@ -0,0 +1,12 @@
|
|
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">
|
5
|
+
{% seo %}
|
6
|
+
<link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
|
7
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ " /feed.xml " | relative_url }}">
|
8
|
+
{% if jekyll.environment == 'development' and site.google_analytics %}
|
9
|
+
{% include google-analytics.html %}
|
10
|
+
{% endif %}
|
11
|
+
<script src="{{ site.baseurl }}/js/search.js"></script>
|
12
|
+
</head>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<header class="fixed mast proxima top" role="banner">
|
2
|
+
<nav class="bar left transparent-white ">
|
3
|
+
{% assign default_paths = site.pages | map: "path" %} {% assign page_paths = site.header_pages | default: default_paths %}
|
4
|
+
<a class="sprite-up logo left ir" role="blog main" href="{{ '/' | relative_url }}">{{ site.title | escape }}</a>
|
5
|
+
<a class="left beta-label super-small" href="{{ '/' | relative_url }}"> beta </a>
|
6
|
+
|
7
|
+
<div class="loader left hidden"></div>
|
8
|
+
<ul class="horizontal-list left navi-menu">
|
9
|
+
{% for path in page_paths %} {% assign my_page = site.pages | where: "path", path | first %} {% if my_page.title %}
|
10
|
+
<li>
|
11
|
+
<a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
12
|
+
</li>
|
13
|
+
{% endif %} {% endfor %}
|
14
|
+
|
15
|
+
</ul>
|
16
|
+
<div class="left">
|
17
|
+
<input type="text" id="search-input" placeholder="Search docs..." class="search">
|
18
|
+
<ul id="results-container"></ul>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
<ul class="horizontal-list right navi-menu">
|
24
|
+
<li>
|
25
|
+
<a href="https://bubblin.io"> ← Bubblin </a>
|
26
|
+
</li>
|
27
|
+
|
28
|
+
<li class="hide-on-mobiles">
|
29
|
+
<a href="https://bubblin.io/users/new">Sign up</a>
|
30
|
+
</li>
|
31
|
+
<li class="hide-on-mobiles">
|
32
|
+
<a href="https://bubblin.io/login">Login</a>
|
33
|
+
</li>
|
34
|
+
</ul>
|
35
|
+
</header>
|
@@ -0,0 +1 @@
|
|
1
|
+
<a href="https://facebook.com/{{ include.page }}"><span class="icon icon--facebook">{% include icon-facebook.svg %}</span>: <span>{{ include.page }}</span></a>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 155.1 155.1" width="16" height="16"><path d="M89.6 155.1V84.4h23.7l3.6-27.6H89.6V39.2c0-8 2.2-13.4 13.7-13.4l14.6 0V1.1C115.3 0.8 106.7 0 96.6 0 75.5 0 61.1 12.9 61.1 36.5v20.3H37.3v27.6h23.8v70.8H89.6z" fill="#444"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span>: <span class="username">{{ include.username }}</span></a>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="#444" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<a href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span>: <span class="username">@{{ include.username }}</span></a>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="#444" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/></svg>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: " en " }}">
|
3
|
+
|
4
|
+
{% include head.html %}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
|
8
|
+
{% include header.html %}
|
9
|
+
{% include sidebar.html %}
|
10
|
+
|
11
|
+
<main class="container fold pad" aria-label="Content">
|
12
|
+
{{ content }}
|
13
|
+
</main>
|
14
|
+
|
15
|
+
{% include footer.html %}
|
16
|
+
|
17
|
+
<script>
|
18
|
+
SimpleJekyllSearch({
|
19
|
+
searchInput: document.getElementById('search-input'),
|
20
|
+
resultsContainer: document.getElementById('results-container'),
|
21
|
+
json: '/search.json'
|
22
|
+
})
|
23
|
+
</script>
|
24
|
+
|
25
|
+
</body>
|
26
|
+
|
27
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div class="wrapper">
|
5
|
+
|
6
|
+
<h1 href="{{ "/" | relative_url }}">{{ site.title | escape }}</h1>
|
7
|
+
|
8
|
+
<hr>
|
9
|
+
|
10
|
+
<p class="right">Subscribe <a href="{{ '/feed.xml' | relative_url }}">via RSS</a></p>
|
11
|
+
|
12
|
+
{{ content }}
|
13
|
+
|
14
|
+
<h2>Posts</h2>
|
15
|
+
|
16
|
+
<ul class="pad-vertically">
|
17
|
+
{% for post in site.posts %}
|
18
|
+
<li>
|
19
|
+
<h3>
|
20
|
+
<a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
21
|
+
</h3>
|
22
|
+
|
23
|
+
{% assign date_format = site.doccoli-jekyll.date_format | default: "%b %-d, %Y" %}
|
24
|
+
<span>{{ post.date | date: date_format }}</span>
|
25
|
+
|
26
|
+
</li>
|
27
|
+
{% endfor %}
|
28
|
+
</ul>
|
29
|
+
|
30
|
+
</div>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="wrapper">
|
6
|
+
<article itemscope itemtype="http://schema.org/BlogPosting">
|
7
|
+
<header>
|
8
|
+
<h1 itemprop="name headline">{{ page.title | escape }}</h1>
|
9
|
+
|
10
|
+
<p>
|
11
|
+
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
12
|
+
{% assign date_format = site.doccoli-jekyll.date_format | default: "%b %-d, %Y" %}
|
13
|
+
{{ page.date | date: date_format }}
|
14
|
+
</time>
|
15
|
+
{% if page.author %}
|
16
|
+
• <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
|
17
|
+
{% endif %}
|
18
|
+
</p>
|
19
|
+
</header>
|
20
|
+
<hr>
|
21
|
+
|
22
|
+
<div itemprop="articleBody">
|
23
|
+
{{ content }}
|
24
|
+
</div>
|
25
|
+
|
26
|
+
{% if site.disqus.shortname %}
|
27
|
+
{% include disqus_comments.html %}
|
28
|
+
{% endif %}
|
29
|
+
</article>
|
30
|
+
</div>
|