Adding check if there is data

This commit is contained in:
Andreas Mieke 2015-10-01 19:36:17 +02:00
parent f7d7b5d970
commit 1277dbe5b1

View file

@ -8,6 +8,7 @@
<link rel="stylesheet" href="/assets/css/font-awesome.min.css" />
<link rel="stylesheet" href="/assets/css/gronkh.css" />
<script src="/assets/js/vendor/modernizr.js"></script>
{{ if .data }}
{{ if .data.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 }}" />
@ -28,6 +29,7 @@
<meta property="og:image" name="twitter:image" content="https://gronkh.1750studios.com{{ .data.LT.ThumbB.String }}" />
<meta property="og:updated_time" content="{{ .data.LT.Aired }}" />
{{ end }}
{{ end }}
</head>
<body>
<div class="contain-to-grid sticky">