spina-conferences-primer_theme-fork 0.9.0 → 0.9.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 954bf5b4c668e0a9c9438ede4ac5c41419514c36f52c97ea6b2f5ca27707fbfd
|
4
|
+
data.tar.gz: a2930304378c267a23eb4f4ccb4d7d99f1f0e221d0a8fb7aa5614655614107fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e82827360adbeb826eeac1ea7cd0875d37c2660898421af82a7b45b2531288fef665a009988c242b56c3bd843bedc918f492f91313ceba3a6c086fe856bbfd6
|
7
|
+
data.tar.gz: b6cc7651f25cd14d788bb2ed0769c15a27e1fe40c764f0df99b349b1af1d6ee113445abfba10ffbbc61c6047e9632aec5ba6910f6d0561a0cc6825034e861da1
|
@@ -12,6 +12,7 @@ module Spina
|
|
12
12
|
before_action :category
|
13
13
|
before_action :posts
|
14
14
|
before_action :set_breadcrumb, only: :show
|
15
|
+
before_action :set_metadata
|
15
16
|
|
16
17
|
def show
|
17
18
|
add_breadcrumb t('.category', name: @category.name)
|
@@ -39,6 +40,10 @@ module Spina
|
|
39
40
|
def set_breadcrumb
|
40
41
|
add_breadcrumb 'Blog', frontend_blog_root_path
|
41
42
|
end
|
43
|
+
|
44
|
+
def set_metadata
|
45
|
+
@title = @category.name
|
46
|
+
end
|
42
47
|
end
|
43
48
|
end
|
44
49
|
end
|
@@ -17,6 +17,8 @@ module Spina
|
|
17
17
|
def index
|
18
18
|
@posts = @posts.unscope(where: :draft) if current_spina_user&.admin?
|
19
19
|
|
20
|
+
@title = t('.blog')
|
21
|
+
|
20
22
|
respond_to do |format|
|
21
23
|
format.atom
|
22
24
|
format.html { render layout: theme_layout }
|
@@ -78,7 +80,7 @@ module Spina
|
|
78
80
|
end
|
79
81
|
|
80
82
|
def set_metadata
|
81
|
-
@title = @post.seo_title
|
83
|
+
@title = @post.seo_title.blank? ? @post.title : @post.seo_title
|
82
84
|
@description = @post.description
|
83
85
|
end
|
84
86
|
end
|
data/config/locales/en.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spina-conferences-primer_theme-fork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Malčić
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-11-
|
12
|
+
date: 2021-11-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: babel-transpiler
|