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: 7638db04dabeb5edc3de27c831870439c78710521acbd1c46a99b2b5f2061d16
4
- data.tar.gz: c759d3795b8bb2358d310e997198203a4ffda6f1a8f5bb9711df8b1f986b0dac
3
+ metadata.gz: 954bf5b4c668e0a9c9438ede4ac5c41419514c36f52c97ea6b2f5ca27707fbfd
4
+ data.tar.gz: a2930304378c267a23eb4f4ccb4d7d99f1f0e221d0a8fb7aa5614655614107fa
5
5
  SHA512:
6
- metadata.gz: 83268c1e40a1e9094ab995e472b5e49316c9b19a9a54bd48071dee0a7a6e86441c8a294fd5776e1d36c8527f73072109002850516f80d5ea2bc73acf59d6b852
7
- data.tar.gz: f26deb07ceda524347c30b38b9de2d895ca7e22b5cbf6cf7c9b590dbde7743ae2a1e18d051858cb69ce3ef50cd228c30d3fb8c3050ef29ed644e7db94262a489
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 || @post.title
83
+ @title = @post.seo_title.blank? ? @post.title : @post.seo_title
82
84
  @description = @post.description
83
85
  end
84
86
  end
@@ -192,6 +192,8 @@ en:
192
192
  licence_logo: Licence logo
193
193
  blog:
194
194
  posts:
195
+ index:
196
+ blog: Blog
195
197
  post:
196
198
  category_html: "Category: %{name}"
197
199
  categories:
@@ -3,7 +3,7 @@
3
3
  module Spina
4
4
  module Conferences
5
5
  module PrimerTheme
6
- VERSION = '0.9.0'
6
+ VERSION = '0.9.1'
7
7
  end
8
8
  end
9
9
  end
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.0
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-08 00:00:00.000000000 Z
12
+ date: 2021-11-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: babel-transpiler