bullet_train 1.0.29 → 1.0.30
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/docs.html.erb +4 -4
- data/lib/bullet_train/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4daae6a44c0ee84d06666767d1ca5b73655b3ed98aa0b9efcffb019c5691edf7
|
4
|
+
data.tar.gz: 0ca25849d1a29c888d6687ca4fbcb11a31db8ba8cc23ed96a6aaf61e484fe4b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cc32562c77ed0a146aab0a8fdc3b1e2e3e45911d94c5bfc31cd0a259f17ca9de44481e025b0f7de6fceb2a5286db47e86179d17e859d1bedd06b9104955d538
|
7
|
+
data.tar.gz: f155cfc57b9f831c68c1e984272fe815784ab2ae1bee3713bb0ff68ab3e480c235adb30d603c2056b097c24789567c9e250c7aaab8eebd18da01a90006eaac95
|
@@ -5,20 +5,20 @@
|
|
5
5
|
<%
|
6
6
|
# we're going to use the
|
7
7
|
body = Nokogiri::HTML(@body)
|
8
|
-
title = body.css('h1').first.text.presence || t('
|
8
|
+
title = body.css('h1').first.text.presence || t('application.tagline')
|
9
9
|
first_paragraph = body.css('p').first
|
10
10
|
preceding_heading = first_paragraph&.xpath("preceding-sibling::h2")
|
11
|
-
description = [preceding_heading&.text, first_paragraph&.text].select(&:present?).join(" — ") || t('
|
11
|
+
description = [preceding_heading&.text, first_paragraph&.text].select(&:present?).join(" — ") || t('application.description')
|
12
12
|
image_url = "https://avatars.githubusercontent.com/u/5976880?s=280&v=4"
|
13
13
|
site_name = "Bullet Train Developer Documentation"
|
14
14
|
%>
|
15
15
|
|
16
16
|
<% content_for :title do %>
|
17
|
-
<title><%= [site_name, title, t('
|
17
|
+
<title><%= [site_name, title, t('application.tagline')].select(&:present?).uniq.first(2).reverse.join(' — ') %></title>
|
18
18
|
<% end %>
|
19
19
|
|
20
20
|
<%= render 'themes/light/layouts/head' %>
|
21
|
-
<meta content="<%= t('
|
21
|
+
<meta content="<%= t('application.keywords') %>" name="keywords" />
|
22
22
|
<meta content="<%= description.truncate(200) %>" name="description" />
|
23
23
|
<meta name="twitter:image:src" content="<%= image_url %>" />
|
24
24
|
<meta name="twitter:site" content="@bullettrainco" />
|
data/lib/bullet_train/version.rb
CHANGED