reality-blue-jekyll-theme 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: 32466f33cc37a9eb8f34688562bfaa5d58e842a9a7fa629e862f23e7dc10e973
4
+ data.tar.gz: b81df23256b231d50b772b0b0cd66c2b486960fd46f39eb71b3f0c4b50a64714
5
+ SHA512:
6
+ metadata.gz: 43067ad0b3be8ca3f6deab05233823a6386dce7818b4c0e85fad49b28b151e2471fdb7b1b7876d7aa424c9c7487eb9e1726d633567838302cbaf0fac0fd869a7
7
+ data.tar.gz: 19e3f696e8635d5d9badb9e5faa466e6ba59102fcabb18aabd99fb6f128611667f12f27af268bbec683128a9dee636105ce79196b244ec248d78de86a4796ecf
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Terry Wen
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,66 @@
1
+ # Reality Blue
2
+
3
+ Reality Blue is a Jekyll theme to help you build a cute, minimalist blog and portfolio site.
4
+
5
+ Disclaimer: this theme was not designed to be very flexible, as it is primarily for my own site, but if others would like to use it I am happy to make suggestions and improvements. Consider it under development.
6
+
7
+ ## Why's it called Reality Blue? It's barely blue.
8
+
9
+ Honestly it was a name that came up before I finalized my design. It has a minimal amount of blue, and it's a minimalist theme, right?
10
+
11
+ ## Installation
12
+
13
+ Add this line to your Jekyll site's `Gemfile`:
14
+
15
+ ```ruby
16
+ gem "reality-blue-jekyll-theme"
17
+ ```
18
+
19
+ And add this line to your Jekyll site's `_config.yml`:
20
+
21
+ ```yaml
22
+ theme: reality-blue-jekyll-theme
23
+ ```
24
+
25
+ And then execute:
26
+
27
+ $ bundle
28
+
29
+ Or install it yourself as:
30
+
31
+ $ gem install reality-blue-jekyll-theme
32
+
33
+ ## Usage
34
+
35
+ The primary layout of Reality-Blue is a basic dynamic-page layout.
36
+
37
+ 1. Define your "sections" in the _config.yml and add your content files as includes.
38
+ 2. Define further desired CSS/Sass in css/style.scss
39
+
40
+ Available Includes:
41
+ - post-list: generic blogpost front-page list. links to archive once page is full
42
+
43
+ Available Layouts:
44
+ - archive: generic post archive
45
+ - default: empty page with default headers
46
+ - home: index with defined sections
47
+ - page: generic page with "return to home" header
48
+ - post: blog post default page
49
+
50
+ ## Contributing
51
+
52
+ Bug reports and pull requests are welcome on GitHub at https://github.com/terry-wen/reality-blue. 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.
53
+
54
+ ## Development
55
+
56
+ To set up your environment to develop this theme, run `bundle install`.
57
+
58
+ 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.
59
+
60
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
61
+ To add a custom directory to your theme-gem, please edit the regexp in `reality-blue-jekyll-theme.gemspec` accordingly.
62
+
63
+ ## License
64
+
65
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
66
+
@@ -0,0 +1 @@
1
+ <p>Hi, welcome to Reality Blue.</p>
@@ -0,0 +1 @@
1
+ {% include post-list.html %}
@@ -0,0 +1 @@
1
+ <p><a href="https://github.com/terry-wen/reality-blue">Github Repository</a></p>
@@ -0,0 +1,26 @@
1
+ <ul class="post-list">
2
+ {% for post in paginator.posts %}
3
+ <li class="post">
4
+ <span class="post-meta">
5
+ {{ post.date | date: "%b %-d, %Y" }}
6
+
7
+ <span class="right-align">
8
+ {% if post.tags != empty %}
9
+ {% for tag in post.tags %}
10
+ {{ tag }}{% unless forloop.last %},{% endunless %}
11
+ {% endfor %}
12
+ {% endif %}
13
+ </span>
14
+ </span>
15
+
16
+ <h3 class="post-title">
17
+ <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
18
+ </h3>
19
+ </li>
20
+ {% endfor %}
21
+ </ul>
22
+ {% if paginator.total_pages > 1 %}
23
+ <div class="container" style="text-align: center; margin: 0;">
24
+ <a href="archive">post archives</a>
25
+ </div>
26
+ {% endif %}
@@ -0,0 +1,19 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+ <h2 class="name">Blog Archive</h2>
5
+ <br />
6
+ <ul class="post-list">
7
+ {% for post in site.posts %}
8
+ <li class="post archive">
9
+ <span class="post-meta">
10
+ {{ post.date | date: "%b %-d, %Y" }}
11
+ </span>
12
+
13
+ <h3 class="post-title">
14
+ <a class="post-link" href="{{ post.url | relative_url }}" {% if lang != empty %} lang="{{ lang }}"
15
+ {% endif %}>{{ post.title | escape }}</a>
16
+ </h3>
17
+ </li>
18
+ {% endfor %}
19
+ </ul>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ {% assign title = page.title | default: site.title | escape %}
6
+ <title>{{ title }}</title>
7
+ <link rel="icon" type="image/png" href="/assets/img/favicon.ico">
8
+ <link rel="stylesheet" href="/css/main.css">
9
+ <link rel="stylesheet" href="/css/style.css">
10
+ <meta charset="utf-8">
11
+ <meta name="author" content="{{ site.author | escape }}">
12
+ <meta property="og:type" content="article">
13
+ <meta property="og:title" content="{{ site.title | escape }}">
14
+ <meta property="og:url" content="{{ site.url | escape }}">
15
+ <meta property="og:site_name" content="{{ site.title | escape }}">
16
+
17
+ <!-- Webmaster Tools verfication -->
18
+ <link rel="canonical" href="{{ site.url | escape }}">
19
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
20
+
21
+ </head>
22
+
23
+ {{ content }}
24
+
25
+ </html>
@@ -0,0 +1,57 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <body>
5
+ <div id="main" class="container main">
6
+ <div id="title" class="container">
7
+ <h1 class="name"><a href="#" id="home">{{ site.title | escape }}</a></h1>
8
+ </div>
9
+ <div id="nav" class="container nav">
10
+ {% for section in site.sections %}
11
+ <div class="nav-button-wrapper"><a id="{{ section.name }}-link" href="#{{ section.name }}" class="nav-button">{{ section.name }}</a></div>
12
+ {% endfor %}
13
+ </div>
14
+ <div id="content" class="content">
15
+ {% for section in site.sections %}
16
+ <div id="{{ section.name }}" class="content-block hidden {{ section.name }}">
17
+ {% include {{ section.file }} %}
18
+ </div>
19
+ {% endfor %}
20
+ </div>
21
+ </div>
22
+ <script src="js/base.js"></script>
23
+ <script type="text/javascript">
24
+ document.addEventListener(`DOMContentLoaded`, function (event) {
25
+ main = document.getElementById(`main`);
26
+ home = document.getElementById(`home`);
27
+ content = document.getElementById(`content`);
28
+ nav = document.getElementById(`nav`);
29
+
30
+ {% for section in site.sections %}
31
+ buttons.push(`{{ section.name }}`);
32
+ {% endfor %}
33
+
34
+ home.addEventListener(`click`, function (event) {
35
+ reset(300);
36
+ });
37
+
38
+ buttons.forEach(section => {
39
+ document.getElementById(`${section}-link`).addEventListener(`click`, function (event) {
40
+ let fadeTimeout = 0;
41
+ if (active) {
42
+ if (active === section) {
43
+ return
44
+ }
45
+ clearNav();
46
+ fadeTimeout = 300;
47
+ }
48
+ setTimeout(() => {
49
+ makeActive(section);
50
+ }, fadeTimeout);
51
+ });
52
+ });
53
+
54
+ reset(0);
55
+ });
56
+ </script>
57
+ </body>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <body>
6
+ <div id="main" class="container main">
7
+ <div id="title" class="container">
8
+ <h3 class="name"><a href="/index" class="home">Back to home</a></h3>
9
+ </div>
10
+ <div id="content" class="content">
11
+ {{ content }}
12
+ </div>
13
+ </div>
14
+ </body>
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ <h2 class="name">{{ page.title | escape }}</h2>
6
+ <div class="post-content">{{ content }}</div>
@@ -0,0 +1,10 @@
1
+ // Fonts, colors, etc.
2
+ $reality-blue: #0099ff;
3
+ $reality-blue-dark: #0077dd;
4
+ $reality-black: black;
5
+
6
+
7
+ @font-face {
8
+ font-family: Quicksand;
9
+ src: url(../assets/fonts/Quicksand-Regular.ttf);
10
+ }
data/_sass/_utils.scss ADDED
@@ -0,0 +1,12 @@
1
+ @mixin width-fit-content($widthType: "width") {
2
+ #{$widthType}: fit-content;
3
+ #{$widthType}: -moz-fit-content;
4
+ }
5
+
6
+ @mixin transition($str) {
7
+ -webkit-transition: #{$str};
8
+ -moz-transition: #{$str};
9
+ -ms-transition: #{$str};
10
+ -o-transition: #{$str};
11
+ transition: #{$str};
12
+ }
@@ -0,0 +1,170 @@
1
+ @import 'utils';
2
+ @import 'design';
3
+
4
+ @mixin nav($navSize) {
5
+ .nav {
6
+ @include width-fit-content('min-width');
7
+ width: 25%;
8
+
9
+ &-button {
10
+ @include transition('border .25s ease-in-out');
11
+ padding: 12px 25px;
12
+ border: 1px solid transparent;
13
+ text-decoration: none;
14
+ display: block;
15
+ font-size: 21px;
16
+
17
+ &-wrapper {
18
+ display: inline-flex;
19
+ width: calc(100%/#{$navSize} - 3px);
20
+ justify-content: center;
21
+ }
22
+
23
+ &:visited, &:active {
24
+ color: $reality-black;
25
+ }
26
+
27
+ &:hover {
28
+ color: $reality-blue;
29
+ }
30
+
31
+ &.active {
32
+ border: 1px solid $reality-black;
33
+ }
34
+ }
35
+ }
36
+ }
37
+
38
+ // Element Defaults
39
+ html {
40
+ background-color: white;
41
+ /* Hide scrollbar for IE and Edge */
42
+ -ms-overflow-style: none;
43
+ /* Hide scrollbar for Firefox */
44
+ scrollbar-width: none;
45
+ /* Firefox 64 */
46
+
47
+ /* Hide scrollbar for Chrome, Safari and Opera */
48
+ &::-webkit-scrollbar {
49
+ display: none;
50
+ }
51
+ }
52
+
53
+ h1 {
54
+ font-weight: normal;
55
+ font-size: 36px
56
+ }
57
+
58
+ p,
59
+ ul {
60
+ margin: 0
61
+ }
62
+
63
+ a {
64
+ color: $reality-black;
65
+ text-decoration: none;
66
+
67
+ &:hover {
68
+ color: $reality-blue;
69
+ }
70
+ }
71
+
72
+ .about p {
73
+ margin-left: 15px;
74
+ }
75
+
76
+ .container {
77
+ padding: 20px 15px;
78
+ margin-right: auto;
79
+ margin-left: auto;
80
+ }
81
+
82
+ .main {
83
+ @include transition('top .5s ease-in-out');
84
+ font-family: 'Quicksand', sans-serif;
85
+ position: relative;
86
+ }
87
+
88
+ .content {
89
+ @include transition('height .5s ease-in-out, padding .5s ease-in-out');
90
+ padding: 0 10px;
91
+ height: 0;
92
+ width: 60%;
93
+ margin: 0 auto;
94
+ font-size: 18px;
95
+
96
+ &-block {
97
+ @include transition('height .5s ease-in-out, opacity .3s ease-in-out');
98
+ opacity: 0;
99
+ position: relative;
100
+ padding: 0 10px;
101
+
102
+ &.hidden {
103
+ display: none;
104
+ visibility: hidden;
105
+ }
106
+ }
107
+ }
108
+
109
+ .name {
110
+ text-align: center;
111
+ margin: 0;
112
+
113
+ a:hover {
114
+ color: $reality-black;
115
+ }
116
+ }
117
+
118
+ a.home:hover {
119
+ color: $reality-blue;
120
+ }
121
+
122
+ .post {
123
+ padding-bottom: 40px;
124
+
125
+ &-title {
126
+ margin: 0;
127
+ }
128
+
129
+ &-list {
130
+ list-style-type: none;
131
+ padding: 20px 35px;
132
+ }
133
+
134
+ &.archive {
135
+ padding-bottom: 20px;
136
+ }
137
+
138
+ &-meta {
139
+ clear: both;
140
+
141
+ .right-align {
142
+ float: right;
143
+ }
144
+ }
145
+
146
+ &-content {
147
+ padding: 30px 0;
148
+
149
+ p {
150
+ padding: 10px 20px;
151
+ }
152
+
153
+ ul {
154
+ padding: 10px 55px;
155
+ }
156
+
157
+ li {
158
+ padding: 5px 0;
159
+ }
160
+
161
+ a {
162
+ color: $reality-blue-dark;
163
+ font-weight: bold;
164
+
165
+ &:hover {
166
+ color: $reality-blue;
167
+ }
168
+ }
169
+ }
170
+ }
data/assets/.DS_Store ADDED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,108 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: reality-blue-jekyll-theme
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Terry Wen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-05-24 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: jekyll-paginate
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
41
+ description:
42
+ email:
43
+ - wen.terry.e@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - LICENSE.txt
49
+ - README.md
50
+ - _includes/_about.html
51
+ - _includes/_blog.html
52
+ - _includes/_links.html
53
+ - _includes/post-list.html
54
+ - _layouts/archive.html
55
+ - _layouts/default.html
56
+ - _layouts/home.html
57
+ - _layouts/page.html
58
+ - _layouts/post.html
59
+ - _sass/_design.scss
60
+ - _sass/_utils.scss
61
+ - _sass/reality-blue.scss
62
+ - assets/.DS_Store
63
+ - assets/fonts/.DS_Store
64
+ - assets/fonts/Quicksand-Bold.ttf
65
+ - assets/fonts/Quicksand-Light.ttf
66
+ - assets/fonts/Quicksand-Medium.ttf
67
+ - assets/fonts/Quicksand-Regular.ttf
68
+ - assets/img/art.png
69
+ - assets/img/battery-boy.gif
70
+ - assets/img/boffee.gif
71
+ - assets/img/climb.png
72
+ - assets/img/cook.png
73
+ - assets/img/desert-hacks.gif
74
+ - assets/img/dev.png
75
+ - assets/img/favicon.ico
76
+ - assets/img/gamer.png
77
+ - assets/img/github.png
78
+ - assets/img/instagram.png
79
+ - assets/img/linkedin.png
80
+ - assets/img/music.png
81
+ - assets/img/qwq.gif
82
+ - assets/img/reality-blue.gif
83
+ - assets/img/study-genie.gif
84
+ - assets/img/twitter.png
85
+ homepage: https://github.com/terry-wen/reality-blue
86
+ licenses:
87
+ - MIT
88
+ metadata: {}
89
+ post_install_message:
90
+ rdoc_options: []
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubygems_version: 3.0.3
105
+ signing_key:
106
+ specification_version: 4
107
+ summary: A clean, minimalist Jekyll theme
108
+ test_files: []