no-style-please2 0.6.0 → 0.6.2.1

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
2
  SHA256:
3
- metadata.gz: d9afc4c08d2e387cb510730849d4365927060f101b60f4fd8222cfd94d0a6a13
4
- data.tar.gz: fbc828eb73facfb2a644e6092b98050ffb869916c16e2211d6a7434c04522132
3
+ metadata.gz: 9be07b2eac5fe89ca9d11576d16b88103072b8d7f272eecf25172af094a47059
4
+ data.tar.gz: 9e9adb68deea7306b9c719933b425677d95acb61ded9803120ed4057f3400757
5
5
  SHA512:
6
- metadata.gz: bbea77bad9bb678e98415b87109e8928b4e6baae9b5c53fa7b0b26f7280b8567fb853d129858f480e4d9402c546e28e26b4a840e4e12ad6bc6069fddc74ff38a
7
- data.tar.gz: c9a88c78fa49f29ea80041fba960c39e257dd38b65c9c2e9423e8e6889552442baf2700d8d6689e54216cae73b30fe68bc2104f2ef2b87ee3a67d102c4bb17ec
6
+ metadata.gz: dd3acafe07bfbae2d424a0e3029a5a482599f776586237d11dfb217bf5a5f33575d5c00dfb6f0f37be5d143a74a4a7e4a8157d0cefba42b7a8de53ce263aff44
7
+ data.tar.gz: 1795a8305814d55cccc2e22170958954b384d3271603c0cc38dbd6216ca5ee7298eadba88b6e71fc6290068dff82c6376350429c2f32757b1b7e22afa68046ef
data/_config.yml CHANGED
@@ -24,6 +24,8 @@ theme_config:
24
24
  tag_showall: true
25
25
  all_tags_path: tags
26
26
  all_tags_title: All Tags
27
+ archive_date_format: "%Y-%m"
28
+ archive_title_date_format: "%m-%d"
27
29
 
28
30
  #
29
31
  # forbid_cache_password: true
@@ -6,4 +6,30 @@ layout: default
6
6
 
7
7
  <h1>{{ page.title }}</h1>
8
8
 
9
- {%-include post_list.html category=page.which_category-%}
9
+
10
+ {%-assign posts = site.posts-%}
11
+ {%- if posts.size > 0 -%}
12
+
13
+ {% assign ymPre = "" %}
14
+ {% capture archive_date_format %} {{ site.theme_config.archive_date_format | default: "%Y"}}{% endcapture %}
15
+
16
+ {% capture archive_date_titleformat %} {{ site.theme_config.archive_title_date_format | default: "%m-%d"}}{% endcapture %}
17
+ {%- for post in posts limit: include.limit -%}
18
+ {% capture ymCur %} {{post.date | date: archive_date_format}} {% endcapture %}
19
+ {% if ymCur != ymPre %}
20
+ <h3>{{ymCur}}</h3>
21
+ {% endif %}
22
+ {% assign ymPre = ymCur %}
23
+
24
+
25
+ <ul>
26
+
27
+
28
+ <li>
29
+ <span>{{- post.date | date: archive_date_titleformat }}</span>
30
+ <a href="{{ post.url | relative_url }}">{{ post.title | downcase }}</a>
31
+ </li>
32
+
33
+ </ul>
34
+ {%- endfor -%}
35
+ {%- endif -%}
@@ -2,9 +2,8 @@
2
2
  layout: default
3
3
  ---
4
4
  {%-include back_link.html -%}
5
- <div class="post">
6
- <h1></h1>
7
- <li>Tag: {{ page.tag }}</li>
5
+ <ariticle>
6
+ <h1>Tag: {{ page.tag }}</h1>
8
7
 
9
8
  <ul>
10
9
  {% for post in site.tags[page.tag] %}
@@ -12,13 +11,15 @@ layout: default
12
11
  {{ post.description }}
13
12
  </li>
14
13
  {% endfor %}
15
- </ul>
16
- </div>
14
+
17
15
  {% if site.theme_config.tag_showall %}
18
16
  <li><a href="{{ site.baseurl }}/{{site.theme_config.all_tags_path | default:'tags' }}.html"> {{site.theme_config.all_tags_title | default:'All Tags' }}</a>
19
17
  </li>
20
-
21
18
  {% endif %}
19
+ </ul>
22
20
 
23
21
  <hr>
22
+
23
+
24
+ </ariticle>
24
25
 
data/_layouts/tags.html CHANGED
@@ -6,11 +6,14 @@ layout: default
6
6
  <h1>{{page.title}}</h1>
7
7
  <article>
8
8
 
9
+ <ul>
10
+
9
11
  {% for item in site.tags %}
10
- <lu>
12
+ <li>
11
13
  <a href ="{{ site['baseurl']}}/tags/{{ item[0]}}.html" ><text>{{ item[0]}}</text></a> &nbsp;
12
- </lu>
14
+ </li>
13
15
  {% endfor %}
16
+ <ul>
14
17
 
15
18
  </article>
16
19
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: no-style-please2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - vitock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-18 00:00:00.000000000 Z
11
+ date: 2022-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll