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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14a7bab8b4333310050441e3f7a24a8920700f01c2bc4c5a10b8017ae01ffacc
4
- data.tar.gz: 9aaa3c204f9939f5c7401dd7053c5e01babe9ba9a96dd62b908309ff937560a9
3
+ metadata.gz: c809c5c5479131b3890b42d79b34a61aab27956b3fd03b6431ad0a068bfe3958
4
+ data.tar.gz: 3414e67e5c43a2cd6e9f7e739ec72d79bb5ab2d1cee8cd260f15085a1689ff0d
5
5
  SHA512:
6
- metadata.gz: dcc3129cc862e56a0fce863eda332c929a66acdbaef195f35725bf5f2ef55e2d74b1a2ce96fbcde581a6d08a8c2d2ad0bd3d09860d30888f87966ddd94288bd9
7
- data.tar.gz: 02cb02f52f96260b64b0b55b6ead77279642dea4406e184c801faabe42c860907f27f84202d96555b978cd707819e0c97f6b10074603a4927253307d185847e2
6
+ metadata.gz: 2514f3a1ae16489970e1ba2a015494f84871475625fcd71935150155d4772e1911333392af7594349636d6293901419c7c359356b6d1cffba446ffc1126531f9
7
+ data.tar.gz: 76e3ce2fe714d8d0312dd81523f824e0e3f9624100695124d286b154efd999b61c40940cbf7b2d1e6948291fc24ef0a015ea5473dd26b982e7fd4cb370a7713c
data/README.md CHANGED
@@ -1,52 +1,17 @@
1
- # dev-blog-theme
1
+ Step by step to publish:
2
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`, your sass files in `_sass` and any other assets in `assets`.
4
-
5
- To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
-
7
- TODO: Delete this and the text above, and describe your gem
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
- And add this line to your Jekyll site's `_config.yml`:
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
- And then execute:
25
-
26
- $ bundle
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.
@@ -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>
@@ -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 -%}
@@ -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 -%}
@@ -21,14 +21,14 @@ section{
21
21
 
22
22
  .post-item-summary{
23
23
  line-height: 1.5rem;
24
- font-family: "Mate",Georgia,Cambria,"Times New Roman",Times,serif;
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: "Open Sans Condensed","Helvetica Neue",Helvetica,Arial,sans-serif;
31
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
32
32
  }
33
33
  }
34
34
  .pagination{
@@ -3,7 +3,7 @@ html, body{
3
3
  display:flex;
4
4
  flex-direction: column;
5
5
  min-height:100vh;
6
- font: 400 21px/1.5 "Open Sans Condensed","Helvetica Neue",Helvetica,Arial,sans-serif;
6
+ font: 400 21px/1.5 "Helvetica Neue",Helvetica,Arial,sans-serif;
7
7
 
8
8
  & > header{
9
9
  display: flex;
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.0
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-02-04 00:00:00.000000000 Z
11
+ date: 2019-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll