fortyone-jekyll-theme 1.0.3 → 1.0.4

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: c4906c97e761372a406b78416285346ba1341ab1
4
- data.tar.gz: d8e05393d6c50df0d854029e009b3a70520e91d0
3
+ metadata.gz: 6a806c6bb7fb8450a0a1eb60b8a27ff3b8d79b17
4
+ data.tar.gz: ef89f74ee06175cb3a685f0ef6a52375147d637e
5
5
  SHA512:
6
- metadata.gz: 5900149e66a932d5c95c34b8efaa941f8010aef98b41268e15a8742a609d80e66a2eb243d3f7083c27861c53f02aa50f3c5fa6743ed56d7f02a93535ac0e8d44
7
- data.tar.gz: 974e793df378a9224023d1f86b33ac3b5e47b7ad40afd31ee684e77eed98687e031c41c6adea67e899fa114a57d382e7f8e4ce5e93af41224a4e7b0a252e9d5b
6
+ metadata.gz: be830d80a2e34c4da775ef17110cef64d1a7d604067a97ef33163a38e0dee6be120dfbeb21685ebf470dc950b74a16b898aee27587565928b4a7e53ce734b121
7
+ data.tar.gz: b14032f54380a19ed9732c952fcfcd37eed7ec6167d484f8598c66014054e9eb1d8e1e1ad371eb9c1ddefeefd85fff873c57f75c977d1e41e24373fb4b12d5aa
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # FortyOne - Jekyll Theme
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/fortyone-jekyll-theme.svg)](https://badge.fury.io/rb/fortyone-jekyll-theme)
4
+
3
5
  To use this theme:
4
6
 
5
7
  Add to your `Gemfile`:
@@ -22,16 +24,18 @@ theme: fortyone-jekyll-theme
22
24
  + Modified `allposts` template
23
25
  + 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)
24
26
  + added pagination to post layout
27
+ + `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)
25
28
 
29
+ # Credits
26
30
 
27
-
28
- # Original README from Forty - Jekyll Theme
31
+ ```
32
+ ## Original README from Forty - Jekyll Theme
29
33
 
30
34
  A Jekyll version of the "Forty" theme by [HTML5 UP](https://html5up.net/).
31
35
 
32
36
  ![Forty Theme](assets/images/forty.jpg "Forty Theme")
33
37
 
34
- # How to Use
38
+ ## How to Use
35
39
 
36
40
  For those unfamiliar with how Jekyll works, check out [jekyllrb.com](https://jekyllrb.com/) for all the details,
37
41
  or read up on just the basics of [front matter](https://jekyllrb.com/docs/frontmatter/), [writing posts](https://jekyllrb.com/docs/posts/),
@@ -40,18 +44,17 @@ and [creating pages](https://jekyllrb.com/docs/pages/).
40
44
  - **GitLab**: Simply fork this repository and start editing the `_config.yml` file!
41
45
  - **GitHub**: Fork this reposity and create a branch named `gh-pages`, then start editing the `_config.yml` file! The `.gitlab-ci.yml` file is only needed for GitLab Pages, so feel free to delete this if you are using GitHub instead.
42
46
 
43
- # Added Features
47
+ ## Added Features
44
48
 
45
49
  * **[Formspree.io](https://formspree.io/) contact form integration** - just add your email to the `_config.yml` and it works!
46
50
  * Use `_config.yml` to **set whether the homepage tiles should pull pages or posts**, as well as how many to display.
47
51
  * Add your **social profiles** easily in `_config.yml`. Only social profiles buttons you enter in `config.yml` show up on the site footer!
48
52
  * Set **featured images** in front matter.
49
53
 
50
- # Credits
54
+ ---
51
55
 
52
- Original README from HTML5 UP:
56
+ ## Original README from HTML5 UP:
53
57
 
54
- ```
55
58
  Forty by HTML5 UP
56
59
  html5up.net | @ajlkn
57
60
  Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
@@ -0,0 +1,5 @@
1
+ {% if include.label %}
2
+ {{ include.label }}
3
+ {% else %}
4
+ {{ include.fallback }}
5
+ {% endif %}
@@ -2,47 +2,101 @@
2
2
  <section id="contact">
3
3
  <div class="inner">
4
4
  <section>
5
- <form action="https://formspree.io/{{ site.email }}" method="POST">
5
+ <form method="POST" action="https://formspree.io/{{ site.email }}">
6
6
  <div class="field half first">
7
- <label for="name">Name</label>
7
+ <label for="name">
8
+ {% include _t.html
9
+ label = site.data.labels.contact.form.name
10
+ fallback = 'Name' %}
11
+ </label>
8
12
  <input type="text" name="name" id="name" />
9
13
  </div>
10
14
  <div class="field half">
11
- <label for="email">Email</label>
15
+ <label for="email">
16
+ {% include _t.html
17
+ label = site.data.labels.contact.form.email
18
+ fallback = 'Email' %}
19
+ </label>
12
20
  <input type="text" name="_replyto" id="email" />
13
21
  </div>
22
+
14
23
  <div class="field">
15
- <label for="message">Message</label>
24
+ <label for="message">
25
+ {% include _t.html
26
+ label = site.data.labels.contact.form.message
27
+ fallback = 'Message' %}
28
+ </label>
16
29
  <textarea name="message" id="message" rows="6"></textarea>
17
30
  </div>
31
+
18
32
  <ul class="actions">
19
- <li><input type="submit" value="Send Message" class="special" /></li>
20
- <li><input type="reset" value="Clear" /></li>
33
+ <li>
34
+ <button type="submit" class="special">
35
+ {% include _t.html
36
+ label = site.data.labels.contact.form.submit
37
+ fallback = 'Send' %}
38
+ </button>
39
+ </li>
40
+
41
+ <li>
42
+ <button type="reset">
43
+ {% include _t.html
44
+ label = site.data.labels.contact.form.clear
45
+ fallback = 'Clear' %}
46
+ </button>
47
+ </li>
21
48
  </ul>
22
49
  </form>
23
50
  </section>
51
+
24
52
  <section class="split">
25
53
  <section>
26
54
  <div class="contact-method">
27
55
  <span class="icon alt fa-envelope"></span>
28
- <h3>Email</h3>
29
- <a href="#">{{ site.email }}</a>
56
+
57
+ <h3>
58
+ {% include _t.html
59
+ label = site.data.labels.contact.method.email
60
+ fallback = "Email" %}
61
+ </h3>
62
+
63
+ <a href="mailto:{{ site.email }}">
64
+ {{ site.email }}
65
+ </a>
30
66
  </div>
31
67
  </section>
68
+
32
69
  <section>
33
70
  <div class="contact-method">
34
71
  <span class="icon alt fa-phone"></span>
35
- <h3>Phone</h3>
36
- <span>{{ site.phone }}</span>
72
+
73
+ <h3>
74
+ {% include _t.html
75
+ label = site.data.labels.contact.method.phone
76
+ fallback = "Phone" %}
77
+ </h3>
78
+
79
+ <span>
80
+ {{ site.phone }}
81
+ </span>
37
82
  </div>
38
83
  </section>
84
+
39
85
  <section>
40
86
  <div class="contact-method">
41
87
  <span class="icon alt fa-home"></span>
42
- <h3>Address</h3>
43
- <span>{{ site.street_address }}<br />
44
- {{ site.city }}, {{ site.state }} {{ site.zip_code }}<br />
45
- {{ site.country }}</span>
88
+
89
+ <h3>
90
+ {% include _t.html
91
+ label = site.data.labels.contact.method.address
92
+ fallback = "Address" %}
93
+ </h3>
94
+
95
+ <span>
96
+ {{ site.street_address }}<br />
97
+ {{ site.city }}, {{ site.state }} {{ site.zip_code }}<br />
98
+ {{ site.country }}
99
+ </span>
46
100
  </div>
47
101
  </section>
48
102
  </section>
@@ -56,34 +110,44 @@
56
110
  {% if site.twitter_url %}
57
111
  <li><a href="{{ site.twitter_url }}" class="icon alt fa-twitter" target="_blank"><span class="label">Twitter</span></a></li>
58
112
  {% endif %}
113
+
59
114
  {% if site.googleplus_url %}
60
115
  <li><a href="{{ site.googleplus_url }}" class="icon alt fa-google-plus" target="_blank"><span class="label">Google+</span></a></li>
61
116
  {% endif %}
117
+
62
118
  {% if site.facebook_url %}
63
119
  <li><a href="{{ site.facebook_url }}" class="icon alt fa-facebook" target="_blank"><span class="label">Facebook</span></a></li>
64
120
  {% endif %}
121
+
65
122
  {% if site.instagram_url %}
66
123
  <li><a href="{{ site.instagram_url }}" class="icon alt fa-instagram" target="_blank"><span class="label">Instagram</span></a></li>
67
124
  {% endif %}
125
+
68
126
  {% if site.pinterest_url %}
69
127
  <li><a href="{{ site.pinterest_url }}" class="icon alt fa-pinterest" target="_blank"><span class="label">Pinterest</span></a></li>
70
128
  {% endif %}
129
+
71
130
  {% if site.500px_url %}
72
131
  <li><a href="{{ site.500px_url }}" class="icon alt fa-500px" target="_blank"><span class="label">500px</span></a></li>
73
132
  {% endif %}
133
+
74
134
  {% if site.gitlab_url %}
75
135
  <li><a href="{{ site.gitlab_url }}" class="icon alt fa-gitlab" target="_blank"><span class="label">GitLab</span></a></li>
76
136
  {% endif %}
137
+
77
138
  {% if site.github_url %}
78
139
  <li><a href="{{ site.github_url }}" class="icon alt fa-github" target="_blank"><span class="label">GitHub</span></a></li>
79
140
  {% endif %}
141
+
80
142
  {% if site.slack_url %}
81
143
  <li><a href="{{ site.slack_url }}" class="icon alt fa-slack" target="_blank"><span class="label">Slack</span></a></li>
82
144
  {% endif %}
145
+
83
146
  {% if site.linkedin_url %}
84
147
  <li><a href="{{ site.linkedin_url }}" class="icon alt fa-linkedin" target="_blank"><span class="label">LinkedIn</span></a></li>
85
148
  {% endif %}
86
149
  </ul>
150
+
87
151
  <ul class="copyright">
88
152
  <li>&copy; {{ site.title }} {{ site.subtitle }}</li>
89
153
  <li>Design: <a href="https://html5up.net" target="_blank">HTML5 UP</a></li>
@@ -93,8 +157,6 @@
93
157
  </div>
94
158
  </footer>
95
159
 
96
- </div>
97
-
98
160
  <!-- Scripts -->
99
161
  <script src="{{ "assets/js/jquery.min.js" | absolute_url }}"></script>
100
162
  <script src="{{ "assets/js/jquery.scrolly.min.js" | absolute_url }}"></script>
@@ -1,30 +1,58 @@
1
- <!-- Wrapper -->
2
- <div id="wrapper">
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 %}
3
4
 
4
5
  <!-- Header -->
5
6
  <header id="header"{% if page.layout == "landing" %} class="alt style2"{% endif %}{% if page.layout == "home" %} class="alt"{% endif %}>
6
7
  <a href="{{ "" | absolute_url }}/" class="logo"><strong>{{ site.title }}</strong> <span>{{ site.subtitle }}</span></a>
7
8
  <nav>
8
- <a href="#menu">Menu</a>
9
+ <a href="#menu">
10
+ {% include _t.html
11
+ label = site.data.labels.menu
12
+ fallback = 'Menu' %}
13
+ </a>
9
14
  </nav>
10
15
  </header>
11
16
 
12
17
  <!-- Menu -->
13
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 %}
14
30
  <ul class="links">
15
- {% for page in site.pages %}
16
- {% if page.layout == "home" %}
17
- <li><a href="{{ "" | absolute_url }}/">{{ page.title }}</a></li>
18
- {% endif %}
19
- {% endfor %}
20
- {% for page in site.pages %}
21
- {% if page.layout != "home" and page.title %}
22
- <li><a href="{{ page.url | absolute_url }}">{{ page.title }}</a></li>
23
- {% endif %}
31
+ {% for link in menu_links %}
32
+ {% if link.title %}
33
+ <li><a href="{{ link.url | absolute_url }}">{{ link.title }}</a></li>
34
+ {% endif %}
24
35
  {% endfor %}
25
36
  </ul>
37
+ {% endif %}
38
+
39
+ {% if menu_cta_links or site.nav-menu-cta %}
26
40
  <ul class="actions vertical">
27
- <li><a href="#" class="button special fit">Get Started</a></li>
28
- <li><a href="#" class="button fit">Log In</a></li>
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 %}
29
56
  </ul>
57
+ {% endif %}
30
58
  </nav>
@@ -9,47 +9,58 @@
9
9
  {% include head.html %}
10
10
 
11
11
  <body>
12
-
12
+ <div id="wrapper">
13
13
  {% include header.html %}
14
14
 
15
- <!-- Banner -->
16
15
  <section id="banner" class="major">
17
- <div class="inner">
18
- <header class="major">
19
- <h1>{{ page.landing-title }}</h1>
20
- </header>
21
- <div class="content">
22
- <p style="text-transform: uppercase;">{{ site.description }}</p>
23
- <ul class="actions">
24
- <li><a href="#one" class="button next scrolly">Get Started</a></li>
25
- </ul>
26
- </div>
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 %}
27
35
  </div>
36
+ </div>
28
37
  </section>
29
38
 
30
- <!-- Main -->
31
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>
32
47
 
33
- <!-- One -->
34
- {% include tiles.html %}
35
-
36
- <!-- Two -->
37
- <section id="two">
38
- <div class="inner">
39
- <header class="major">
40
- <h2>{{ page.title }}</h2>
41
- </header>
42
- <p>{{ content }}</p>
43
- <ul class="actions">
44
- <li><a href="landing.html" class="button next">Get Started</a></li>
45
- </ul>
46
- </div>
47
- </section>
48
+ <p>{{ content }}</p>
48
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>
49
61
  </div>
50
-
62
+
51
63
  {% include footer.html %}
52
-
64
+ </div>
53
65
  </body>
54
-
55
66
  </html>
@@ -1,39 +1,35 @@
1
1
  <!DOCTYPE html>
2
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)
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
6
  -->
7
7
  <html>
8
-
9
- {% include head.html %}
10
-
11
- <body>
12
-
13
- {% include header.html %}
14
-
15
- <section id="banner" class="style2">
16
- <div class="inner">
17
- <span class="image">
18
- <img src="{{ site.baseurl }}/{{ page.image }}" alt="">
19
- </span>
20
- <header class="major">
21
-
22
- <h1>{{ page.title }}</h1>
23
-
24
- </header>
25
- <div class="content">
26
-
27
- {{ page.description }}
28
-
29
- </div>
30
- </div>
31
- </section>
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>
18
+
19
+ <header class="major">
20
+ <h1>{{ page.title }}</h1>
21
+ </header>
22
+
23
+ <div class="content">
24
+ {{ page.description }}
25
+ </div>
26
+ </div>
27
+ </section>
32
28
 
33
29
  {{ content }}
34
30
 
35
31
  {% include footer.html %}
36
-
32
+ </div>
37
33
  </body>
38
34
 
39
35
  </html>
@@ -9,10 +9,11 @@
9
9
  {% include head.html %}
10
10
 
11
11
  <body>
12
-
13
- {% include header.html %}
14
- {{ content }}
15
- {% include footer.html %}
12
+ <div id="wrapper">
13
+ {% include header.html %}
14
+ {{ content }}
15
+ {% include footer.html %}
16
+ </div>
16
17
 
17
18
  </body>
18
19
 
@@ -9,28 +9,28 @@
9
9
  {% include head.html %}
10
10
 
11
11
  <body>
12
-
12
+ <div id="wrapper">
13
13
  {% include header.html %}
14
14
 
15
-
16
- <!-- Main -->
17
- <div id="main" class="alt">
18
-
19
- <!-- One -->
20
- <section id="one">
21
- <div class="inner">
22
- <header class="major">
23
- <h1>{{ page.title }}</h1>
24
- </header>
25
- {% if page.image %}<span class="image main"><img src="{{ site.baseurl }}/{{ page.image }}" alt="" /></span>{% endif %}
26
- <p>{{ content }}</p>
27
- {% include pagination.html %}
28
- </div>
29
- </section>
30
-
31
- </div>
32
-
33
- {% include footer.html %}
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
34
 
35
35
  </body>
36
36
 
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.3
4
+ version: 1.0.4
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: 2017-05-19 00:00:00.000000000 Z
12
+ date: 2019-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -48,6 +48,7 @@ extra_rdoc_files: []
48
48
  files:
49
49
  - LICENSE.md
50
50
  - README.md
51
+ - _includes/_t.html
51
52
  - _includes/footer.html
52
53
  - _includes/head.html
53
54
  - _includes/header.html