adam-jekyll 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c2b36d9c21ed6c11bd193fb22e86cc52982f665deddbedeac067b811e157bdf9
4
+ data.tar.gz: 4dfc0e851e814bea794075e943c78abcd1f0f509c32076f23ba96db2b880bb64
5
+ SHA512:
6
+ metadata.gz: 8dbfb632268557efd7e50b6ca337e163715335043f69bcb9aa2846aaf1984062158c8d5a40a2d8487ea31b813d02f3f887aa98511508c28fb35502230d566775
7
+ data.tar.gz: 8dc9e85cce3f37cbe56a7f545fa7b1077b550aef71eb7187e39c02967298c5dc5d7f4f43db67ccefceec0fb88b6382d71b9477aa054a2e68dc72860292c03da2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Gelo
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,65 @@
1
+ # adam
2
+
3
+ Adam is a basic Jekyll theme meant as boilerplate code for more complex projects.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your Jekyll site's `Gemfile`:
8
+
9
+ ```ruby
10
+ gem "adam"
11
+ ```
12
+
13
+ And add this line to your Jekyll site's `_config.yml`:
14
+
15
+ ```yaml
16
+ theme: adam
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install adam
26
+
27
+ ## Usage
28
+
29
+ This is a very simple Jekyll theme meant to act a boilerplate code.
30
+
31
+ This project borrows code from the following:
32
+ * [The official Jekyll step-by-step tutorial](https://jekyllrb.com/docs/step-by-step/01-setup/)
33
+ * [Jekyll Codex](https://jekyllcodex.org/)
34
+ * [This masterclass on how to effectively style a webpage with minimal CSS](https://github.com/Zachtreis/bettermotherfuckingwebsite)
35
+ * [This wonderful article on fluid typography using Sass](https://css-tricks.com/snippets/css/fluid-typography/)
36
+
37
+ ### Layouts
38
+ 1. Default
39
+ 2. Page
40
+ 3. Author
41
+ 4. Post
42
+
43
+ ### Features
44
+
45
+ #### Image Gallery
46
+
47
+ I used the [image gallery solution from Jekyll Codex](https://jekyllcodex.org/without-plugin/image-gallery/).
48
+
49
+ ## Contributing
50
+
51
+ 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.
52
+
53
+ ## Development
54
+
55
+ To set up your environment to develop this theme, run `bundle install`.
56
+
57
+ 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.
58
+
59
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
60
+ To add a custom directory to your theme-gem, please edit the regexp in `adam.gemspec` accordingly.
61
+
62
+ ## License
63
+
64
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
65
+
@@ -0,0 +1,11 @@
1
+ <div id="breadcrumbs">
2
+ {% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
3
+ <a href="/">Home</a>
4
+ {% for crumb in crumbs offset: 1 %}
5
+ {% if forloop.last %}
6
+ / {{ page.title }}
7
+ {% else %}
8
+ / <a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a>
9
+ {% endif %}
10
+ {% endfor %}
11
+ </div>
@@ -0,0 +1,21 @@
1
+ <style>
2
+ .image-gallery {overflow: auto; margin-left: -1%!important;}
3
+ .image-gallery li {float: left; display: block; margin: 0 0 1% 1%; width: 19%;}
4
+ .image-gallery li a {text-align: center; text-decoration: none!important; color: #777;}
5
+ .image-gallery li a span {display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; padding: 3px 0;}
6
+ .image-gallery li a img {width: 100%; display: block;}
7
+ </style>
8
+
9
+ <ul class="image-gallery">
10
+ {% for file in site.static_files %}{% if file.path contains include.folder %}{% if file.extname == '.jpg' or file.extname == '.jpeg' or file.extname == '.JPG' or file.extname == '.JPEG' %}
11
+ {% assign filenameparts = file.path | split: "/" %}{% assign filename = filenameparts | last | replace: file.extname,"" %}
12
+ <li>
13
+ <a href="{{ file.path | relative_url }}" title="{{ filename }}" target="_blank">
14
+ <img src="{{ file.path | relative_url }}" alt="{{ filename }}" title="{{ filename }}" />
15
+ <!--<span>{{ filename }}</span>-->
16
+ </a>
17
+ </li>
18
+ {% endif %}
19
+ {% endif %}
20
+ {% endfor %}
21
+ </ul>
@@ -0,0 +1,21 @@
1
+ <!-- Script pointing to search-script.js -->
2
+ <nav>
3
+ {% for item in site.data.navigation %}
4
+ <a href="{{ item.link }}" {% if page.url == item.link %}class="current"{% endif %}>{{ item.name }}</a>
5
+ {% endfor %}
6
+ <!-- HTML elements for search -->
7
+ <input type="text" id="search-input" placeholder="Search blog posts.." style="float: right;">
8
+ </nav>
9
+ <ul id="results-container">
10
+ </ul>
11
+
12
+ <script src="/assets/js/simple-jekyll-search.min.js" type="text/javascript"></script>
13
+
14
+ <!-- Configuration -->
15
+ <script>
16
+ SimpleJekyllSearch({
17
+ searchInput: document.getElementById('search-input'),
18
+ resultsContainer: document.getElementById('results-container'),
19
+ json: '/search.json'
20
+ })
21
+ </script>
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <h1>{{ page.name }}</h1>
5
+ <h2>{{ page.position }}</h2>
6
+
7
+ {{ content }}
8
+
9
+ <h2>Posts</h2>
10
+ <ul>
11
+ {% assign filtered_posts = site.posts | where: 'author', page.short_name %}
12
+ {% for post in filtered_posts %}
13
+ <li><a href="{{ post.url }}">{{ post.title }}</a></li>
14
+ {% endfor %}
15
+ </ul>
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>{{ page.title }}</title>
7
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Crimson+Pro&display=swap">
8
+ <link rel="stylesheet" href="/assets/css/styles.css">
9
+ </head>
10
+ <body>
11
+ {% include navigation.html %}
12
+ {% include breadcrumbs.html %}
13
+ {{ content }}
14
+ </body>
15
+ </html>
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <h1>{{ page.title }}</h1>
5
+
6
+ <p>
7
+ {{ page.date | date_to_string }}
8
+ {% assign author = site.authors | where: 'short_name', page.author | first %}
9
+ {% if author %}
10
+ - <a href="{{ author.url }}">{{ author.name }}</a>
11
+ {% endif %}
12
+ </p>
13
+
14
+ {{ content }}
data/_sass/main.scss ADDED
@@ -0,0 +1,70 @@
1
+ /*@import url('https://fonts.googleapis.com/css?family=Inter&Crimson+Prodisplay=swap');*/
2
+
3
+ @function strip-unit($value) {
4
+ @return $value / ($value * 0 + 1);
5
+ }
6
+
7
+ @mixin fluid-type($min-vw, $max-vw, $min-font-size, $max-font-size) {
8
+ $u1: unit($min-vw);
9
+ $u2: unit($max-vw);
10
+ $u3: unit($min-font-size);
11
+ $u4: unit($max-font-size);
12
+
13
+ @if $u1 == $u2 and $u1 == $u3 and $u1 == $u4 {
14
+ & {
15
+ font-size: $min-font-size;
16
+ @media screen and (min-width: $min-vw) {
17
+ font-size: calc(#{$min-font-size} + #{strip-unit($max-font-size - $min-font-size)} * ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)}));
18
+ }
19
+ @media screen and (min-width: $max-vw) {
20
+ font-size: $max-font-size;
21
+ }
22
+ }
23
+ }
24
+ }
25
+
26
+ $min_width: 320px;
27
+ $max_width: 1200px;
28
+ $min_font: 16px;
29
+ $max_font: 24px;
30
+
31
+ $text-color: #444;
32
+ $bg-color: #EEE;
33
+
34
+ $header-font: Inter, sans-serif;
35
+ $body-font: 'Crimson Pro', serif;
36
+
37
+ html {
38
+ @include fluid-type($min_width, $max_width, $min_font, $max_font);
39
+ }
40
+
41
+ body{
42
+ color: $text-color;
43
+ background-color: $bg-color;
44
+ margin: 40px auto;
45
+ max-width: 650px;
46
+ line-height: 1.6em;
47
+ padding: 0;
48
+ font-family: $body-font;
49
+ }
50
+
51
+ h1, h2, h3, h4, h5, h6 {
52
+ font-family: $header-font;
53
+ }
54
+
55
+ nav {
56
+ font-family: $header-font;
57
+ font-weight: 800;
58
+ }
59
+
60
+ a {
61
+ text-decoration: none;
62
+ }
63
+
64
+ a:hover {
65
+ text-decoration: underline;
66
+ }
67
+
68
+ .current {
69
+ color: $text-color;
70
+ }
@@ -0,0 +1,3 @@
1
+ ---
2
+ ---
3
+ @import "main";
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Simple-Jekyll-Search
3
+ * Copyright 2015-2020, Christian Fei
4
+ * Licensed under the MIT License.
5
+ */
6
+ !function(){"use strict";var f={compile:function(r){return i.template.replace(i.pattern,function(t,e){var n=i.middleware(e,r[e],i.template);return void 0!==n?n:r[e]||t})},setOptions:function(t){i.pattern=t.pattern||i.pattern,i.template=t.template||i.template,"function"==typeof t.middleware&&(i.middleware=t.middleware)}};const i={pattern:/\{(.*?)\}/g,template:"",middleware:function(){}};var n=function(t,e){var n=e.length,r=t.length;if(n<r)return!1;if(r===n)return t===e;t:for(var i=0,o=0;i<r;i++){for(var u=t.charCodeAt(i);o<n;)if(e.charCodeAt(o++)===u)continue t;return!1}return!0},e=new function(){this.matches=function(t,e){return n(e.toLowerCase(),t.toLowerCase())}},r=new function(){this.matches=function(e,t){return!!e&&(e=e.trim().toLowerCase(),(t=t.trim().toLowerCase()).split(" ").filter(function(t){return 0<=e.indexOf(t)}).length===t.split(" ").length)}},d={put:function(t){if(l(t))return a(t);if(function(t){return Boolean(t)&&"[object Array]"===Object.prototype.toString.call(t)}(t))return function(n){const r=[];s();for(let t=0,e=n.length;t<e;t++)l(n[t])&&r.push(a(n[t]));return r}(t);return undefined},clear:s,search:function(t){return t?function(e,n,r,i){const o=[];for(let t=0;t<e.length&&o.length<i.limit;t++){var u=function(t,e,n,r){for(const i in t)if(!function(n,r){for(let t=0,e=r.length;t<e;t++){var i=r[t];if(new RegExp(i).test(n))return!0}return!1}(t[i],r.exclude)&&n.matches(t[i],e))return t}(e[t],n,r,i);u&&o.push(u)}return o}(u,t,c.searchStrategy,c).sort(c.sort):[]},setOptions:function(t){c=t||{},c.fuzzy=t.fuzzy||!1,c.limit=t.limit||10,c.searchStrategy=t.fuzzy?e:r,c.sort=t.sort||o,c.exclude=t.exclude||[]}};function o(){return 0}const u=[];let c={};function s(){return u.length=0,u}function l(t){return Boolean(t)&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return u.push(t),u}c.fuzzy=!1,c.limit=10,c.searchStrategy=c.fuzzy?e:r,c.sort=o,c.exclude=[];var p={load:function(t,e){const n=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");n.open("GET",t,!0),n.onreadystatechange=h(n,e),n.send()}};function h(e,n){return function(){if(4===e.readyState&&200===e.status)try{n(null,JSON.parse(e.responseText))}catch(t){n(t,null)}}}var m=function y(t){if(!(e=t)||!("undefined"!=typeof e.required&&e.required instanceof Array))throw new Error("-- OptionsValidator: required options missing");var e;if(!(this instanceof y))return new y(t);const r=t.required;this.getRequiredOptions=function(){return r},this.validate=function(e){const n=[];return r.forEach(function(t){"undefined"==typeof e[t]&&n.push(t)}),n}},w={merge:function(t,e){const n={};for(const r in t)n[r]=t[r],"undefined"!=typeof e[r]&&(n[r]=e[r]);return n},isJSON:function(t){try{return t instanceof Object&&JSON.parse(JSON.stringify(t))?!0:!1}catch(e){return!1}}};!function(t){let i={searchInput:null,resultsContainer:null,json:[],success:Function.prototype,searchResultTemplate:'<li><a href="{url}" title="{desc}">{title}</a></li>',templateMiddleware:Function.prototype,sortMiddleware:function(){return 0},noResultsText:"No results found",limit:10,fuzzy:!1,debounceTime:null,exclude:[]},n;const e=function(t,e){e?(clearTimeout(n),n=setTimeout(t,e)):t.call()};var r=["searchInput","resultsContainer","json"];const o=m({required:r});function u(t){d.put(t),i.searchInput.addEventListener("input",function(t){-1===[13,16,20,37,38,39,40,91].indexOf(t.which)&&(c(),e(function(){l(t.target.value)},i.debounceTime))})}function c(){i.resultsContainer.innerHTML=""}function s(t){i.resultsContainer.innerHTML+=t}function l(t){var e;(e=t)&&0<e.length&&(c(),function(e,n){var r=e.length;if(0===r)return s(i.noResultsText);for(let t=0;t<r;t++)e[t].query=n,s(f.compile(e[t]))}(d.search(t),t))}function a(t){throw new Error("SimpleJekyllSearch --- "+t)}t.SimpleJekyllSearch=function(t){var n;0<o.validate(t).length&&a("You must specify the following required options: "+r),i=w.merge(i,t),f.setOptions({template:i.searchResultTemplate,middleware:i.templateMiddleware}),d.setOptions({fuzzy:i.fuzzy,limit:i.limit,sort:i.sortMiddleware,exclude:i.exclude}),w.isJSON(i.json)?u(i.json):(n=i.json,p.load(n,function(t,e){t&&a("failed to get JSON ("+n+")"),u(e)}));t={search:l};return"function"==typeof i.success&&i.success.call(t),t}}(window)}();
metadata ADDED
@@ -0,0 +1,104 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: adam-jekyll
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Gelo
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-11-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.2'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '12.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '12.0'
55
+ description:
56
+ email:
57
+ - blancada05_3_5@yahoo.com.ph
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE.txt
63
+ - README.md
64
+ - _includes/breadcrumbs.html
65
+ - _includes/image-gallery.html
66
+ - _includes/navigation.html
67
+ - _layouts/author.html
68
+ - _layouts/default.html
69
+ - _layouts/page.html
70
+ - _layouts/post.html
71
+ - _sass/main.scss
72
+ - assets/css/styles.scss
73
+ - assets/images/ig/davi-rezende-rz7cau8dpx0-unsplash.jpg
74
+ - assets/images/ig/larry-teo-tPKufFNIZfs-unsplash.jpg
75
+ - assets/images/ig/muzammil-soorma-KTdzeb28jyo-unsplash.jpg
76
+ - assets/images/ig/patrick-tomasso-61MtRBl1qeE-unsplash.jpg
77
+ - assets/images/ig/sasha-stories-c6g-26myD34-unsplash.jpg
78
+ - assets/images/ig/yeshi-kangrang-wTD1-_u8x1g-unsplash.jpg
79
+ - assets/js/simple-jekyll-search.min.js
80
+ homepage: https://github.com/victorangeloblancada/adam
81
+ licenses:
82
+ - MIT
83
+ metadata: {}
84
+ post_install_message:
85
+ rdoc_options: []
86
+ require_paths:
87
+ - lib
88
+ required_ruby_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ requirements: []
99
+ rubyforge_project:
100
+ rubygems_version: 2.7.6.2
101
+ signing_key:
102
+ specification_version: 4
103
+ summary: Adam is a basic Jekyll theme meant as boilerplate for more complex projects.
104
+ test_files: []