Add opengraph and twitter metadata

This commit is contained in:
Petko Bordjukov 2019-10-07 14:59:44 +03:00
parent d97febde6d
commit 6e86112d0f
3 changed files with 11 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -5,6 +5,16 @@
<%= stylesheet_link_tag 'application', media: 'all' %> <%= stylesheet_link_tag 'application', media: 'all' %>
<%= javascript_include_tag 'application' %> <%= javascript_include_tag 'application' %>
<%= csrf_meta_tags %> <%= csrf_meta_tags %>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@openfestbg">
<meta name="twitter:title" content="<%= t 'generic.title' %>">
<meta name="twitter:description" content="<%= t 'generic.help_us_reduce_the_conflicts' %>">
<meta name="twitter:image" content="<%= image_url 'openfest-splash.png' %>">
<meta property="og:type" content="website">
<meta property="og:url" content="https://vote.openfest.org/" />
<meta property="og:title" content="<%= t 'generic.title' %>">
<meta property="og:image" content="<%= image_url 'openfest-splash.png' %>">
</head> </head>
<body class="size-small in-list halfnarp"> <body class="size-small in-list halfnarp">

View File

@ -33,7 +33,7 @@ append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bund
# set :default_env, { path: "/opt/ruby/bin:$PATH" } # set :default_env, { path: "/opt/ruby/bin:$PATH" }
# Default value for keep_releases is 5 # Default value for keep_releases is 5
# set :keep_releases, 5 set :keep_releases, 50
set :rvm_ruby_version, '2.6.5' set :rvm_ruby_version, '2.6.5'