Added meta tags for tour and issue pages
This commit is contained in:
parent
9cc7191b12
commit
b2a3fb5ff0
Binary file not shown.
After Width: | Height: | Size: 8.7 KiB |
|
@ -4,7 +4,7 @@ module FacebookHelper
|
||||||
def facebook_meta_image
|
def facebook_meta_image
|
||||||
resource = get_resource
|
resource = get_resource
|
||||||
@fb_meta_image ||= avatar_url(resource, :big) if resource.respond_to?(:avatar)
|
@fb_meta_image ||= avatar_url(resource, :big) if resource.respond_to?(:avatar)
|
||||||
@fb_meta_image ||= asset_url('logo-mini.png')
|
@fb_meta_image ||= asset_url('fb-image.png')
|
||||||
|
|
||||||
@fb_meta_image
|
@fb_meta_image
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
- set_meta_tags og: { description: 'Terms of Service' }
|
||||||
|
|
||||||
- render 'tos_sidebar'
|
- render 'tos_sidebar'
|
||||||
|
|
||||||
.tos
|
.tos
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
- set_meta_tags og: { description: t('tour.meta_description') }
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-8.col-md-offset-2
|
.col-md-8.col-md-offset-2
|
||||||
.row
|
.row
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
- set_meta_tags og: { description: t('tour.meta_description') }
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-8.col-md-offset-2
|
.col-md-8.col-md-offset-2
|
||||||
.row
|
.row
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
-set_meta_tags title: [title_object(@project), @issue.title]
|
- set_meta_tags title: [title_object(@project), @issue.title]
|
||||||
|
- set_meta_tags og: { title: @issue.title,
|
||||||
|
description: truncate(@issue.body, length: 255) }
|
||||||
|
|
||||||
== render 'submenu'
|
== render 'submenu'
|
||||||
== render 'projects/comments/markdown_help' if current_user
|
== render 'projects/comments/markdown_help' if current_user
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
en:
|
en:
|
||||||
tour:
|
tour:
|
||||||
|
meta_description: "A distributed environment to build distributions, supporting all steps from managing source code to create ISO images."
|
||||||
read_more: more...
|
read_more: more...
|
||||||
projects: Project Management
|
projects: Project Management
|
||||||
sources: Source Code
|
sources: Source Code
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
ru:
|
ru:
|
||||||
tour:
|
tour:
|
||||||
|
meta_description: "Платформа разработки и управления жизненным циклом дистрибутивов: от исходного кода до ISO-образов."
|
||||||
read_more: Читать далее...
|
read_more: Читать далее...
|
||||||
projects: Управление проектами
|
projects: Управление проектами
|
||||||
sources: Исходный код
|
sources: Исходный код
|
||||||
|
|
Loading…
Reference in New Issue