veto

Simple Sinatra voting website.
git clone git://git.knutsen.co/veto
Log | Files | Refs | README | LICENSE

commit 4de69fdf6521fde200664cb50d982d553991857d
parent d2ae3b7198b1dd96d056190b472d9b8c20d4eb73
Author: Fredrik <moi@knutsen.co>
Date:   Sat, 17 Nov 2018 15:59:15 +0000

Merge pull request #19 from Demonstrandum/devel

Add social meta tags and respective graphics.
Diffstat:
MGemfile | 2+-
Apublic/card.png | 0
Apublic/card.xcf | 0
Apublic/googlee690e1ce4ab0adfd.html | 2++
Apublic/square.png | 0
Apublic/square.xcf | 0
Mserver.rb | 20++++++++++++++++++++
Mviews/index.erb | 2+-
Mviews/oops.erb | 2+-
Mviews/poll.erb | 2+-
Mviews/share.erb | 2+-
11 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/Gemfile b/Gemfile @@ -2,7 +2,7 @@ source 'https://rubygems.org' gem 'thin' gem 'rack-ssl', '~> 1.4' -gem 'sinatra', '~> 2.0', '>= 2.0.1' +gem 'sinatra', '~> 2.0', '>= 2.0.4' gem 'json' gem 'mongo' gem 'rack', '~> 2.0', '>= 2.0.6' diff --git a/public/card.png b/public/card.png Binary files differ. diff --git a/public/card.xcf b/public/card.xcf Binary files differ. diff --git a/public/googlee690e1ce4ab0adfd.html b/public/googlee690e1ce4ab0adfd.html @@ -0,0 +1 @@ +google-site-verification: googlee690e1ce4ab0adfd.html+ \ No newline at end of file diff --git a/public/square.png b/public/square.png Binary files differ. diff --git a/public/square.xcf b/public/square.xcf Binary files differ. diff --git a/server.rb b/server.rb @@ -36,6 +36,26 @@ HEAD_TAGS = <<-HTML <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> + <!-- Search Engine --> + <meta name="description" content="Create a real time straw poll with veto.vote. Easy to use, completely free with graphs and statistics already provided."> + <meta name="image" content="https://veto.vote/square.png"> + <!-- Schema.org for Google --> + <meta itemprop="name" content="Veto Vote — Straw Polls"> + <meta itemprop="description" content="Create a real time straw poll with veto.vote. Easy to use, completely free with graphs and statistics already provided."> + <meta itemprop="image" content="https://veto.vote/square.png"> + <!-- Twitter --> + <meta name="twitter:card" content="summary"> + <meta name="twitter:title" content="Veto Vote — Straw Polls"> + <meta name="twitter:description" content="Create a real time straw poll with veto.vote. Easy to use, completely free with graphs and statistics already provided."> + <meta name="twitter:image:src" content="https://veto.vote/square.png"> + <!-- Open Graph general (Facebook, Pinterest & Google+) --> + <meta name="og:title" content="Veto Vote — Straw Polls"> + <meta name="og:description" content="Create a real time straw poll with veto.vote. Easy to use, completely free with graphs and statistics already provided."> + <meta name="og:image" content="https://veto.vote/card.pmg"> + <meta name="og:url" content="https://veto.vote/"> + <meta name="og:site_name" content="Veto Vote — Straw Polls"> + <meta name="og:type" content="website"> + <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" /> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" /> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" /> diff --git a/views/index.erb b/views/index.erb @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> <head> - <title>Veto - Create Poll</title> + <title>Veto Vote - Create a Poll</title> <%= head_tags %> </head> <body> diff --git a/views/oops.erb b/views/oops.erb @@ -1,7 +1,7 @@ <!DOCTYPE html> <html lang="en" dir="ltr"> <head> - <title>404 - Veto</title> + <title>404 - Veto Vote</title> <%= head_tags %> <style media="screen"> @import url('https://fonts.googleapis.com/css?family=Roboto+Mono'); diff --git a/views/poll.erb b/views/poll.erb @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> <head> - <title><%= name %> | Veto</title> + <title><%= name %> | Veto Vote</title> <%= head_tags %> <script type="text/javascript"> let other_allowed = true; diff --git a/views/share.erb b/views/share.erb @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> <head> - <title>Share Poll</title> + <title>Share Poll | Veto Vote</title> <%= head_tags %> <style media="screen"> body, html {