jekyll-theme-minimax 0.1.1 → 0.2.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: 6d9fb3653855864a26d19509970ef75c3300a42d9f673937e121e9f013ba0a11
4
- data.tar.gz: 25c87bc5af7db17e402d455e2bc22cd644a575231d794ee344e5a5499fc7e2b5
3
+ metadata.gz: db7c3f94b8c73060c3a8b1861d7b60dcb5a3bd64f95ac7a0da390942e0b9e0a3
4
+ data.tar.gz: ae885addbb93d0991b50641a5b5c27846e5e5e546f486fa8e94abdacd89cc4a5
5
5
  SHA512:
6
- metadata.gz: 8b154b13645ce91e482879e6d5d9cfe77b15417525f2cc3088696ac23646bfd42b5c7fb5e6eae130d370c020378e4be17b725a03938ba784e1e8196ed173dfe4
7
- data.tar.gz: '059630b8c7b12a264fdfce3e897e88d35da760a850b42ce38a40d43acc94b0c4c080652c27420c8f31591e5728947205bbc2fae0bdb39e8882e3030d0af8fca7'
6
+ metadata.gz: 440e2580f4cca44756eb25cc5bfe45c8483e83db0010b2a65059aee615ebc06e151ff13205286b806e60cca8c43468054971697718671ce8174163d2d890dadc
7
+ data.tar.gz: faf0c6676a2612d0bb586fa955a7e8171fa4e8af5a3632508f137634c8025039462a34908ab836592e0f0348b2071c65317b89d8a64a94e9495be61bff0e8627
@@ -0,0 +1,13 @@
1
+ {% capture tempcategories %}
2
+ {% for category in site.categories %}
3
+ {{ category[1].size | plus: 1000 }}#{{ category[0] }}#{{ category[1].size }}
4
+ {% endfor %}
5
+ {% endcapture %}
6
+ {% assign sortedtempcategories = tempcategories | split:' ' | sort | reverse %}
7
+ <ul>
8
+ {% for tempcategory in sortedtempcategories %}
9
+ {% assign categoryitems = tempcategory | split: '#' %}
10
+ {% capture categoryname %}{{ categoryitems[1] }}{% endcapture %}
11
+ <li><a href="/category/{{ categoryname }}"><nobr>{{ categoryname }}</nobr></a></li>
12
+ {% endfor %}
13
+ </ul>
@@ -0,0 +1,18 @@
1
+ {% assign rawcategories = "" %}
2
+ {% for post in site.posts %}
3
+ {% assign tcategories = post.categories | join:'|' | append:'|' %}
4
+ {% assign rawcategories = rawcategories | append:tcategories %}
5
+ {% endfor %}
6
+ {% assign rawcategories = rawcategories | split:'|' | sort %}
7
+
8
+ {% assign site.categories = "" %}
9
+ {% for tag in rawcategories %}
10
+ {% if tag != "" %}
11
+ {% if categories == "" %}
12
+ {% assign categories = tag | split:'|' %}
13
+ {% endif %}
14
+ {% unless categories contains tag %}
15
+ {% assign categories = categories | join:'|' | append:'|' | append:tag | split:'|' %}
16
+ {% endunless %}
17
+ {% endif %}
18
+ {% endfor %}
@@ -0,0 +1,18 @@
1
+ {% assign rawtags = "" %}
2
+ {% for post in site.posts %}
3
+ {% assign ttags = post.tags | join:'|' | append:'|' %}
4
+ {% assign rawtags = rawtags | append:ttags %}
5
+ {% endfor %}
6
+ {% assign rawtags = rawtags | split:'|' | sort %}
7
+
8
+ {% assign site.tags = "" %}
9
+ {% for tag in rawtags %}
10
+ {% if tag != "" %}
11
+ {% if tags == "" %}
12
+ {% assign tags = tag | split:'|' %}
13
+ {% endif %}
14
+ {% unless tags contains tag %}
15
+ {% assign tags = tags | join:'|' | append:'|' | append:tag | split:'|' %}
16
+ {% endunless %}
17
+ {% endif %}
18
+ {% endfor %}
data/_includes/head.html CHANGED
@@ -5,6 +5,15 @@
5
5
  {%- seo -%}
6
6
  <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
7
7
  {%- feed_meta -%}
8
+
9
+ {%- if site.tags != "" -%}
10
+ {%- include collect_tags.html -%}
11
+ {%- endif -%}
12
+
13
+ {%- if site.categories != "" -%}
14
+ {%- include collect_categories.html -%}
15
+ {%- endif -%}
16
+
8
17
  {%- if jekyll.environment == 'production' and site.google_analytics -%}
9
18
  {%- include google-analytics.html -%}
10
19
  {%- endif -%}
@@ -0,0 +1,12 @@
1
+ {% capture temptags %}
2
+ {% for tag in site.tags %}
3
+ {{ tag[1].size | plus: 1000 }}#{{ tag[0] }}#{{ tag[1].size }}
4
+ {% endfor %}
5
+ {% endcapture %}
6
+ {% assign sortedtemptags = temptags | split:' ' | sort | reverse %}
7
+ {% for temptag in sortedtemptags %}
8
+ {% assign tagitems = temptag | split: '#' %}
9
+ {% capture tagname %}{{ tagitems[1] }}{% endcapture %}
10
+ {% capture tagcount %}{{ tagitems[2] }}{% endcapture %}
11
+ <a href="/tag/{{ tagname }}"><nobr>#{{ tagname }}</nobr></a><sup>{{ tagcount }}</sup>&nbsp;
12
+ {% endfor %}
data/_layouts/post.html CHANGED
@@ -12,7 +12,14 @@ layout: default
12
12
  </time>
13
13
  {%- if page.author -%}
14
14
  • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
15
- {%- endif -%}</p>
15
+ {%- endif -%}
16
+ <span class="post-tags">[&nbsp;
17
+ {% for tag in page.tags %}
18
+ {% capture tag_name %}{{ tag }}{% endcapture %}
19
+ <a href="/tag/{{ tag_name }}"><nobr>#{{ tag_name }}</nobr></a>&nbsp;
20
+ {% endfor %}
21
+ ]</span>
22
+ </p>
16
23
  </header>
17
24
 
18
25
  <div class="post-content e-content" itemprop="articleBody">
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <h1>{{ page.type }} '{{ page.title }}'</h1>
5
+ <ul class="posts">
6
+ {% for post in page.posts %}
7
+ <li>
8
+ <span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span> &raquo; <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
9
+ </li>
10
+ {% endfor %}
11
+ </ul>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-minimax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Songzi Vuong
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jekyll-archives
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.1.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.1
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: bundler
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -89,6 +103,9 @@ extra_rdoc_files: []
89
103
  files:
90
104
  - LICENSE.txt
91
105
  - README.md
106
+ - _includes/category_cloud.html
107
+ - _includes/collect_categories.html
108
+ - _includes/collect_tags.html
92
109
  - _includes/disqus_comments.html
93
110
  - _includes/footer.html
94
111
  - _includes/google-analytics.html
@@ -99,10 +116,12 @@ files:
99
116
  - _includes/icon-twitter.html
100
117
  - _includes/icon-twitter.svg
101
118
  - _includes/social.html
119
+ - _includes/tag_cloud.html
102
120
  - _layouts/default.html
103
121
  - _layouts/home.html
104
122
  - _layouts/page.html
105
123
  - _layouts/post.html
124
+ - _layouts/tag-archive.html
106
125
  - _sass/minimax.scss
107
126
  - _sass/minimax/_base.scss
108
127
  - _sass/minimax/_layout.scss