mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 18:06:38 -04:00
better shortcodes for tweets and videos
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "Does Cloudflare's 1.1.1.1 DNS Block Archive.is?"
|
||||
date: 2019-05-06 09:35:12-0400
|
||||
date: 2019-05-04 09:35:12-0400
|
||||
description: "Short answer: no. Quite the opposite, actually -- Archive.is is intentionally blocking 1.1.1.1 users. Here's why."
|
||||
tags:
|
||||
- Cloudflare
|
||||
|
7
layouts/shortcodes/video.html
Normal file
7
layouts/shortcodes/video.html
Normal file
@ -0,0 +1,7 @@
|
||||
<video class="embed" width="{{ if .Get "width" }}{{ .Get "width" }}{{ else }}640{{ end }}" height="{{ if .Get "height" }}{{ .Get "height" }}{{ else }}385{{ end }}" {{ if .Get "poster" }}poster="{{ .Get "poster" }}" {{ end }}controls>
|
||||
{{ if .Get "webm" }}<source src="{{ .Get "webm" }}" type="video/webm">{{ end }}
|
||||
{{ if .Get "mp4" }}<source src="{{ .Get "mp4" }}" type="video/mp4">{{ end }}
|
||||
{{ if .Get "ogg" }}<source src="{{ .Get "ogg" }}" type="video/ogg">{{ end }}
|
||||
|
||||
Your browser does not support HTML5 video. <a href="{{ .Get "mp4" }}">Load the video directly.</a>
|
||||
</video>
|
@ -720,6 +720,11 @@ body#notes main#single article div#content hr {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
body#notes main#single article div#content video.embed {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
body#notes main#single article div#content div.embed.video-player {
|
||||
position: relative;
|
||||
padding-bottom: 56.25%;
|
||||
@ -738,6 +743,11 @@ body#notes main#single article div#content div.embed.video-player iframe.youtube
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
body#notes main#single article div#content twitter-widget {
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
body#notes main#single article div#commento {
|
||||
border-top: 1px solid #ccc;
|
||||
padding-top: 20px;
|
||||
|
Reference in New Issue
Block a user