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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a806c6bb7fb8450a0a1eb60b8a27ff3b8d79b17
4
- data.tar.gz: ef89f74ee06175cb3a685f0ef6a52375147d637e
3
+ metadata.gz: 0a5adc449fce0f3dccedfd55debed6f3cc849813
4
+ data.tar.gz: 320b31f14bcb480bb2d30e678688beb72705237a
5
5
  SHA512:
6
- metadata.gz: be830d80a2e34c4da775ef17110cef64d1a7d604067a97ef33163a38e0dee6be120dfbeb21685ebf470dc950b74a16b898aee27587565928b4a7e53ce734b121
7
- data.tar.gz: b14032f54380a19ed9732c952fcfcd37eed7ec6167d484f8598c66014054e9eb1d8e1e1ad371eb9c1ddefeefd85fff873c57f75c977d1e41e24373fb4b12d5aa
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>
@@ -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">
@@ -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 style2"{% endif %}{% if page.layout == "home" %} class="alt"{% endif %}>
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
- <li><a href="{{ link.url | absolute_url }}">{{ link.title }}</a></li>
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
- <!DOCTYPE html>
2
- <!--
3
- Forty by HTML5 UP
4
- html5up.net | @ajlkn
5
- Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
6
- -->
7
- <html>
8
-
9
- {% include head.html %}
10
-
11
- <body>
12
- <div id="wrapper">
13
- {% include header.html %}
14
-
15
- <section id="banner" class="major">
16
- <div class="inner">
17
- <header class="major">
18
- <h1>{{ page.landing-title }}</h1>
19
- </header>
20
-
21
- <div class="content">
22
- <p style="text-transform: uppercase;">
23
- {{ site.description }}
24
- </p>
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
- </body>
66
- </html>
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
+
@@ -1,35 +1,38 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Forty by HTML5 UP
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
- <header class="major">
20
- <h1>{{ page.title }}</h1>
21
- </header>
5
+ {% assign collection= site.collections | where: "label", page.collection | first %}
6
+ {% assign items = collection.docs | sort: 'order' %}
22
7
 
23
- <div class="content">
24
- {{ page.description }}
25
- </div>
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
- {{ content }}
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
- {% include footer.html %}
32
- </div>
33
- </body>
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
- </html>
34
+ <section>
35
+ <div class="inner">
36
+ {{ content }}
37
+ </div>
38
+ </section>
data/_layouts/page.html CHANGED
@@ -1,20 +1,5 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Forty by HTML5 UP
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
- {% include head.html %}
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
- <!DOCTYPE html>
2
- <!--
3
- Forty by HTML5 UP
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
+ ---
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
- {% include head.html %}
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
- <body>
12
- <div id="wrapper">
13
- {% include header.html %}
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
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-03-26 00:00:00.000000000 Z
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>