scoobr 0.1.1
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 +48 -0
- data/_includes/footer.html +19 -0
- data/_includes/form-box.html +5 -0
- data/_includes/head.html +26 -0
- data/_includes/mailchimp-form.html +4 -0
- data/_includes/navigation.html +19 -0
- data/_includes/social-icon.html +28 -0
- data/_layouts/default.html +18 -0
- data/_layouts/home.html +41 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +48 -0
- data/_sass/base/_mixins.scss +16 -0
- data/_sass/base/_normalize.scss +468 -0
- data/_sass/base/_reset.scss +18 -0
- data/_sass/base/_variables.scss +134 -0
- data/_sass/components/_buttons.scss +104 -0
- data/_sass/components/_forms.scss +115 -0
- data/_sass/components/_grid.scss +51 -0
- data/_sass/components/_helpers.scss +148 -0
- data/_sass/components/_layout.scss +178 -0
- data/_sass/components/_navigation.scss +25 -0
- data/_sass/components/_scaffolding.scss +235 -0
- data/_sass/components/_tables.scss +51 -0
- data/assets/main.scss +24 -0
- data/assets/pattern.svg +1 -0
- data/assets/thumbnail.svg +15 -0
- metadata +113 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 44eb528c2e4e0cdd2c985900f443bd69896f7bba
|
4
|
+
data.tar.gz: bcd5495d2dd2d2eaab75b644cdbc9155083585c7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fecbf5f534e1e78e96093bbffb3b3c1093dc961bcc9bd4bbf5f04108e16ec3f60d182135d4306600efe310fbff25d088e4e6061ba1235466a01920f6a640639d
|
7
|
+
data.tar.gz: b85dafad80f07a34792aec0e9b4ba1fa3166513cc9f8862cc59c9f72ab99e88432ca6d38e1c6d9de49036dcf30a2be47ea7653b85704a6a7314480200b568e4c
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Jon
|
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,48 @@
|
|
1
|
+
# scoobr
|
2
|
+
|
3
|
+
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes` and your sass in `_sass`. To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your Jekyll site's `Gemfile`:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem "scoobr"
|
13
|
+
```
|
14
|
+
|
15
|
+
And add this line to your Jekyll site's `_config.yml`:
|
16
|
+
|
17
|
+
```yaml
|
18
|
+
theme: scoobr
|
19
|
+
```
|
20
|
+
|
21
|
+
And then execute:
|
22
|
+
|
23
|
+
$ bundle
|
24
|
+
|
25
|
+
Or install it yourself as:
|
26
|
+
|
27
|
+
$ gem install scoobr
|
28
|
+
|
29
|
+
## Usage
|
30
|
+
|
31
|
+
TODO: Write usage instructions here. Describe your available layouts, includes, and/or sass.
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. 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.
|
36
|
+
|
37
|
+
## Development
|
38
|
+
|
39
|
+
To set up your environment to develop this theme, run `bundle install`.
|
40
|
+
|
41
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
42
|
+
|
43
|
+
When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
|
44
|
+
|
45
|
+
## License
|
46
|
+
|
47
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
48
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<footer class="main-footer">
|
2
|
+
|
3
|
+
<div class="small-container">
|
4
|
+
|
5
|
+
<div class="footer-social flex-small">
|
6
|
+
{{ site.data.footer.social_markdown | markdownify }}
|
7
|
+
<div class="social-icons">
|
8
|
+
{% for social_icon in site.data.footer.social_icons %}
|
9
|
+
<a href="{{ social_icon.link }}">{% include social-icon.html %}</a>
|
10
|
+
{% endfor %}
|
11
|
+
</div>
|
12
|
+
<p>Theme built by <a href="https://jonp.io">Jon Persson</a>.</p>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="footer-disclaimer flex-large">
|
16
|
+
{{ site.data.footer.disclaimer_markdown | markdownify }}
|
17
|
+
</div>
|
18
|
+
|
19
|
+
</footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,26 @@
|
|
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
|
+
|
6
|
+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
|
7
|
+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
10
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
11
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
12
|
+
|
13
|
+
{% if jekyll.environment == 'production' and site.google_analytics %}
|
14
|
+
{% include google-analytics.html %}
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
<!-- JQuery and Icon Package -->
|
18
|
+
<script
|
19
|
+
src="https://code.jquery.com/jquery-3.1.1.min.js"
|
20
|
+
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
|
21
|
+
crossorigin="anonymous"></script>
|
22
|
+
|
23
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/evil-icons/1.9.0/evil-icons.min.css">
|
24
|
+
<script src="https://cdn.jsdelivr.net/evil-icons/1.9.0/evil-icons.min.js"></script>
|
25
|
+
|
26
|
+
</head>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<nav class="main-navigation">
|
2
|
+
|
3
|
+
<a class="screen-reader-text" href="#content">Skip Navigation</a>
|
4
|
+
|
5
|
+
<div class="container">
|
6
|
+
|
7
|
+
<a class="site-title" href="{{ site.url }}">{{ site.title }}</a>
|
8
|
+
|
9
|
+
<div class="navigation-links">
|
10
|
+
|
11
|
+
{% for item in site.data.navigation %}
|
12
|
+
<a href="{{ item.link }}" {% if item.link == page.url %}class="active"{% endif %}>{{ item.name }}</a>
|
13
|
+
{% endfor %}
|
14
|
+
|
15
|
+
</div>
|
16
|
+
|
17
|
+
</div>
|
18
|
+
|
19
|
+
</nav>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{% case social_icon.name %}
|
2
|
+
{% when "Facebook" %}
|
3
|
+
<svg class="social-icon facebook" fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M19,4V7H17A1,1 0 0,0 16,8V10H19V13H16V20H13V13H11V10H13V7.5C13,5.56 14.57,4 16.5,4M20,2H4A2,2 0 0,0 2,4V20A2,2 0 0,0 4,22H20A2,2 0 0,0 22,20V4C22,2.89 21.1,2 20,2Z" /></svg>
|
4
|
+
{% when "Facebook2" %}
|
5
|
+
<svg class="social-icon facebook" xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="15.8 15.8 25 25"><path d="M32.8 24.7h-3.2v-2.1c0-0.8 0.5-1 0.9-1s2.3 0 2.3 0v-3.5l-3.1 0c-3.5 0-4.3 2.6-4.3 4.3v2.3h-2v3.6h2c0 4.6 0 10.2 0 10.2h4.2c0 0 0-5.6 0-10.2h2.8L32.8 24.7z"/></svg>
|
6
|
+
{% when "Google Plus" %}
|
7
|
+
<svg class="social-icon google-plus" fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M23,11H21V9H19V11H17V13H19V15H21V13H23M8,11V13.4H12C11.8,14.4 10.8,16.4 8,16.4C5.6,16.4 3.7,14.4 3.7,12C3.7,9.6 5.6,7.6 8,7.6C9.4,7.6 10.3,8.2 10.8,8.7L12.7,6.9C11.5,5.7 9.9,5 8,5C4.1,5 1,8.1 1,12C1,15.9 4.1,19 8,19C12,19 14.7,16.2 14.7,12.2C14.7,11.7 14.7,11.4 14.6,11H8Z" /></svg>
|
8
|
+
{% when "Instagram" %}
|
9
|
+
<svg class="social-icon instagram" fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7.8,2H16.2C19.4,2 22,4.6 22,7.8V16.2A5.8,5.8 0 0,1 16.2,22H7.8C4.6,22 2,19.4 2,16.2V7.8A5.8,5.8 0 0,1 7.8,2M7.6,4A3.6,3.6 0 0,0 4,7.6V16.4C4,18.39 5.61,20 7.6,20H16.4A3.6,3.6 0 0,0 20,16.4V7.6C20,5.61 18.39,4 16.4,4H7.6M17.25,5.5A1.25,1.25 0 0,1 18.5,6.75A1.25,1.25 0 0,1 17.25,8A1.25,1.25 0 0,1 16,6.75A1.25,1.25 0 0,1 17.25,5.5M12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9Z" /></svg>
|
10
|
+
{% when "LinkedIn" %}
|
11
|
+
<svg class="social-icon linkedin" fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M19,19H16V13.7A1.5,1.5 0 0,0 14.5,12.2A1.5,1.5 0 0,0 13,13.7V19H10V10H13V11.2C13.5,10.36 14.59,9.8 15.5,9.8A3.5,3.5 0 0,1 19,13.3M6.5,8.31C5.5,8.31 4.69,7.5 4.69,6.5A1.81,1.81 0 0,1 6.5,4.69C7.5,4.69 8.31,5.5 8.31,6.5A1.81,1.81 0 0,1 6.5,8.31M8,19H5V10H8M20,2H4C2.89,2 2,2.89 2,4V20A2,2 0 0,0 4,22H20A2,2 0 0,0 22,20V4C22,2.89 21.1,2 20,2Z" /></svg>
|
12
|
+
{% when "Pinterest" %}
|
13
|
+
<svg class="social-icon pinterest" fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M13,16.2C12.2,16.2 11.43,15.86 10.88,15.28L9.93,18.5L9.86,18.69L9.83,18.67C9.64,19 9.29,19.2 8.9,19.2C8.29,19.2 7.8,18.71 7.8,18.1C7.8,18.05 7.81,18 7.81,17.95H7.8L7.85,17.77L9.7,12.21C9.7,12.21 9.5,11.59 9.5,10.73C9.5,9 10.42,8.5 11.16,8.5C11.91,8.5 12.58,8.76 12.58,9.81C12.58,11.15 11.69,11.84 11.69,12.81C11.69,13.55 12.29,14.16 13.03,14.16C15.37,14.16 16.2,12.4 16.2,10.75C16.2,8.57 14.32,6.8 12,6.8C9.68,6.8 7.8,8.57 7.8,10.75C7.8,11.42 8,12.09 8.34,12.68C8.43,12.84 8.5,13 8.5,13.2A1,1 0 0,1 7.5,14.2C7.13,14.2 6.79,14 6.62,13.7C6.08,12.81 5.8,11.79 5.8,10.75C5.8,7.47 8.58,4.8 12,4.8C15.42,4.8 18.2,7.47 18.2,10.75C18.2,13.37 16.57,16.2 13,16.2M20,2H4C2.89,2 2,2.89 2,4V20A2,2 0 0,0 4,22H20A2,2 0 0,0 22,20V4C22,2.89 21.1,2 20,2Z" /></svg>
|
14
|
+
{% when "Tumblr" %}
|
15
|
+
<svg class="social-icon tumblr" fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M16,11H13V14.9C13,15.63 13.14,16 14.1,16H16V19C16,19 14.97,19.1 13.9,19.1C11.25,19.1 10,17.5 10,15.7V11H8V8.2C10.41,8 10.62,6.16 10.8,5H13V8H16M20,2H4C2.89,2 2,2.89 2,4V20A2,2 0 0,0 4,22H20A2,2 0 0,0 22,20V4C22,2.89 21.1,2 20,2Z" /></svg>
|
16
|
+
{% when "Twitter" %}
|
17
|
+
<svg class="social-icon twitter" fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M22.46,6C21.69,6.35 20.86,6.58 20,6.69C20.88,6.16 21.56,5.32 21.88,4.31C21.05,4.81 20.13,5.16 19.16,5.36C18.37,4.5 17.26,4 16,4C13.65,4 11.73,5.92 11.73,8.29C11.73,8.63 11.77,8.96 11.84,9.27C8.28,9.09 5.11,7.38 3,4.79C2.63,5.42 2.42,6.16 2.42,6.94C2.42,8.43 3.17,9.75 4.33,10.5C3.62,10.5 2.96,10.3 2.38,10C2.38,10 2.38,10 2.38,10.03C2.38,12.11 3.86,13.85 5.82,14.24C5.46,14.34 5.08,14.39 4.69,14.39C4.42,14.39 4.15,14.36 3.89,14.31C4.43,16 6,17.26 7.89,17.29C6.43,18.45 4.58,19.13 2.56,19.13C2.22,19.13 1.88,19.11 1.54,19.07C3.44,20.29 5.7,21 8.12,21C16,21 20.33,14.46 20.33,8.79C20.33,8.6 20.33,8.42 20.32,8.23C21.16,7.63 21.88,6.87 22.46,6Z" /></svg>
|
18
|
+
{% when "YouTube" %}
|
19
|
+
<svg class="social-icon youtube" fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M10,16.5V7.5L16,12M20,4.4C19.4,4.2 15.7,4 12,4C8.3,4 4.6,4.19 4,4.38C2.44,4.9 2,8.4 2,12C2,15.59 2.44,19.1 4,19.61C4.6,19.81 8.3,20 12,20C15.7,20 19.4,19.81 20,19.61C21.56,19.1 22,15.59 22,12C22,8.4 21.56,4.91 20,4.4Z" /></svg>
|
20
|
+
{% when "Hacker News" %}
|
21
|
+
<svg class="social-icon hacker-news" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18.8 3.3c-0.4 0.8-5.6 11.1-5.6 11.2 0 2 0 6.2 0 6.2 -0.1 0-2.2 0-2.3 0 0 0 0-5.9 0-6.2 0 0-5.5-10.9-5.6-11.1C5.3 3.3 5.3 3.3 5.3 3.3 5.3 3.3 5.3 3.3 5.3 3.3c0 0 0 0 0.1 0 0.9 0 1.7 0 2.6 0 0 0 0 0 0 0.1 0.1 0.1 4 8.3 4.1 8.3 0 0 4.2-8.3 4.3-8.4 0.8 0 1.6 0 2.4 0 0 0 0 0 0 0C18.8 3.3 18.8 3.3 18.8 3.3z"/></svg>
|
22
|
+
{% when "Designer News" %}
|
23
|
+
<svg class="social-icon designer-news" xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="285.1 408.4 25 25"><path d="M297 420.9c0-3.4-2.1-5.6-6-5.6h-3.9v11.3h4C294.9 426.6 297 424.3 297 420.9L297 420.9zM294.2 420.9c0 2.4-1.2 3.5-3.2 3.5h-1v-6.9h1C292.9 417.5 294.2 418.6 294.2 420.9zM308.1 426.6v-11.3h-2.6v6.3l-4.2-6.3h-2.7v11.3h2.6v-6.8l4.4 6.7h2.4V426.6z"/></svg>
|
24
|
+
{% when "RSS" %}
|
25
|
+
<svg class="social-icon" fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z"/></svg>
|
26
|
+
{% when "Email" %}
|
27
|
+
<svg class="social-icon" fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
|
28
|
+
{% endcase %}
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<header class="text-center vertical-center home-header">
|
6
|
+
|
7
|
+
<div class="small-container">
|
8
|
+
|
9
|
+
<h2 class="no-margin-top">One morning, when Gregor Samsa woke from troubled dreams.</h2>
|
10
|
+
|
11
|
+
<p>Ulysses, Ulysses - Soaring through all the galaxies. In search of Earth, flying in to the night. Ulysses, Ulysses - Fighting evil and tyranny, with all his power, and with all of his might. Ulysses - no-one else can do the things you do. Ulysses - like a bolt of thunder from the blue.</p>
|
12
|
+
|
13
|
+
<div class="mailchimp-form">
|
14
|
+
<input type="text" name="EMAIL" placeholder="Email address">
|
15
|
+
<input type="submit" value="Sign up">
|
16
|
+
</div>
|
17
|
+
|
18
|
+
</div>
|
19
|
+
|
20
|
+
</header>
|
21
|
+
|
22
|
+
<section class="posts overlap">
|
23
|
+
|
24
|
+
<div class="container">
|
25
|
+
|
26
|
+
{% assign posts = site.posts %}
|
27
|
+
{% for item in posts %}
|
28
|
+
<article class="cell">
|
29
|
+
<a href="{{ item.url }}">
|
30
|
+
<img class="thumbnail-image" src=" {{ item.thumbnail_image | default: "assets/thumbnail.svg" }}" alt="{{ item.title }}">
|
31
|
+
</a>
|
32
|
+
<div class="container">
|
33
|
+
<h3><a class="title-link" href="{{ item.url }}">{{ item.title }}</a></h3>
|
34
|
+
{{ item.excerpt | truncatewords: 45 }}
|
35
|
+
</div>
|
36
|
+
</article>
|
37
|
+
{% endfor %}
|
38
|
+
|
39
|
+
</div>
|
40
|
+
|
41
|
+
</section>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<header class="vertical-center post-header"{% if page.thumbnail %} style="background-image: url({{ page.thumbnail }});"{% endif %}>
|
5
|
+
|
6
|
+
<div class="small-container no-side-padding">
|
7
|
+
<h2>{{ page.title }}</h2>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
</header>
|
11
|
+
|
12
|
+
<article class="small-container overlap post-content">
|
13
|
+
{{ content }}
|
14
|
+
{% include form-box.html %}
|
15
|
+
</article>
|
16
|
+
|
17
|
+
<section class="after-post">
|
18
|
+
<h3 class="text-center">Related posts</h3>
|
19
|
+
|
20
|
+
<div class="posts">
|
21
|
+
<div class="container">
|
22
|
+
|
23
|
+
{% assign posts = site.posts %}
|
24
|
+
{% for item in posts %}
|
25
|
+
<article class="cell">
|
26
|
+
<a href="{{ item.url }}">
|
27
|
+
<img class="thumbnail-image" src=" {{ item.thumbnail_image | default: "/assets/thumbnail.svg" }}" alt="{{ item.title }}">
|
28
|
+
</a>
|
29
|
+
<div class="container">
|
30
|
+
<h5><a class="title-link" href="{{ item.url }}">{{ item.title }}</a></h5>
|
31
|
+
</div>
|
32
|
+
</article>
|
33
|
+
{% endfor %}
|
34
|
+
{% for item in posts | limit: 1 %}
|
35
|
+
<article class="cell">
|
36
|
+
<a href="{{ item.url }}">
|
37
|
+
<img class="thumbnail-image" src=" {{ item.thumbnail_image | default: "/assets/thumbnail.svg" }}" alt="{{ item.title }}">
|
38
|
+
</a>
|
39
|
+
<div class="container">
|
40
|
+
<h5><a class="title-link" href="{{ item.url }}">{{ item.title }}</a></h5>
|
41
|
+
</div>
|
42
|
+
</article>
|
43
|
+
{% endfor %}
|
44
|
+
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
</section>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/* Mixins
|
2
|
+
=============== */
|
3
|
+
|
4
|
+
// Media query for mobile first layout
|
5
|
+
@mixin small-breakpoint {
|
6
|
+
@media (min-width: #{$mobile}) {
|
7
|
+
@content;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
// Break on desktop
|
12
|
+
@mixin large-breakpoint {
|
13
|
+
@media (min-width: #{$desktop}) {
|
14
|
+
@content;
|
15
|
+
}
|
16
|
+
}
|