Skip to content

Commit

Permalink
etc: support twitter cards
Browse files Browse the repository at this point in the history
  • Loading branch information
outsideris committed Nov 30, 2016
1 parent 4e49640 commit 346ec27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/layout.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
<meta property="og:url" content="@play.mvc.Http.Context.current().request().path()" />
<meta property="og:type" content="website" />
<meta property="og:description" content="@{titleArray(titleArray.length-1)}" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="@titleArray(0)" />
<meta name="twitter:url" content="@play.mvc.Http.Context.current().request().path()" />
<meta name="twitter:description" content="@{titleArray(titleArray.length-1)}" />
<link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.ico")">
<link rel="stylesheet" type="text/css" media="all" href="@routes.Assets.at("bootstrap/css/bootstrap.css")">
<link rel="stylesheet" type="text/css" media="all" href="@routes.Assets.at("stylesheets/yobicon/style.css")">
Expand Down

0 comments on commit 346ec27

Please sign in to comment.