dev-blog-theme 0.2.4 → 1.0.0

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: 3b9508b0c109b67027aededcc599ea673fa7e14538e282812e15aebaf2dbbe14
4
- data.tar.gz: 07b86f3a48cc55763df652a0e625a61b99180c8b87e024634c282ef91f7c1cfc
3
+ metadata.gz: 7564e396236654e19c8d340cff1c4fcccf22a3b72047ea97a94aca8059c7d928
4
+ data.tar.gz: c11715ab586d10bc69be3ec1a0dce6a39a5a77bb9a2c24b91c01a98f0934e6f5
5
5
  SHA512:
6
- metadata.gz: 46f19de47046da86077cedafde15d9dc515b782c4066ab3d879c00f4f3d6252868ae50cf7a0b1dc528517ab6f698b7d49324eeea6f5a049ff3892e6b462ee6a7
7
- data.tar.gz: b2e8987667d4372689084cb5e482d9d2860659b217753621470c72ae7e998b821afe7bb4f87e8b7560d2f7921ddb8375de7921f9e5b5b7ea359c45e6549ca9c3
6
+ metadata.gz: d17d5cd0157275678ddddc0bea2e9301eafa10da6ed57a45f6299728775fb201fcf5b45a41aea93818988620267089ac92689aa4a829218e94580ec01c61b373
7
+ data.tar.gz: e13ed898af188153d2da9a734427bca80ddf40fa5ee7b35965dc8649e2222cded9d47f53b870831b950dfdee1d322a77eaf0a4c38f99ec0b09dbb80642b33ddd
@@ -4,14 +4,9 @@
4
4
  </div>
5
5
  <nav>
6
6
  <ul>
7
- {%- assign default_paths = site.pages | map: "path" -%}
8
- {%- assign page_paths = site.header_pages | default: default_paths -%}
9
- {%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
10
- {%- for path in page_paths -%}
11
- {%- assign my_page = site.pages | where: "path", path | first -%}
12
- {%- if my_page.title -%}
13
- <a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
14
- {%- endif -%}
7
+ {%- assign links = site.data.navigation -%}
8
+ {%- for link in links -%}
9
+ <a href="{{ link.url | relative_url }}">{{ link.title | escape }}</a>
15
10
  {%- endfor -%}
16
11
  </ul>
17
12
  </nav>
@@ -1,33 +1,9 @@
1
- {% if paginator.total_pages > 1 %}
2
- <div class="pagination">
3
- {% if paginator.previous_page %}
4
- <a href="{{ paginator.previous_page_path | relative_url }}">
5
- &laquo; Prev
6
- </a>
7
- {% else %}
8
- <span>&laquo; Prev</span>
1
+ <ol class="pagination">
2
+ {% if paginator.page_trail %}
3
+ {% for trail in paginator.page_trail %}
4
+ <li {% if page.url == trail.path %}class="selected"{% endif %}>
5
+ <a href="{{ trail.path | prepend: site.baseurl }}" title="{{trail.title}}">{{ trail.num }}</a>
6
+ </li>
7
+ {% endfor %}
9
8
  {% endif %}
10
-
11
- {% for page in (1..paginator.total_pages) %}
12
- {% if page == paginator.page %}
13
- <em>{{ page }}</em>
14
- {% elsif page == 1 %}
15
- <a href="{{ paginator.previous_page_path | relative_url }}">
16
- {{ page }}
17
- </a>
18
- {% else %}
19
- <a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">
20
- {{ page }}
21
- </a>
22
- {% endif %}
23
- {% endfor %}
24
-
25
- {% if paginator.next_page %}
26
- <a href="{{ paginator.next_page_path | relative_url }}">
27
- Next &raquo;
28
- </a>
29
- {% else %}
30
- <span>Next &raquo;</span>
31
- {% endif %}
32
- </div>
33
- {% endif %}
9
+ </ol>
data/_sass/body.scss CHANGED
@@ -31,7 +31,18 @@ section{
31
31
  flex-direction: row;
32
32
  flex-wrap: wrap;
33
33
  justify-content: center;
34
-
34
+ list-style-type: none;
35
+
36
+ .selected{
37
+ a{
38
+ background-color: $secundary-color;
39
+ }
40
+ }
41
+
42
+ a:hover{
43
+ background-color: $secundary-color;
44
+ }
45
+
35
46
  a, span, em{
36
47
  font-size: 20px;
37
48
  border: 1px solid $secundary-color;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev-blog-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Tarzia
@@ -52,6 +52,34 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jekyll-paginate-v2
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.1'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: jekyll-sitemap
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.2.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.2.0
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: bundler
57
85
  requirement: !ruby/object:Gem::Requirement