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
|
||||
resource = get_resource
|
||||
@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
|
||||
end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
- set_meta_tags og: { description: 'Terms of Service' }
|
||||
|
||||
- render 'tos_sidebar'
|
||||
|
||||
.tos
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
- set_meta_tags og: { description: t('tour.meta_description') }
|
||||
|
||||
.row
|
||||
.col-md-8.col-md-offset-2
|
||||
.row
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
- set_meta_tags og: { description: t('tour.meta_description') }
|
||||
|
||||
.row
|
||||
.col-md-8.col-md-offset-2
|
||||
.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 'projects/comments/markdown_help' if current_user
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
en:
|
||||
tour:
|
||||
meta_description: "A distributed environment to build distributions, supporting all steps from managing source code to create ISO images."
|
||||
read_more: more...
|
||||
projects: Project Management
|
||||
sources: Source Code
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
ru:
|
||||
tour:
|
||||
meta_description: "Платформа разработки и управления жизненным циклом дистрибутивов: от исходного кода до ISO-образов."
|
||||
read_more: Читать далее...
|
||||
projects: Управление проектами
|
||||
sources: Исходный код
|
||||
|
|
Loading…
Reference in New Issue