Added opengraphs (https://ogp.me/) tags to support embedding, #24 (#25)
* Added opengraphs (https://ogp.me/) tags to support embedding, #24 * Edited AUTHORS
This commit is contained in:
parent
9502e15a1c
commit
d36fb862c8
3 changed files with 104 additions and 104 deletions
1
AUTHORS
1
AUTHORS
|
@ -5,3 +5,4 @@
|
|||
Darko Simonovski, darko at simonovski dot hotmail dot com
|
||||
Davy Wybiral, davy dot wybiral at gmail dot com
|
||||
James Mills, prologic at shortcircuit dot net dot au
|
||||
Bilel Medimegh, bilel dot medimegh at gmail dot com
|
||||
|
|
192
app/rice-box.go
192
app/rice-box.go
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,7 @@
|
|||
{{define "base"}}
|
||||
{{ $playing := .Playing }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="en" prefix="og: https://ogp.me/ns#">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
@ -10,6 +11,18 @@
|
|||
<link rel="stylesheet" type="text/css" href="/static/upload.css">
|
||||
<link rel="stylesheet" type="text/css" href="/static/import.css">
|
||||
|
||||
{{if $playing.ID}}
|
||||
<meta property="og:title" content="{{$playing.Title}}"/>
|
||||
<meta property="og:type" content="video.other"/>
|
||||
<meta property="og:image" content="/t/{{ $playing.ID}}"/>
|
||||
<meta property="og:video" content="/v/{{ $playing.ID }}.mp4">
|
||||
<meta property="og:video:url" content="/v/{{ $playing.ID }}.mp4">
|
||||
<meta property="og:video:secure_url" content="/v/{{ $playing.ID }}.mp4">
|
||||
<meta property="og:description" content="{{$playing.Description}}"/>
|
||||
<meta property="og:site_name" content="Tube"/>
|
||||
<meta property="og:url" content="/v/{{ $playing.ID }}"/>
|
||||
{{end}}
|
||||
|
||||
{{ template "stylesheets" . }}
|
||||
{{ template "css" . }}
|
||||
<title>Tube</title>
|
||||
|
|
Loading…
Reference in a new issue