texture 0.4 → 0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -0
- data/_includes/nav.html +3 -2
- data/_sass/_begin.scss +4 -0
- data/_sass/theme.scss +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d5e879f553bf657980ba1263b005034bcc47a4f
|
4
|
+
data.tar.gz: d16c897335573f6af41e5787df289ce6cd69bbab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b5b3fc5ee18b6d253dc3491291338c827795399f447c49d988da3d25bb2ff9aaa30bc6145dc451060ce8857889d820158062396bc39a35a5151734f87350bb3
|
7
|
+
data.tar.gz: 5d36aa621ee3b99b28aa31b23bcc596724084c4d4f6f64dc79108b53f62a13186969b57827de8278937468f67b0c8baafdfba57dd6056ca961b0aa7a2ef779f7
|
data/README.md
CHANGED
@@ -105,6 +105,19 @@ texture:
|
|
105
105
|
showNav: true
|
106
106
|
```
|
107
107
|
|
108
|
+
**Navigation**
|
109
|
+
|
110
|
+
After setting `showNav` to true navigation can be built by adding the following to your `_config.yml`
|
111
|
+
|
112
|
+
```yaml
|
113
|
+
texture:
|
114
|
+
navigation:
|
115
|
+
- title: My Work
|
116
|
+
url: "/my-work"
|
117
|
+
- title: Resume
|
118
|
+
url: "/resume"
|
119
|
+
```
|
120
|
+
|
108
121
|
**Layouts**
|
109
122
|
|
110
123
|
- Home
|
@@ -124,7 +137,14 @@ Your theme is setup just like a normal Jekyll site! To test your theme, run `bun
|
|
124
137
|
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
125
138
|
To add a custom directory to your theme-gem, please edit the regexp in `texture.gemspec` accordingly.
|
126
139
|
|
140
|
+
## Donation
|
141
|
+
If this project help you reduce time to develop, you can give me a cup of coffee :)
|
142
|
+
|
143
|
+
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://paypal.me/thelehhman)
|
144
|
+
|
127
145
|
## License
|
128
146
|
|
129
147
|
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
130
148
|
|
149
|
+
## More Themes
|
150
|
+
[plainwhite](https://github.com/thelehhman/plainwhite-jekyll)
|
data/_includes/nav.html
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
{%- if site.texture.showNav -%}
|
2
2
|
<div class="navbar">
|
3
3
|
<ul>
|
4
|
-
|
5
|
-
<a href="
|
4
|
+
{% for link in site.texture.navigation %}
|
5
|
+
<a href="{{ link.url }}"><li {% if link.url == page.url %}class="active"{% endif %} >{{ link.title }}</li></a>
|
6
|
+
{% endfor %}
|
6
7
|
</ul>
|
7
8
|
</div>
|
8
9
|
{%- endif -%}
|
data/_sass/_begin.scss
CHANGED
data/_sass/theme.scss
CHANGED
@@ -224,6 +224,7 @@ header {
|
|
224
224
|
}
|
225
225
|
|
226
226
|
.navbar {
|
227
|
+
display: flex;
|
227
228
|
position: absolute;
|
228
229
|
top: 0;
|
229
230
|
right: 5vw;
|
@@ -248,6 +249,10 @@ header {
|
|
248
249
|
background-color: rgba(#fff, 0.15);
|
249
250
|
cursor: pointer;
|
250
251
|
}
|
252
|
+
&.active {
|
253
|
+
background-color: rgba(#fff, 0.15);
|
254
|
+
}
|
251
255
|
}
|
252
256
|
}
|
253
|
-
}
|
257
|
+
}
|
258
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: texture
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samarjeet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -68,7 +68,7 @@ dependencies:
|
|
68
68
|
version: '12.0'
|
69
69
|
description:
|
70
70
|
email:
|
71
|
-
-
|
71
|
+
- samarsault@gmail.com
|
72
72
|
executables: []
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|