tale 0.1.7 → 0.2.3

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
- SHA1:
3
- metadata.gz: f2bb444ae46ff806a7b3d58e97ac6c9a6bca8921
4
- data.tar.gz: b30b327317d44236aa08d57c31f3448c214aa13d
2
+ SHA256:
3
+ metadata.gz: 9ce3370a26510b826136fa232c80db4e4e9358311aa62edae86f68107f955717
4
+ data.tar.gz: 6ee93b8e79aab8ecce41e451863fe050ca696f3d0bd52b1ca60500870294cf6d
5
5
  SHA512:
6
- metadata.gz: 6bf322a7639509edd357ffa94a2ba89e54bb1575cf805e56517186cd853a33ed91f5be9043bfc812760347dfca46a2a5057b8e5e5bd447a4fd5df0056c0d96ac
7
- data.tar.gz: 572692a3df84729a9e00cc3a6dc3e332c13f8f967755ac3bc1c551cab7c4bc986238811b36c7e076d71a6867e11252de76b536fdfd395a76a882de08791df6e3
6
+ metadata.gz: 30213d699ecc3adf39a7830a5b3e304e593c0dcab4ef85e795ceb9c5b6317e73f5397e230148b11cf445fa74f2e6f9ea9380d55b5989efebbd32796b1b28892a
7
+ data.tar.gz: 6eafc282950b87f1d588347fa08ae246fe62d8eea693ce948550d33d7173ebd6fa6b4d9e34cbbfa9aa28bc0254ccb77e8ce24408d80e9244d2e13cd51b883803
data/README.md CHANGED
@@ -13,6 +13,9 @@ Tale is a minimal Jekyll theme curated for storytellers. Checkout the demo [here
13
13
  - Syntax highlighting, with the help of Pygments
14
14
  - Markdown and HTML text formatting
15
15
  - Pagination of posts
16
+ - Sticky posts
17
+ - Tags
18
+ - Excerpt management
16
19
  - [Disqus comments (can be enabled if needed)](#enabling-comments)
17
20
 
18
21
  ## Installation
@@ -0,0 +1,19 @@
1
+ <a href="{{ post.url | prepend: site.baseurl }}" class="catalogue-item">
2
+ <div>
3
+ {% if include.sticky == 'true' %}
4
+ <span class="catalogue-pinned">Pinned &middot;</span>
5
+ {% endif %}
6
+ <time datetime="{{ post.date }}" class="catalogue-time">{{ post.date | date: "%B %d, %Y" }}</time>
7
+ <h1 class="catalogue-title">{{ post.title }}</h1>
8
+ <div class="catalogue-line"></div>
9
+
10
+ <p>
11
+ {% if post.excerpt_separator %}
12
+ {{ post.excerpt | strip_html }}
13
+ {% else %}
14
+ {{ post.content | strip_html | truncatewords: 30 }}
15
+ {% endif %}
16
+ </p>
17
+
18
+ </div>
19
+ </a>
@@ -4,8 +4,9 @@
4
4
  <h2 class="nav-title">{{ site.title }}</h2>
5
5
  </a>
6
6
  <ul>
7
- <li><a href="{{ '/about' | prepend: site.baseurl }}">About</a></li>
8
7
  <li><a href="{{ site.baseurl }}/">Posts</a></li>
8
+ <li><a href="{{ '/tags' | prepend: site.baseurl }}">Tags</a></li>
9
+ <li><a href="{{ '/about' | prepend: site.baseurl }}">About</a></li>
9
10
  </ul>
10
11
  </div>
11
12
  </nav>
data/_layouts/home.html CHANGED
@@ -3,19 +3,14 @@ layout: default
3
3
  ---
4
4
 
5
5
  <div class="catalogue">
6
- {% for post in paginator.posts %}
7
- <a href="{{ post.url | prepend: site.baseurl }}" class="catalogue-item">
8
- <div>
9
- <time datetime="{{ post.date }}" class="catalogue-time">{{ post.date | date: "%B %d, %Y" }}</time>
10
- <h1 class="catalogue-title">{{ post.title }}</h1>
11
- <div class="catalogue-line"></div>
12
-
13
- <p>
14
- {{ post.content | strip_html | truncatewords: 30 }}
15
- </p>
6
+ {% for post in site.posts %}
7
+ {% if post.sticky %}
8
+ {% include catalogue_item.html sticky='true' %}
9
+ {% endif %}
10
+ {% endfor %}
16
11
 
17
- </div>
18
- </a>
12
+ {% for post in paginator.posts %}
13
+ {% include catalogue_item.html %}
19
14
  {% endfor %}
20
15
  </div>
21
16
 
data/_sass/tale.scss CHANGED
@@ -6,3 +6,5 @@
6
6
  @import 'tale/layout';
7
7
  @import 'tale/pagination';
8
8
  @import 'tale/catalogue';
9
+ @import 'tale/404';
10
+ @import 'tale/tags';
@@ -0,0 +1,22 @@
1
+ .notfound {
2
+ position: relative;
3
+ text-align: center;
4
+ margin: 4rem 0;
5
+
6
+ &-error {
7
+ font-size: 4rem;
8
+ margin: 1rem 0;
9
+ }
10
+
11
+ &-line {
12
+ border-top: 0.4rem solid $default-shade;
13
+ display: block;
14
+ margin: 0 auto 3rem;
15
+ width: 4rem;
16
+ }
17
+
18
+ &-message {
19
+ max-width: 25rem;
20
+ margin: 0 auto;
21
+ }
22
+ }
@@ -15,6 +15,12 @@
15
15
  }
16
16
  }
17
17
 
18
+ &-pinned {
19
+ color: $default-tint;
20
+ font-family: $serif-secondary;
21
+ letter-spacing: .5px;
22
+ }
23
+
18
24
  &-time {
19
25
  color: $default-tint;
20
26
  font-family: $serif-secondary;
@@ -0,0 +1,89 @@
1
+ .tags {
2
+ &-header {
3
+ &-title {
4
+ color: $default-shade;
5
+ font-family: $sans-serif;
6
+ font-size: 4rem;
7
+ margin: 1rem 0;
8
+ text-align: center;
9
+ }
10
+
11
+ &-line {
12
+ border-top: 0.4rem solid $default-shade;
13
+ display: block;
14
+ margin: 0 auto 3rem;
15
+ width: 4rem;
16
+ }
17
+ }
18
+
19
+ &-clouds {
20
+ text-align: center;
21
+ font-family: $sans-serif;
22
+
23
+ a {
24
+ display: inline-block;
25
+ margin: 0 0.1rem 0.2rem;
26
+ padding: 0.2rem 0.5rem;
27
+ background: rgba(0, 0, 0, 0.05);
28
+ border-radius: 5px;
29
+ color: $default-color;
30
+ text-decoration: none;
31
+
32
+ &:hover,
33
+ &:active {
34
+ background: rgba(0, 0, 0, 0.1);
35
+ }
36
+ }
37
+ }
38
+
39
+ &-item {
40
+ &-icon {
41
+ height: 1rem;
42
+ }
43
+
44
+ &-label {
45
+ display: inline-block;
46
+ margin: 2rem 0 0.5rem;
47
+ font-family: $sans-serif;
48
+ color: $default-color;
49
+ }
50
+ }
51
+
52
+ &-post {
53
+ display: flex;
54
+ justify-content: space-between;
55
+ padding: 5px 0;
56
+
57
+ &-title {
58
+ color: $default-color;
59
+ text-decoration: none;
60
+ white-space: nowrap;
61
+ overflow: hidden;
62
+ text-overflow: ellipsis;
63
+ }
64
+
65
+ &-line {
66
+ @include transition(all 0.3s ease-out);
67
+ border-top: 0.1rem solid $default-shade;
68
+ display: block;
69
+ width: 0;
70
+ }
71
+
72
+ &-meta {
73
+ color: $default-tint;
74
+ text-align: right;
75
+ white-space: nowrap;
76
+ }
77
+
78
+ &:hover,
79
+ &:active {
80
+ .tags-post-line {
81
+ width: 3rem;
82
+ }
83
+
84
+ .tags-post-meta {
85
+ color: $default-shade;
86
+ }
87
+ }
88
+ }
89
+ }
@@ -1,20 +1,20 @@
1
1
  // Colors
2
- $default-color: #555;
3
- $default-shade: #353535;
4
- $default-tint: #aaa;
5
- $grey-1: #979797;
6
- $grey-2: #e5e5e5;
7
- $grey-3: #f9f9f9;
8
- $white: #fff;
9
- $blue: #4a9ae1;
10
- $shadow-color: rgba(0, 0, 0, .2);
11
- $code-color: #bf616a;
2
+ $default-color: #555 !default;
3
+ $default-shade: #353535 !default;
4
+ $default-tint: #aaa !default;
5
+ $grey-1: #979797 !default;
6
+ $grey-2: #e5e5e5 !default;
7
+ $grey-3: #f9f9f9 !default;
8
+ $white: #fff !default;
9
+ $blue: #4a9ae1 !default;
10
+ $shadow-color: rgba(0, 0, 0, .2) !default;
11
+ $code-color: #bf616a !default;
12
12
 
13
13
  // Fonts
14
- $serif-primary: 'Libre Baskerville', 'Times New Roman', Times, serif;
15
- $serif-secondary: Palatino, 'Palatino LT STD', 'Palatino Linotype', 'Book Antiqua', 'Georgia', serif;
16
- $sans-serif: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif;
17
- $monospaced: Menlo, Monaco, monospace;
14
+ $serif-primary: 'Libre Baskerville', 'Times New Roman', Times, serif !default;
15
+ $serif-secondary: Palatino, 'Palatino LT STD', 'Palatino Linotype', 'Book Antiqua', 'Georgia', serif !default;
16
+ $sans-serif: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif !default;
17
+ $monospaced: Menlo, Monaco, monospace !default;
18
18
 
19
19
  @mixin box-sizing($type: border-box) {
20
20
  -webkit-box-sizing: $type;
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chester How
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-24 00:00:00.000000000 Z
11
+ date: 2021-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.6'
19
+ version: '4.0'
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.6'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jekyll-paginate
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,15 +86,15 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
89
+ version: 12.3.3
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '10.0'
97
- description:
96
+ version: 12.3.3
97
+ description:
98
98
  email:
99
99
  - chesterhow@gmail.com
100
100
  executables: []
@@ -104,6 +104,7 @@ files:
104
104
  - LICENSE
105
105
  - README.md
106
106
  - _includes/analytics.html
107
+ - _includes/catalogue_item.html
107
108
  - _includes/disqus_comments.html
108
109
  - _includes/footer.html
109
110
  - _includes/head.html
@@ -112,6 +113,7 @@ files:
112
113
  - _layouts/home.html
113
114
  - _layouts/post.html
114
115
  - _sass/tale.scss
116
+ - _sass/tale/_404.scss
115
117
  - _sass/tale/_base.scss
116
118
  - _sass/tale/_catalogue.scss
117
119
  - _sass/tale/_code.scss
@@ -119,6 +121,7 @@ files:
119
121
  - _sass/tale/_pagination.scss
120
122
  - _sass/tale/_post.scss
121
123
  - _sass/tale/_syntax.scss
124
+ - _sass/tale/_tags.scss
122
125
  - _sass/tale/_variables.scss
123
126
  - assets/apple-touch-icon.png
124
127
  - assets/favicon-16x16.png
@@ -129,7 +132,7 @@ homepage: https://github.com/chesterhow/tale
129
132
  licenses:
130
133
  - MIT
131
134
  metadata: {}
132
- post_install_message:
135
+ post_install_message:
133
136
  rdoc_options: []
134
137
  require_paths:
135
138
  - lib
@@ -144,9 +147,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
147
  - !ruby/object:Gem::Version
145
148
  version: '0'
146
149
  requirements: []
147
- rubyforge_project:
148
- rubygems_version: 2.5.2.2
149
- signing_key:
150
+ rubygems_version: 3.2.16
151
+ signing_key:
150
152
  specification_version: 4
151
153
  summary: Tale is a minimal Jekyll theme curated for storytellers.
152
154
  test_files: []