sibu 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/layouts/sibu/site.html.erb +9 -0
- data/config/routes.rb +1 -0
- data/lib/sibu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ed2b94d1a87f438fc6eb718059f642276236c2c
|
4
|
+
data.tar.gz: 89102521337f1dadae87a2a54ca97f8e197ccdfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bd12440bb6c524396acd5358bf0d9d7c719e349301ef755dd060674e8beb34cbc72eddd9adadc6ee2d7de9bfd4387f7b8e23f9e46a1b596aff7415cd1eaab05
|
7
|
+
data.tar.gz: 2b5c1829b6fead0c43eff2b5051d71603a40b535a62646c8d8b7abdec1c355716f686ff93dbd47329ad744d657a4906f9ae2d177e64b0f499124bb648c119454
|
@@ -9,6 +9,15 @@
|
|
9
9
|
<% if @site %>
|
10
10
|
<%= stylesheet_link_tag @site.style_url, media: "all" %>
|
11
11
|
<%= javascript_include_tag @site.site_template.path %>
|
12
|
+
<% unless @site.analytics_id.blank? %>
|
13
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= @site.analytics_id %>"></script>
|
14
|
+
<script>
|
15
|
+
window.dataLayer = window.dataLayer || [];
|
16
|
+
function gtag(){dataLayer.push(arguments);}
|
17
|
+
gtag('js', new Date());
|
18
|
+
gtag('config', '<%= @site.analytics_id %>');
|
19
|
+
</script>
|
20
|
+
<% end %>
|
12
21
|
<% end %>
|
13
22
|
<%= csrf_meta_tags %>
|
14
23
|
<%= yield :styles %>
|
data/config/routes.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
Sibu::Engine.routes.draw do
|
2
2
|
|
3
|
+
# Note : fix the issue with domain & subdomain & internal links
|
3
4
|
get '/', to: 'pages#show', constraints: lambda {|req| req.domain != Rails.application.config.sibu[:domain]}
|
4
5
|
get '*path', to: 'pages#show', constraints: lambda {|req| req.domain != Rails.application.config.sibu[:domain]}
|
5
6
|
|
data/lib/sibu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sibu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean-Baptiste Vilain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|