wead 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cdf7b9ccdfb1949fa4ea64467612aa62076a38e9
4
- data.tar.gz: 9d354a276a51babec40239ff43348fa3eed639fc
2
+ SHA256:
3
+ metadata.gz: e33f54158e426a6837fb8d8a4754d6db554963355f3b029b3140d0b0b4831112
4
+ data.tar.gz: b55bc3186c4ff74ac8d1b9313d89a8b8b8902f3f1d11913b61ae7018515e9742
5
5
  SHA512:
6
- metadata.gz: 484aa5893f0c391bc5e481c427f93a3e295ddb507ab87f9ad973eb8e8e3fbb1735d5ddca622d5f99555c5678d746062264dbb3cc80ac4fae0601e61b6f56add4
7
- data.tar.gz: 3c899e8a5fc971f341880fea2a4dc50dd157e3949eb3e128603bbef0c6d86c06808c03f6765a17fc76cbdc19e8950c0d6934d7c1d1a03327f5be58dcc68e511b
6
+ metadata.gz: 7b387f32c084fa0c0a295ac6f9335165ea8e05e7d4c6ad96759637adde139e4ed7d78aa06a4e095c164c1d91ae71cd2f8600b42ddb821ae5a039577ed309a7d5
7
+ data.tar.gz: d237340305c74022ca39a51fdb63e09be938e6387a519b9ac820374ba0e8ff4f3cf5c378aafd0a2eecf2a69ccd4ecc59da8a4d053ff6496ba61623e7ac44c1ad
data/README.md CHANGED
@@ -3,15 +3,17 @@
3
3
  [![Codacy Badge](https://api.codacy.com/project/badge/Grade/519daacbe38c4aa785f633bfe3d9bf5f)](https://www.codacy.com/app/Kevyder/wead?utm_source=github.com&utm_medium=referral&utm_content=kevyder/wead&utm_campaign=badger)
4
4
 
5
5
 
6
- A simple and clean jekyll theme. https://goo.gl/TkRqBY
6
+ A simple and clean jekyll theme.
7
7
 
8
- ### Home.
9
- ![Home](https://shrinktheweb.snapito.io/v2/webshot/spu-ea68c8-ogi2-3cwn3bmfojjlb56e?size=800x0&screen=1024x768&url=http%3A%2F%2Fkevinrodriguez.me%2Fwead)
8
+ Demo: https://kevyder.github.io/wead/
10
9
 
11
- ### Posts.
12
- ![Posts](https://shrinktheweb.snapito.io/v2/webshot/spu-ea68c8-ogi2-3cwn3bmfojjlb56e?size=800x0&screen=1024x768&url=http%3A%2F%2Fkevinrodriguez.me%2Fwead%2Fjekyll%2Fupdate%2F2017%2F01%2F11%2Fwelcome-to-jekyll.1.html)
10
+ Rubygems: https://rubygems.org/gems/wead
13
11
 
14
- ## Installation,
12
+ ### Preview.
13
+ ![Imgur](http://i.imgur.com/5brZmdv.png)
14
+
15
+
16
+ ## Installation
15
17
 
16
18
  Add this line to your Jekyll site's Gemfile:
17
19
 
@@ -39,6 +41,16 @@ Or install it yourself as:
39
41
 
40
42
  * Change `_about.md` for blog intro.
41
43
 
44
+ ## Pagination
45
+
46
+ Add the next lines in your `_config.yml`
47
+
48
+ ```yaml
49
+ paginate: 5
50
+ paginate_path: "/page:num/"
51
+ plugins: [jekyll-paginate]
52
+ ```
53
+
42
54
  ## Contributing
43
55
 
44
56
  Bug reports and pull requests are welcome on GitHub at https://github.com/kevyder/wead.
@@ -54,4 +66,3 @@ When your theme is released, only the files in `_layouts`, `_includes`, and `_sa
54
66
  ## License
55
67
 
56
68
  The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
57
-
data/_includes/head.html CHANGED
@@ -1,9 +1,12 @@
1
1
  <head>
2
2
  <meta charset="utf-8">
3
3
  <title>{{ site.title }}</title>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
4
6
  <link rel="stylesheet" href="{{ "/assets/stylesheets/bootstrap.min.css" | prepend: site.baseurl }}">
5
7
  <link rel="stylesheet" href="{{ "/assets/stylesheets/main.css" | prepend: site.baseurl }}">
6
8
  <link rel="stylesheet" href="{{ "/assets/stylesheets/responsive.css" | prepend: site.baseurl }}">
7
9
  <link rel="stylesheet" href="{{ "/assets/stylesheets/syntax.css" | prepend: site.baseurl }}">
8
10
  <link href="https://fonts.googleapis.com/css?family=Nunito:400,600,700|Open+Sans" rel="stylesheet">
9
- </head>
11
+ <script src="{{ "/assets/js/main.js" | prepend: site.baseurl }}"></script>
12
+ </head>
data/_includes/nav.html CHANGED
@@ -1,8 +1,11 @@
1
1
  <nav class="nav">
2
- <ul>
2
+ <a href="javascript:void()" id="menu-icon" onclick="responsiveNav()">
3
+ <svg style="width: 32px; height: 32px;"><path d="M4,10h24c1.104,0,2-0.896,2-2s-0.896-2-2-2H4C2.896,6,2,6.896,2,8S2.896,10,4,10z M28,14H4c-1.104,0-2,0.896-2,2 s0.896,2,2,2h24c1.104,0,2-0.896,2-2S29.104,14,28,14z M28,22H4c-1.104,0-2,0.896-2,2s0.896,2,2,2h24c1.104,0,2-0.896,2-2 S29.104,22,28,22z"/></svg>
4
+ </a>
5
+ <ul id="nav">
3
6
  <li class="brand"><a href="{{ '/' | prepend: site.baseurl }}">{{ site.title }}</a></li>
4
7
  <li class="info"><a href="https://twitter.com/{{ site.twitter_username }}">Twitter</a></li>
5
8
  <li class="info"><a href="https://github.com/{{ site.github_username }}">Github</a></li>
6
9
  <li class="info"><a href="{{ '/about' | prepend: site.baseurl }}">About</a></li>
7
10
  </ul>
8
- </nav>
11
+ </nav>
data/_includes/posts.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <div class="row">
5
5
  <div class="post-container">
6
6
  <p class="post-date"> {{ post.date | date: "%b %-d, %Y" }} </p>
7
- <a href="{{ post.url | prepend: site.baseurl }}" class="post-title"><h3 class="title"> {{ post.title }}</h3></a>
7
+ <a href="{{ post.url | prepend: site.baseurl }}" class="post-title"><h2 class="title"> {{ post.title }}</h2></a>
8
8
  <a class="extract" href="{{ post.url | prepend: site.baseurl }}"><p>{{ post.content | strip_html | truncatewords: 30 }}</p></a>
9
9
  </div>
10
10
  </div>
data/_layouts/home.html CHANGED
@@ -1,10 +1,9 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="en">
3
3
  {% include head.html %}
4
4
  <body>
5
- {% include header.html %}
6
- {% include posts.html %}
5
+ {% include header.html %}
6
+ {% include posts.html %}
7
7
  {% include footer.html %}
8
8
  </body>
9
- <script src="{{ "/assets/javascripts/main.js" | prepend: site.baseurl }}"></script>
10
9
  </html>
data/_layouts/page.html CHANGED
@@ -1,8 +1,7 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="en">
3
3
  {% include head.html %}
4
4
  <body>
5
5
  {% include header_about.html %}
6
6
  </body>
7
- <script src="{{ "/assets/javascripts/main.js" | prepend: site.baseurl }}"></script>
8
7
  </html>
data/_sass/_header.sass CHANGED
@@ -1,47 +1,46 @@
1
1
  header.header-page
2
- background-color: #fff
3
-
4
- nav.nav
5
- padding-right: 35px
6
- padding-left: 35px
7
-
8
- ul li
9
- display: inline-block
10
- padding: 30px 10px
11
- font-family: 'Nunito', sans-serif
12
-
13
- ul li.brand
14
- font-size: 2rem
15
- font-weight: 700
16
- a
17
- color: #000
18
- text-decoration: none
19
-
20
- ul li.info
21
- float: right
22
- font-size: 1.3rem
23
- font-weight: 700
24
- a
25
- color: #000
26
- border: 2px solid rgb(255, 5, 35)
27
- border-radius: 25px
28
- padding: 10px 20px
29
- text-transform: uppercase
30
- text-decoration: none
31
- a:hover
32
- color: #fff
33
- background-color: rgb(255, 5, 35)
34
-
35
- .title-container
36
- width: 70%
37
- margin: 10% 15% 15% 15%
38
- text-align: center
39
- font-family: 'Nunito', sans-serif
40
- .title
41
- font-size: 4rem
42
- font-weight: 600
43
- line-height: 90%
44
- .subtitle
45
- font-weight: 400
46
- font-size: 2rem
47
- line-height: 120%
2
+ background-color: #fff
3
+ nav.nav
4
+ padding-right: 35px
5
+ padding-left: 35px
6
+ #menu-icon
7
+ display: none
8
+ width: 32px
9
+ height: 32px
10
+ ul li
11
+ display: inline-block
12
+ padding: 30px 10px
13
+ font-family: 'Nunito', sans-serif
14
+ ul li.brand
15
+ font-size: 2rem
16
+ font-weight: 700
17
+ a
18
+ color: #000
19
+ text-decoration: none
20
+ ul li.info
21
+ float: right
22
+ font-size: 1.3rem
23
+ font-weight: 700
24
+ a
25
+ color: #000
26
+ border: 2px solid rgb(255, 5, 35)
27
+ border-radius: 25px
28
+ padding: 10px 20px
29
+ text-transform: uppercase
30
+ text-decoration: none
31
+ a:hover
32
+ color: #fff
33
+ background-color: rgb(255, 5, 35)
34
+ .title-container
35
+ width: 70%
36
+ margin: 10% 15% 15% 15%
37
+ text-align: center
38
+ font-family: 'Nunito', sans-serif
39
+ .title
40
+ font-size: 4rem
41
+ font-weight: 600
42
+ line-height: 90%
43
+ .subtitle
44
+ font-weight: 400
45
+ font-size: 2rem
46
+ line-height: 120%
data/_sass/_post.sass CHANGED
@@ -1,3 +1,6 @@
1
1
  .post-content
2
2
  p
3
3
  font-size: 1.7rem
4
+
5
+ img
6
+ max-width: 100%
data/assets/js/main.js ADDED
@@ -0,0 +1,8 @@
1
+ function responsiveNav() {
2
+ var e = document.getElementById("nav");
3
+ if(!e.style.display || e.style.display == 'none'){
4
+ e.style.display = 'block';
5
+ } else {
6
+ e.style.display = 'none';
7
+ }
8
+ }
@@ -7,6 +7,7 @@ html, body{
7
7
  margin: 0;
8
8
  padding: 0;
9
9
  font-family: 'Open Sans', sans-serif;
10
+ max-width: 100%;
10
11
  }
11
12
 
12
13
  ul{
@@ -0,0 +1,33 @@
1
+ /*MEDIA QUERY*/
2
+ @media only screen and (max-width : 640px) {
3
+
4
+ nav.nav{
5
+ padding: 5%;
6
+ }
7
+ nav ul, nav:active ul {
8
+ display: none;
9
+ position: fixed;
10
+ background: #c5c5c5;
11
+ left: 0;
12
+ top: 0;
13
+ width: 70%;
14
+ height: 100%;
15
+ }
16
+
17
+ #menu-icon{
18
+ display: inline-block !important;
19
+ padding: 15px auto !important;
20
+ float: right;
21
+ }
22
+
23
+ nav li.info {
24
+ text-align: center;
25
+ width: 100%;
26
+ padding: 15px 0;
27
+ margin: 0;
28
+ }
29
+
30
+ nav li.brand {
31
+ display: block;
32
+ }
33
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wead
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Rodríguez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-21 00:00:00.000000000 Z
11
+ date: 2024-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.3'
19
+ version: '4.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.3'
26
+ version: '4.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.12'
33
+ version: 2.5.9
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.12'
40
+ version: 2.5.9
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: 13.2.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: 13.2.1
55
55
  description:
56
56
  email:
57
57
  - kyrodriguez97@gmail.com
@@ -77,12 +77,12 @@ files:
77
77
  - _sass/_header.sass
78
78
  - _sass/_post.sass
79
79
  - _sass/_posts.sass
80
- - assets/javascripts/main.js
80
+ - assets/js/main.js
81
81
  - assets/stylesheets/bootstrap.min.css
82
82
  - assets/stylesheets/main.scss
83
83
  - assets/stylesheets/responsive.css
84
84
  - assets/stylesheets/syntax.css
85
- homepage: https://github.com/kevyder/wade
85
+ homepage: https://github.com/kevyder/wead
86
86
  licenses:
87
87
  - MIT
88
88
  metadata: {}
@@ -101,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubyforge_project:
105
- rubygems_version: 2.5.1
104
+ rubygems_version: 3.5.3
106
105
  signing_key:
107
106
  specification_version: 4
108
107
  summary: A simple and clean jekyll theme.
@@ -1,8 +0,0 @@
1
- function responsiveNav() {
2
- var nav = document.getElementById("nav-list");
3
- if (nav.className === "nav-list") {
4
- nav.className += " responsive";
5
- } else {
6
- nav.className = "nav-list";
7
- }
8
- }