Browse Source

add live for livestream type videos

main
rra 3 years ago
parent
commit
5ab7b9d071
  1. 15
      layouts/partials/video_box.html

15
layouts/partials/video_box.html

@ -7,8 +7,13 @@
'https://tv.lumbung.space/videos/embed/{{ .Params.uuid }}' 'https://tv.lumbung.space/videos/embed/{{ .Params.uuid }}'
)"> )">
<img src="{{.Site.BaseURL}}{{ .File.Dir }}{{ .Params.preview_image }}"> <img src="{{.Site.BaseURL}}{{ .File.Dir }}{{ .Params.preview_image }}">
{{ if .Params.is_live}}
<div class="video-thumbnail-duration-overlay">LIVE</div>
{{ else }}
<div class="video-thumbnail-duration-overlay">{{.Params.video_duration}}</div> <div class="video-thumbnail-duration-overlay">{{.Params.video_duration}}</div>
{{ end }}
<div class="play-overlay"> <div class="play-overlay">
<div class="play-icon"></div> <div class="play-icon"></div>
</div> </div>
@ -20,7 +25,13 @@
<input class='descr_button' type='checkbox' id='toggle-{{ .Params.uuid }}'/> <input class='descr_button' type='checkbox' id='toggle-{{ .Params.uuid }}'/>
<label class='video' for='toggle-{{ .Params.uuid }}'></label> <label class='video' for='toggle-{{ .Params.uuid }}'></label>
<div class='video date'> <a href='https://tv.lumbung.space/videos/watch/{{ .Params.uuid }}'> {{ .Date.Format "Jan 02, 2006" }}</a></div> <div class='video date'> <a href='https://tv.lumbung.space/videos/watch/{{ .Params.uuid }}'> {{ .Date.Format "Jan 02, 2006" }}</a></div>
<div class="description video" id='vid-{{ .Params.uuid }}'> {{ .Content }}</div> <div class="description video" id='vid-{{ .Params.uuid }}'> {{ .Content }}
<ul>
{{ range (.GetTerms "categories") }}
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
{{ end }}
</ul>
</div>
</div> </div>
</div> </div>

Loading…
Cancel
Save