From 298e6180015f306273b6f7a3a956e4590197fe20 Mon Sep 17 00:00:00 2001 From: "max.mehl" Date: Tue, 12 Sep 2017 14:11:13 +0200 Subject: [PATCH] use vimeo as primary video solution, and provide easy switch back to fsfe download server --- site/layouts/partials/about.html | 36 +------------------ .../partials/functions/video_fsfe.html | 35 ++++++++++++++++++ .../partials/functions/video_vimeo.html | 3 ++ site/static/css/custom.css | 15 ++++++++ 4 files changed, 54 insertions(+), 35 deletions(-) create mode 100644 site/layouts/partials/functions/video_fsfe.html create mode 100644 site/layouts/partials/functions/video_vimeo.html diff --git a/site/layouts/partials/about.html b/site/layouts/partials/about.html index 6648be8..c4944c4 100644 --- a/site/layouts/partials/about.html +++ b/site/layouts/partials/about.html @@ -11,41 +11,7 @@ {{ end }} -
- -
+ {{ partial "functions/video_vimeo.html" . }} {{ with .Site.Params.about.description }} diff --git a/site/layouts/partials/functions/video_fsfe.html b/site/layouts/partials/functions/video_fsfe.html new file mode 100644 index 0000000..a1fb435 --- /dev/null +++ b/site/layouts/partials/functions/video_fsfe.html @@ -0,0 +1,35 @@ +
+ +
diff --git a/site/layouts/partials/functions/video_vimeo.html b/site/layouts/partials/functions/video_vimeo.html new file mode 100644 index 0000000..5e91441 --- /dev/null +++ b/site/layouts/partials/functions/video_vimeo.html @@ -0,0 +1,3 @@ +
+ +
diff --git a/site/static/css/custom.css b/site/static/css/custom.css index de315ef..4730a83 100644 --- a/site/static/css/custom.css +++ b/site/static/css/custom.css @@ -27,6 +27,21 @@ blockquote p { height: auto !important; margin-bottom: 20px; } +.embedvideo { + max-width: 100%; + height: auto; + position: relative; + padding-bottom: 56.25%; + overflow: hidden; + margin-bottom: 20px; +} +.embedvideo iframe, .embedvideo object, .embedvideo embed { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} /* ARGUMENTS SECTION */ #arguments #arguments-followup p {