oscailte 3.0.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 +175 -0
- data/_includes/comments.html +21 -0
- data/_includes/footer.html +10 -0
- data/_includes/google-analytics.html +11 -0
- data/_includes/head.html +12 -0
- data/_includes/header.html +17 -0
- data/_includes/hero.html +17 -0
- data/_includes/icon.html +2 -0
- data/_includes/navigation.html +18 -0
- data/_includes/social.html +17 -0
- data/_includes/strings.html +9 -0
- data/_layouts/core.html +28 -0
- data/_layouts/default.html +7 -0
- data/_layouts/home.html +44 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +38 -0
- data/_sass/_oscailte.scss +147 -0
- data/_sass/oscailte/components/_button.scss +11 -0
- data/_sass/oscailte/components/_card.scss +19 -0
- data/_sass/oscailte/components/_footer.scss +22 -0
- data/_sass/oscailte/components/_header.scss +51 -0
- data/_sass/oscailte/components/_hero.scss +85 -0
- data/_sass/oscailte/components/_icon.scss +7 -0
- data/_sass/oscailte/components/_navigation.scss +32 -0
- data/_sass/oscailte/components/_recentposts.scss +59 -0
- data/_sass/oscailte/components/_skipnav.scss +11 -0
- data/_sass/oscailte/components/_social.scss +55 -0
- data/_sass/oscailte/components/_syntax.scss +72 -0
- data/_sass/oscailte/elements/_blockquote.scss +6 -0
- data/_sass/oscailte/elements/_body.scss +6 -0
- data/_sass/oscailte/elements/_code.scss +19 -0
- data/_sass/oscailte/elements/_headings.scss +15 -0
- data/_sass/oscailte/elements/_hr.scss +4 -0
- data/_sass/oscailte/elements/_html.scss +9 -0
- data/_sass/oscailte/elements/_img.scss +3 -0
- data/_sass/oscailte/elements/_links.scss +3 -0
- data/_sass/oscailte/generic/_font-face.scss +63 -0
- data/_sass/oscailte/generic/_lobotomised-owl.scss +3 -0
- data/_sass/oscailte/generic/_modern-normalize.scss +273 -0
- data/_sass/oscailte/layout/_container.scss +5 -0
- data/_sass/oscailte/layout/_home.scss +0 -0
- data/_sass/oscailte/layout/_post.scss +14 -0
- data/_sass/oscailte/layout/_stickyfooter.scss +11 -0
- data/_sass/oscailte/objects/_circuited.scss +6 -0
- data/_sass/oscailte/objects/_lists.scss +11 -0
- data/_sass/oscailte/objects/_muted.scss +3 -0
- data/_sass/oscailte/objects/_no-owl.scss +3 -0
- data/_sass/oscailte/tools/_functions.scss +27 -0
- data/_sass/oscailte/tools/_mixins.scss +29 -0
- data/assets/css/main.scss +5 -0
- data/assets/oscailte/fonts/lato-v16-latin-regular.eot +0 -0
- data/assets/oscailte/fonts/lato-v16-latin-regular.svg +435 -0
- data/assets/oscailte/fonts/lato-v16-latin-regular.ttf +0 -0
- data/assets/oscailte/fonts/lato-v16-latin-regular.woff +0 -0
- data/assets/oscailte/fonts/lato-v16-latin-regular.woff2 +0 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-700.eot +0 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-700.svg +375 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-700.ttf +0 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-700.woff +0 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-700.woff2 +0 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-italic.eot +0 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-italic.svg +390 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-italic.ttf +0 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-italic.woff +0 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-italic.woff2 +0 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-regular.eot +0 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-regular.svg +374 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-regular.ttf +0 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-regular.woff +0 -0
- data/assets/oscailte/fonts/merriweather-v21-latin-regular.woff2 +0 -0
- data/assets/oscailte/img/avatar.png +0 -0
- data/assets/oscailte/img/hero_matrix.png +0 -0
- data/assets/oscailte/img/icons.svg +62 -0
- metadata +202 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b8a5800d066a43306565d3e703c482bf80579ce3
|
4
|
+
data.tar.gz: 838bdaa17bebdd96c21bb7dc49c2c5fe9c9ed6ec
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f960a65a0aa550f4f11fd822b7c6bb9a8d3bb72c3627bb0552d1a9aa2c42d3aa9c8e962aa82e4c88963695c84436b1b1b820151bf22c21933a98e80c1112e1d7
|
7
|
+
data.tar.gz: c4e677eac2a2d105d94f98de70b4b54e3845fa64040b743fc73370fd192ef331eb7dd99501194e308f59f25e9ecce4a0ca9cfff82a1cc5518cd4b50662b776a9
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Stephen Coogan
|
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,175 @@
|
|
1
|
+
# Oscailte — A Jekyll theme
|
2
|
+
|
3
|
+
---
|
4
|
+
##  Latest version: 3.0</sup>
|
5
|
+
|
6
|
+
---
|
7
|
+
|
8
|
+
Oscailte ([IPA: [ˈɔsˠkɪlʲtʲɪ]](http://en.wiktionary.org/wiki/Appendix:Irish_pronunciation) Gaeilge for "Open") is a light and clean theme for use on [Jekyll](https://jekyllrb.org/) sites, released under the MIT Licence.
|
9
|
+
|
10
|
+
## Quicklinks
|
11
|
+
- [Installation](#installation)
|
12
|
+
- [Usage](#usage)
|
13
|
+
- [Enabling Comments (via Disqus)](#enabling-comments-via-disqus)
|
14
|
+
- [Social Networks](#social-networks)
|
15
|
+
- [Enabling Google Analytics](#enabling-google-analytics)
|
16
|
+
- [Enabling Excerpts on the Home Page](#enabling-excerpts-on-the-home-page)
|
17
|
+
- [Customising Oscailte](#customising-oscailte)
|
18
|
+
- [Site Colours](#site-colours)
|
19
|
+
|
20
|
+
## Installation
|
21
|
+
|
22
|
+
<details>
|
23
|
+
<summary><strong>Install as Remote Theme</strong></summary>
|
24
|
+
|
25
|
+
Using [Jekyll Remote Theme](https://github.com/benbalter/jekyll-remote-theme) (enabled
|
26
|
+
by default on Github Pages) is the quickest way to install Oscailte.
|
27
|
+
|
28
|
+
1. Add the following to your site's `_config.yml` to activate Oscailte
|
29
|
+
```yml
|
30
|
+
remote_theme: coogie/oscailte
|
31
|
+
```
|
32
|
+
</details>
|
33
|
+
|
34
|
+
----
|
35
|
+
|
36
|
+
<details>
|
37
|
+
<summary><strong>Install via Gemfile</strong></summary>
|
38
|
+
|
39
|
+
1. Add this line to your Jekyll site's `Gemfile`:
|
40
|
+
```ruby
|
41
|
+
gem "oscailte"
|
42
|
+
```
|
43
|
+
|
44
|
+
2. And add this line to your Jekyll site's `_config.yml`:
|
45
|
+
```yaml
|
46
|
+
theme: oscailte
|
47
|
+
```
|
48
|
+
|
49
|
+
3. And then execute:
|
50
|
+
```sh
|
51
|
+
$ bundle
|
52
|
+
```
|
53
|
+
|
54
|
+
4. Or install it yourself as:
|
55
|
+
```sh
|
56
|
+
$ gem install oscailte
|
57
|
+
```
|
58
|
+
</details>
|
59
|
+
|
60
|
+
## Usage
|
61
|
+
|
62
|
+
The majority of Oscailte's settings are nested under the `oscailte` key.
|
63
|
+
Below are a list of all available ones, and their default values.
|
64
|
+
|
65
|
+
```yml
|
66
|
+
oscailte:
|
67
|
+
posts_url:
|
68
|
+
google_analytics:
|
69
|
+
social:
|
70
|
+
twitter: jekyllrb
|
71
|
+
github: jekyll
|
72
|
+
dribbble: jekyll
|
73
|
+
facebook: jekyll
|
74
|
+
flickr: jekyll
|
75
|
+
instagram: jekyll
|
76
|
+
linkedin: jekyll
|
77
|
+
pinterest: jekyll
|
78
|
+
telegram: jekyll
|
79
|
+
keybase: jekyll
|
80
|
+
rss: rss
|
81
|
+
strings:
|
82
|
+
skip_to_main_content: "Skip to main content"
|
83
|
+
x_minute_read: "$x$ minute read"
|
84
|
+
hero_title: "Welcome to Oscailte!<br> A powerful, clean, and responsive Jekyll theme."
|
85
|
+
recent_posts: "Recent posts"
|
86
|
+
view_all: "View all"
|
87
|
+
read_full: "Read full"
|
88
|
+
disqus_enable_javascript: 'Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus</a>.'
|
89
|
+
```
|
90
|
+
|
91
|
+
### Enabling Comments (via Disqus)
|
92
|
+
|
93
|
+
Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments
|
94
|
+
section below each post.
|
95
|
+
|
96
|
+
To enable it, add the following lines to your Jekyll site:
|
97
|
+
|
98
|
+
```yml
|
99
|
+
disqus:
|
100
|
+
shortname: my_disqus_shortname
|
101
|
+
```
|
102
|
+
|
103
|
+
You can find out more about Disqus' shortnames [here](https://help.disqus.com/installation/whats-a-shortname).
|
104
|
+
|
105
|
+
Comments are enabled by default and will only appear in production, i.e.,
|
106
|
+
`JEKYLL_ENV=production`
|
107
|
+
|
108
|
+
If you don't want to display comments for a particular post you can disable them by adding
|
109
|
+
`comments: false` to that post's YAML Front Matter.
|
110
|
+
|
111
|
+
:warning: `url`, e.g. `https://example.com`, must be set in you config file for Disqus to
|
112
|
+
work.
|
113
|
+
|
114
|
+
### Social Networks
|
115
|
+
|
116
|
+
You can add links to the accounts you have on other sites, with respective icon, by adding
|
117
|
+
one or more of the following options in your config. These usernames are nested under
|
118
|
+
`oscailte.social`, with the keys being simply the social network's name:
|
119
|
+
|
120
|
+
```yml
|
121
|
+
oscailte:
|
122
|
+
social:
|
123
|
+
twitter: jekyllrb
|
124
|
+
github: jekyll
|
125
|
+
dribbble: jekyll
|
126
|
+
facebook: jekyll
|
127
|
+
flickr: jekyll
|
128
|
+
instagram: jekyll
|
129
|
+
linkedin: jekyll
|
130
|
+
pinterest: jekyll
|
131
|
+
telegram: jekyll
|
132
|
+
keybase: jekyll
|
133
|
+
rss: rss
|
134
|
+
```
|
135
|
+
|
136
|
+
### Enabling Google Analytics
|
137
|
+
|
138
|
+
To enable Google Analytics, add the following lines to your `_config.yml`:
|
139
|
+
|
140
|
+
```yml
|
141
|
+
oscailte:
|
142
|
+
google_analytics: UA-NNNNNNNN-N
|
143
|
+
```
|
144
|
+
|
145
|
+
Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
|
146
|
+
Oscailte will also inform Google Analytics of your user's request for DNT.
|
147
|
+
|
148
|
+
### Enabling Excerpts on the Home Page
|
149
|
+
|
150
|
+
To display post-excerpts on the Home Page, simply add the following to your `_config.yml`:
|
151
|
+
|
152
|
+
```yaml
|
153
|
+
show_excerpts: true
|
154
|
+
```
|
155
|
+
|
156
|
+
## Customising Oscailte
|
157
|
+
|
158
|
+
### Site Colours
|
159
|
+
|
160
|
+
Oscailte makes extensive use of [CSS Custom Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/--*)
|
161
|
+
for various parts of its look and feel. A full list of the properties used throughout can
|
162
|
+
be found in [`/_sass/_oscailte.scss`](./_sass/_oscailte.scss#L40). _Some_ of these
|
163
|
+
properties are generated via SCSS (such as typography), but are still Custom Properties
|
164
|
+
in-browser (not Sass variables).
|
165
|
+
|
166
|
+
## Contributing
|
167
|
+
|
168
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/coogie/oscailte.
|
169
|
+
This project is intended to be a safe, welcoming space for collaboration, and contributors
|
170
|
+
are expected to adhere to the [Contributor Covenant](https://contributor-covenant.org)
|
171
|
+
code of conduct.
|
172
|
+
|
173
|
+
## License
|
174
|
+
|
175
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{%- if page.comments != false and site.disqus.shortname and jekyll.environment == "production" -%}
|
2
|
+
<section class="container">
|
3
|
+
<h1 class="SectionTitle">Comments</h1>
|
4
|
+
<div id="disqus_thread" class="Comments"></div>
|
5
|
+
<script>
|
6
|
+
var disqus_config = function () {
|
7
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
8
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
9
|
+
};
|
10
|
+
(function() {
|
11
|
+
var d = document, s = d.createElement('script');
|
12
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
13
|
+
s.setAttribute('data-timestamp', +new Date());
|
14
|
+
(d.head || d.body).appendChild(s);
|
15
|
+
})();
|
16
|
+
</script>
|
17
|
+
<noscript>
|
18
|
+
{{ disqus_enable_javascript }}
|
19
|
+
</noscript>
|
20
|
+
</section>
|
21
|
+
{%- endif -%}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<footer class="Site__footer o-circuited">
|
2
|
+
<div class="Container">
|
3
|
+
<p>
|
4
|
+
All content copyright {{ site.author }}<br>
|
5
|
+
<small class="o-muted">Powered by <a href="https://jekyllrb.com/">Jekyll</a>, themed with <a href="https://github.com/coogie/oscailte">Oscailte</a></small>.
|
6
|
+
</p>
|
7
|
+
|
8
|
+
{%- include social.html -%}
|
9
|
+
</div>
|
10
|
+
</footer>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{%- assign analyics_id = site.oscailte.google_analytics -%}
|
2
|
+
{%- if analyics_id and jekyll.environment == 'production' -%}
|
3
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ analyics_id }}"></script>
|
4
|
+
<script>
|
5
|
+
window['ga-disable-{{ analyics_id }}'] = window.OSCAILTE_DNT;
|
6
|
+
window.dataLayer = window.dataLayer || [];
|
7
|
+
function gtag(){dataLayer.push(arguments);}
|
8
|
+
gtag('js', new Date());
|
9
|
+
gtag('config', '{{ analyics_id }}');
|
10
|
+
</script>
|
11
|
+
{%- endif -%}
|
data/_includes/head.html
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="UTF-8">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
4
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
5
|
+
{% seo %}
|
6
|
+
{% feed_meta %}
|
7
|
+
<link rel="icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}">
|
8
|
+
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
|
9
|
+
<script>
|
10
|
+
window.OSCAILTE_DNT = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
|
11
|
+
</script>
|
12
|
+
</head>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<header class="Header">
|
2
|
+
<div class="Container">
|
3
|
+
{% if site.title %}
|
4
|
+
<h1 class="Header__title">
|
5
|
+
<a href="{{ site.url }}">
|
6
|
+
{{ site.title }}
|
7
|
+
{% if site.subtitle %}
|
8
|
+
<br>
|
9
|
+
<small class="Header__subtitle">{{ site.subtitle }}</small>
|
10
|
+
{% endif %}
|
11
|
+
</a>
|
12
|
+
</h1>
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
{% include navigation.html %}
|
16
|
+
</div>
|
17
|
+
</header>
|
data/_includes/hero.html
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
<section class="Hero o-circuited">
|
2
|
+
<div class="Hero__content Container">
|
3
|
+
{%- unless page.layout == 'post' or site.oscailte.social.github == nil -%}
|
4
|
+
{% avatar {{site.oscailte.social.github}} size=350 %}
|
5
|
+
{%- endunless -%}
|
6
|
+
|
7
|
+
<h1 class="Hero__title">
|
8
|
+
{{ include.title }}
|
9
|
+
</h1>
|
10
|
+
|
11
|
+
{% if include.meta %}
|
12
|
+
<div class="Hero__meta">
|
13
|
+
{{ include.meta }}
|
14
|
+
</div>
|
15
|
+
{% endif %}
|
16
|
+
</div>
|
17
|
+
</section>
|
data/_includes/icon.html
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
{%- assign default_paths = site.pages | map: "path" -%}
|
2
|
+
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
3
|
+
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
|
4
|
+
|
5
|
+
{%- if titles_size > 0 -%}
|
6
|
+
<nav class="Navigation">
|
7
|
+
<ul class="Navigation__items o-list-bare">
|
8
|
+
{%- for path in page_paths -%}
|
9
|
+
{%- assign nav_page = site.pages | where: "path", path | first -%}
|
10
|
+
{%- if nav_page.title -%}
|
11
|
+
<li class="Navigation__item{% if page.url == nav_page.url %} is-active{%endif%}">
|
12
|
+
<a class="Navigation__link" href="{{nav_page.url}}">{{nav_page.title | escape}}</a>
|
13
|
+
</li>
|
14
|
+
{%- endif -%}
|
15
|
+
{%- endfor -%}
|
16
|
+
</ul>
|
17
|
+
</nav>
|
18
|
+
{% endif %}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{%- assign social = site.oscailte.social -%}
|
2
|
+
|
3
|
+
<div class="Social">
|
4
|
+
<ul class="Social__list o-list-bare">
|
5
|
+
{%- if social.dribbble -%}<li class="Social__item Social__item--dribbble o-no-owl"><a class="Social__link" href="https://dribbble.com/{{ social.dribbble | cgi_escape | escape }}" title="{{ social.dribbble | escape }}"> {%- include icon.html icon="dribbble" -%} </a></li>{%- endif -%}
|
6
|
+
{%- if social.facebook -%}<li class="Social__item Social__item--facebook o-no-owl"><a class="Social__link" href="https://www.facebook.com/{{ social.facebook | cgi_escape | escape }}" title="{{ social.facebook | escape }}"> {%- include icon.html icon="facebook" -%} </a></li>{%- endif -%}
|
7
|
+
{%- if social.flickr -%}<li class="Social__item Social__item--flickr o-no-owl"><a class="Social__link" href="https://www.flickr.com/photos/{{ social.flickr | cgi_escape | escape }}" title="{{ social.flickr | escape }}"> {%- include icon.html icon="flickr" -%} </a></li>{%- endif -%}
|
8
|
+
{%- if social.github -%}<li class="Social__item Social__item--github o-no-owl"><a class="Social__link" href="https://github.com/{{ social.github | cgi_escape | escape }}" title="{{ social.github | escape }}"> {%- include icon.html icon="github" -%} </a></li>{%- endif -%}
|
9
|
+
{%- if social.instagram -%}<li class="Social__item Social__item--instagram o-no-owl"><a class="Social__link" href="https://www.instagram.com/{{ social.instagram | cgi_escape | escape }}" title="{{ social.instagram | escape }}"> {%- include icon.html icon="instagram" -%} </a></li>{%- endif -%}
|
10
|
+
{%- if social.keybase -%}<li class="Social__item Social__item--keybase o-no-owl"><a class="Social__link" href="https://keybase.io/{{ social.keybase | cgi_escape | escape }}" title="{{ social.keybase | escape }}"> {%- include icon.html icon="keybase" -%} </a></li>{%- endif -%}
|
11
|
+
{%- if social.linkedin -%}<li class="Social__item Social__item--linkedin o-no-owl"><a class="Social__link" href="https://www.linkedin.com/in/{{ social.linkedin | cgi_escape | escape }}" title="{{ social.linkedin | escape }}"> {%- include icon.html icon="linkedin" -%} </a></li>{%- endif -%}
|
12
|
+
{%- if social.pinterest -%}<li class="Social__item Social__item--pinterest o-no-owl"><a class="Social__link" href="https://www.pinterest.com/{{ social.pinterest | cgi_escape | escape }}" title="{{ social.pinterest | escape }}"> {%- include icon.html icon="pinterest" -%} </a></li>{%- endif -%}
|
13
|
+
{%- if social.telegram -%}<li class="Social__item Social__item--telegram o-no-owl"><a class="Social__link" href="https://t.me/{{ social.telegram | cgi_escape | escape }}" title="{{ social.telegram | escape }}"> {%- include icon.html icon="telegram" -%} </a></li>{%- endif -%}
|
14
|
+
{%- if social.twitter -%}<li class="Social__item Social__item--twitter o-no-owl"><a class="Social__link" href="https://twitter.com/{{ social.twitter | cgi_escape | escape }}" title="{{ social.twitter | escape }}"> {%- include icon.html icon="twitter" -%} </a></li>{%- endif -%}
|
15
|
+
{%- if social.rss -%}<li class="Social__item Social__item--rss o-no-owl"><a class="Social__link" href="{{ 'feed.xml' | relative_url }}" title="{{ social.rss | escape }}"> {%- include icon.html icon="rss" -%} </a></li>{%- endif -%}
|
16
|
+
</ul>
|
17
|
+
</div>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
{%- assign strings = site.oscailte.strings -%}
|
2
|
+
|
3
|
+
{%- assign skip_to_main_content = strings.skip_to_main_content | default: "Skip to main content" -%}
|
4
|
+
{%- assign x_minute_read = strings.x_minute_read | default: "$x$ minute read" -%}
|
5
|
+
{%- assign hero_title = strings.hero_title | default: "Welcome to Oscailte!<br> A powerful, clean, and responsive Jekyll theme." -%}
|
6
|
+
{%- assign recent_posts = strings.recent_posts | default: "Recent posts" -%}
|
7
|
+
{%- assign view_all = strings.view_all | default: "View all" -%}
|
8
|
+
{%- assign read_full = strings.read_full | default: "Read full" -%}
|
9
|
+
{%- assign disqus_enable_javascript = strings.disqus_enable_javascript | default: 'Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus</a>.' -%}
|
data/_layouts/core.html
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: 'en' }}">
|
3
|
+
{%- include strings.html -%}
|
4
|
+
|
5
|
+
{%- include head.html -%}
|
6
|
+
|
7
|
+
{%- capture body_modifier -%}
|
8
|
+
{%- if page.body_modifier -%}
|
9
|
+
{{ page.body_modifier }}
|
10
|
+
{%- else -%}
|
11
|
+
{{ page.layout }}
|
12
|
+
{%- endif -%}
|
13
|
+
{%- endcapture -%}
|
14
|
+
|
15
|
+
<body class="Site {% if body_modifier != '' %}Site--{{ body_modifier }}{% endif %}">
|
16
|
+
{%- include header.html -%}
|
17
|
+
|
18
|
+
<a href="#main-content" class="SkipNav" tabindex="1">{{ skip_to_main_content }}</a>
|
19
|
+
|
20
|
+
<main class="Site__main o-no-owl" id="main-content">
|
21
|
+
{{ content }}
|
22
|
+
</main>
|
23
|
+
|
24
|
+
{%- include footer.html -%}
|
25
|
+
|
26
|
+
{%- include google-analytics.html -%}
|
27
|
+
</body>
|
28
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
layout: core
|
3
|
+
---
|
4
|
+
{%- include strings.html -%}
|
5
|
+
|
6
|
+
{%- include hero.html title=hero_title -%}
|
7
|
+
|
8
|
+
<section class="Container">
|
9
|
+
{{ content }}
|
10
|
+
|
11
|
+
{%- if site.posts.size > 0 -%}
|
12
|
+
<aside class="RecentPosts">
|
13
|
+
<h2 class="RecentPosts__title">{{ recent_posts }}</h2>
|
14
|
+
{%- if site.oscailte.posts_url -%}
|
15
|
+
<small>
|
16
|
+
<a class="RecentPosts__all" href="{{ site.oscailte.posts_url | relative_url }}">
|
17
|
+
{{ view_all }}
|
18
|
+
</a>
|
19
|
+
</small>
|
20
|
+
{%- endif -%}
|
21
|
+
<ul class="RecentPosts__list o-list-bare">
|
22
|
+
{%- for post in site.posts limit: 6 -%}
|
23
|
+
<li class="RecentPosts__item Card o-no-owl">
|
24
|
+
{%- assign date_format = site.oscailte.date_format | default: "%b %-d, %Y" -%}
|
25
|
+
<h3 class="Card__title">
|
26
|
+
<a class="RecentPosts__link" href="{{ post.url | relative_url }}">
|
27
|
+
{{ post.title | escape }}
|
28
|
+
</a>
|
29
|
+
</h3>
|
30
|
+
<small class="Card__meta o-no-owl o-muted">
|
31
|
+
{%- include icon.html icon="calendar" -%} {{ post.date | date: date_format }}
|
32
|
+
</small>
|
33
|
+
{%- if site.show_excerpts -%}
|
34
|
+
<div class="RecentPosts__excerpt o-no-owl">
|
35
|
+
{{ post.excerpt }}
|
36
|
+
</div>
|
37
|
+
{%- endif -%}
|
38
|
+
<a class="Button" href="{{ post.url | relative_url }}">{{ read_full }}</a>
|
39
|
+
</li>
|
40
|
+
{%- endfor -%}
|
41
|
+
</ul>
|
42
|
+
</aside>
|
43
|
+
{%- endif -%}
|
44
|
+
</section>
|