Browse Source

fix(shortcodes): remove privacytube and coub shortcodes

BREAKING CHANGE: shortcodes removed must now be copied to the theme, if used

closes #35
Josh Habdas 1 year ago
parent
commit
ada828666e
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
3 changed files with 0 additions and 42 deletions
  1. 0
    2
      README.md
  2. 0
    32
      layouts/shortcodes/coub.html
  3. 0
    8
      layouts/shortcodes/privacytube.html

+ 0
- 2
README.md View File

@@ -556,8 +556,6 @@ Because Hugo doesn't support the use of shortcodes outside of markdown files the
556 556
 
557 557
 Additional theme-provided shortcodes at your disposal:
558 558
 
559
-- `privacytube` – It's YouTube. But without cookies and UI cruft.
560
-- `coub` - GIFs with sound. Think of it like YouTube for video loops.
561 559
 - `figure` - Similar to the Hugo built-in, but with [Lazy Loading](#lazy-loading), an adjusted caption title and smaller caption text.
562 560
 
563 561
 To create your own custom shortcodes add a `layouts/shortcodes` directory to your site, place your shortcodes within and start using them in your markdown content. To create or override provided components add a `layouts/partials/components` directory to your site and reference the theme-provided files as you hack away.

+ 0
- 32
layouts/shortcodes/coub.html View File

@@ -1,32 +0,0 @@
1
-<!--{{/*
2
-Coub - GIFs with sound using lazy-loaded, responsive iFrame embed
3
-
4
-Basic usage:
5
-{{< coub bwdx6 >}}
6
-{{< coub id="bwdx6" >}}
7
-
8
-Start animation in HD with click for sound:
9
-{{< coub id="bwdx6" muted="true" autostart="true" >}}
10
-
11
-Start animation with sound after click:
12
-{{< coub id="bwdx6" muted="false" autostart="false" >}}
13
-
14
-Start in low-definition:
15
-{{< coub id="bwdx6" original_size="false" start_with_hd="false" >}}
16
-
17
-*/}}-->
18
-{{ $class := .Get "class" }}
19
-{{ $id := .Get "id" }}
20
-{{ $muted := .Get "muted" | default "false" }}
21
-{{ $autostart := .Get "autostart" | default "false" }}
22
-{{ $original_size := .Get "original_size" | default "true" }}
23
-{{ $start_with_hd := .Get "start_with_hd" | default "true" }}
24
-{{ if .IsNamedParams }}
25
-  <div class="responsive-iframe{{ with $class }} {{ . }}{{ end }}">
26
-    <iframe class="lazyload" src="//coub.com/embed/{{ $id }}?muted={{ $muted }}&autostart={{ $autostart }}&originalSize={{ $original_size }}&startWithHD={{ $start_with_hd }}" allowfullscreen="true" frameborder="0"></iframe>
27
-  </div>
28
-{{ else }}
29
-  <div class="responsive-iframe">
30
-    <iframe class="lazyload" src="//coub.com/embed/{{ .Get 0 }}?muted=false&autostart=false&originalSize=true&startWithHD=true" allowfullscreen="true" frameborder="0"></iframe>
31
-  </div>
32
-{{ end }}

+ 0
- 8
layouts/shortcodes/privacytube.html View File

@@ -1,8 +0,0 @@
1
-{{/*
2
-Does the YouTube thing, only without cookies and all the branding.
3
-Usage: {{< privacytube 8ttTf8N7Bwg >}}
4
-*/}}
5
-{{ $vid := .Get 0 }}
6
-{{ if $vid }}
7
-  {{ partial "components/privacytube.html" (dict "vid" $vid) }}
8
-{{ end }}

Loading…
Cancel
Save