cgbase-theme 0.1.5
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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +48 -0
- data/_includes/footer.html +42 -0
- data/_includes/head.html +13 -0
- data/_includes/header.html +23 -0
- data/_includes/post.html +21 -0
- data/_layouts/default.html +25 -0
- data/_layouts/home.html +11 -0
- data/_layouts/page.html +14 -0
- data/_layouts/post.html +5 -0
- data/_sass/cgbase.scss +12 -0
- data/_sass/cgbase/base.scss +208 -0
- data/_sass/cgbase/font-awesome.min.css +4 -0
- data/_sass/cgbase/fonts.scss +25 -0
- data/_sass/cgbase/main.scss +6 -0
- data/assets/banner.jpg +0 -0
- data/assets/font-awesome.min.css +4 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/OptimusPrinceps.ttf +0 -0
- data/assets/fonts/OptimusPrincepsSemiBold.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +2671 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/fonts/goudytrajan-bold-pro-webfont.ttf +0 -0
- data/assets/fonts/goudytrajan-medium-pro-webfont.ttf +0 -0
- data/assets/fonts/radiance-bold.ttf +0 -0
- data/assets/fonts/radiance-semibold.ttf +0 -0
- data/assets/fonts/radiance.ttf +0 -0
- data/assets/main.scss +6 -0
- metadata +117 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bf509c091cf1a8e941e26c75a320dee041a57b40
|
4
|
+
data.tar.gz: c74ee7ba6db15704c3b72b74998e7ae36e367ca6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c4feaaf191527f60ce695f9da1e14464f7cc5ae2071f3e1622cd939f6cebdf4e024bb82d2328d10978e731fa86cb0c5ca888809d28425da0e88dee3f849d9f02
|
7
|
+
data.tar.gz: f2d4e53dc8c9395b3b860a9e35e5693eee015884fe5bbb7e74bfb3b9f6273015dd312ad176bfa7bcf33b9f97d45520c7621c41b2a3612f58e364021ea42f86aa
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Lorenz Junglas
|
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,48 @@
|
|
1
|
+
# cgbase
|
2
|
+
|
3
|
+
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes` and your sass in `_sass`. To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your Jekyll site's `Gemfile`:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem "cgbase"
|
13
|
+
```
|
14
|
+
|
15
|
+
And add this line to your Jekyll site's `_config.yml`:
|
16
|
+
|
17
|
+
```yaml
|
18
|
+
theme: cgbase
|
19
|
+
```
|
20
|
+
|
21
|
+
And then execute:
|
22
|
+
|
23
|
+
$ bundle
|
24
|
+
|
25
|
+
Or install it yourself as:
|
26
|
+
|
27
|
+
$ gem install cgbase
|
28
|
+
|
29
|
+
## Usage
|
30
|
+
|
31
|
+
TODO: Write usage instructions here. Describe your available layouts, includes, and/or sass.
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
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.
|
36
|
+
|
37
|
+
## Development
|
38
|
+
|
39
|
+
To set up your environment to develop this theme, run `bundle install`.
|
40
|
+
|
41
|
+
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.
|
42
|
+
|
43
|
+
When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
|
44
|
+
|
45
|
+
## License
|
46
|
+
|
47
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
48
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<footer class="site-footer">
|
2
|
+
<div class="footer-content">
|
3
|
+
<h2 class="footer-heading">{{ site.title | escape }}</h2>
|
4
|
+
|
5
|
+
<div class="footer-col-wrapper">
|
6
|
+
<div class="footer-col footer-col-1">
|
7
|
+
<ul class="contact-list">
|
8
|
+
<li>
|
9
|
+
{% if site.author %}
|
10
|
+
{{ site.author | escape }}
|
11
|
+
{% else %}
|
12
|
+
{{ site.title | escape }}
|
13
|
+
{% endif %}
|
14
|
+
</li>
|
15
|
+
{% if site.email %}
|
16
|
+
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
|
17
|
+
{% endif %}
|
18
|
+
</ul>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div class="footer-col footer-col-2">
|
22
|
+
<ul class="social-media-list">
|
23
|
+
{% if site.github_username %}
|
24
|
+
<li>
|
25
|
+
<i class="fa fa-github"></i> {{ site.github_username }}
|
26
|
+
</li>
|
27
|
+
{% endif %}
|
28
|
+
|
29
|
+
{% if site.twitter_username %}
|
30
|
+
<li>
|
31
|
+
<i class="fa fa-twitter"></i> {{ site.twitter_username }}
|
32
|
+
</li>
|
33
|
+
{% endif %}
|
34
|
+
</ul>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div class="footer-col footer-col-3">
|
38
|
+
<p>{{ site.description | escape }}</p>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
|
6
|
+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
|
7
|
+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
10
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
11
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
12
|
+
|
13
|
+
</head>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<header class="site-header" role="banner">
|
2
|
+
|
3
|
+
{% assign default_paths = site.pages | map: "path" %}
|
4
|
+
{% assign page_paths = site.header_pages | default: default_paths %}
|
5
|
+
|
6
|
+
<div class="site-banner">
|
7
|
+
<a class="site-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
{% if page_paths %}
|
11
|
+
<nav class="site-nav">
|
12
|
+
<div class="nav-content">
|
13
|
+
<a class="page-link" href="/"><i class="fa fa-home"></i></a>
|
14
|
+
{% for path in page_paths %}
|
15
|
+
{% assign my_page = site.pages | where: "path", path | first %}
|
16
|
+
{% if my_page.title %}
|
17
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
18
|
+
{% endif %}
|
19
|
+
{% endfor %}
|
20
|
+
</div>
|
21
|
+
</nav>
|
22
|
+
{% endif %}
|
23
|
+
</header>
|
data/_includes/post.html
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
|
2
|
+
<a class="post-title" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
3
|
+
<div class="post-footer">
|
4
|
+
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
|
5
|
+
<span class="post-meta"><i class="fa fa-calendar"></i> {{ post.date | date: date_format }}</span>
|
6
|
+
{% if post.author %}
|
7
|
+
<span class="post-meta" itemprop="author" itemscope itemtype="http://schema.org/Person"><i class="fa fa-pencil"></i><span itemprop="name">{{ post.author }}</span></span>
|
8
|
+
{% endif %}
|
9
|
+
{% if post.categories %}
|
10
|
+
<span class="post-meta">
|
11
|
+
<i class="fa fa-tags"></i>
|
12
|
+
{% for tag in post.categories %}
|
13
|
+
<span class="post-tag">{{ tag }}</span>
|
14
|
+
{% endfor %}
|
15
|
+
</span>
|
16
|
+
{% endif %}
|
17
|
+
</div>
|
18
|
+
<div class="post-content">
|
19
|
+
{{ post.content }}
|
20
|
+
</div>
|
21
|
+
</article>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{% include head.html %}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
|
8
|
+
|
9
|
+
{% include header.html %}
|
10
|
+
|
11
|
+
<div class="page-wrapper">
|
12
|
+
|
13
|
+
<main class="page-content" aria-label="Content">
|
14
|
+
{{ content }}
|
15
|
+
</main>
|
16
|
+
|
17
|
+
</div>
|
18
|
+
|
19
|
+
|
20
|
+
{% include footer.html %}
|
21
|
+
|
22
|
+
|
23
|
+
</body>
|
24
|
+
|
25
|
+
</html>
|
data/_layouts/home.html
ADDED
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
data/_sass/cgbase.scss
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
// Define defaults for each variable.
|
3
|
+
$base-font-family: "Radiance", "Helvetica Neue", Helvetica, Arial, sans-serif !default;
|
4
|
+
$base-font-size: 16px !default;
|
5
|
+
$base-font-weight: 400 !default;
|
6
|
+
$base-line-height: 1.5 !default;
|
7
|
+
$text-color: rgba(255, 255, 255, 0.8) !default;
|
8
|
+
$title-color: #fefefe !default;
|
9
|
+
$post-title-color: #F85858 !default;
|
10
|
+
$background-color: #212121 !default;
|
11
|
+
@import "cgbase/fonts";
|
12
|
+
@import "cgbase/base";
|
@@ -0,0 +1,208 @@
|
|
1
|
+
/**
|
2
|
+
* Reset some basic elements
|
3
|
+
*/
|
4
|
+
body, h1, h2, h3, h4, h5, h6,
|
5
|
+
p, blockquote, pre, hr,
|
6
|
+
dl, dd, ol, ul, figure {
|
7
|
+
margin: 0;
|
8
|
+
padding: 0;
|
9
|
+
}
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Basic styling
|
15
|
+
*/
|
16
|
+
body {
|
17
|
+
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
|
18
|
+
font-size: 18px;
|
19
|
+
line-height: 1.4;
|
20
|
+
color: $text-color;
|
21
|
+
background-color: $background-color;
|
22
|
+
-webkit-text-size-adjust: 100%;
|
23
|
+
-webkit-font-feature-settings: "kern" 1;
|
24
|
+
-moz-font-feature-settings: "kern" 1;
|
25
|
+
-o-font-feature-settings: "kern" 1;
|
26
|
+
font-feature-settings: "kern" 1;
|
27
|
+
font-kerning: normal;
|
28
|
+
}
|
29
|
+
|
30
|
+
a {
|
31
|
+
color: inherit;
|
32
|
+
text-decoration: none;
|
33
|
+
}
|
34
|
+
|
35
|
+
li {
|
36
|
+
list-style-type: none;
|
37
|
+
}
|
38
|
+
|
39
|
+
h1, h2, h3, h4, h5, h6 {
|
40
|
+
font-family: "Radiance-Bold";
|
41
|
+
}
|
42
|
+
|
43
|
+
img {
|
44
|
+
width: 100%;
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Font Awesome
|
49
|
+
*/
|
50
|
+
|
51
|
+
.fa {
|
52
|
+
color: inherit;
|
53
|
+
}
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Header
|
57
|
+
*/
|
58
|
+
.site-banner {
|
59
|
+
background: #000 url(banner.jpg) center no-repeat;
|
60
|
+
height: 600px;
|
61
|
+
}
|
62
|
+
|
63
|
+
.site-title {
|
64
|
+
height: 100%;
|
65
|
+
display: flex;
|
66
|
+
align-items: center;
|
67
|
+
justify-content: center;
|
68
|
+
color: $title-color;
|
69
|
+
text-align: center;
|
70
|
+
font-size: 96px;
|
71
|
+
font-family: "Radiance-Bold"
|
72
|
+
}
|
73
|
+
|
74
|
+
.site-nav {
|
75
|
+
height: 48px;
|
76
|
+
padding: 16px;
|
77
|
+
margin-bottom: 16px;
|
78
|
+
font-size: 32px;
|
79
|
+
box-shadow: inset 0 -10px 10px -10px rgba(0, 0, 0, 1);
|
80
|
+
}
|
81
|
+
|
82
|
+
.nav-content {
|
83
|
+
display: flex;
|
84
|
+
width: 980px;
|
85
|
+
margin-right: auto;
|
86
|
+
margin-left: auto;
|
87
|
+
}
|
88
|
+
|
89
|
+
.site-nav a {
|
90
|
+
flex-grow: 1;
|
91
|
+
text-align: center;
|
92
|
+
}
|
93
|
+
|
94
|
+
.site-nav a:hover {
|
95
|
+
color: $post-title-color;
|
96
|
+
}
|
97
|
+
|
98
|
+
/**
|
99
|
+
* Page content
|
100
|
+
*/
|
101
|
+
|
102
|
+
.page-wrapper {
|
103
|
+
width: 980px;
|
104
|
+
margin-right: auto;
|
105
|
+
margin-left: auto;
|
106
|
+
}
|
107
|
+
|
108
|
+
@media only screen and (max-width: 980px) {
|
109
|
+
/* For mobile phones: */
|
110
|
+
.page-wrapper {
|
111
|
+
width: 100%;
|
112
|
+
}
|
113
|
+
|
114
|
+
.post {
|
115
|
+
margin-bottom: 0 !important;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
.site-footer {
|
120
|
+
position: relative;
|
121
|
+
font-size: 12px;
|
122
|
+
line-height: 1.5;
|
123
|
+
padding-top: 60px;
|
124
|
+
padding-bottom: 20px;
|
125
|
+
}
|
126
|
+
|
127
|
+
.footer-content {
|
128
|
+
width: 980px;
|
129
|
+
margin-left: auto;
|
130
|
+
margin-right: auto;
|
131
|
+
}
|
132
|
+
|
133
|
+
.footer-heading {
|
134
|
+
margin-bottom: 20px;
|
135
|
+
}
|
136
|
+
|
137
|
+
.footer-col-wrapper {
|
138
|
+
display: flex;
|
139
|
+
}
|
140
|
+
|
141
|
+
.footer-col {
|
142
|
+
flex: 1;
|
143
|
+
}
|
144
|
+
|
145
|
+
/**
|
146
|
+
* home
|
147
|
+
*/
|
148
|
+
.post {
|
149
|
+
margin-top: 50px;
|
150
|
+
padding-bottom: 60px;
|
151
|
+
}
|
152
|
+
|
153
|
+
.post::after {
|
154
|
+
position:absolute;
|
155
|
+
width: 100%;
|
156
|
+
height: 40px;
|
157
|
+
margin-top: 60px;
|
158
|
+
left:0;
|
159
|
+
content: " ";
|
160
|
+
display: block;
|
161
|
+
box-shadow: inset 0 20px 20px -20px rgba(0,0,0,0.8);
|
162
|
+
}
|
163
|
+
|
164
|
+
.post:nth-child(3n)::after {
|
165
|
+
transform: rotate(-0.6deg);
|
166
|
+
}
|
167
|
+
|
168
|
+
.post:nth-child(3n+1)::after {
|
169
|
+
transform: rotate(0.45deg);
|
170
|
+
}
|
171
|
+
|
172
|
+
.post:nth-child(3n+2)::after {
|
173
|
+
transform: rotate(-0.45deg);
|
174
|
+
}
|
175
|
+
|
176
|
+
/**
|
177
|
+
* post
|
178
|
+
*/
|
179
|
+
|
180
|
+
.post-meta {
|
181
|
+
padding-right: 20px;
|
182
|
+
color: rgba( $text-color, .7 );
|
183
|
+
}
|
184
|
+
|
185
|
+
.post-meta i {
|
186
|
+
padding-right: 4px;
|
187
|
+
}
|
188
|
+
|
189
|
+
.post-tag {
|
190
|
+
padding-right: 10px;
|
191
|
+
}
|
192
|
+
|
193
|
+
.post-title {
|
194
|
+
font-size: 48px;
|
195
|
+
color: $post-title-color;
|
196
|
+
}
|
197
|
+
|
198
|
+
.post-content {
|
199
|
+
padding-top: 10px;
|
200
|
+
padding-left: 4px;
|
201
|
+
padding-right: 4px;
|
202
|
+
}
|
203
|
+
|
204
|
+
.post-footer {
|
205
|
+
padding-top: 10px;
|
206
|
+
padding-bottom: 10px;
|
207
|
+
padding-left: 4px;
|
208
|
+
}
|