dev-blog-theme 1.1.0 → 1.1.1
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 +4 -4
- data/README.md +14 -49
- data/_includes/footer.html +1 -28
- data/_includes/head.html +0 -1
- data/_layouts/post.html +33 -1
- data/_sass/body.scss +2 -2
- data/_sass/header.scss +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c809c5c5479131b3890b42d79b34a61aab27956b3fd03b6431ad0a068bfe3958
|
4
|
+
data.tar.gz: 3414e67e5c43a2cd6e9f7e739ec72d79bb5ab2d1cee8cd260f15085a1689ff0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2514f3a1ae16489970e1ba2a015494f84871475625fcd71935150155d4772e1911333392af7594349636d6293901419c7c359356b6d1cffba446ffc1126531f9
|
7
|
+
data.tar.gz: 76e3ce2fe714d8d0312dd81523f824e0e3f9624100695124d286b154efd999b61c40940cbf7b2d1e6948291fc24ef0a015ea5473dd26b982e7fd4cb370a7713c
|
data/README.md
CHANGED
@@ -1,52 +1,17 @@
|
|
1
|
-
|
1
|
+
Step by step to publish:
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
## Installation
|
11
|
-
|
12
|
-
Add this line to your Jekyll site's `Gemfile`:
|
13
|
-
|
14
|
-
```ruby
|
15
|
-
gem "dev-blog-theme"
|
3
|
+
First, you need to have it in a git repository:
|
4
|
+
```git
|
5
|
+
git init # Only the first time
|
6
|
+
git add -A
|
7
|
+
git commit -m "Init commit"
|
16
8
|
```
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
```yaml
|
21
|
-
theme: dev-blog-theme
|
9
|
+
Next, package your theme, by running the following command, replacing jekyll-theme-awesome with the name of your theme:
|
10
|
+
```terminal
|
11
|
+
gem build jekyll-theme-awesome.gemspec
|
22
12
|
```
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
Or install it yourself as:
|
29
|
-
|
30
|
-
$ gem install dev-blog-theme
|
31
|
-
|
32
|
-
## Usage
|
33
|
-
|
34
|
-
TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
|
35
|
-
|
36
|
-
## Contributing
|
37
|
-
|
38
|
-
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.
|
39
|
-
|
40
|
-
## Development
|
41
|
-
|
42
|
-
To set up your environment to develop this theme, run `bundle install`.
|
43
|
-
|
44
|
-
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.
|
45
|
-
|
46
|
-
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
47
|
-
To add a custom directory to your theme-gem, please edit the regexp in `dev-blog-theme.gemspec` accordingly.
|
48
|
-
|
49
|
-
## License
|
50
|
-
|
51
|
-
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
52
|
-
|
13
|
+
Finally, push your packaged theme up to the RubyGems service, by running the following command, again replacing jekyll-theme-awesome with the name of your theme:
|
14
|
+
```terminal
|
15
|
+
gem push jekyll-theme-awesome-*.gem
|
16
|
+
```
|
17
|
+
To release a new version of your theme, update the version number in the gemspec file, ( jekyll-theme-awesome.gemspec in this example ), and then repeat Steps 1 - 3 above. We recommend that you follow Semantic Versioning while bumping your theme-version.
|
data/_includes/footer.html
CHANGED
@@ -1,30 +1,3 @@
|
|
1
1
|
<footer>
|
2
2
|
Made by me
|
3
|
-
</footer>
|
4
|
-
<script>
|
5
|
-
function setupForm() {
|
6
|
-
var status = document.getElementById('commentstatus')
|
7
|
-
status.innerText = ''
|
8
|
-
|
9
|
-
var requiredIds = [ 'message', 'email', 'name']
|
10
|
-
var missing = requiredIds.filter(id => document.getElementById(id).value.length < 3)
|
11
|
-
if (missing.length > 0) {
|
12
|
-
status.innerText = 'Alguns campos são obrigatórios - (' + missing.join(', ') + ')'
|
13
|
-
return
|
14
|
-
}
|
15
|
-
|
16
|
-
var button = document.getElementById('commentbutton')
|
17
|
-
if (button.innerText != 'Clique novamente para Confirmar') {
|
18
|
-
button.innerText = 'Clique novamente para Confirmar'
|
19
|
-
return
|
20
|
-
}
|
21
|
-
|
22
|
-
var form = document.getElementById('commentform')
|
23
|
-
form.action = '{{ site.comments.receiver }}'
|
24
|
-
button.innerText = 'Enviando...'
|
25
|
-
button.disabled = true
|
26
|
-
form.submit()
|
27
|
-
var fields = document.getElementById('commentfields')
|
28
|
-
fields.disabled = true
|
29
|
-
}
|
30
|
-
</script>
|
3
|
+
</footer>
|
data/_includes/head.html
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
<meta charset="UTF-8">
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
3
3
|
{%- seo -%}
|
4
|
-
<link href="https://fonts.googleapis.com/css?family=Mate|Open+Sans+Condensed" rel="stylesheet">
|
5
4
|
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
|
6
5
|
{%- feed_meta -%}
|
7
6
|
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
data/_layouts/post.html
CHANGED
@@ -19,4 +19,36 @@ layout: default
|
|
19
19
|
<hr>
|
20
20
|
{%- include comments.html -%}
|
21
21
|
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
|
22
|
-
</article>
|
22
|
+
</article>
|
23
|
+
{%- if page.comments != false -%}
|
24
|
+
<script>
|
25
|
+
function setupForm() {
|
26
|
+
var status = document.getElementById('commentstatus');
|
27
|
+
status.innerText = '';
|
28
|
+
|
29
|
+
var requiredIds = [ 'message', 'email', 'name'];
|
30
|
+
var missing = requiredIds.filter(id => document.getElementById(id).value.length < 3);
|
31
|
+
if (missing.length > 0) {
|
32
|
+
status.innerText = 'Alguns campos são obrigatórios - (' + missing.join(', ') + ')';
|
33
|
+
return;
|
34
|
+
}
|
35
|
+
|
36
|
+
var button = document.getElementById('commentbutton');
|
37
|
+
if (button.innerText != 'Clique novamente para Confirmar') {
|
38
|
+
button.innerText = 'Clique novamente para Confirmar';
|
39
|
+
return;
|
40
|
+
}
|
41
|
+
|
42
|
+
var form = document.getElementById('commentform');
|
43
|
+
form.action = '{{ site.comments.receiver }}';
|
44
|
+
button.innerText = 'Enviando...';
|
45
|
+
button.disabled = true;
|
46
|
+
form.submit();
|
47
|
+
var fields = document.getElementById('commentfields');
|
48
|
+
fields.disabled = true;
|
49
|
+
}
|
50
|
+
</script>
|
51
|
+
<noscript>
|
52
|
+
Habilite o JavaScript para conseguir inserir o comentário
|
53
|
+
</noscript>
|
54
|
+
{%- endif -%}
|
data/_sass/body.scss
CHANGED
@@ -21,14 +21,14 @@ section{
|
|
21
21
|
|
22
22
|
.post-item-summary{
|
23
23
|
line-height: 1.5rem;
|
24
|
-
font-family:
|
24
|
+
font-family: Georgia,Cambria,"Times New Roman",Times,serif;
|
25
25
|
}
|
26
26
|
article{
|
27
27
|
h1{
|
28
28
|
font-size: 2rem;
|
29
29
|
}
|
30
30
|
h2, h3, h4{
|
31
|
-
font-family: "
|
31
|
+
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
32
32
|
}
|
33
33
|
}
|
34
34
|
.pagination{
|
data/_sass/header.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev-blog-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Tarzia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|