fortyone-jekyll-theme 1.0.4 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -6
- data/_includes/_home_tile.html +15 -0
- data/_includes/_home_tiles.html +17 -0
- data/_includes/_landing_downlighted_item.html +19 -0
- data/_includes/_landing_highlighted_item.html +27 -0
- data/_includes/_landing_item.html +27 -0
- data/_includes/_nav_footer.html +71 -0
- data/_includes/_nav_menu.html +50 -0
- data/_includes/footer.html +16 -53
- data/_includes/header.html +2 -48
- data/_layouts/allposts.html +5 -1
- data/_layouts/categories.html +66 -0
- data/_layouts/collection.html +31 -0
- data/_layouts/default.html +27 -0
- data/_layouts/home.html +50 -64
- data/_layouts/landing.html +33 -30
- data/_layouts/page.html +4 -19
- data/_layouts/post.html +21 -35
- data/_sass/layout/_footer.scss +2 -0
- metadata +13 -4
- data/_includes/tiles.html +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0745695a72f470a4ecdb96a47d18cc388826a28
|
4
|
+
data.tar.gz: 9d5df664b3d5a9ac97ddcbf64234c56e61658b6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34aef93226de5e4be6caec6d04613fce556e2f275559e225428091c6a96d547352afbd73fb9259cfb93449d7f0ca6085762044bcae4eccc10d8d0dd95a3315a5
|
7
|
+
data.tar.gz: 74ccd61cce5f6a0ff8198e85b63401f92f4e37ea525fc7e37dee63e16510452d1059c0bb36fe3dde47035021c46a9a8d44cc152cc22edea9066f20710c66538e
|
data/README.md
CHANGED
@@ -8,7 +8,8 @@ Add to your `Gemfile`:
|
|
8
8
|
|
9
9
|
```
|
10
10
|
gem 'fortyone-jekyll-theme'
|
11
|
-
|
11
|
+
|
12
|
+
```
|
12
13
|
|
13
14
|
and to `_config.yml`:
|
14
15
|
|
@@ -20,11 +21,21 @@ theme: fortyone-jekyll-theme
|
|
20
21
|
|
21
22
|
## [FortyOne Demo](https://agustibr.gitlab.io/fortyone-jekyll-theme/)
|
22
23
|
|
23
|
-
+
|
24
|
-
+
|
25
|
-
+
|
26
|
-
+
|
27
|
-
+ `
|
24
|
+
+ layouts:
|
25
|
+
+ `landing` list items from a collection
|
26
|
+
+ `alltags` listing all tags of the site, with related posts
|
27
|
+
+ `categories` listing all categories of the site, with related posts
|
28
|
+
+ `allposts` listing posts in a chronological order
|
29
|
+
+ `collection` listing all contents of a given collection
|
30
|
+
+ `post` with pagination to navigate through posts
|
31
|
+
+ `page` generic template
|
32
|
+
+ `home` with tiles from pages,or posts, or collections. (setup in _config.yml or in the page front matter)
|
33
|
+
+ `default` the base template of all layouts
|
34
|
+
+ navs:
|
35
|
+
+ `nav_menu`, use `nav-menu: true` in the front matter
|
36
|
+
+ `nav_footer`, use `nav-footer: true` in the front matter
|
37
|
+
+ [Customize the theme's Sass](https://help.github.com/articles/customizing-css-and-html-in-your-jekyll-theme/#customizing-your-jekyll-themes-css)
|
38
|
+
with `sass` variables easily overriden, just set them before `@import "{{ site.theme }}";` [_sass/libs/_vars.scss](https://gitlab.com/agustibr/fortyone-jekyll-theme/blob/master/_sass/libs/_vars.scss)
|
28
39
|
|
29
40
|
# Credits
|
30
41
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<article>
|
2
|
+
<span class="image">
|
3
|
+
<img src="{{ include.item.image | absolute_url }}" alt="" />
|
4
|
+
</span>
|
5
|
+
|
6
|
+
<header class="major">
|
7
|
+
<h3>
|
8
|
+
<a href="{{ include.item.url | absolute_url }}" class="link">
|
9
|
+
{{ include.item.title }}
|
10
|
+
</a>
|
11
|
+
</h3>
|
12
|
+
|
13
|
+
<p>{{ include.item.description }}</p>
|
14
|
+
</header>
|
15
|
+
</article>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{% assign tiles_source = page.tiles-source || site.tiles-source %}
|
2
|
+
{% assign tiles_count = page.tiles-count || site.tiles-count %}
|
3
|
+
|
4
|
+
{% assign collection = site.collections | where: "label", tiles_source | first %}
|
5
|
+
{% assign items = collection.docs | limit:tiles_count %}
|
6
|
+
|
7
|
+
<section id="one" class="tiles">
|
8
|
+
{% if site.tiles-source == 'pages' %}
|
9
|
+
{% for page in site.pages limit:tiles_count %}
|
10
|
+
{% include _home_tile.html item= page %}
|
11
|
+
{% endfor %}
|
12
|
+
{% else %}
|
13
|
+
{% for item in items %}
|
14
|
+
{% include _home_tile.html item= item %}
|
15
|
+
{% endfor %}
|
16
|
+
{% endif %}
|
17
|
+
</section>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<section id="three">
|
2
|
+
<div class="inner">
|
3
|
+
<header class="major">
|
4
|
+
<h2>{{ include.item.title }}</h2>
|
5
|
+
</header>
|
6
|
+
|
7
|
+
{{ include.item.content | markdownify }}
|
8
|
+
|
9
|
+
{% if include.item.link_url %}
|
10
|
+
<ul class="actions">
|
11
|
+
<li>
|
12
|
+
<a href="{{ include.item.link_url }}" class="button">
|
13
|
+
{{ include.item.link_text }}
|
14
|
+
</a>
|
15
|
+
</li>
|
16
|
+
</ul>
|
17
|
+
{% endif %}
|
18
|
+
</div>
|
19
|
+
</section>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<section id="banner" class="style{{ page.style }}">
|
2
|
+
<div class="inner">
|
3
|
+
{% if include.item.image %}
|
4
|
+
<span class="image">
|
5
|
+
<img src="{{ include.item.image | absolute_url }}" alt=""/>
|
6
|
+
</span>
|
7
|
+
{% endif %}
|
8
|
+
|
9
|
+
<header class="major">
|
10
|
+
<h1>{{ include.item.title }}</h1>
|
11
|
+
</header>
|
12
|
+
|
13
|
+
<div class="content">
|
14
|
+
{{ include.item.content | markdownify }}
|
15
|
+
|
16
|
+
{% if include.item.link_url %}
|
17
|
+
<ul class="actions">
|
18
|
+
<li>
|
19
|
+
<a href="{{ include.item.link_url }}" class="button">
|
20
|
+
{{ include.item.link_text }}
|
21
|
+
</a>
|
22
|
+
</li>
|
23
|
+
</ul>
|
24
|
+
{% endif %}
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
</section>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<section>
|
2
|
+
{% if include.item.image %}
|
3
|
+
<a href="{{ include.item.link_url || '#' }}" class="image">
|
4
|
+
<img src="{{ include.item.image | absolute_url }}" alt="" data-position="center center" />
|
5
|
+
</a>
|
6
|
+
{% endif %}
|
7
|
+
|
8
|
+
<div class="content">
|
9
|
+
<div class="inner">
|
10
|
+
<header class="major">
|
11
|
+
<h3>{{ include.item.title }}</h3>
|
12
|
+
</header>
|
13
|
+
|
14
|
+
{{ include.item.content | markdownify }}
|
15
|
+
|
16
|
+
{% if include.item.link_url %}
|
17
|
+
<ul class="actions">
|
18
|
+
<li>
|
19
|
+
<a href="{{ include.item.link_url }}" class="button">
|
20
|
+
{{ include.item.link_text }}
|
21
|
+
</a>
|
22
|
+
</li>
|
23
|
+
</ul>
|
24
|
+
{% endif %}
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
</section>
|
@@ -0,0 +1,71 @@
|
|
1
|
+
{% assign menu_links = site.pages | where: "nav-footer", true | sort: 'order' %}
|
2
|
+
|
3
|
+
<!-- Footer -->
|
4
|
+
<footer id="footer">
|
5
|
+
<div class="inner">
|
6
|
+
<ul class="icons">
|
7
|
+
{% if site.twitter_url %}
|
8
|
+
<li><a href="{{ site.twitter_url }}" class="icon alt fa-twitter" target="_blank"><span class="label">Twitter</span></a></li>
|
9
|
+
{% endif %}
|
10
|
+
|
11
|
+
{% if site.googleplus_url %}
|
12
|
+
<li><a href="{{ site.googleplus_url }}" class="icon alt fa-google-plus" target="_blank"><span class="label">Google+</span></a></li>
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
{% if site.facebook_url %}
|
16
|
+
<li><a href="{{ site.facebook_url }}" class="icon alt fa-facebook" target="_blank"><span class="label">Facebook</span></a></li>
|
17
|
+
{% endif %}
|
18
|
+
|
19
|
+
{% if site.instagram_url %}
|
20
|
+
<li><a href="{{ site.instagram_url }}" class="icon alt fa-instagram" target="_blank"><span class="label">Instagram</span></a></li>
|
21
|
+
{% endif %}
|
22
|
+
|
23
|
+
{% if site.pinterest_url %}
|
24
|
+
<li><a href="{{ site.pinterest_url }}" class="icon alt fa-pinterest" target="_blank"><span class="label">Pinterest</span></a></li>
|
25
|
+
{% endif %}
|
26
|
+
|
27
|
+
{% if site.500px_url %}
|
28
|
+
<li><a href="{{ site.500px_url }}" class="icon alt fa-500px" target="_blank"><span class="label">500px</span></a></li>
|
29
|
+
{% endif %}
|
30
|
+
|
31
|
+
{% if site.gitlab_url %}
|
32
|
+
<li><a href="{{ site.gitlab_url }}" class="icon alt fa-gitlab" target="_blank"><span class="label">GitLab</span></a></li>
|
33
|
+
{% endif %}
|
34
|
+
|
35
|
+
{% if site.github_url %}
|
36
|
+
<li><a href="{{ site.github_url }}" class="icon alt fa-github" target="_blank"><span class="label">GitHub</span></a></li>
|
37
|
+
{% endif %}
|
38
|
+
|
39
|
+
{% if site.slack_url %}
|
40
|
+
<li><a href="{{ site.slack_url }}" class="icon alt fa-slack" target="_blank"><span class="label">Slack</span></a></li>
|
41
|
+
{% endif %}
|
42
|
+
|
43
|
+
{% if site.linkedin_url %}
|
44
|
+
<li><a href="{{ site.linkedin_url }}" class="icon alt fa-linkedin" target="_blank"><span class="label">LinkedIn</span></a></li>
|
45
|
+
{% endif %}
|
46
|
+
</ul>
|
47
|
+
|
48
|
+
{% if menu_links %}
|
49
|
+
<ul class="">
|
50
|
+
{% for link in menu_links %}
|
51
|
+
{% if link.title %}
|
52
|
+
<li>
|
53
|
+
<a href="{{ link.url | relative_url }}">
|
54
|
+
{{ link.title }}
|
55
|
+
</a>
|
56
|
+
</li>
|
57
|
+
{% endif %}
|
58
|
+
{% endfor %}
|
59
|
+
</ul>
|
60
|
+
{% endif %}
|
61
|
+
|
62
|
+
<ul class="copyright">
|
63
|
+
<li>© {{ site.title }} {{ site.subtitle }}</li>
|
64
|
+
<li>Design: <a href="https://html5up.net" target="_blank">HTML5 UP</a></li>
|
65
|
+
<li>Jekyll integration: <a href="http://andrewbanchi.ch" target="_blank">Andrew Banchich</a>, <a href="http://agusti.cat" target="_blank">Agustí B.R.</a></li>
|
66
|
+
|
67
|
+
</ul>
|
68
|
+
|
69
|
+
|
70
|
+
</div>
|
71
|
+
</footer>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
{% assign menu_home = site.pages | where: "layout", "home" | first %}
|
2
|
+
{% assign menu_links = site.pages | where: "nav-menu", true | sort: 'order' %}
|
3
|
+
{% assign menu_cta_links = site.pages | where: "nav-menu-cta", true | sort: 'order' %}
|
4
|
+
|
5
|
+
<!-- Menu -->
|
6
|
+
<nav id="menu">
|
7
|
+
{% if menu_home %}
|
8
|
+
<ul class="actions vertical">
|
9
|
+
<li>
|
10
|
+
<a href="{{ menu_home.url }}" class="button special fit small">
|
11
|
+
{{ menu_home.title }}
|
12
|
+
</a>
|
13
|
+
</li>
|
14
|
+
</ul>
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
{% if menu_links %}
|
18
|
+
<ul class="links">
|
19
|
+
{% for link in menu_links %}
|
20
|
+
{% if link.title %}
|
21
|
+
<li>
|
22
|
+
<a href="{{ link.url | relative_url }}">
|
23
|
+
{{ link.title }}
|
24
|
+
</a>
|
25
|
+
</li>
|
26
|
+
{% endif %}
|
27
|
+
{% endfor %}
|
28
|
+
</ul>
|
29
|
+
{% endif %}
|
30
|
+
|
31
|
+
{% if menu_cta_links or site.nav-menu-cta %}
|
32
|
+
<ul class="actions vertical">
|
33
|
+
{% for link in menu_cta_links %}
|
34
|
+
<li>
|
35
|
+
<a href="{{ link.url | relative_url }}" class="button fit">
|
36
|
+
{{ link.title }}
|
37
|
+
</a>
|
38
|
+
</li>
|
39
|
+
{% endfor %}
|
40
|
+
|
41
|
+
{% for link in site.nav-menu-cta %}
|
42
|
+
<li>
|
43
|
+
<a href="{{ link.url | relative_url }}" class="button fit">
|
44
|
+
{{ link.title }}
|
45
|
+
</a>
|
46
|
+
</li>
|
47
|
+
{% endfor %}
|
48
|
+
</ul>
|
49
|
+
{% endif %}
|
50
|
+
</nav>
|
data/_includes/footer.html
CHANGED
@@ -2,6 +2,21 @@
|
|
2
2
|
<section id="contact">
|
3
3
|
<div class="inner">
|
4
4
|
<section>
|
5
|
+
{% if site.data.labels.contact.title %}
|
6
|
+
<h3>
|
7
|
+
{% include _t.html
|
8
|
+
label = site.data.labels.contact.title
|
9
|
+
fallback = 'Contact' %}
|
10
|
+
</h3>
|
11
|
+
{% endif %}
|
12
|
+
|
13
|
+
{% if site.data.labels.contact.description %}
|
14
|
+
<p>
|
15
|
+
{% include _t.html
|
16
|
+
label = site.data.labels.contact.description
|
17
|
+
fallback = '' %}
|
18
|
+
</p>
|
19
|
+
{% endif %}
|
5
20
|
<form method="POST" action="https://formspree.io/{{ site.email }}">
|
6
21
|
<div class="field half first">
|
7
22
|
<label for="name">
|
@@ -103,59 +118,7 @@
|
|
103
118
|
</div>
|
104
119
|
</section>
|
105
120
|
|
106
|
-
|
107
|
-
<footer id="footer">
|
108
|
-
<div class="inner">
|
109
|
-
<ul class="icons">
|
110
|
-
{% if site.twitter_url %}
|
111
|
-
<li><a href="{{ site.twitter_url }}" class="icon alt fa-twitter" target="_blank"><span class="label">Twitter</span></a></li>
|
112
|
-
{% endif %}
|
113
|
-
|
114
|
-
{% if site.googleplus_url %}
|
115
|
-
<li><a href="{{ site.googleplus_url }}" class="icon alt fa-google-plus" target="_blank"><span class="label">Google+</span></a></li>
|
116
|
-
{% endif %}
|
117
|
-
|
118
|
-
{% if site.facebook_url %}
|
119
|
-
<li><a href="{{ site.facebook_url }}" class="icon alt fa-facebook" target="_blank"><span class="label">Facebook</span></a></li>
|
120
|
-
{% endif %}
|
121
|
-
|
122
|
-
{% if site.instagram_url %}
|
123
|
-
<li><a href="{{ site.instagram_url }}" class="icon alt fa-instagram" target="_blank"><span class="label">Instagram</span></a></li>
|
124
|
-
{% endif %}
|
125
|
-
|
126
|
-
{% if site.pinterest_url %}
|
127
|
-
<li><a href="{{ site.pinterest_url }}" class="icon alt fa-pinterest" target="_blank"><span class="label">Pinterest</span></a></li>
|
128
|
-
{% endif %}
|
129
|
-
|
130
|
-
{% if site.500px_url %}
|
131
|
-
<li><a href="{{ site.500px_url }}" class="icon alt fa-500px" target="_blank"><span class="label">500px</span></a></li>
|
132
|
-
{% endif %}
|
133
|
-
|
134
|
-
{% if site.gitlab_url %}
|
135
|
-
<li><a href="{{ site.gitlab_url }}" class="icon alt fa-gitlab" target="_blank"><span class="label">GitLab</span></a></li>
|
136
|
-
{% endif %}
|
137
|
-
|
138
|
-
{% if site.github_url %}
|
139
|
-
<li><a href="{{ site.github_url }}" class="icon alt fa-github" target="_blank"><span class="label">GitHub</span></a></li>
|
140
|
-
{% endif %}
|
141
|
-
|
142
|
-
{% if site.slack_url %}
|
143
|
-
<li><a href="{{ site.slack_url }}" class="icon alt fa-slack" target="_blank"><span class="label">Slack</span></a></li>
|
144
|
-
{% endif %}
|
145
|
-
|
146
|
-
{% if site.linkedin_url %}
|
147
|
-
<li><a href="{{ site.linkedin_url }}" class="icon alt fa-linkedin" target="_blank"><span class="label">LinkedIn</span></a></li>
|
148
|
-
{% endif %}
|
149
|
-
</ul>
|
150
|
-
|
151
|
-
<ul class="copyright">
|
152
|
-
<li>© {{ site.title }} {{ site.subtitle }}</li>
|
153
|
-
<li>Design: <a href="https://html5up.net" target="_blank">HTML5 UP</a></li>
|
154
|
-
<li>Jekyll integration: <a href="http://andrewbanchi.ch" target="_blank">Andrew Banchich</a>, <a href="http://agusti.cat" target="_blank">Agustí B.R.</a></li>
|
155
|
-
|
156
|
-
</ul>
|
157
|
-
</div>
|
158
|
-
</footer>
|
121
|
+
{% include _nav_footer.html %}
|
159
122
|
|
160
123
|
<!-- Scripts -->
|
161
124
|
<script src="{{ "assets/js/jquery.min.js" | absolute_url }}"></script>
|
data/_includes/header.html
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
{% assign menu_home = site.pages | where: "layout", "home" | first %}
|
2
|
-
{% assign menu_links = site.pages | where: "nav-menu", true %}
|
3
|
-
{% assign menu_cta_links = site.pages | where: "nav-menu-cta", true %}
|
4
|
-
|
5
1
|
<!-- Header -->
|
6
|
-
<header id="header"{% if page.layout == "landing" %} class="alt
|
2
|
+
<header id="header"{% if page.layout == "landing" %} class="alt style{{ page.style }}"{% endif %}{% if page.layout == "home" %} class="alt"{% endif %}>
|
7
3
|
<a href="{{ "" | absolute_url }}/" class="logo"><strong>{{ site.title }}</strong> <span>{{ site.subtitle }}</span></a>
|
8
4
|
<nav>
|
9
5
|
<a href="#menu">
|
@@ -13,46 +9,4 @@
|
|
13
9
|
</a>
|
14
10
|
</nav>
|
15
11
|
</header>
|
16
|
-
|
17
|
-
<!-- Menu -->
|
18
|
-
<nav id="menu">
|
19
|
-
{% if menu_home %}
|
20
|
-
<ul class="actions vertical">
|
21
|
-
<li>
|
22
|
-
<a href="{{ menu_home.url }}" class="button special fit small">
|
23
|
-
{{ menu_home.title }}
|
24
|
-
</a>
|
25
|
-
</li>
|
26
|
-
</ul>
|
27
|
-
{% endif %}
|
28
|
-
|
29
|
-
{% if menu_links %}
|
30
|
-
<ul class="links">
|
31
|
-
{% for link in menu_links %}
|
32
|
-
{% if link.title %}
|
33
|
-
<li><a href="{{ link.url | absolute_url }}">{{ link.title }}</a></li>
|
34
|
-
{% endif %}
|
35
|
-
{% endfor %}
|
36
|
-
</ul>
|
37
|
-
{% endif %}
|
38
|
-
|
39
|
-
{% if menu_cta_links or site.nav-menu-cta %}
|
40
|
-
<ul class="actions vertical">
|
41
|
-
{% for link in menu_cta_links %}
|
42
|
-
<li>
|
43
|
-
<a href="{{ link.url }}" class="button fit">
|
44
|
-
{{ link.title }}
|
45
|
-
</a>
|
46
|
-
</li>
|
47
|
-
{% endfor %}
|
48
|
-
|
49
|
-
{% for link in site.nav-menu-cta %}
|
50
|
-
<li>
|
51
|
-
<a href="{{ link.url }}" class="button fit">
|
52
|
-
{{ link.title }}
|
53
|
-
</a>
|
54
|
-
</li>
|
55
|
-
{% endfor %}
|
56
|
-
</ul>
|
57
|
-
{% endif %}
|
58
|
-
</nav>
|
12
|
+
{% include _nav_menu.html %}
|
data/_layouts/allposts.html
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
---
|
2
2
|
layout: post
|
3
3
|
---
|
4
|
+
|
5
|
+
{% assign collection= site.collections | where: "label", page.collection | first %}
|
6
|
+
{% assign items = collection.docs | sort: 'order' %}
|
7
|
+
|
4
8
|
<div class="row">
|
5
|
-
{% for post in
|
9
|
+
{% for post in items %}
|
6
10
|
{% assign loopindex = forloop.index | modulo: 3 %}
|
7
11
|
{% if loopindex == 0 %}
|
8
12
|
<div class="4u$ 12u$(medium)">
|
@@ -0,0 +1,66 @@
|
|
1
|
+
---
|
2
|
+
layout: post
|
3
|
+
---
|
4
|
+
|
5
|
+
{{ content }}
|
6
|
+
|
7
|
+
{% comment%}
|
8
|
+
https://stackoverflow.com/a/28105741
|
9
|
+
|
10
|
+
Here we generate all the tags.
|
11
|
+
from: https://codinfox.github.io/dev/2015/03/06/use-tags-and-categories-in-your-jekyll-based-github-pages/
|
12
|
+
{% endcomment%}
|
13
|
+
|
14
|
+
{% assign rawtags = "" %}
|
15
|
+
|
16
|
+
{% assign collection= site.collections | where: "label", page.collection | first %}
|
17
|
+
{% assign items = collection.docs | sort: 'order' %}
|
18
|
+
|
19
|
+
{% for post in items %}
|
20
|
+
{% assign ttags = post.categories | join:'|' | append:'|' %}
|
21
|
+
{% assign rawtags = rawtags | append:ttags %}
|
22
|
+
{% endfor %}
|
23
|
+
|
24
|
+
{% assign rawtags = rawtags | split:'|' | sort %}
|
25
|
+
|
26
|
+
{% assign tags = "" %}
|
27
|
+
|
28
|
+
{% for tag in rawtags %}
|
29
|
+
{% if tag != "" %}
|
30
|
+
|
31
|
+
{% if tags == "" %}
|
32
|
+
{% assign tags = tag | split:'|' %}
|
33
|
+
{% endif %}
|
34
|
+
|
35
|
+
{% unless tags contains tag %}
|
36
|
+
{% assign tags = tags | join:'|' | append:'|' | append:tag | split:'|' %}
|
37
|
+
{% endunless %}
|
38
|
+
{% endif %}
|
39
|
+
{% endfor %}
|
40
|
+
|
41
|
+
<div>
|
42
|
+
<p>
|
43
|
+
{% for tag in tags %}
|
44
|
+
<a href="#{{ tag | slugify }}" class=""> {{ tag }} </a>
|
45
|
+
{% endfor %}
|
46
|
+
</p>
|
47
|
+
|
48
|
+
{% for tag in tags %}
|
49
|
+
<h3 id="{{ tag | slugify }}">{{ tag }}</h2>
|
50
|
+
{% for post in items %}
|
51
|
+
{% if post.categories contains tag %}
|
52
|
+
<ul class="actions">
|
53
|
+
<li>
|
54
|
+
<a class="button special" href="{{ post.url | absolute_url }}">
|
55
|
+
{{ post.title }}
|
56
|
+
</a>
|
57
|
+
{% for tag in post.categories %}
|
58
|
+
<a class="button" href="{{ page.url | absolute_url }}#{{ tag | slugify }}">{{ tag }}</a>
|
59
|
+
{% endfor %}
|
60
|
+
</li>
|
61
|
+
</ul>
|
62
|
+
{% endif %}
|
63
|
+
{% endfor %}
|
64
|
+
{% endfor %}
|
65
|
+
|
66
|
+
</div>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
layout: post
|
3
|
+
---
|
4
|
+
|
5
|
+
{{ content }}
|
6
|
+
|
7
|
+
{% assign collection = site.collections | where: "label", page.collection | first %}
|
8
|
+
{% assign items = collection.docs | sort: 'order' %}
|
9
|
+
|
10
|
+
<div class="row">
|
11
|
+
{% for post in items %}
|
12
|
+
{% assign loopindex = forloop.index | modulo: 3 %}
|
13
|
+
{% if loopindex == 0 %}
|
14
|
+
<div class="4u$ 12u$(medium)">
|
15
|
+
{% else %}
|
16
|
+
<div class="4u 12u$(medium)">
|
17
|
+
{% endif %}
|
18
|
+
<a href="{{ post.url | absolute_url }}">
|
19
|
+
<div class="box">
|
20
|
+
<h3>{{ post.title }}</h2>
|
21
|
+
{% if post.image %}
|
22
|
+
<span class="image fit">
|
23
|
+
<img src="{{ post.image | absolute_url }}" alt="" />
|
24
|
+
</span>
|
25
|
+
{% endif %}
|
26
|
+
<p>{{ post.excerpt | strip_html | truncatewords: 15 }}</p>
|
27
|
+
</div>
|
28
|
+
</a>
|
29
|
+
</div>
|
30
|
+
{% endfor %}
|
31
|
+
</div>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--
|
3
|
+
Fortyone-jekyll-theme by Agusti B.R.
|
4
|
+
agusti.cat | @agustibrr
|
5
|
+
Free for personal and commercial use under the CCA 3.0 license
|
6
|
+
|
7
|
+
|
8
|
+
Forty by HTML5 UP
|
9
|
+
html5up.net | @ajlkn
|
10
|
+
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
11
|
+
-->
|
12
|
+
<html>
|
13
|
+
|
14
|
+
{% include head.html %}
|
15
|
+
|
16
|
+
<body>
|
17
|
+
<div id="wrapper">
|
18
|
+
{% include header.html %}
|
19
|
+
|
20
|
+
|
21
|
+
{{ content }}
|
22
|
+
|
23
|
+
{% include footer.html %}
|
24
|
+
</div>
|
25
|
+
|
26
|
+
</body>
|
27
|
+
</html>
|
data/_layouts/home.html
CHANGED
@@ -1,66 +1,52 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
<
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
<
|
18
|
-
<
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
{% if page.banner_cta %}
|
27
|
-
<ul class="actions">
|
28
|
-
<li>
|
29
|
-
<a href="{{ page.banner_cta.href }}" class="button next scrolly">
|
30
|
-
{{ page.banner_cta.text }}
|
31
|
-
</a>
|
32
|
-
</li>
|
33
|
-
</ul>
|
34
|
-
{% endif %}
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
</section>
|
38
|
-
|
39
|
-
<div id="main">
|
40
|
-
{% include tiles.html %}
|
41
|
-
|
42
|
-
<section id="two">
|
43
|
-
<div class="inner">
|
44
|
-
<header class="major">
|
45
|
-
<h2>{{ page.title }}</h2>
|
46
|
-
</header>
|
47
|
-
|
48
|
-
<p>{{ content }}</p>
|
49
|
-
|
50
|
-
{% if page.section_cta %}
|
51
|
-
<ul class="actions">
|
52
|
-
<li>
|
53
|
-
<a href="{{ page.section_cta.href }}" class="button next">
|
54
|
-
{{ page.section_cta.text }}
|
55
|
-
</a>
|
56
|
-
</li>
|
57
|
-
</ul>
|
58
|
-
{% endif %}
|
59
|
-
</div>
|
60
|
-
</section>
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<section id="banner" class="major">
|
6
|
+
<div class="inner">
|
7
|
+
<header class="major">
|
8
|
+
<h1>{{ page.landing-title }}</h1>
|
9
|
+
</header>
|
10
|
+
|
11
|
+
<div class="content">
|
12
|
+
<p style="text-transform: uppercase;">
|
13
|
+
{{ page.description || site.description }}
|
14
|
+
</p>
|
15
|
+
|
16
|
+
{% if page.banner_cta %}
|
17
|
+
<ul class="actions">
|
18
|
+
<li>
|
19
|
+
<a href="{{ page.banner_cta.href }}" class="button next scrolly">
|
20
|
+
{{ page.banner_cta.text }}
|
21
|
+
</a>
|
22
|
+
</li>
|
23
|
+
</ul>
|
24
|
+
{% endif %}
|
61
25
|
</div>
|
62
|
-
|
63
|
-
{% include footer.html %}
|
64
26
|
</div>
|
65
|
-
</
|
66
|
-
|
27
|
+
</section>
|
28
|
+
|
29
|
+
<div id="main">
|
30
|
+
{% include _home_tiles.html %}
|
31
|
+
|
32
|
+
<section id="two">
|
33
|
+
<div class="inner">
|
34
|
+
<header class="major">
|
35
|
+
<h2>{{ page.title }}</h2>
|
36
|
+
</header>
|
37
|
+
|
38
|
+
<p>{{ content }}</p>
|
39
|
+
|
40
|
+
{% if page.section_cta %}
|
41
|
+
<ul class="actions">
|
42
|
+
<li>
|
43
|
+
<a href="{{ page.section_cta.href }}" class="button next">
|
44
|
+
{{ page.section_cta.text }}
|
45
|
+
</a>
|
46
|
+
</li>
|
47
|
+
</ul>
|
48
|
+
{% endif %}
|
49
|
+
</div>
|
50
|
+
</section>
|
51
|
+
</div>
|
52
|
+
|
data/_layouts/landing.html
CHANGED
@@ -1,35 +1,38 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
html5up.net | @ajlkn
|
5
|
-
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
6
|
-
-->
|
7
|
-
<html>
|
8
|
-
{% include head.html %}
|
9
|
-
<body>
|
10
|
-
<div id="wrapper">
|
11
|
-
{% include header.html %}
|
12
|
-
|
13
|
-
<section id="banner" class="style2">
|
14
|
-
<div class="inner">
|
15
|
-
<span class="image">
|
16
|
-
<img src="{{ site.baseurl }}/{{ page.image }}" alt="">
|
17
|
-
</span>
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
18
4
|
|
19
|
-
|
20
|
-
|
21
|
-
</header>
|
5
|
+
{% assign collection= site.collections | where: "label", page.collection | first %}
|
6
|
+
{% assign items = collection.docs | sort: 'order' %}
|
22
7
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
</div>
|
27
|
-
</section>
|
8
|
+
{% assign highlighted_items= items | where_exp: "item", "item.highlighted == true" %}
|
9
|
+
{% assign downlighted_items= items | where_exp: "item", "item.downlighted == true" %}
|
10
|
+
{% assign rest_of_items= items | where_exp: "item", "item.highlighted != true" | where_exp: "item", "item.downlighted != true" %}
|
28
11
|
|
29
|
-
|
12
|
+
{% if highlighted_items %}
|
13
|
+
{% for high in highlighted_items %}
|
14
|
+
{% include _landing_highlighted_item.html item= high %}
|
15
|
+
{% endfor %}
|
16
|
+
{% endif %}
|
30
17
|
|
31
|
-
|
32
|
-
|
33
|
-
|
18
|
+
<!-- Two -->
|
19
|
+
{% if rest_of_items %}
|
20
|
+
<section id="two" class="spotlights">
|
21
|
+
{% for item in rest_of_items %}
|
22
|
+
{% include _landing_item.html item= item %}
|
23
|
+
{% endfor %}
|
24
|
+
</section>
|
25
|
+
{% endif %}
|
26
|
+
|
27
|
+
<!-- Three -->
|
28
|
+
{% if downlighted_items %}
|
29
|
+
{% for down in downlighted_items %}
|
30
|
+
{% include _landing_downlighted_item.html item= down %}
|
31
|
+
{% endfor %}
|
32
|
+
{% endif %}
|
34
33
|
|
35
|
-
|
34
|
+
<section>
|
35
|
+
<div class="inner">
|
36
|
+
{{ content }}
|
37
|
+
</div>
|
38
|
+
</section>
|
data/_layouts/page.html
CHANGED
@@ -1,20 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
html5up.net | @ajlkn
|
5
|
-
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
6
|
-
-->
|
7
|
-
<html>
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
8
4
|
|
9
|
-
{
|
10
|
-
|
11
|
-
<body>
|
12
|
-
<div id="wrapper">
|
13
|
-
{% include header.html %}
|
14
|
-
{{ content }}
|
15
|
-
{% include footer.html %}
|
16
|
-
</div>
|
17
|
-
|
18
|
-
</body>
|
19
|
-
|
20
|
-
</html>
|
5
|
+
{{ content }}
|
data/_layouts/post.html
CHANGED
@@ -1,37 +1,23 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div id="main" class="alt">
|
5
|
+
<!-- One -->
|
6
|
+
<section id="one">
|
7
|
+
<div class="inner">
|
8
|
+
<header class="major">
|
9
|
+
<h1>{{ page.title }}</h1>
|
10
|
+
</header>
|
8
11
|
|
9
|
-
{%
|
12
|
+
{% if page.image %}
|
13
|
+
<span class="image main">
|
14
|
+
<img src="{{ page.image | absolute_url }}">
|
15
|
+
</span>
|
16
|
+
{% endif %}
|
17
|
+
|
18
|
+
<p>{{ content }}</p>
|
10
19
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<!-- Main -->
|
16
|
-
<div id="main" class="alt">
|
17
|
-
|
18
|
-
<!-- One -->
|
19
|
-
<section id="one">
|
20
|
-
<div class="inner">
|
21
|
-
<header class="major">
|
22
|
-
<h1>{{ page.title }}</h1>
|
23
|
-
</header>
|
24
|
-
{% if page.image %}<span class="image main"><img src="{{ site.baseurl }}/{{ page.image }}" alt="" /></span>{% endif %}
|
25
|
-
<p>{{ content }}</p>
|
26
|
-
{% include pagination.html %}
|
27
|
-
</div>
|
28
|
-
</section>
|
29
|
-
|
30
|
-
</div>
|
31
|
-
|
32
|
-
{% include footer.html %}
|
33
|
-
</div>
|
34
|
-
|
35
|
-
</body>
|
36
|
-
|
37
|
-
</html>
|
20
|
+
{% include pagination.html %}
|
21
|
+
</div>
|
22
|
+
</section>
|
23
|
+
</div>
|
data/_sass/layout/_footer.scss
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fortyone-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Banchich
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-09-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -48,14 +48,23 @@ extra_rdoc_files: []
|
|
48
48
|
files:
|
49
49
|
- LICENSE.md
|
50
50
|
- README.md
|
51
|
+
- _includes/_home_tile.html
|
52
|
+
- _includes/_home_tiles.html
|
53
|
+
- _includes/_landing_downlighted_item.html
|
54
|
+
- _includes/_landing_highlighted_item.html
|
55
|
+
- _includes/_landing_item.html
|
56
|
+
- _includes/_nav_footer.html
|
57
|
+
- _includes/_nav_menu.html
|
51
58
|
- _includes/_t.html
|
52
59
|
- _includes/footer.html
|
53
60
|
- _includes/head.html
|
54
61
|
- _includes/header.html
|
55
62
|
- _includes/pagination.html
|
56
|
-
- _includes/tiles.html
|
57
63
|
- _layouts/allposts.html
|
58
64
|
- _layouts/alltags.html
|
65
|
+
- _layouts/categories.html
|
66
|
+
- _layouts/collection.html
|
67
|
+
- _layouts/default.html
|
59
68
|
- _layouts/home.html
|
60
69
|
- _layouts/landing.html
|
61
70
|
- _layouts/page.html
|
@@ -133,5 +142,5 @@ rubyforge_project:
|
|
133
142
|
rubygems_version: 2.6.8
|
134
143
|
signing_key:
|
135
144
|
specification_version: 4
|
136
|
-
summary:
|
145
|
+
summary: Jekyll theme of the "Forty" theme by HTML5 UP.
|
137
146
|
test_files: []
|
data/_includes/tiles.html
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
<section id="one" class="tiles">
|
2
|
-
{% for post in site.posts limit:site.tiles-count %}
|
3
|
-
{% if site.tiles-source == 'posts' %}
|
4
|
-
<article>
|
5
|
-
<span class="image">
|
6
|
-
<img src="{{ post.image }}" alt="" />
|
7
|
-
</span>
|
8
|
-
<header class="major">
|
9
|
-
<h3><a href="{{ post.url | relative_url }}" class="link">{{ post.title }}</a></h3>
|
10
|
-
<p>{{ post.description }}</p>
|
11
|
-
</header>
|
12
|
-
</article>
|
13
|
-
{% endif %}
|
14
|
-
{% endfor %}
|
15
|
-
{% for page in site.pages limit:site.tiles-count %}
|
16
|
-
{% if site.tiles-source == 'pages' %}
|
17
|
-
<article>
|
18
|
-
<span class="image">
|
19
|
-
<img src="{{ page.image }}" alt="" />
|
20
|
-
</span>
|
21
|
-
<header class="major">
|
22
|
-
<h3><a href="{{ page.url | relative_url }}" class="link">{{ page.title }}</a></h3>
|
23
|
-
<p>{{ page.description }}</p>
|
24
|
-
</header>
|
25
|
-
</article>
|
26
|
-
{% endif %}
|
27
|
-
{% endfor %}
|
28
|
-
</section>
|