texture 0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/404.html +38 -0
- data/LICENSE.txt +21 -0
- data/README.md +119 -0
- data/_includes/footer.html +10 -0
- data/_includes/head.html +7 -0
- data/_includes/nav.html +8 -0
- data/_includes/page_header.html +9 -0
- data/_includes/post_header.html +10 -0
- data/_layouts/home.html +24 -0
- data/_layouts/page.html +20 -0
- data/_layouts/post.html +40 -0
- data/_sass/_begin.scss +30 -0
- data/_sass/_syntax.scss +22 -0
- data/_sass/ext/_fonts.scss +61 -0
- data/_sass/ext/_normalize.scss +428 -0
- data/_sass/ext/_solarized-light.scss +84 -0
- data/_sass/theme.scss +201 -0
- data/assets/css/style.scss +64 -0
- data/assets/font/fontello.eot +0 -0
- data/assets/font/fontello.svg +18 -0
- data/assets/font/fontello.ttf +0 -0
- data/assets/font/fontello.woff +0 -0
- data/assets/font/fontello.woff2 +0 -0
- data/assets/textures/black.jpg +0 -0
- data/assets/textures/blue.jpg +0 -0
- data/assets/textures/green.jpg +0 -0
- data/assets/textures/purple.jpg +0 -0
- data/assets/textures/red.jpg +0 -0
- data/assets/textures/yellow.jpg +0 -0
- metadata +129 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 24ee3046b92c12e490d5171415dd55bf24f50a1f
|
4
|
+
data.tar.gz: 6ef0987075ec90037f27cafc517ceb1e41326d5d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b03e7b5898bf6c51fb8acc1bb0a5e5d252d4d5eaf9dedb046d8b11b92ef4bfcf8f86686158067032ca930279f3fd0390ca3a758ebfb1656127c7e818810e50eb
|
7
|
+
data.tar.gz: 03d09b1a428555fff617d51d93c2cdf08a7be26ee630fff477726dc2ae82e34ab0dd2c120c98cab8d27edab9c55fad49d460d5ca534d32b38fe5447c2eec568e
|
data/404.html
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
title: Page Not Found
|
3
|
+
---
|
4
|
+
<!DOCTYPE html>
|
5
|
+
<html lang="en">
|
6
|
+
<head>
|
7
|
+
{%- include head.html -%}
|
8
|
+
<style>
|
9
|
+
h1 {
|
10
|
+
background-color: #eee;
|
11
|
+
width: 220px;
|
12
|
+
height: 220px;
|
13
|
+
border-radius: 100%;
|
14
|
+
display: flex;
|
15
|
+
justify-content: center;
|
16
|
+
align-items: center
|
17
|
+
}
|
18
|
+
body {
|
19
|
+
display: flex;
|
20
|
+
justify-content: center;
|
21
|
+
align-items: center;
|
22
|
+
flex-direction: column;
|
23
|
+
font-size: 20px;
|
24
|
+
height: 80vh;
|
25
|
+
}
|
26
|
+
p {
|
27
|
+
font-size: 1.5em;
|
28
|
+
text-align: center;
|
29
|
+
margin: 0;
|
30
|
+
line-height: 2em;
|
31
|
+
}
|
32
|
+
</style>
|
33
|
+
</head>
|
34
|
+
<body>
|
35
|
+
<h1>404</h1>
|
36
|
+
<p>Page not found.</p>
|
37
|
+
</body>
|
38
|
+
</html>
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Samarjeet Singh
|
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,119 @@
|
|
1
|
+
# texture
|
2
|
+
|
3
|
+
A configurable jekyll theme for simply beautiful blogs.
|
4
|
+
|
5
|
+
**Demo**: [thelehhman.com/texture](https://thelehhman.com/texture)
|
6
|
+
|
7
|
+
![texture theme preview](/screen1.png)
|
8
|
+
|
9
|
+
|
10
|
+
## Installation on Github Pages
|
11
|
+
|
12
|
+
Add this line to your site's `_config.yml`:
|
13
|
+
```yaml
|
14
|
+
remote_theme: thelehhman/texture
|
15
|
+
```
|
16
|
+
## Installation
|
17
|
+
|
18
|
+
Add this line to your Jekyll site's `Gemfile`:
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
gem "texture"
|
22
|
+
```
|
23
|
+
|
24
|
+
And add this line to your Jekyll site's `_config.yml`:
|
25
|
+
|
26
|
+
```yaml
|
27
|
+
theme: texture
|
28
|
+
```
|
29
|
+
|
30
|
+
And then execute:
|
31
|
+
|
32
|
+
$ bundle
|
33
|
+
|
34
|
+
Or install it yourself as:
|
35
|
+
|
36
|
+
$ gem install texture
|
37
|
+
|
38
|
+
## Usage
|
39
|
+
|
40
|
+
The "texture" key in _config.yml is used to customize the theme data.
|
41
|
+
```yaml
|
42
|
+
texture:
|
43
|
+
title: Adam Denisov
|
44
|
+
tagline: Developer. Designer
|
45
|
+
date_format: "%b %-d, %Y"
|
46
|
+
|
47
|
+
social_links:
|
48
|
+
twitter: thelehhman
|
49
|
+
github: thelehhman
|
50
|
+
linkedIn: in/thelehhman # format: locale/username
|
51
|
+
```
|
52
|
+
|
53
|
+
**Styling**
|
54
|
+
|
55
|
+
Multiple header styles are supported using the "style" property under texture in `_config.yml`.
|
56
|
+
|
57
|
+
```yaml
|
58
|
+
texture:
|
59
|
+
style: [yellow|red|black|blue|green|purple]
|
60
|
+
```
|
61
|
+
|
62
|
+
For example, the blue style looks like this:
|
63
|
+
|
64
|
+
![texture theme blue](/screen2.png)
|
65
|
+
|
66
|
+
|
67
|
+
**Comments (Disqus)**
|
68
|
+
|
69
|
+
Comments on posts can be enabled by specifying your disqus_shortname under texture in `_config.yml`. For example,
|
70
|
+
```yaml
|
71
|
+
texture:
|
72
|
+
disqus_shortname: games
|
73
|
+
```
|
74
|
+
|
75
|
+
**Google Analytics**
|
76
|
+
|
77
|
+
It can be enabled by specifying your analytics id under texture in `_config.yml`
|
78
|
+
```yaml
|
79
|
+
texture:
|
80
|
+
analytics_id: '< YOUR ID >'
|
81
|
+
```
|
82
|
+
|
83
|
+
**Excerpts**
|
84
|
+
|
85
|
+
Excerpts can be enabled by adding the following line to your `_config.yml`
|
86
|
+
```yaml
|
87
|
+
show_excerpts: true
|
88
|
+
```
|
89
|
+
|
90
|
+
**Toggle Navbar**
|
91
|
+
|
92
|
+
```yaml
|
93
|
+
texture:
|
94
|
+
showNav: true
|
95
|
+
```
|
96
|
+
|
97
|
+
**Layouts**
|
98
|
+
|
99
|
+
- Home
|
100
|
+
- Page
|
101
|
+
- Post
|
102
|
+
|
103
|
+
## Contributing
|
104
|
+
|
105
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/thelehhman/texture. 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.
|
106
|
+
|
107
|
+
## Development
|
108
|
+
|
109
|
+
To set up your environment to develop this theme, run `bundle install`.
|
110
|
+
|
111
|
+
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.
|
112
|
+
|
113
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
114
|
+
To add a custom directory to your theme-gem, please edit the regexp in `texture.gemspec` accordingly.
|
115
|
+
|
116
|
+
## License
|
117
|
+
|
118
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
119
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{%- if site.texture.analytics_id -%}
|
2
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.texture.analytics_id }}"></script>
|
3
|
+
<script>
|
4
|
+
window.dataLayer = window.dataLayer || [];
|
5
|
+
function gtag() { dataLayer.push(arguments); }
|
6
|
+
gtag('js', new Date());
|
7
|
+
|
8
|
+
gtag('config', '{{ site.texture.analytics_id }}');
|
9
|
+
</script>
|
10
|
+
{%- endif -%}
|
data/_includes/head.html
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<meta charset="UTF-8">
|
2
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
4
|
+
<link href="https://fonts.googleapis.com/css?family=Nunito+Sans:400,400i,700&display=swap" rel="stylesheet">
|
5
|
+
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
|
6
|
+
<title>{{ page.title | default: site.title }}</title>
|
7
|
+
{% seo %}
|
data/_includes/nav.html
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<div class="container">
|
2
|
+
<h1>{{ site.texture.title }}</h1>
|
3
|
+
<h2>{{ site.texture.tagline }}</h2>
|
4
|
+
<ul class="social">
|
5
|
+
<a href="https://github.com/{{ site.texture.social_links.github }}"><li><i class="icon-github-circled"></i></li></a>
|
6
|
+
<a href="https://linkedin.com/{{ site.texture.social_links.linkedIn }}"><li><i class="icon-linkedin-squared"></i></li></a>
|
7
|
+
<a href="https://twitter.com/{{ site.texture.social_links.twitter }}"><li><i class="icon-twitter-squared"></i></li></a>
|
8
|
+
</ul>
|
9
|
+
</div>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
2
|
+
<div class="container">
|
3
|
+
<h1>{{ page.title }}</h1>
|
4
|
+
{% if page.description == 'Awesome Shoes' %}
|
5
|
+
<h2>{{ page.description }}</h2>
|
6
|
+
{% endif %}
|
7
|
+
<div class="post-date" style="margin-top:20px">
|
8
|
+
Published on {{ page.date | date: date_format }}
|
9
|
+
</div>
|
10
|
+
</div>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
---
|
4
|
+
{%- if site.posts.size > 0 -%}
|
5
|
+
<ul class="posts">
|
6
|
+
{%- for post in site.posts -%}
|
7
|
+
<li>
|
8
|
+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
9
|
+
<div class="post-meta">
|
10
|
+
<a class="post-link" href="{{ post.url | relative_url }}">
|
11
|
+
<h2 class="post-title">{{ post.title | escape }}</h2>
|
12
|
+
</a>
|
13
|
+
<div class="post-date"><i class="icon-calendar"></i>{{ post.date | date: date_format }}</div>
|
14
|
+
</div>
|
15
|
+
<div class="post">
|
16
|
+
{%- if site.show_excerpts -%}
|
17
|
+
{{ post.excerpt }}
|
18
|
+
{%- endif -%}
|
19
|
+
</div>
|
20
|
+
</li>
|
21
|
+
{%- endfor -%}
|
22
|
+
</ul>
|
23
|
+
{%- endif -%}
|
24
|
+
|
data/_layouts/page.html
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
{%- include head.html -%}
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<header class="texture-{{ site.texture.style }}">
|
8
|
+
<div class="container">
|
9
|
+
{%- include nav.html -%}
|
10
|
+
</div>
|
11
|
+
{%- include page_header.html -%}
|
12
|
+
</header>
|
13
|
+
<main>
|
14
|
+
<div class="container">
|
15
|
+
{{ content }}
|
16
|
+
</div>
|
17
|
+
</main>
|
18
|
+
{%- include footer.html -%}
|
19
|
+
</body>
|
20
|
+
</html>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
{%- include head.html -%}
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<header class="texture-{{ site.texture.style }}">
|
8
|
+
<div class="container">
|
9
|
+
{%- include nav.html -%}
|
10
|
+
</div>
|
11
|
+
{%- include post_header.html -%}
|
12
|
+
</header>
|
13
|
+
<main>
|
14
|
+
<div class="container">
|
15
|
+
<div class="post-container">
|
16
|
+
{{ content }}
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<!-- Configure Disqus -->
|
20
|
+
{%- if site.texture.disqus_shortname -%}
|
21
|
+
<div id="disqus_thread" style="margin-top:25px"></div>
|
22
|
+
<script>
|
23
|
+
var disqus_config = function () {
|
24
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
25
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
26
|
+
};
|
27
|
+
(function() {
|
28
|
+
var d = document, s = d.createElement('script');
|
29
|
+
s.src = 'https://{{ site.texture.disqus_shortname }}.disqus.com/embed.js';
|
30
|
+
s.setAttribute('data-timestamp', +new Date());
|
31
|
+
(d.head || d.body).appendChild(s);
|
32
|
+
})();
|
33
|
+
</script>
|
34
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
35
|
+
{%- endif -%}
|
36
|
+
</div>
|
37
|
+
</main>
|
38
|
+
{%- include footer.html -%}
|
39
|
+
</body>
|
40
|
+
</html>
|
data/_sass/_begin.scss
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
$minSupportedWidth: 320px;
|
2
|
+
$maxSupportedWidth: 1280px;
|
3
|
+
|
4
|
+
$mobileWidth: 540px;
|
5
|
+
$tabWidth: 768px;
|
6
|
+
$desktopWidth: 1024px;
|
7
|
+
|
8
|
+
*,*:before,*:after {
|
9
|
+
box-sizing: border-box;
|
10
|
+
}
|
11
|
+
|
12
|
+
img, embed, object, video {
|
13
|
+
max-width: 100%;
|
14
|
+
}
|
15
|
+
|
16
|
+
//
|
17
|
+
// Fluid Typography
|
18
|
+
//
|
19
|
+
@mixin fluidType($min, $max ) {
|
20
|
+
font-size: $min;
|
21
|
+
|
22
|
+
@media screen and (min-width: $minSupportedWidth) {
|
23
|
+
// 960 = 1280-320
|
24
|
+
font-size: calc(#{$min} + #{($max - $min)/1px} * ((100vw - 320px) / 960));
|
25
|
+
}
|
26
|
+
|
27
|
+
@media screen and (min-width: $maxSupportedWidth) {
|
28
|
+
font-size: $max;
|
29
|
+
}
|
30
|
+
}
|
data/_sass/_syntax.scss
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
@import 'ext/solarized-light';
|
2
|
+
|
3
|
+
.highlighter-rouge {
|
4
|
+
width: 100vw;
|
5
|
+
position: relative;
|
6
|
+
right: 150px;
|
7
|
+
margin: 40px 0;
|
8
|
+
}
|
9
|
+
|
10
|
+
.highlight {
|
11
|
+
background-color: #f4f4f4;
|
12
|
+
}
|
13
|
+
|
14
|
+
div.highlight {
|
15
|
+
padding: 30px 7.5vw;
|
16
|
+
}
|
17
|
+
|
18
|
+
pre.highlight, code {
|
19
|
+
font-family: 'Consolas', Menlo, monospace;
|
20
|
+
line-height: 1.4em;
|
21
|
+
tab-size: 4;
|
22
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: 'fontello';
|
3
|
+
src: url('../font/fontello.eot?26793073');
|
4
|
+
src: url('../font/fontello.eot?26793073#iefix') format('embedded-opentype'),
|
5
|
+
url('../font/fontello.woff2?26793073') format('woff2'),
|
6
|
+
url('../font/fontello.woff?26793073') format('woff'),
|
7
|
+
url('../font/fontello.ttf?26793073') format('truetype'),
|
8
|
+
url('../font/fontello.svg?26793073#fontello') format('svg');
|
9
|
+
font-weight: normal;
|
10
|
+
font-style: normal;
|
11
|
+
}
|
12
|
+
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
|
13
|
+
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
|
14
|
+
/*
|
15
|
+
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
16
|
+
@font-face {
|
17
|
+
font-family: 'fontello';
|
18
|
+
src: url('../font/fontello.svg?26793073#fontello') format('svg');
|
19
|
+
}
|
20
|
+
}
|
21
|
+
*/
|
22
|
+
|
23
|
+
[class^="icon-"]:before, [class*=" icon-"]:before {
|
24
|
+
font-family: "fontello";
|
25
|
+
font-style: normal;
|
26
|
+
font-weight: normal;
|
27
|
+
speak: none;
|
28
|
+
|
29
|
+
display: inline-block;
|
30
|
+
text-decoration: inherit;
|
31
|
+
width: 1em;
|
32
|
+
margin-right: .2em;
|
33
|
+
text-align: center;
|
34
|
+
/* opacity: .8; */
|
35
|
+
|
36
|
+
/* For safety - reset parent styles, that can break glyph codes*/
|
37
|
+
font-variant: normal;
|
38
|
+
text-transform: none;
|
39
|
+
|
40
|
+
/* fix buttons height, for twitter bootstrap */
|
41
|
+
line-height: 1em;
|
42
|
+
|
43
|
+
/* Animation center compensation - margins should be symmetric */
|
44
|
+
/* remove if not needed */
|
45
|
+
margin-left: .2em;
|
46
|
+
|
47
|
+
/* you can be more comfortable with increased icons size */
|
48
|
+
/* font-size: 120%; */
|
49
|
+
|
50
|
+
/* Font smoothing. That was taken from TWBS */
|
51
|
+
-webkit-font-smoothing: antialiased;
|
52
|
+
-moz-osx-font-smoothing: grayscale;
|
53
|
+
|
54
|
+
/* Uncomment for 3D effect */
|
55
|
+
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
|
56
|
+
}
|
57
|
+
|
58
|
+
.icon-calendar:before { content: '\e800'; } /* '' */
|
59
|
+
.icon-github-circled:before { content: '\f09b'; } /* '' */
|
60
|
+
.icon-twitter-squared:before { content: '\f304'; } /* '' */
|
61
|
+
.icon-linkedin-squared:before { content: '\f30c'; } /* '' */
|