fortyone-jekyll-theme 1.0.4 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/_includes/_home_tile.html +15 -0
- data/_includes/_home_tiles.html +14 -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/footer.html +15 -0
- data/_includes/header.html +8 -4
- 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
- metadata +8 -3
- 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: 0a5adc449fce0f3dccedfd55debed6f3cc849813
|
4
|
+
data.tar.gz: 320b31f14bcb480bb2d30e678688beb72705237a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70c84a3f148ba50650a795d701d4fddcf46125d1f16d33c045bf8fd2c4af62960056cc11a23a3b3053a5e5050244e7b136d40469f272199cd9a402dced988ec9
|
7
|
+
data.tar.gz: 5b2f7e44b0c41e78659387eabd444517b4ad64080b7274857e0d2a6722b246613e1fc304f00eeb3be8ed8788c5811816bfe044f6340be70d7954702d556c6848
|
data/README.md
CHANGED
@@ -20,6 +20,8 @@ theme: fortyone-jekyll-theme
|
|
20
20
|
|
21
21
|
## [FortyOne Demo](https://agustibr.gitlab.io/fortyone-jekyll-theme/)
|
22
22
|
|
23
|
+
+ landing template items from a collection
|
24
|
+
+ home tiles accepts pages, posts or collections
|
23
25
|
+ Added `alltags` template
|
24
26
|
+ Modified `allposts` template
|
25
27
|
+ You can [Customize the theme's CSS](https://help.github.com/articles/customizing-css-and-html-in-your-jekyll-theme/#customizing-your-jekyll-themes-css)
|
@@ -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,14 @@
|
|
1
|
+
{% assign collection= site.collections | where: "label", site.tiles-source | first %}
|
2
|
+
{% assign items = collection.docs | limit:site.tiles-count %}
|
3
|
+
|
4
|
+
<section id="one" class="tiles">
|
5
|
+
{% if site.tiles-source == 'pages' %}
|
6
|
+
{% for page in site.pages limit:site.tiles-count %}
|
7
|
+
{% include _home_tile.html item= page %}
|
8
|
+
{% endfor %}
|
9
|
+
{% else %}
|
10
|
+
{% for item in items %}
|
11
|
+
{% include _home_tile.html item= item %}
|
12
|
+
{% endfor %}
|
13
|
+
{% endif %}
|
14
|
+
</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>
|
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">
|
data/_includes/header.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
{% assign menu_cta_links = site.pages | where: "nav-menu-cta", true %}
|
4
4
|
|
5
5
|
<!-- Header -->
|
6
|
-
<header id="header"{% if page.layout == "landing" %} class="alt
|
6
|
+
<header id="header"{% if page.layout == "landing" %} class="alt style{{ page.style }}"{% endif %}{% if page.layout == "home" %} class="alt"{% endif %}>
|
7
7
|
<a href="{{ "" | absolute_url }}/" class="logo"><strong>{{ site.title }}</strong> <span>{{ site.subtitle }}</span></a>
|
8
8
|
<nav>
|
9
9
|
<a href="#menu">
|
@@ -30,7 +30,11 @@
|
|
30
30
|
<ul class="links">
|
31
31
|
{% for link in menu_links %}
|
32
32
|
{% if link.title %}
|
33
|
-
|
33
|
+
<li>
|
34
|
+
<a href="{{ link.url | relative_url }}">
|
35
|
+
{{ link.title }}
|
36
|
+
</a>
|
37
|
+
</li>
|
34
38
|
{% endif %}
|
35
39
|
{% endfor %}
|
36
40
|
</ul>
|
@@ -40,7 +44,7 @@
|
|
40
44
|
<ul class="actions vertical">
|
41
45
|
{% for link in menu_cta_links %}
|
42
46
|
<li>
|
43
|
-
<a href="{{ link.url }}" class="button fit">
|
47
|
+
<a href="{{ link.url | relative_url }}" class="button fit">
|
44
48
|
{{ link.title }}
|
45
49
|
</a>
|
46
50
|
</li>
|
@@ -48,7 +52,7 @@
|
|
48
52
|
|
49
53
|
{% for link in site.nav-menu-cta %}
|
50
54
|
<li>
|
51
|
-
<a href="{{ link.url }}" class="button fit">
|
55
|
+
<a href="{{ link.url | relative_url }}" class="button fit">
|
52
56
|
{{ link.title }}
|
53
57
|
</a>
|
54
58
|
</li>
|
@@ -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
|
+
{{ 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>
|
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.0
|
4
|
+
version: 1.1.0
|
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-04-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -48,14 +48,19 @@ 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
|
51
56
|
- _includes/_t.html
|
52
57
|
- _includes/footer.html
|
53
58
|
- _includes/head.html
|
54
59
|
- _includes/header.html
|
55
60
|
- _includes/pagination.html
|
56
|
-
- _includes/tiles.html
|
57
61
|
- _layouts/allposts.html
|
58
62
|
- _layouts/alltags.html
|
63
|
+
- _layouts/default.html
|
59
64
|
- _layouts/home.html
|
60
65
|
- _layouts/landing.html
|
61
66
|
- _layouts/page.html
|
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>
|