jekyll-taco 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2428cdc53599cec2660718c7852dc973f962da19bbf2c875d0b1e9beab811227
4
+ data.tar.gz: 8486b13393f3312e351a8e34862543f19a01b5309b4020c6c281906c63fa50d7
5
+ SHA512:
6
+ metadata.gz: 64895755badc5abac98154dd284620f49456c3af0248ced86c7a8eaa4ffda05c04fefd758dfd0a0d6ff7d2f3e5078b678889ee0257438bdb8d1c5234e92b746e
7
+ data.tar.gz: 954d5c76155d98721779df3fb3c2f26d2fabdae0e9f72f7cc74bdf7ae168bda2d00d888c38cf32a2c7acbea9a19606fc9c29eb34fb077d560d1f646cf699fbff
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Jordan Black
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,52 @@
1
+ # Taco
2
+
3
+ Taco is a Jekyll theme designed for a small brochure-style site.
4
+
5
+ ## Screenshot
6
+ TODO: Add screenshot.png
7
+
8
+ ## Features
9
+ TODO: Add features list.
10
+
11
+ ## Installation
12
+
13
+ Add this line to your Jekyll site's `Gemfile`:
14
+
15
+ ```ruby
16
+ gem "taco"
17
+ ```
18
+
19
+ And add this line to your Jekyll site's `_config.yml`:
20
+
21
+ ```yaml
22
+ theme: taco
23
+ ```
24
+
25
+ And then execute:
26
+
27
+ $ bundle
28
+
29
+ Or install it yourself as:
30
+
31
+ $ gem install taco
32
+
33
+ ## Usage
34
+
35
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
36
+
37
+ ## Contributing
38
+
39
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jordanblackdev/jekyll-taco. 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.
40
+
41
+ ## Development
42
+
43
+ To set up your environment to develop this theme, run `bundle install`.
44
+
45
+ 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.
46
+
47
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
48
+ To add a custom directory to your theme-gem, please edit the regexp in `taco.gemspec` accordingly.
49
+
50
+ ## License
51
+
52
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,38 @@
1
+ <footer class="footer flex-grid flex-grid--quarters">
2
+ <div class='footer-module column'>
3
+ <h5>About</h5>
4
+ <p>{{ site.description }}</p>
5
+ </div>
6
+ <div class='footer-module column'>
7
+ <h5>Latest Posts</h5>
8
+ <ul>
9
+ {% for post in site.posts limit:4 %}
10
+ <li>
11
+ <a href="{{ post.url }}">{{ post.title}}</a>
12
+ </li>
13
+ {% endfor %}
14
+ </ul>
15
+ </div>
16
+ <div class='footer-module column'>
17
+ <h5>Categories</h5>
18
+ <ul>
19
+ {% for category in site.categories %}
20
+ <li>
21
+ <a href="{{ baseurl }}/category/{{ category | first }}.html">{{ category | first }}</a>
22
+ </li>
23
+ {% endfor %}
24
+ </ul>
25
+ </div>
26
+ <div class='footer-module column'>
27
+ <h5>Social</h5>
28
+ {% include social.html %}
29
+ </div>
30
+ </footer>
31
+
32
+ <script>
33
+ $(document).ready(function() {
34
+ jQuery('.menu-icon').click(function(e) {
35
+ $("#nav").toggleClass("hidden");
36
+ });
37
+ });
38
+ </script>
@@ -0,0 +1,30 @@
1
+ <meta charset="utf-8">
2
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1">
4
+
5
+ <title>
6
+ {% if paginator %}
7
+ Blog - Page {{ paginator.page }} | {{ site.title }}
8
+ {% else %}
9
+ {{ page.title }} | {{ site.title }}
10
+ {% endif %}
11
+ </title>
12
+
13
+ <meta name="description" content="A blank website template.">
14
+
15
+ <link rel="stylesheet" href="/assets/main.css">
16
+
17
+ <!-- Favicon -->
18
+ <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
19
+ <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
20
+ <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
21
+ <link rel="manifest" href="/site.webmanifest">
22
+ <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
23
+ <meta name="msapplication-TileColor" content="#2b5797">
24
+ <meta name="theme-color" content="#ffffff">
25
+
26
+ <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i|Questrial" rel="stylesheet">
27
+
28
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
29
+
30
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
@@ -0,0 +1,22 @@
1
+ <header>
2
+ <div class="title-area">
3
+ <div class="logo-container">
4
+ <div class="logo">
5
+ <a href="{{ site.url | absolute_url }}"><img src="/assets/logo.svg" alt="Logo"></a>
6
+ </div>
7
+ <h1>{{ site.title }}</h1>
8
+ </div>
9
+ <span class="menu-icon"><i class="fas fa-bars"></i></span>
10
+ </div>
11
+
12
+ <nav class="navigation">
13
+ <ul id="nav" class="hidden">
14
+ {% assign mypages = site.pages | sort: "order" %}
15
+ {% for page in mypages %}
16
+ {% unless page.exclude or page.url contains 'page' %}
17
+ <li class="nav__item"><a href="{{ page.url | absolute_url }}">{{ page.title }}</a></li>
18
+ {% endunless %}
19
+ {% endfor %}
20
+ </ul>
21
+ </nav>
22
+ </header>
@@ -0,0 +1,33 @@
1
+ <div id="sidebar">
2
+ <h6>Archives</h6>
3
+ <ul>
4
+ {% assign counter = 0 %}
5
+ {% for post in site.posts %}
6
+ {% assign currentDate = post.date | date: "%B %Y" %}
7
+ {% assign prevYear = post.previous.date | date: "%B %Y" %}
8
+ {% assign counter = counter | plus: 1 %}
9
+ {% if currentDate != prevYear %}
10
+ <li><a href="/archive/#{{ post.date | date:"%B %Y" }}">{{ currentDate }} ({{ counter }})</a></li>
11
+ {% assign counter = 0 %}
12
+ {% endif %}
13
+ {% endfor %}
14
+ </ul>
15
+
16
+ <h6>Categories</h6>
17
+ <ul>
18
+ {% for category in site.categories %}
19
+ <li>
20
+ <a href="{{ baseurl }}/category/{{ category | first }}.html">{{ category | first }}</a>
21
+ </li>
22
+ {% endfor %}
23
+ </ul>
24
+
25
+ <h6>Latest Posts</h6>
26
+ <ul>
27
+ {% for post in site.posts limit:3 %}
28
+ <li>
29
+ <a href="{{ post.url }}">{{ post.title }}</a>
30
+ </li>
31
+ {% endfor %}
32
+ </ul>
33
+ </div>
@@ -0,0 +1,69 @@
1
+ <ul class="social-list">
2
+ {% if site.twitter_username %}
3
+ <li>
4
+ <a href="https://twitter.com/{{ site.twitter_username | cgi_escape | escape }}"><i class="fab fa-twitter"></i></span>
5
+ </a>
6
+ </li>
7
+ {% endif %}
8
+
9
+ {% if site.github_username %}
10
+ <li>
11
+ <a href="https://github.com/{{ site.github_username | cgi_escape | escape }}"><i class="fab fa-github"></i></a>
12
+ </li>
13
+ {% endif %}
14
+
15
+ {% if site.dribbble_username %}
16
+ <li>
17
+ <a href="https://dribbble.com/{{ site.dribbble_username | cgi_escape | escape }}"><i class="fab fa-dribbble"></i></a>
18
+ </li>
19
+ {% endif %}
20
+
21
+ {% if site.facebook_username %}
22
+ <li>
23
+ <a href="https://www.facebook.com/{{ site.facebook_username | cgi_escape | escape }}"><i class="fab fa-facebook"></i></a>
24
+ </li>
25
+ {% endif %}
26
+
27
+ {% if site.flickr_username %}
28
+ <li>
29
+ <a href="https://flickr.com/{{ site.flickr_username | cgi_escape | escape }}"><i class="fab fa-flickr"></i></a>
30
+ </li>
31
+ {% endif %}
32
+
33
+ {% if site.instagram_username %}
34
+ <li>
35
+ <a href="https://www.instagram.com/{{ site.instagram_username | cgi_escape | escape }}"><i class="fab fa-instagram"></i></a>
36
+ </li>
37
+ {% endif %}
38
+
39
+ {% if site.linkedin_username %}
40
+ <li>
41
+ <a href="https://www.linkedin.com/{{ site.linkedin_username | cgi_escape | escape }}"><i class="fab fa-linkedin"></i></a>
42
+ </li>
43
+ {% endif %}
44
+
45
+ {% if site.pinterest_username %}
46
+ <li>
47
+ <a href="https://www.pinterest.com/{{ site.pinterest_username | cgi_escape | escape }}"><i class="fab fa-pinterest"></i></a>
48
+ </li>
49
+ {% endif %}
50
+
51
+ {% if site.youtube_username %}
52
+ <li>
53
+ <a href="https://www.youtube.com/{{ site.youtube_username | cgi_escape | escape }}"><i class="fab fa-youtube"></i></a>
54
+ </li>
55
+ {% endif %}
56
+
57
+ {% if site.googleplus_username %}
58
+ <li>
59
+ <a href="https://plus.google.com/{{ site.googleplus_username | cgi_escape | escape }}"><i class="fab fa-google-plus-g"></i></a>
60
+ </li>
61
+ {% endif %}
62
+
63
+ {% if site.rss %}
64
+ <li>
65
+ <a href="{{ 'feed.xml' | relative_url }}"><i class="fas fa-rss"></i></a>
66
+ </li>
67
+ {% endif %}
68
+
69
+ </ul>
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: blog
3
+ ---
4
+ <h2>Archive</h2>
5
+ {% assign postsByMonth = site.posts | group_by_exp:"post", "post.date | date: '%B %Y'" %}
6
+ {% for yearMonth in postsByMonth %}
7
+ <h5 id="{{ yearMonth.name }}">{{ yearMonth.name }}</h5>
8
+ <ul class="archive-list">
9
+ {% for post in yearMonth.items %}
10
+ <li><a href="{{ post.url }}">{{ post.title }}</a></li>
11
+ {% endfor %}
12
+ </ul>
13
+ {% endfor %}
@@ -0,0 +1,26 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ {% include head.html %}
6
+ </head>
7
+
8
+ <body>
9
+ <div class="content">
10
+ {% include header.html %}
11
+
12
+ <div class="blog-container">
13
+ <div class="blog-content">
14
+ {{ content }}
15
+ </div>
16
+
17
+ {% include sidebar.html %}
18
+ </div>
19
+
20
+ {% include footer.html %}
21
+ </div>
22
+
23
+ <script src="#"></script>
24
+ </body>
25
+
26
+ </html>
@@ -0,0 +1,22 @@
1
+ ---
2
+ layout: blog
3
+
4
+ ---
5
+
6
+ <h2>Category: {{ page.category }}</h2>
7
+
8
+ <ul class="post-list">
9
+ {% for post in site.categories[page.category] %}
10
+ <li>
11
+ <h3><a href="{{ post.url }}">{{ post.title}}</a></h3>
12
+ <p>{{ post.date | date: "%b %-d, %Y" }}</p>
13
+ {%- if post.image -%}
14
+ <img src="/assets/images/{{ post.image }}" alt="Post Image" class="post__image">
15
+ {%- endif -%}
16
+ {%- if site.show_excerpts -%}
17
+ {{ post.excerpt }}
18
+ {%- endif -%}
19
+ <a href="{{ post.url }}" class="button index-card__button">Read more</a>
20
+ </li>
21
+ {% endfor %}
22
+ </ul>
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ {% include head.html %}
6
+ </head>
7
+
8
+ <body class="fade-in">
9
+ <div class="content">
10
+ {% include header.html %}
11
+
12
+ <div class="container">
13
+ {{ content }}
14
+ </div>
15
+
16
+ {% include footer.html %}
17
+ </div>
18
+
19
+ <script src="#"></script>
20
+ </body>
21
+
22
+ </html>
@@ -0,0 +1,48 @@
1
+ ---
2
+ layout: blog
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ {%- if site.posts.size > 0 -%}
8
+ <ul class="post-list">
9
+ {% for post in paginator.posts %}
10
+ <li>
11
+ <h3><a href="{{ post.url }}">{{ post.title}}</a></h3>
12
+ <p>{{ post.date | date: "%b %-d, %Y" }}</p>
13
+ {%- if post.image -%}
14
+ <img src="/assets/images/{{ post.image }}" alt="Post Image" class="post__image">
15
+ {%- endif -%}
16
+ {%- if site.show_excerpts -%}
17
+ {{ post.excerpt }}
18
+ {%- endif -%}
19
+ <a href="{{ post.url }}" class="button index-card__button">Read more</a>
20
+ </li>
21
+ {% endfor %}
22
+ </ul>
23
+ {%- endif -%}
24
+
25
+ <!-- Pagination links -->
26
+ {% if paginator.total_pages > 1 %}
27
+ <ul class="pagination-list">
28
+ {% if paginator.next_page %}
29
+ <li class="older">
30
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl }}"><i class="fas fa-angle-left"></i> Older</a>
31
+ </li>
32
+ {% else %}
33
+ <li class="older">
34
+ <i class="fas fa-angle-left"></i> Older
35
+ </li>
36
+ {% endif %}
37
+
38
+ {% if paginator.previous_page %}
39
+ <li class="newer">
40
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer <i class="fas fa-angle-right"></i></a>
41
+ </li>
42
+ {% else %}
43
+ <li class="newer">
44
+ Newer <i class="fas fa-angle-right"></i>
45
+ </li>
46
+ {% endif %}
47
+ </ul>
48
+ {% endif %}
@@ -0,0 +1,23 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ {% include head.html %}
6
+ </head>
7
+
8
+ <body>
9
+ <div class="content">
10
+ {% include header.html %}
11
+
12
+ <h2>{{ page.title }}</h2>
13
+
14
+ {{ content }}
15
+
16
+ {% include footer.html %}
17
+
18
+ </div>
19
+
20
+ <script src="#"></script>
21
+ </body>
22
+
23
+ </html>