bajawa 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +173 -0
  4. data/_includes/foot.html +1 -0
  5. data/_includes/footer.html +7 -0
  6. data/_includes/head.html +104 -0
  7. data/_includes/header.html +3 -0
  8. data/_includes/hero.html +11 -0
  9. data/_includes/lunr-search.html +61 -0
  10. data/_includes/navbar.html +17 -0
  11. data/_includes/pagination.html +21 -0
  12. data/_includes/post-author.html +0 -0
  13. data/_includes/post-share.html +0 -0
  14. data/_includes/recentposts.html +24 -0
  15. data/_layouts/compress.html +11 -0
  16. data/_layouts/default.html +12 -0
  17. data/_layouts/defhero.html +12 -0
  18. data/_layouts/page.html +23 -0
  19. data/_layouts/post.html +22 -0
  20. data/_sass/bajawa/_variables.scss +55 -0
  21. data/_sass/bajawa/buttons.scss +0 -0
  22. data/_sass/bajawa/forms.scss +0 -0
  23. data/_sass/bajawa/images.scss +21 -0
  24. data/_sass/bajawa/layout.scss +323 -0
  25. data/_sass/bajawa/lists.scss +0 -0
  26. data/_sass/bajawa/media.scss +77 -0
  27. data/_sass/bajawa/reset.scss +54 -0
  28. data/_sass/bajawa/syntax-highlighting.scss +1 -0
  29. data/_sass/bajawa/tables.scss +0 -0
  30. data/_sass/bajawa/typography.scss +249 -0
  31. data/_sass/bajawa.scss +24 -0
  32. data/assets/android-chrome-192x192.png +0 -0
  33. data/assets/android-chrome-512x512.png +0 -0
  34. data/assets/apple-touch-icon.png +0 -0
  35. data/assets/css/style.scss +4 -0
  36. data/assets/favicon-16x16.png +0 -0
  37. data/assets/favicon-32x32.png +0 -0
  38. data/assets/favicon.ico +0 -0
  39. data/assets/images/bajawa.png +0 -0
  40. data/assets/images/bajawapreview.jpg +0 -0
  41. data/assets/images/heroimg.jpg +0 -0
  42. data/assets/images/janedoe.jpg +0 -0
  43. data/assets/images/testimage.jpg +0 -0
  44. data/assets/js/lunr.js +2977 -0
  45. data/assets/js/menures.js +8 -0
  46. data/assets/site.webmanifest +1 -0
  47. metadata +228 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 667f064f68a1973878d05801779f4894316d02badd25e02e98ffbb7a6cb58d80
4
+ data.tar.gz: 447955da571f2124db2eb18494a9f44feedb6ed4f3d5328477c5b502638f5a36
5
+ SHA512:
6
+ metadata.gz: 1c2fa016c964a7d78f7618d80fad39560cf9f5b8098497113bff2a059dbbdd12b1c7f85ba0d3dcc42b1f2bf1a26a9fa08d115f1aba0f61f5fb6024c0e4f325f7
7
+ data.tar.gz: bfc4f420c05c85128069e0617399ea0977fe8a1d458b41bac8c033f7af3e76dba87a5fa4e1a3718e5b6a2e598b2e8a87f5bee46cd16a398d0a8cf8fa85ff5ae5
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Cynthia Ayu Windani
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,173 @@
1
+ # [Bajawa Jekyll Theme][1]
2
+ [![LICENSE](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat-square)](https://raw.githubusercontent.com/kulacino/bajawa/master/LICENSE)
3
+ [![Jekyll](https://img.shields.io/badge/jekyll-%3E%3D%203.6-blue.svg?style=flat-square)](https://jekyllrb.com/)
4
+ [![Treat me a coffee](https://img.shields.io/badge/PayPal-tip%20me-green.svg?style=flat-square&logo=paypal)](https://paypal.me/ayuwindd)
5
+
6
+ Welcome to Bajawa! A simple and clean Jekyll theme with a little touch of pastel colors! In this readme, you'll find the documentations you need to be able to set up this theme into jekyll.
7
+
8
+ Bajawa could be used as a starter also. Customize and tweak it with your own style.
9
+
10
+ **Bajawa theme information:**
11
+
12
+ ```
13
+ Author: Cynthia Ayu W.
14
+ Repository: https://github.com/kulacino/bajawa
15
+ Version: 0.1.0
16
+ Gem: 0.1.0
17
+ ```
18
+ [![Bajawa preview][2]][1]
19
+
20
+ [1]: https://kulacino.github.io/bajawa
21
+ [2]: ss01.png "site screenshot"
22
+
23
+ **If you like and enjoy this theme, please consider [treating me a coffee](https://paypal.me/ayuwindd) so I could develop and maintain it regularly.**
24
+
25
+ ## Table of Contents
26
+
27
+ 1. [Installation](#installation)
28
+ 1. [Ruby Gem Method](#ruby-gem-method)
29
+ 2. [GitHub Pages Method](#github-pages-method)
30
+ 1. [Exclude Something](#exclude-something)
31
+ 2. [Site Settings](#site-settings)
32
+ 1. [Structure](#structure)
33
+ 2. [Configuration](#configuration)
34
+ 3. [Layouts](#layouts)
35
+ 1. [`layout: default`](#layout-default)
36
+ 2. [`layout: post`](#layout-post)
37
+ 3. [`layout: page`](#layout-page)
38
+ 4. [`layout: home`](#layout-home)
39
+ 5. [`layout: search`](#layout-search)
40
+ 4. [Navigation](#navigation)
41
+ 5. [Author](#author)
42
+ 6. [Footer](#footer)
43
+ 1. [Footer Social](#footer-social)
44
+ 2. [Copyright Text](#copyright-text)
45
+ 7. [Font Awesome Icons](#font-awesome-icons)
46
+ 8. [Contributing](#contributing)
47
+ 9. [Development](#development)
48
+ 10. [Attribution](#attribution)
49
+ 11. [License](#license)
50
+
51
+ ## Installation
52
+
53
+ ### Ruby Gem Method
54
+
55
+ Add this line to your Jekyll site's `Gemfile`:
56
+
57
+ ```ruby
58
+ gem "bajawa"
59
+ ```
60
+
61
+ And add this line to your Jekyll site's `_config.yml`:
62
+
63
+ ```yaml
64
+ theme: bajawa
65
+ ```
66
+
67
+ And then execute:
68
+
69
+ $ bundle
70
+
71
+ Or install it yourself as:
72
+
73
+ $ gem install bajawa
74
+
75
+ ### Github Pages Method
76
+
77
+ to be added
78
+
79
+ #### Exclude Something
80
+
81
+ to be added
82
+
83
+ ## Site Settings
84
+
85
+ to be added
86
+
87
+ ### Structure
88
+
89
+ Basic jekyll layout on first initialization.
90
+
91
+ ### Configuration
92
+
93
+ Bajawa calls every configuration from `_config.yml`.
94
+
95
+ ## Layouts
96
+
97
+ lorem ipsum dolor
98
+
99
+ ### `layout: default`
100
+
101
+ to be added
102
+
103
+ ### `layout: post`
104
+
105
+ to be added
106
+
107
+ ### `layout: page`
108
+
109
+ to be added
110
+
111
+ ### `layout: home`
112
+
113
+ to be added
114
+
115
+ ### `layout: search`
116
+
117
+ to be added
118
+
119
+ ## Navigation
120
+
121
+ to be added
122
+
123
+ ## Author
124
+
125
+ to be added
126
+
127
+ ## Footer
128
+
129
+ to be added
130
+
131
+ ### Footer Social
132
+
133
+ to be added
134
+
135
+ ### Copyright Text
136
+
137
+ to be added
138
+
139
+ ## Font Awesome Icons
140
+
141
+ Bajawa comes with font awesome icons. Font awesome css is linked as external stylesheet via its CDN. Open `_includes/head.html` file and then scroll down before `</head>`.
142
+
143
+ ```
144
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
145
+ ```
146
+
147
+ If you want to host it by yourself, download `font-awesome.min.css` from [**here**](https://fontawesome.com/v4.7.0/get-started).
148
+
149
+ Place it under `assets/css/font-awesome.min.css` and call it via `link rel` above.
150
+
151
+ ## Contributing
152
+
153
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. 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.
154
+
155
+ ## Development
156
+
157
+ To set up your environment to develop this theme, run `bundle install`.
158
+
159
+ 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.
160
+
161
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
162
+ To add a custom directory to your theme-gem, please edit the regexp in `bajawa.gemspec` accordingly.
163
+
164
+ ## Attribution
165
+
166
+ Below is attributions and credits to external sources, such as: `image`, `code`, `script`, etc.
167
+ - [Hero Image](https://github.com/kulacino/bajawa/blob/master/assets/images/heroimg.jpg) captured by [Carolyn V](https://unsplash.com/@sixteenmilesout?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText) downloaded via [Unsplash](https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText)
168
+ - [Test Image](https://github.com/kulacino/bajawa/blob/master/assets/images/test.jpg) captured by [Billy Cox](https://unsplash.com/@billy_c?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText) downloaded via [Unsplash](https://unsplash.com/s/photos/pastel-photos?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText)
169
+ - Search Page using [lunr.js](https://lunrjs.com/)
170
+
171
+ ## License
172
+
173
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1 @@
1
+ <script src="{{ "/assets/js/menures.js" | prepend: site.baseurl | prepend: site.url }}"></script>
@@ -0,0 +1,7 @@
1
+ <footer class="site-footer">
2
+ <div class="footer-container">
3
+ <span class="copyright">{{ site.time | date: '%Y' }} &copy; {{ site.default_author }}</span><br>
4
+ <span class="credits">Built with <i class="fa fa-heart" aria-hidden="true"></i> using <a href="https://jekyllrb.com/">Jekyll</a> and
5
+ <a href="https://github.com/kulacino/bajawa">Bajawa theme</a></span>
6
+ </div>
7
+ </footer>
@@ -0,0 +1,104 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta name="apple-mobile-web-app-capable" content="yes">
4
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+
7
+ {% assign page_title = '' %}
8
+ {% if page.title == "Home" %}
9
+ {% capture page_title %}
10
+ {{ site.title}} | {{ site.description }}
11
+ {%if paginator and paginator.page != 1 %} - {{ paginator.page }}{% endif %}
12
+ {% endcapture %}
13
+ {% else %}
14
+ {% capture page_title %}
15
+ {%if page.slug == 'category' %}Category: {% endif %}
16
+ {%if page.slug == 'tag' %}Tag: {% endif %} {{ page.title }} | {{ site.title }}
17
+ {% endcapture %}
18
+ {% endif %}
19
+ {% capture page_title %}
20
+ {{ page_title | strip | rstrip | lstrip | escape | strip_newlines }}
21
+ {% endcapture %}
22
+
23
+ <title>{{ page_title }}</title>
24
+
25
+ {% assign page_description = '' %}
26
+ {% capture page_description %}
27
+ {% if page.description %}
28
+ {{ page.description | strip_html | strip | rstrip | strip_newlines | truncate: 160 }}
29
+ {% else %}
30
+ {{ site.description }}
31
+ {% endif %}
32
+ {%if paginator and paginator.page != 1 %} - {{ paginator.page }} {% endif %}
33
+ {%if page.slug == 'category' %} Category: {{ page.title }}{% endif %}
34
+ {%if page.slug == 'tag' %} Tag: {{ page.title }}{% endif %}
35
+ {% endcapture %}
36
+
37
+ {% capture page_description %}
38
+ {{ page_description | strip | rstrip | lstrip | escape | strip_newlines }}
39
+ {% endcapture %}
40
+
41
+ <meta name="description" content="{{ page_description }}">
42
+ <meta name="keywords" content="{% if page.keywords %}{{ page.keywords }}{% else %}{{ site.keywords }}{% endif %}">
43
+
44
+ <meta name="HandheldFriendly" content="True">
45
+ <meta name="MobileOptimized" content="320">
46
+
47
+ {% assign page_image = '' %}
48
+ {% capture page_image %}
49
+ {% if page.cover %}
50
+ {{ page.cover | prepend: site.baseurl | prepend: site.url }}
51
+ {% else %}
52
+ {{ site.cover | prepend: site.baseurl | prepend: site.url }}
53
+ {% endif %}
54
+ {% endcapture %}
55
+ {% capture page_image %}{{ page_image | strip | rstrip | lstrip | escape | strip_newlines }}{% endcapture %}
56
+
57
+ <!-- Social: Facebook / Open Graph -->
58
+ {% if page.id %}
59
+ <meta property="og:type" content="article">
60
+ <meta property="article:author" content="{{ site.author.name }}">
61
+ <meta property="article:section" content="{{ page.categories | join: ', ' }}">
62
+ <meta property="article:tag" content="{{ page.keywords }}">
63
+ <meta property="article:published_time" content="{{ page.date }}">
64
+ {% else%}
65
+ <meta property="og:type" content="website">
66
+ {% endif %}
67
+ <meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
68
+ <meta property="og:title" content="{{ page_title }}">
69
+ <meta property="og:image" content="{{ page_image }}">
70
+ <meta property="og:description" content="{{ page_description }}">
71
+ <meta property="og:site_name" content="{{ site.title }} | {{ site.description }}">
72
+ <meta property="og:locale" content="en_US">
73
+
74
+ <!-- Social: Twitter -->
75
+ <meta name="twitter:card" content="summary_large_image">
76
+ <meta name="twitter:site" content="{{ site.twitter_username }}">
77
+ <meta name="twitter:title" content="{{ page_title }}">
78
+ <meta name="twitter:description" content="{{ page_description }}">
79
+ <meta name="twitter:image:src" content="{{ page_image }}">
80
+
81
+ <!-- Social: Google+ / Schema.org -->
82
+ <meta itemprop="name" content="{{ page_title }}">
83
+ <meta itemprop="description" content="{{ page_description }}">
84
+ <meta itemprop="image" content="{{ page_image }}">
85
+
86
+ <!-- Canonical link tag -->
87
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
88
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
89
+
90
+ <!-- rel prev and next -->
91
+ {% if paginator.previous_page %}
92
+ <link rel="prev" href="{{ paginator.previous_page_path | prepend: site.baseurl | prepend: site.url }}">
93
+ {% endif %}
94
+ {% if paginator.next_page %}
95
+ <link rel="next" href="{{ paginator.next_page_path | prepend: site.baseurl | prepend: site.url }}">
96
+ {% endif %}
97
+
98
+ <link rel="stylesheet" href="{{ "/assets/css/style.css" | prepend: site.baseurl | prepend: site.url }}">
99
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
100
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ "/assets/apple-touch-icon.png" | prepend: site.baseurl | prepend: site.url }}">
101
+ <link rel="icon" type="image/png" sizes="32x32" href="{{ "/assets/favicon-32x32.png" | prepend: site.baseurl | prepend: site.url }}" >
102
+ <link rel="icon" type="image/png" sizes="16x16"href="{{ "/assets/favicon-16x16.png" | prepend: site.baseurl | prepend: site.url }}" >
103
+ <link rel="manifest" href="{{ "/assets/site.webmanifest" | prepend: site.baseurl | prepend: site.url }}" >
104
+ </head>
@@ -0,0 +1,3 @@
1
+ <header class="site-header">
2
+ {% include navbar.html %}
3
+ </header>
@@ -0,0 +1,11 @@
1
+ <section class="hero-wrapper">
2
+ <div class="hero-wrapper-container">
3
+ <div class="hero-img">
4
+ </div>
5
+ <div class="hero-text">
6
+ <h1 class="hero-title">{{ heading | default: site.title | escape }}</h1>
7
+ <h2 class="hero-desc">{{ subheading | default: site.description | escape }}</h2>
8
+ <a class="button" href="{{ '/about' | prepend: site.baseurl | prepend: site.url }}">Read More</a>
9
+ </div>
10
+ </div>
11
+ </section>
@@ -0,0 +1,61 @@
1
+ <script src="/assets/js/lunr.js"></script>
2
+
3
+ <script>
4
+ {% assign counter = 0 %}
5
+ var documents = [{% for page in site.pages %}{% if page.url contains '.xml' or page.url contains 'assets' %}{% else %}{
6
+ "id": {{ counter }},
7
+ "url": "{{ site.url }}{{ page.url }}",
8
+ "title": "{{ page.title }}",
9
+ "body": "{{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
10
+ }, {% endif %}{% endfor %}{% for page in site.without-plugin %}{
11
+ "id": {{ counter }},
12
+ "url": "{{ site.url }}{{ page.url }}",
13
+ "title": "{{ page.title }}",
14
+ "body": "{{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
15
+ }, {% endfor %}{% for page in site.posts %}{
16
+ "id": {{ counter }},
17
+ "url": "{{ site.url }}{{ page.url }}",
18
+ "title": "{{ page.title }}",
19
+ "body": "{{ page.date | date: "%Y/%m/%d" }} - {{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
20
+ }{% if forloop.last %}{% else %}, {% endif %}{% endfor %}];
21
+
22
+ var idx = lunr(function () {
23
+ this.ref('id')
24
+ this.field('title')
25
+ this.field('body')
26
+
27
+ documents.forEach(function (doc) {
28
+ this.add(doc)
29
+ }, this)
30
+ });
31
+ function lunr_search(term) {
32
+ document.getElementById('lunrsearchresults').innerHTML = '<ul></ul>';
33
+ if(term) {
34
+ document.getElementById('lunrsearchresults').innerHTML = "<p>Search results for '" + term + "'</p>" + document.getElementById('lunrsearchresults').innerHTML;
35
+ //put results on the screen.
36
+ var results = idx.search(term);
37
+ if(results.length>0){
38
+ //console.log(idx.search(term));
39
+ //if results
40
+ for (var i = 0; i < results.length; i++) {
41
+ // more statements
42
+ var ref = results[i]['ref'];
43
+ var url = documents[ref]['url'];
44
+ var title = documents[ref]['title'];
45
+ var body = documents[ref]['body'].substring(0,160)+'...';
46
+ document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML + "<li class='lunrsearchresult'><a href='" + url + "'><span class='title'>" + title + "</span><br /><span class='body'>"+ body +"</span><br /><span class='url'>"+ url +"</span></a></li>";
47
+ }
48
+ } else {
49
+ document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = "<li class='lunrsearchresult'>No results found...</li>";
50
+ }
51
+ }
52
+ return false;
53
+ }
54
+ </script>
55
+
56
+ <form onSubmit="return lunr_search(document.getElementById('lunrsearch').value);">
57
+ <p><input type="text" class="form-control" id="lunrsearch" name="q" maxlength="255" value="" placeholder="Type something here..." /></p>
58
+ </form>
59
+ <div id="lunrsearchresults">
60
+ <ul></ul>
61
+ </div>
@@ -0,0 +1,17 @@
1
+ <nav class="navbar">
2
+ <div class="logo-container">
3
+ <h1 class="logo-left"><a href="{{ '/' | prepend: site.baseurl | prepend: site.url }}">{{ site.title }}</a></h1>
4
+ </div>
5
+ <div class="nav-container">
6
+ <ul class="navbar-right" id="myFunction">
7
+ <li><a href="{{ '/about' | prepend: site.baseurl | prepend: site.url }}"><i class="fa fa-user"></i>&nbsp; About</a></li>
8
+ <li><a href="{{ '/blog' | prepend: site.baseurl | prepend: site.url }}"><i class="fa fa-pencil"></i>&nbsp; Blog</a></li>
9
+ <li><a href="{{ '/search' | prepend: site.baseurl | prepend: site.url }}"><i class="fa fa-search"></i>&nbsp; Search</a></li>
10
+ <li>
11
+ <!-- "Hamburger menu" / "Bar icon" to toggle the navigation links -->
12
+ <a href="javascript:void(0);" class="icon" onclick="myFunction()">
13
+ <i class="fa fa-bars"></i>
14
+ </a></li>
15
+ </ul>
16
+ </div>
17
+ </nav>
@@ -0,0 +1,21 @@
1
+ {% if paginator.total_pages > 1 %}
2
+ <nav class="pagination" role="pagination">
3
+ <ul>
4
+ {% assign url = site.baseurl | append: "/" %}
5
+ {% if paginator.previous_page %}
6
+ {% if paginator.previous_page > 1 %}
7
+ {% assign prev = 'page/' | append: paginator.previous_page %}
8
+ {% endif %}
9
+ <li><a class="prev" href="{{ url | append: prev }}" title="Articles new">&laquo; Prev</a></li>
10
+ {% else %}
11
+ <li><span class="prev disabled">&laquo; Prev</span></li>
12
+ {% endif %}
13
+ <li><span class="page-number">Page {{paginator.page}} of {{paginator.total_pages}}</span></li>
14
+ {% if paginator.next_page %}
15
+ <li><a class="next" href="{{ url | append: 'page/' | append: paginator.next_page }}" title="Articles old">Next &raquo;</a></li>
16
+ {% else %}
17
+ <li><span class="next disabled">Next &raquo;</span></li>
18
+ {% endif %}
19
+ </ul>
20
+ </nav>
21
+ {% endif %}
File without changes
File without changes
@@ -0,0 +1,24 @@
1
+ <section class="recent-post-wrapper">
2
+ <div class="recent-post-container">
3
+ <h1 class="section-title">Recent Posts</h1>
4
+ <div class="post-entry-grid">
5
+ {% for post in site.posts limit:6 %}
6
+ <div class="entry-flex">
7
+ <header class="post-title">
8
+ <a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">{{ post.title }}</a>
9
+ </header>
10
+ <div class="post-meta">
11
+ <span>Posted at {{ post.date | date: "%b %d" }}</span>
12
+ by <span>{{ post.author }}</span>
13
+ </div>
14
+ <div class="post-excerpt">
15
+ {{ post.excerpt }}
16
+ </div>
17
+ </div>
18
+ {% endfor %}
19
+ </div>
20
+ <div class="button-post">
21
+ <a class="button" href="{{ '/blog' | prepend: site.baseurl | prepend: site.url }}">More Posts</a>
22
+ </div>
23
+ </div>
24
+ </section>
@@ -0,0 +1,11 @@
1
+ ---
2
+ # Jekyll layout that compresses HTML
3
+ # v2.1.0
4
+ # http://jch.penibelst.de/
5
+ # © 2014–2015 Anatol Broder
6
+ # MIT License
7
+ ---
8
+
9
+ {% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.ignore.whitespaces %}{% assign _random = site.time | date: "%s%N" %}{% if site.compress_html.ignore.whitespaces contains "SPACE" %}{% capture _ignore_space %} {% endcapture %}{% capture _freeze_space %}space{{ _random }}{% endcapture %}{% capture _join %}
10
+ {% endcapture %}{% else %}{% capture _ignore_space %}{% endcapture %}{% capture _freeze_space %}{% endcapture %}{% capture _join %} {% endcapture %}{% endif %}{% if site.compress_html.ignore.whitespaces contains "LINE FEED" %}{% capture _ignore_line_feed %}
11
+ {% endcapture %}{% capture _freeze_line_feed %}line_feed{{ _random }}{% endcapture %}{% else %}{% capture _ignore_line_feed %}{% endcapture %}{% capture _freeze_line_feed %}{% endcapture %}{% endif %}{% if site.compress_html.ignore.whitespaces contains "CHARACTER TABULATION" %}{% capture _ignore_character_tabulation %} {% endcapture %}{% capture _freeze_character_tabulation %}character_tabulation{{ _random }}{% endcapture %}{% else %}{% capture _ignore_character_tabulation %}{% endcapture %}{% capture _freeze_character_tabulation %}{% endcapture %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% if _pres.size != 0 %}{% if site.compress_html.ignore.whitespaces %}{% assign _pres_after = _pres.last | replace: _ignore_space, _freeze_space | replace: _ignore_line_feed, _freeze_line_feed | replace: _ignore_character_tabulation, _freeze_character_tabulation | split: " " | join: _join | replace: _freeze_character_tabulation, _ignore_character_tabulation | replace: _freeze_line_feed, _ignore_line_feed | replace: _freeze_space, _ignore_space %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% case _pres.size %}{% when 2 %}{% capture _content %}{{ _content }}<pre{{ _pres.first }}</pre>{{ _pres_after }}{% endcapture %}{% when 1 %}{% capture _content %}{{ _content }}{{ _pres_after }}{% endcapture %}{% endcase %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% assign _comment_befores = _content | split: _comments.first %}{% for _comment_before in _comment_befores %}{% assign _comment_content = _comment_before | split: _comments.last | first %}{% if _comment_content %}{% capture _comment %}{{ _comments.first }}{{ _comment_content }}{{ _comments.last }}{% endcapture %}{% assign _content = _content | remove: _comment %}{% endif %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ {% include head.html %}
4
+ <body>
5
+ <div class="wrapper-all">
6
+ {% include header.html %}
7
+ {{ content }}
8
+ {% include footer.html %}
9
+ </div>
10
+ {% include foot.html %}
11
+ </body>
12
+ </html>
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ {% include head.html %}
4
+ <body>
5
+ <div class="wrapper-all">
6
+ {% include header.html %}
7
+ {% include hero.html %}
8
+ {{ content }}
9
+ {% include footer.html %}
10
+ </div>
11
+ </body>
12
+ </html>
@@ -0,0 +1,23 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <section class="page-container">
6
+ <div class="page-wrapper">
7
+ <header class="page-header">
8
+ {% if page.id %}
9
+ {% assign title = page.title | markdownify | strip_html %}
10
+ {% else %}
11
+ {% assign title = page.title %}
12
+ {% endif %}
13
+ {% if page.link %}
14
+ <h1 id="page-title" class="page-title"><a href="{{ page.link }}">{{ title }} <span class="link-arrow">&rarr;</span></a></h1>
15
+ {% else %}
16
+ <h1 id="page-title" class="page-title">{{ title }}</h1>
17
+ {% endif %}
18
+ </header>
19
+ <div class="page-content">
20
+ {{ content }}
21
+ </div>
22
+ </div>
23
+ </section>
@@ -0,0 +1,22 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article class="post-container">
6
+ <div class="post-wrapper">
7
+ <header class="post-header">
8
+ <h1 class="post-title">{{ page.title }}</h1>
9
+ <p class="post-meta">
10
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%b %-d, %Y" }}</time>
11
+ {% if page.author %} &middot;
12
+ <span>{{ page.author }}</span>
13
+ {% endif %}
14
+ </p>
15
+ </header>
16
+ <div class="post-content">
17
+ {{ content }}
18
+ </div>
19
+ {% include post-share.html %}
20
+ {% include post-author.html %}
21
+ </div>
22
+ </article>
@@ -0,0 +1,55 @@
1
+ @import url('https://fonts.googleapis.com/css?family=Roboto:400,700');
2
+ @import url('https://fonts.googleapis.com/css?family=Lato:400,700');
3
+ @import url('https://fonts.googleapis.com/css2?family=Fredericka+the+Great');
4
+ @import url('https://fonts.googleapis.com/css?family=Kreon:400,700');
5
+ @import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');
6
+ $base-font-type: 'Roboto', 'Lato', sans-serif;
7
+ $heading-font-type: 'Fredericka the Great', cursive;
8
+ $plaintext-font-type: 'Courier Prime', 'Consolas', monospace;
9
+ $alternate-font-type: 'Kreon', serif;
10
+
11
+ /** Font Size **/
12
+ $base-font-size: 1em;
13
+ $page-title: 24px;
14
+
15
+ /** Line Height Default **/
16
+ $base-line-height: 1.5;
17
+ $heading-line-height: 1.2;
18
+
19
+ /** Other Size **/
20
+ $maxwidth: 1000px;
21
+ $maxheight: 800px;
22
+ $base-border-radius: .52em;
23
+ $base-spacing: $base-line-height * 1em;
24
+ $small-spacing: $base-spacing / 2;
25
+ $base-z-index: 0;
26
+
27
+ /** Theme Colors **/
28
+ $black: #000;
29
+ $white: #fff;
30
+ $blue: #318fb5;
31
+ $light-berry: #dd7e6b;
32
+ $dark-berry: #7d0633;
33
+ $action-color: $dark-berry;
34
+ $dark-grey: #696969;
35
+ $medium-grey: #ddd;
36
+ $light-grey: #f1f1f1;
37
+
38
+ /** Font Color **/
39
+ $base-font-color: $dark-grey;
40
+
41
+ /** Border **/
42
+ $base-border-color: $light-grey;
43
+ $base-border: 1px solid $base-border-color;
44
+
45
+ /** Backgroud **/
46
+ $base-bg-color: $white;
47
+ $secondary-bg-color: tint($base-border-color, 80%);
48
+
49
+ /** Forms **/
50
+ $form-box-shadow: inset 0 1px 3px rgba($black, 0.06);
51
+ $form-box-shadow-focus: $form-box-shadow, 0 0 5px adjust-color($action-color, $lightness: -5%, $alpha: -0.3);
52
+
53
+ /** Animations **/
54
+ $base-duration: 150ms;
55
+ $base-timing: ease;
File without changes
File without changes
@@ -0,0 +1,21 @@
1
+ /** Image Styling **/
2
+
3
+ /** Image inside Post Layout **/
4
+ .post-content img {
5
+ max-width: 100%;
6
+ display: block;
7
+ border: 1px solid $dark-berry;
8
+ border-radius: 5px;
9
+ padding: 5px;
10
+ margin: auto;
11
+ }
12
+
13
+ .post-content figure {
14
+ margin: auto;
15
+ }
16
+
17
+ .post-content figcaption {
18
+ margin: 5px auto;
19
+ font-size: 80%;
20
+ text-align: center;
21
+ }