Absolute URIs for <meta> also adding Facebook metadata

This commit is contained in:
Andreas Mieke 2015-10-01 19:17:32 +02:00
parent 81e2b66259
commit 610fa57b69
4 changed files with 14 additions and 7 deletions

View file

@ -1,6 +1,6 @@
{{ template "header.html" . }} {{ template "header.html" . }}
<div class="row" itemscope itemtype="http://schema.org/Person"> <div class="row" itemscope itemtype="http://schema.org/Person">
<meta itemprop="url" content="/zeige/{{ .data.AT.Slug.String }}" /> <meta itemprop="url" content="https://gronkh.1750studios.com/zeige/{{ .data.AT.Slug.String }}" />
<meta itemprop="image" content="{{ .data.AT.FanArtB.String }}" /> <meta itemprop="image" content="{{ .data.AT.FanArtB.String }}" />
<h1 id="atName" class="small-12 columns" itemprop="name">{{ .data.AT.Name.String }}</h1> <h1 id="atName" class="small-12 columns" itemprop="name">{{ .data.AT.Name.String }}</h1>
<div class="medium-3 large-2 columns show-for-medium-up"> <div class="medium-3 large-2 columns show-for-medium-up">

View file

@ -1,7 +1,11 @@
{{ template "header.html" . }} {{ template "header.html" . }}
<div class="row" itemscope itemtype="http://schema.org/Episode"> <div class="row" itemscope itemtype="http://schema.org/Episode">
<meta itemprop="thumbnailUrl" content="{{ .data.EP.ThumbS.String }}" /> <meta property="og:type" content="video" />
<meta itemprop="datePublished" content="{{ .data.EP.Aired }}" /> <meta property="og:title" content="{{ .data.EP.Name.String }}" />
<meta property="og:description" content="{{ .data.EP.Descr.String }}" />
<meta property="og:url" itemprop="url" content="https://gronkh.1750studios.com/lets-play/{{ .data.LP.Slug.String }}/{{ .data.EP.Slug.String }}">
<meta property="og:image" itemprop="thumbnailUrl" content="{{ .data.EP.ThumbS.String }}" />
<meta property="og:updated_time" itemprop="datePublished" content="{{ .data.EP.Aired }}" />
<meta itemprop="timeRequired" content="{{ .data.EP.Duration.Int64 }}" /> <meta itemprop="timeRequired" content="{{ .data.EP.Duration.Int64 }}" />
<meta itemprop="episodeNumber" content="{{ .data.EP.Episode.Int64 }}" /> <meta itemprop="episodeNumber" content="{{ .data.EP.Episode.Int64 }}" />
<div class="flex-video widescreen vimeo"> <div class="flex-video widescreen vimeo">

View file

@ -1,6 +1,6 @@
{{ template "header.html" . }} {{ template "header.html" . }}
<div class="row" itemscope itemtype="http://schema.org/TVSeries"> <div class="row" itemscope itemtype="http://schema.org/TVSeries">
<meta itemprop="url" content="/lets-play/{{ .data.LP.Slug.String }}" /> <meta itemprop="url" content="https://gronkh.1750studios.com/lets-play/{{ .data.LP.Slug.String }}" />
<meta itemprop="datePublished" content="{{ .data.LP.Aired }}" /> <meta itemprop="datePublished" content="{{ .data.LP.Aired }}" />
<meta itemprop="thumbnailUrl" content="{{ .data.LP.PosterB.String }}" /> <meta itemprop="thumbnailUrl" content="{{ .data.LP.PosterB.String }}" />
<h1 id="lpName" class="small-12 columns" itemprop="name">{{ .data.LP.Name.String }}</h1> <h1 id="lpName" class="small-12 columns" itemprop="name">{{ .data.LP.Name.String }}</h1>

View file

@ -1,9 +1,12 @@
{{ template "header.html" . }} {{ template "header.html" . }}
<div class="row" itemscope itemtype="http://schema.org/Movie"> <div class="row" itemscope itemtype="http://schema.org/Movie">
<meta itemprop="url" content="/testet/{{ .data.LT.Slug.String }}" /> <meta property="og:type" content="video" />
<meta property="og:title" content="{{ .data.LT.Name.String }}" />
<meta property="og:description" content="{{ .data.LT.Descr.String }}" />
<meta property="og:url" itemprop="url" content="https://gronkh.1750studios.com/testet/{{ .data.LT.Slug.String }}" />
<meta itemprop="thumbnailUrl" content="{{ .data.LT.PosterS.String }}" /> <meta itemprop="thumbnailUrl" content="{{ .data.LT.PosterS.String }}" />
<meta itemprop="thumbnailUrl" content="{{ .data.LT.ThumbS.String }}" /> <meta property="og:image" itemprop="thumbnailUrl" content="{{ .data.LT.ThumbS.String }}" />
<meta itemprop="datePublished" content="{{ .data.LT.Aired }}" /> <meta property="og:updated_time" itemprop="datePublished" content="{{ .data.LT.Aired }}" />
<meta itemprop="timeRequired" content="{{ .data.LT.Duration.Int64 }}" /> <meta itemprop="timeRequired" content="{{ .data.LT.Duration.Int64 }}" />
<div class="flex-video widescreen vimeo"> <div class="flex-video widescreen vimeo">
<iframe width="213" height="120" src="//www.youtube.com/embed/{{ .data.LT.Youtube.String }}" frameborder="0" allowfullscreen></iframe> <iframe width="213" height="120" src="//www.youtube.com/embed/{{ .data.LT.Youtube.String }}" frameborder="0" allowfullscreen></iframe>