Chnaging links in WebUI and improving Author page

This commit is contained in:
Andreas Mieke 2016-02-28 22:57:20 +01:00
parent 8314291c4b
commit c392b53083
22 changed files with 83 additions and 83 deletions

View file

@ -2,7 +2,7 @@
<div class="row">
<div class="large-12 columns">
<h1>{{ .title }} #{{ .AT.ID }}</h1>
<form action="/admin/sprecher/{{ .AT.ID }}" method="post">
<form action="/admin/sprecher/{{ .AT.ID }}/" method="post">
<label>
ID <input type="text" name="id" value="{{ .AT.ID }}">
</label>

View file

@ -13,7 +13,7 @@
<tbody>
{{ range .ATs }}
<tr>
<td><a href="/admin/sprecher/{{ .ID }}" id="{{ .ID }}">{{ .ID }}</a></td>
<td><a href="/admin/sprecher/{{ .ID }}/" id="{{ .ID }}">{{ .ID }}</a></td>
<td>{{ .Name.String }}</td>
<td>{{ .Slug.String }}</td>
</tr>

View file

@ -2,7 +2,7 @@
<div class="row">
<div class="large-12 columns">
<h1>{{ .title }} #{{ .EP.ID }}</h1>
<form action="/admin/episode/{{ .EP.ID }}" method="post">
<form action="/admin/episode/{{ .EP.ID }}/" method="post">
<label>
ID <input type="text" name="id" value="{{ .EP.ID }}">
</label>

View file

@ -15,9 +15,9 @@
<tbody>
{{ range .EPs }}
<tr>
<td><a href="/admin/episode/{{ .ID }}" id="{{ .ID }}">{{ .ID }}</a></td>
<td><a href="/admin/sprecher/{{ .AuthorID }}">{{ .AuthorID }}</a></td>
<td><a href="/admin/lets-play/{{ .LetsPlayID }}">{{ .LetsPlayID }}</a></td>
<td><a href="/admin/episode/{{ .ID }}/" id="{{ .ID }}">{{ .ID }}</a></td>
<td><a href="/admin/sprecher/{{ .AuthorID }}/">{{ .AuthorID }}</a></td>
<td><a href="/admin/lets-play/{{ .LetsPlayID }}/">{{ .LetsPlayID }}</a></td>
<td>{{ .Name.String }}</td>
<td>{{ .Slug.String }}</td>
</tr>

View file

@ -3,10 +3,10 @@
<div class="large-12 columns">
<h1>{{ .title }}</h1>
<ul>
<li><a href="/admin/lets-play">Let's Plays</a>: {{ .LPs }}</li>
<li><a href="/admin/lets-test">Let's Tests</a>: {{ .LTs }}</li>
<li><a href="/admin/episode">Episoden</a>: {{ .EPs }}</li>
<li><a href="/admin/sprecher">Sprecher</a>: {{ .ATs }}</li>
<li><a href="/admin/lets-play/">Let's Plays</a>: {{ .LPs }}</li>
<li><a href="/admin/lets-test/">Let's Tests</a>: {{ .LTs }}</li>
<li><a href="/admin/episode/">Episoden</a>: {{ .EPs }}</li>
<li><a href="/admin/sprecher/">Sprecher</a>: {{ .ATs }}</li>
</ul>
</div>
</div>

View file

@ -2,7 +2,7 @@
<div class="row">
<div class="large-12 columns">
<h1>{{ .title }} #{{ .LP.ID }}</h1>
<form action="/admin/lets-play/{{ .LP.ID }}" method="post">
<form action="/admin/lets-play/{{ .LP.ID }}/" method="post">
<label>
ID <input type="text" name="id" value="{{ .LP.ID }}">
</label>

View file

@ -14,8 +14,8 @@
<tbody>
{{ range .LPs }}
<tr>
<td><a href="/admin/lets-play/{{ .ID }}" id="{{ .ID }}">{{ .ID }}</a></td>
<td><a href="/admin/sprecher/{{ .AuthorID }}">{{ .AuthorID }}</a></td>
<td><a href="/admin/lets-play/{{ .ID }}/" id="{{ .ID }}">{{ .ID }}</a></td>
<td><a href="/admin/sprecher/{{ .AuthorID }}/">{{ .AuthorID }}</a></td>
<td>{{ .Name.String }}</td>
<td>{{ .Slug.String }}</td>
</tr>

View file

@ -2,7 +2,7 @@
<div class="row">
<div class="large-12 columns">
<h1>{{ .title }} #{{ .LT.ID }}</h1>
<form action="/admin/lets-test/{{ .LT.ID }}" method="post">
<form action="/admin/lets-test/{{ .LT.ID }}/" method="post">
<label>
ID <input type="text" name="id" value="{{ .LT.ID }}">
</label>

View file

@ -14,8 +14,8 @@
<tbody>
{{ range .LTs }}
<tr>
<td><a href="/admin/lets-test/{{ .ID }}" id="{{ .ID }}">{{ .ID }}</a></td>
<td><a href="/admin/sprecher/{{ .AuthorID }}">{{ .AuthorID }}</a></td>
<td><a href="/admin/lets-test/{{ .ID }}/" id="{{ .ID }}">{{ .ID }}</a></td>
<td><a href="/admin/sprecher/{{ .AuthorID }}/">{{ .AuthorID }}</a></td>
<td>{{ .Name.String }}</td>
<td>{{ .Slug.String }}</td>
</tr>

View file

@ -8,15 +8,15 @@
<meta itemprop="position" content="1" />
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/zeige"><span itemprop="name">Sprecher</span></a>
<a itemprop="item" href="/zeige/"><span itemprop="name">Sprecher</span></a>
<meta itemprop="position" content="2" />
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/zeige/{{ .AT.Slug.String }}"><span itemprop="name">{{ .AT.Name.String }}</span></a>
<a itemprop="item" href="/zeige/{{ .AT.Slug.String }}/"><span itemprop="name">{{ .AT.Name.String }}</span></a>
<meta itemprop="position" content="3" />
</li>
<li class="current" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/zeige/{{ .AT.Slug.String }}/episoden"><span itemprop="name">Episoden</span></a>
<a itemprop="item" href="/zeige/{{ .AT.Slug.String }}/episoden/"><span itemprop="name">Episoden</span></a>
<meta itemprop="position" content="4" />
</li>
<meta itemprop="numberOfItems" content="4" />
@ -24,7 +24,7 @@
<ul class="small-block-grid-2 medium-block-grid-4 large-block-grid-5">
{{ range .data }}
<li itemscope itemtype="http://schema.org/Episode">
<a class="th" href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}" itemprop="url">
<a class="th" href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}/" itemprop="url">
{{ if .EP.ThumbS.Valid }}
<img alt="" src="{{ .EP.ThumbS.String }}" itemprop="thumbnailUrl" />
{{ else }}
@ -34,7 +34,7 @@
<span itemprop="partOfSeries" itemscope itemtype="http://schema.org/TVSeries">
<a href="/lets-play/{{ .LP.Slug.String }}" itemprop="url"><strong itemprop="name">{{ .LP.Name.String }}</strong></a>:
</span>
<br />{{ .EP.Season.Int64 }}x{{ .EP.Episode.Int64 }}: <a href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}"><span itemprop="name">{{ .EP.Name.String }}</span></a>
<br />{{ .EP.Season.Int64 }}x{{ .EP.Episode.Int64 }}: <a href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}/"><span itemprop="name">{{ .EP.Name.String }}</span></a>
</li>
{{ end }}
</ul>

View file

@ -8,15 +8,15 @@
<meta itemprop="position" content="1" />
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/zeige"><span itemprop="name">Sprecher</span></a>
<a itemprop="item" href="/zeige/"><span itemprop="name">Sprecher</span></a>
<meta itemprop="position" content="2" />
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/zeige/{{ .AT.Slug.String }}"><span itemprop="name">{{ .AT.Name.String }}</span></a>
<a itemprop="item" href="/zeige/{{ .AT.Slug.String }}/"><span itemprop="name">{{ .AT.Name.String }}</span></a>
<meta itemprop="position" content="3" />
</li>
<li class="current" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/zeige/{{ .AT.Slug.String }}/lets-play"><span itemprop="name">Let's Plays</span></a>
<a itemprop="item" href="/zeige/{{ .AT.Slug.String }}/lets-play/"><span itemprop="name">Let's Plays</span></a>
<meta itemprop="position" content="4" />
</li>
<meta itemprop="numberOfItems" content="4" />
@ -24,14 +24,14 @@
<ul class="small-block-grid-3 medium-block-grid-5 large-block-grid-5">
{{ range .data }}
<li itemscope itemtype="http://schema.org/TVSeries">
<a class="th" href="/lets-play/{{ .LP.Slug.String }}" itemprop="url">
<a class="th" href="/lets-play/{{ .LP.Slug.String }}/" itemprop="url">
{{ if .LP.PosterS.Valid }}
<img alt="" src="{{ .LP.PosterS.String }}" itemprop="thumbnailUrl" />
{{ else }}
<img alt="" src="https://placeholdit.imgix.net/~text?txtsize=24&txt=Kein%20Cover&w=178&h=265" />
{{ end }}
</a>
<br /><a href="/lets-play/{{ .LP.Slug.String }}"><strong itemprop="name">{{ .LP.Name.String }}</strong></a>
<br /><a href="/lets-play/{{ .LP.Slug.String }}/"><strong itemprop="name">{{ .LP.Name.String }}</strong></a>
</li>
{{ end }}
</ul>

View file

@ -8,15 +8,15 @@
<meta itemprop="position" content="1" />
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/zeige"><span itemprop="name">Sprecher</span></a>
<a itemprop="item" href="/zeige/"><span itemprop="name">Sprecher</span></a>
<meta itemprop="position" content="2" />
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/zeige/{{ .AT.Slug.String }}"><span itemprop="name">{{ .AT.Name.String }}</span></a>
<a itemprop="item" href="/zeige/{{ .AT.Slug.String }}/"><span itemprop="name">{{ .AT.Name.String }}</span></a>
<meta itemprop="position" content="3" />
</li>
<li class="current" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/zeige/{{ .AT.Slug.String }}/testet"><span itemprop="name">Let's Tests</span></a>
<a itemprop="item" href="/zeige/{{ .AT.Slug.String }}/testet/"><span itemprop="name">Let's Tests</span></a>
<meta itemprop="position" content="4" />
</li>
<meta itemprop="numberOfItems" content="4" />
@ -24,14 +24,14 @@
<ul class="small-block-grid-2 medium-block-grid-4 large-block-grid-5">
{{ range .data }}
<li itemscope itemtype="http://schema.org/Movie">
<a class="th" href="/testet/{{ .LT.Slug.String }}" itemprop="url">
<a class="th" href="/testet/{{ .LT.Slug.String }}/" itemprop="url">
{{ if .LT.ThumbS.Valid }}
<img alt="" src="{{ .LT.ThumbS.String }}" itemprop="thumbnailUrl" />
{{ else }}
<img alt="" src="https://placeholdit.imgix.net/~text?txtsize=36&txt=Kein%20Thumbnail&w=265&h=149" />
{{ end }}
</a>
<br /><a href="/testet/{{ .LT.Slug.String }}"><strong itemprop="name">{{ .LT.Name.String }}</strong></a>
<br /><a href="/testet/{{ .LT.Slug.String }}/"><strong itemprop="name">{{ .LT.Name.String }}</strong></a>
</li>
{{ end }}
</ul>

View file

@ -13,38 +13,38 @@
<meta itemprop="position" content="1" />
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/zeige"><span itemprop="name">Sprecher</span></a>
<a itemprop="item" href="/zeige/"><span itemprop="name">Sprecher</span></a>
<meta itemprop="position" content="2" />
</li>
<li class="current" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/zeige/{{ .data.AT.Slug.String }}"><span itemprop="name">{{ .data.AT.Name.String }}</span></a>
<a itemprop="item" href="/zeige/{{ .data.AT.Slug.String }}/"><span itemprop="name">{{ .data.AT.Name.String }}</span></a>
<meta itemprop="position" content="3" />
</li>
<meta itemprop="numberOfItems" content="3" />
</ul>
{{ if .data.LPs }}
<h2>Aktuelle Let's Plays <small><a href="/zeige/{{ .data.AT.Slug.String }}/lets-play">mehr</a></small></h2>
<h2>Aktuelle Let's Plays <small><a href="/zeige/{{ .data.AT.Slug.String }}/lets-play/">mehr</a></small></h2>
<ul class="small-block-grid-2 medium-block-grid-3 large-block-grid-5">
{{ range .data.LPs }}
<li itemscope itemtype="http://schema.org/TVSeries">
<a class="th" href="/lets-play/{{ .Slug.String }}" itemprop="url">
<a class="th" href="/lets-play/{{ .Slug.String }}/" itemprop="url">
{{ if .PosterS.Valid }}
<img alt="" src="{{ .PosterS.String }}" itemprop="thumbnailUrl" />
{{ else }}
<img alt="" src="https://placeholdit.imgix.net/~text?txtsize=12&txt=Kein%20Cover&w=178&h=265" />
{{ end }}
</a>
<br /><a href="/lets-play/{{ .Slug.String }}"><strong itemprop="name">{{ .Name.String }}</strong></a>
<br /><a href="/lets-play/{{ .Slug.String }}/"><strong itemprop="name">{{ .Name.String }}</strong></a>
</li>
{{ end }}
</ul>
{{ end }}
{{ if .data.EPs }}
<h2>Aktuelle Episoden <small><a href="/zeige/{{ .data.AT.Slug.String }}/episoden">mehr</a></small></h2>
<h2>Aktuelle Episoden <small><a href="/zeige/{{ .data.AT.Slug.String }}/episoden/">mehr</a></small></h2>
<ul class="small-block-grid-2 medium-block-grid-3 large-block-grid-5">
{{ range .data.EPs }}
<li itemscope itemtype="http://schema.org/Episode">
<a class="th" href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}" itemprop="url">
<a class="th" href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}/" itemprop="url">
{{ if .EP.ThumbS.Valid }}
<img alt="" src="{{ .EP.ThumbS.String }}" itemprop="thumbnailUrl" />
{{ else }}
@ -52,26 +52,26 @@
{{ end }}
</a>
<span itemprop="partOfSeries" itemscope itemtype="http://schema.org/TVSeries">
<a href="/lets-play/{{ .LP.Slug.String }}" itemprop="url"><strong itemprop="name">{{ .LP.Name.String }}</strong></a>:
<a href="/lets-play/{{ .LP.Slug.String }}/" itemprop="url"><strong itemprop="name">{{ .LP.Name.String }}</strong></a>:
</span>
<br /><a href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}"><span itemprop="name">{{ .EP.Name.String }}</span></a>
<br />{{ .EP.Season.Int64 }}x{{ .EP.Episode.Int64 }}: <a href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}/"><span itemprop="name">{{ .EP.Name.String }}</span></a>
</li>
{{ end }}
</ul>
{{ end }}
{{ if .data.LTs }}
<h2>Aktuelle Let's Tests <small><a href="/zeige/{{ .data.AT.Slug.String }}/testet">mehr</a></small></h2>
<h2>Aktuelle Let's Tests <small><a href="/zeige/{{ .data.AT.Slug.String }}/testet/">mehr</a></small></h2>
<ul class="small-block-grid-2 medium-block-grid-3 large-block-grid-5">
{{ range .data.LTs }}
<li itemscope itemtype="http://schema.org/Movie">
<a class="th" href="/testet/{{ .Slug.String }}" itemprop="url">
<a class="th" href="/testet/{{ .Slug.String }}/" itemprop="url">
{{ if .ThumbS.Valid }}
<img alt="" src="{{ .ThumbS.String }}" itemprop="thumbnailUrl" />
{{ else }}
<img alt="" src="https://placeholdit.imgix.net/~text?txtsize=36&txt=Kein%20Thumbnail&w=265&h=149" />
{{ end }}
</a>
<br /><a href="/testet/{{ .Slug.String }}"><strong itemprop="name">{{ .Name.String }}</strong></a>
<br /><a href="/testet/{{ .Slug.String }}/"><strong itemprop="name">{{ .Name.String }}</strong></a>
</li>
{{ end }}
</ul>

View file

@ -8,7 +8,7 @@
<meta itemprop="position" content="1" />
</li>
<li class="current" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/zeige"><span itemprop="name">Sprecher</span></a>
<a itemprop="item" href="/zeige/"><span itemprop="name">Sprecher</span></a>
<meta itemprop="position" content="2" />
</li>
<meta itemprop="numberOfItems" content="2" />
@ -16,14 +16,14 @@
<ul class="small-block-grid-2 medium-block-grid-4 large-block-grid-6">
{{ range .data }}
<li itemscope itemtype="http://schema.org/Person">
<a class="th" href="/zeige/{{ .AT.Slug.String }}" itemprop="url">
<a class="th" href="/zeige/{{ .AT.Slug.String }}/" itemprop="url">
{{ if .AT.AvatarB.Valid }}
<img alt="" src="{{ .AT.AvatarB.String }}" itemprop="image" />
{{ else }}
<img alt="" src="https://placeholdit.imgix.net/~text?txtsize=24&txt=Kein%20Avatar&w=240&h=240" />
{{ end }}
</a>
<br /><a href="/zeige/{{ .AT.Slug.String }}"><strong itemprop="name">{{ .AT.Name.String }}</strong></a>
<br /><a href="/zeige/{{ .AT.Slug.String }}/"><strong itemprop="name">{{ .AT.Name.String }}</strong></a>
</li>
{{ end }}
</ul>

View file

@ -1,6 +1,6 @@
{{ template "header.html" . }}
<div class="row" itemscope itemtype="http://schema.org/Episode">
<meta itemprop="url" content="https://gronkh.1750studios.com/lets-play/{{ .data.LP.Slug.String }}/{{ .data.EP.Slug.String }}">
<meta itemprop="url" content="https://gronkh.1750studios.com/lets-play/{{ .data.LP.Slug.String }}/{{ .data.EP.Slug.String }}/">
<meta itemprop="thumbnailUrl" content="{{ .data.EP.ThumbS.String }}" />
<meta itemprop="datePublished" content="{{ .data.EP.Aired }}" />
<meta itemprop="timeRequired" content="{{ .data.EP.Duration.Int64 }}" />
@ -9,8 +9,8 @@
<iframe width="213" height="120" src="//www.youtube.com/embed/{{ .data.EP.Youtube.String }}" frameborder="0" allowfullscreen></iframe>
</div>
<div class="medium-3 medium-push-9 columns">
<h5 itemprop="partOfSeries" itemscope itemtype="http://schema.org/TVSeries"><i class="fa fa-gamepad fix-icon"></i> <a href="/lets-play/{{ .data.LP.Slug.String}}" itemprop="url"><span itemprop="name">{{ .data.LP.Name.String }}</span></a></h5>
<h5 itemprop="director" itemscope itemtype="http://schema.org/Person"><i class="fa fa-user fix-icon"></i> <a href="/zeige/{{ .data.AT.Slug.String }}" itemprop="url"><span itemprop="name">{{ .data.AT.Name.String }}</span></a></h5>
<h5 itemprop="partOfSeries" itemscope itemtype="http://schema.org/TVSeries"><i class="fa fa-gamepad fix-icon"></i> <a href="/lets-play/{{ .data.LP.Slug.String}}/" itemprop="url"><span itemprop="name">{{ .data.LP.Name.String }}</span></a></h5>
<h5 itemprop="director" itemscope itemtype="http://schema.org/Person"><i class="fa fa-user fix-icon"></i> <a href="/zeige/{{ .data.AT.Slug.String }}/" itemprop="url"><span itemprop="name">{{ .data.AT.Name.String }}</span></a></h5>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<meta itemprop="bestRating" content="10" />
<meta itemprop="worstRating" content="0" />
@ -21,14 +21,14 @@
<div class="medium-9 medium-pull-3 columns">
<ul class="button-group even-2">
{{ if .data.PREV.Name.Valid }}
<li><a rel="prev" href="/lets-play/{{ .data.LP.Slug.String }}/{{ .data.PREV.Slug.String }}" class="button"><i class="fa fa-angle-double-left"></i> {{ .data.PREV.Name.String }}</a></li>
<li><a rel="prev" href="/lets-play/{{ .data.LP.Slug.String }}/{{ .data.PREV.Slug.String }}/" class="button"><i class="fa fa-angle-double-left"></i> {{ .data.PREV.Name.String }}</a></li>
{{ else }}
<li><a href="/lets-play/{{ .data.LP.Slug.String }}" class="button"><i class="fa fa-angle-double-up"></i> Zurück zur Übersicht</a></li>
<li><a href="/lets-play/{{ .data.LP.Slug.String }}/" class="button"><i class="fa fa-angle-double-up"></i> Zurück zur Übersicht</a></li>
{{ end }}
{{ if .data.NEXT.Name.Valid }}
<li><a rel="next" href="/lets-play/{{ .data.LP.Slug.String }}/{{ .data.NEXT.Slug.String }}" class="button">{{ .data.NEXT.Name.String }} <i class="fa fa-angle-double-right"></i></a></li>
<li><a rel="next" href="/lets-play/{{ .data.LP.Slug.String }}/{{ .data.NEXT.Slug.String }}/" class="button">{{ .data.NEXT.Name.String }} <i class="fa fa-angle-double-right"></i></a></li>
{{ else }}
<li><a href="/lets-play/{{ .data.LP.Slug.String }}" class="button"><i class="fa fa-angle-double-up"></i> Zurück zur Übersicht</a></li>
<li><a href="/lets-play/{{ .data.LP.Slug.String }}/" class="button"><i class="fa fa-angle-double-up"></i> Zurück zur Übersicht</a></li>
{{ end }}
</ul>
<ul class="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
@ -37,15 +37,15 @@
<meta itemprop="position" content="1" />
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/lets-play"><span itemprop="name">Let's Plays</span></a>
<a itemprop="item" href="/lets-play/"><span itemprop="name">Let's Plays</span></a>
<meta itemprop="position" content="2" />
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/lets-play/{{ .data.LP.Slug.String }}"><span itemprop="name">{{ .data.LP.Name.String }}</span></a>
<a itemprop="item" href="/lets-play/{{ .data.LP.Slug.String }}/"><span itemprop="name">{{ .data.LP.Name.String }}</span></a>
<meta itemprop="position" content="3" />
</li>
<li class="current" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/lets-play/{{ .data.LP.Slug.String }}/{{ .data.EP.Slug.String }}"><span itemprop="name">{{ .data.EP.Name.String }}</span></a>
<a itemprop="item" href="/lets-play/{{ .data.LP.Slug.String }}/{{ .data.EP.Slug.String }}/"><span itemprop="name">{{ .data.EP.Name.String }}</span></a>
<meta itemprop="position" content="4" />
</li>
<meta itemprop="numberOfItems" content="4" />

View file

@ -44,7 +44,7 @@
function doSearch() {
esearchval = encodeURIComponent(searchval);
$.getJSON("/api/v3/search/lets-plays/" + esearchval + "?q=" + esearchval + "&t=lets-plays", function (data) {
$.getJSON("/api/v3/search/lets-plays/" + esearchval + "/?q=" + esearchval + "&t=lets-plays", function (data) {
console.log(data);
dropd = $("#searchhints");
if (data.length !== 0) {
@ -55,7 +55,7 @@
dropd.empty();
$.each(data, function (index, value) {
li = $(document.createElement("li"));
li.html("<a href=\"/lets-play/" + value.slug + "\">" + value.name + "</a>");
li.html("<a href=\"/lets-play/" + value.slug + "/\">" + value.name + "</a>");
dropd.append(li);
});
});

View file

@ -11,7 +11,7 @@
{{ if .data }}
{{ if eq .page "ep" }}
<meta property="og:type" content="video" />
<meta property="og:url" content="https://gronkh.1750studios.com/lets-play/{{ .data.LP.Slug.String }}/{{ .data.EP.Slug.String }}" />
<meta property="og:url" content="https://gronkh.1750studios.com/lets-play/{{ .data.LP.Slug.String }}/{{ .data.EP.Slug.String }}/" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@1750Studios" />
<meta property="og:title" name="twitter:title" content="{{ .data.EP.Name.String }}" />
@ -21,7 +21,7 @@
{{ end }}
{{ if eq .page "lt" }}
<meta property="og:type" content="video" />
<meta property="og:url" content="https://gronkh.1750studios.com/testet/{{ .data.LT.Slug.String }}" />
<meta property="og:url" content="https://gronkh.1750studios.com/testet/{{ .data.LT.Slug.String }}/" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@1750Studios" />
<meta property="og:title" name="twitter:title" content="{{ .data.LT.Name.String }}" />
@ -47,9 +47,9 @@
</li>
</ul>
<ul class="left">
<li {{ if eq .title "Let's Plays" }}class="active"{{ end }}><a href="/lets-play">Let's Plays</a></li>
<li {{ if eq .title "Let's Tests" }}class="active"{{ end }}><a href="/testet">Let's Tests</a></li>
<li {{ if eq .title "Sprecher" }}class="active"{{ end }}><a href="/zeige">Sprecher</a></li>
<li {{ if eq .title "Let's Plays" }}class="active"{{ end }}><a href="/lets-play/">Let's Plays</a></li>
<li {{ if eq .title "Let's Tests" }}class="active"{{ end }}><a href="/testet/">Let's Tests</a></li>
<li {{ if eq .title "Sprecher" }}class="active"{{ end }}><a href="/zeige/">Sprecher</a></li>
</ul>
</section>
</nav>

View file

@ -12,7 +12,7 @@
<ul class="small-block-grid-2 medium-block-grid-4 large-block-grid-5">
{{ range .data }}
<li itemscope itemtype="http://schema.org/Episode">
<a class="th" href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}" itemprop="url">
<a class="th" href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}/" itemprop="url">
{{ if .EP.ThumbS.Valid }}
<img alt="" src="{{ .EP.ThumbS.String }}" itemprop="thumbnailUrl" />
{{ else }}
@ -20,11 +20,11 @@
{{ end }}
</a>
<span itemprop="partOfSeries" itemscope itemtype="http://schema.org/TVSeries">
<a href="/lets-play/{{ .LP.Slug.String }}" itemprop="url"><strong itemprop="name">{{ .LP.Name.String }}</strong></a>:
<a href="/lets-play/{{ .LP.Slug.String }}/" itemprop="url"><strong itemprop="name">{{ .LP.Name.String }}</strong></a>:
</span>
<br />{{ .EP.Season.Int64 }}x{{ .EP.Episode.Int64 }}: <a href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}"><span itemprop="name">{{ .EP.Name.String }}</span></a>
<br />{{ .EP.Season.Int64 }}x{{ .EP.Episode.Int64 }}: <a href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}/"><span itemprop="name">{{ .EP.Name.String }}</span></a>
<span itemprop="director" itemscope itemtype="http://schema.org/Person">
<br />von <a href="/zeige/{{ .AT.Slug.String }}" itemprop="url"><span itemprop="name">{{ .AT.Name.String }}</span></a>
<br />von <a href="/zeige/{{ .AT.Slug.String }}/" itemprop="url"><span itemprop="name">{{ .AT.Name.String }}</span></a>
</span>
</li>
{{ end }}

View file

@ -6,7 +6,7 @@
<h1 id="lpName" class="small-12 columns" itemprop="name">{{ .data.LP.Name.String }}</h1>
<div class="medium-3 large-2 columns">
{{ if .data.LP.PosterB.Valid }}<a class="th show-for-medium-up" href="{{ .data.LP.PosterB.String }}" data-reveal-id="coverModal">{{ end }}<img alt="" src="{{ .data.LP.PosterS.String }}" itemprop="thumbnailUrl" />{{ if .data.LP.PosterB.Valid }}</a>{{ end }}
<h5 itemprop="director" itemscope itemtype="http://schema.org/Person"><i class="fa fa-user fix-icon"></i> <a href="/zeige/{{ .data.AT.Slug.String }}" itemprop="url"><span itemprop="name">{{ .data.AT.Name.String }}</span></a></h5>
<h5 itemprop="director" itemscope itemtype="http://schema.org/Person"><i class="fa fa-user fix-icon"></i> <a href="/zeige/{{ .data.AT.Slug.String }}/" itemprop="url"><span itemprop="name">{{ .data.AT.Name.String }}</span></a></h5>
</div>
<div class="small-12 medium-9 large-10 columns">
<ul class="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
@ -15,11 +15,11 @@
<meta itemprop="position" content="1" />
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/lets-play"><span itemprop="name">Let's Plays</span></a>
<a itemprop="item" href="/lets-play/"><span itemprop="name">Let's Plays</span></a>
<meta itemprop="position" content="2" />
</li>
<li class="current" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/lets-play/{{ .data.LP.Slug.String }}"><span itemprop="name">{{ .data.LP.Name.String }}</span></a>
<a itemprop="item" href="/lets-play/{{ .data.LP.Slug.String }}/"><span itemprop="name">{{ .data.LP.Name.String }}</span></a>
<meta itemprop="position" content="3" />
</li>
<meta itemprop="numberOfItems" content="3" />
@ -27,14 +27,14 @@
{{ range .data.EPs }}
<div class="row entry" itemscope itemtype="http://schema.org/Episode">
<div class="large-12 columns">
<a href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}" itemprop="url">
<a href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}/" itemprop="url">
{{ if .EP.ThumbS.Valid }}
<img alt="" src="{{ .EP.ThumbS.String }}" itemprop="thumbnailUrl" />
{{ else }}
<img alt="" src="https://placeholdit.imgix.net/~text?txtsize=36&txt=Kein%20Thumbnail&w=265&h=149" />
{{ end }}
</a>
<h4>{{ .EP.Season.Int64 }}x{{ .EP.Episode.Int64 }}: <a href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}"><span itemprop="name">{{ .EP.Name.String }}</span></a></h4>
<h4>{{ .EP.Season.Int64 }}x{{ .EP.Episode.Int64 }}: <a href="/lets-play/{{ .LP.Slug.String }}/{{ .EP.Slug.String }}/"><span itemprop="name">{{ .EP.Name.String }}</span></a></h4>
<p class="show-for-medium-up" itemprop="description">{{ .EP.Descr.String }}</p>
</div>
</div>

View file

@ -8,7 +8,7 @@
<meta itemprop="position" content="1" />
</li>
<li class="current" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/lets-play"><span itemprop="name">Let's Plays</span></a>
<a itemprop="item" href="/lets-play/"><span itemprop="name">Let's Plays</span></a>
<meta itemprop="position" content="2" />
</li>
<meta itemprop="numberOfItems" content="2" />
@ -16,16 +16,16 @@
<ul class="small-block-grid-3 medium-block-grid-5 large-block-grid-5">
{{ range .data }}
<li itemscope itemtype="http://schema.org/TVSeries">
<a class="th" href="/lets-play/{{ .LP.Slug.String }}" itemprop="url">
<a class="th" href="/lets-play/{{ .LP.Slug.String }}/" itemprop="url">
{{ if .LP.PosterS.Valid }}
<img alt="" src="{{ .LP.PosterS.String }}" itemprop="thumbnailUrl" />
{{ else }}
<img alt="" src="https://placeholdit.imgix.net/~text?txtsize=24&txt=Kein%20Cover&w=178&h=265" />
{{ end }}
</a>
<br /><a href="/lets-play/{{ .LP.Slug.String }}"><strong itemprop="name">{{ .LP.Name.String }}</strong></a>
<br /><a href="/lets-play/{{ .LP.Slug.String }}/"><strong itemprop="name">{{ .LP.Name.String }}</strong></a>
<span itemprop="director" itemscope itemtype="http://schema.org/Person">
<br />von <a href="/zeige/{{ .AT.Slug.String }}" itemprop="url"><span itemprop="name">{{ .AT.Name.String }}</span></a>
<br />von <a href="/zeige/{{ .AT.Slug.String }}/" itemprop="url"><span itemprop="name">{{ .AT.Name.String }}</span></a>
</span>
</li>
{{ end }}

View file

@ -9,7 +9,7 @@
<iframe width="213" height="120" src="//www.youtube.com/embed/{{ .data.LT.Youtube.String }}" frameborder="0" allowfullscreen></iframe>
</div>
<div class="medium-3 medium-push-9 columns">
<h5 itemprop="director" itemscope itemtype="http://schema.org/Person"><i class="fa fa-user fix-icon"></i> <a href="/zeige/{{ .data.AT.Slug.String }}" itemprop="url"><span itemprop="name">{{ .data.AT.Name.String }}</span></a></h5>
<h5 itemprop="director" itemscope itemtype="http://schema.org/Person"><i class="fa fa-user fix-icon"></i> <a href="/zeige/{{ .data.AT.Slug.String }}/" itemprop="url"><span itemprop="name">{{ .data.AT.Name.String }}</span></a></h5>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<meta itemprop="bestRating" content="10" />
<meta itemprop="worstRating" content="0" />
@ -24,11 +24,11 @@
<meta itemprop="position" content="1" />
</li>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/testet"><span itemprop="name">Let's Tests</span></a>
<a itemprop="item" href="/testet/"><span itemprop="name">Let's Tests</span></a>
<meta itemprop="position" content="2" />
</li>
<li class="current" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/testet/{{ .data.LT.Slug.String }}"><span itemprop="name">{{ .data.LT.Name.String }}</span></a>
<a itemprop="item" href="/testet/{{ .data.LT.Slug.String }}/"><span itemprop="name">{{ .data.LT.Name.String }}</span></a>
<meta itemprop="position" content="3" />
</li>
<meta itemprop="numberOfItems" content="3" />

View file

@ -8,7 +8,7 @@
<meta itemprop="position" content="1" />
</li>
<li class="current" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="/testet"><span itemprop="name">Let's Tests</span></a>
<a itemprop="item" href="/testet/"><span itemprop="name">Let's Tests</span></a>
<meta itemprop="position" content="2" />
</li>
<meta itemprop="numberOfItems" content="2" />
@ -16,16 +16,16 @@
<ul class="small-block-grid-2 medium-block-grid-4 large-block-grid-5">
{{ range .data }}
<li itemscope itemtype="http://schema.org/Movie">
<a class="th" href="/testet/{{ .LT.Slug.String }}" itemprop="url">
<a class="th" href="/testet/{{ .LT.Slug.String }}/" itemprop="url">
{{ if .LT.ThumbS.Valid }}
<img alt="" src="{{ .LT.ThumbS.String }}" itemprop="thumbnailUrl" />
{{ else }}
<img alt="" src="https://placeholdit.imgix.net/~text?txtsize=36&txt=Kein%20Thumbnail&w=265&h=149" />
{{ end }}
</a>
<br /><a href="/testet/{{ .LT.Slug.String }}"><strong itemprop="name">{{ .LT.Name.String }}</strong></a>
<br /><a href="/testet/{{ .LT.Slug.String }}/"><strong itemprop="name">{{ .LT.Name.String }}</strong></a>
<span itemprop="director" itemscope itemtype="http://schema.org/Person">
<br />von <a href="/zeige/{{ .AT.Slug.String }}" itemprop="url"><span itemprop="name">{{ .AT.Name.String }}</span></a>
<br />von <a href="/zeige/{{ .AT.Slug.String }}/" itemprop="url"><span itemprop="name">{{ .AT.Name.String }}</span></a>
</span>
</li>
{{ end }}