zarchitect 1.1.1 → 1.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 +4 -4
- data/lib/zarchitect/index.rb +2 -3
- data/lib/zarchitect/post.rb +6 -7
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77ba88dbb19220883ea69d691bc58b4516da67029bce35deace60accadf4a64b
|
|
4
|
+
data.tar.gz: 5ef24b5ca9adb8b94acbf94a6b4567ada8661e65f61d13af1626566feda220b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c3da6babfbfb768644da6fd6dbab8c6936e00beb7e1d379ff5a111c1b0ba39f24c46eeeb2431daab8161fcb734cbb1b1f560b4b264b7bc2a6512ba0d65596255
|
|
7
|
+
data.tar.gz: 3a3b0ade3688e980356cdcbb7cd4736273d96ea5a481ec4fe3f56399caed842970ab9097186ae7535b41f41b859dccb5925052ec4a63f69b8eff40177dd9ea7d
|
data/lib/zarchitect/index.rb
CHANGED
|
@@ -198,10 +198,9 @@ class Index < Zarchitect
|
|
|
198
198
|
|
|
199
199
|
def meta_title
|
|
200
200
|
if category
|
|
201
|
-
|
|
202
|
-
Zarchitect.conf.title_sep + category.name
|
|
201
|
+
"#{section.name}:#{category.name} - #{Zarchitect.conf.site_name}"
|
|
203
202
|
else
|
|
204
|
-
|
|
203
|
+
"#{section.name} - #{Zarchitect.conf.site_name}"
|
|
205
204
|
end
|
|
206
205
|
end
|
|
207
206
|
|
data/lib/zarchitect/post.rb
CHANGED
|
@@ -81,7 +81,7 @@ class Post < Zarchitect
|
|
|
81
81
|
if @conf.has_option?("title")
|
|
82
82
|
@name = @conf.title
|
|
83
83
|
elsif @section.conf.has_option?("default_title")
|
|
84
|
-
@name = @
|
|
84
|
+
@name = @section.conf.default_title
|
|
85
85
|
else
|
|
86
86
|
@name = ""
|
|
87
87
|
end
|
|
@@ -160,7 +160,7 @@ class Post < Zarchitect
|
|
|
160
160
|
if @conf.has_option?('description')
|
|
161
161
|
@description = @conf.description
|
|
162
162
|
elsif @conf.has_option?('preview')
|
|
163
|
-
@description = Sanitize.fragment(@conf.preview)
|
|
163
|
+
@description = Sanitize.fragment(@conf.preview)
|
|
164
164
|
else
|
|
165
165
|
nodes = @content.nodes.select { |n| n.type == "p" }
|
|
166
166
|
if nodes.count > 0
|
|
@@ -195,15 +195,14 @@ class Post < Zarchitect
|
|
|
195
195
|
#
|
|
196
196
|
|
|
197
197
|
def meta_title
|
|
198
|
-
title = Zarchitect.conf.site_name
|
|
199
|
-
title << Zarchitect.conf.title_sep
|
|
198
|
+
title = "#{@name} - #{Zarchitect.conf.site_name}"
|
|
200
199
|
if @section.conf.collection
|
|
201
|
-
title << @section.name
|
|
200
|
+
title << " - #{@section.name}"
|
|
202
201
|
end
|
|
203
202
|
unless @category.nil?
|
|
204
|
-
title << @category.name
|
|
203
|
+
title << ":#{@category.name}"
|
|
205
204
|
end
|
|
206
|
-
title
|
|
205
|
+
title
|
|
207
206
|
end
|
|
208
207
|
|
|
209
208
|
def meta_keywords
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zarchitect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ryu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-03-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Yet another static website generator
|
|
14
14
|
email: ryu@tohya.net
|