aboutsummaryrefslogtreecommitdiff
path: root/go.dev/layouts/shortcodes/backgroundQuote.html
diff options
context:
space:
mode:
Diffstat (limited to 'go.dev/layouts/shortcodes/backgroundQuote.html')
-rw-r--r--go.dev/layouts/shortcodes/backgroundQuote.html29
1 files changed, 0 insertions, 29 deletions
diff --git a/go.dev/layouts/shortcodes/backgroundQuote.html b/go.dev/layouts/shortcodes/backgroundQuote.html
deleted file mode 100644
index b826d819..00000000
--- a/go.dev/layouts/shortcodes/backgroundQuote.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{{with .Get "link"}}
-<a href="{{.}}" target="_blank" rel="noopener">{{end -}}
- <div class="BackgroundQuote">
- <p class="BackgroundQuote-body">
- “{{.Inner | markdownify}}”
- </p>
- {{$author := .Get 0 -}}
- {{$title := .Get 1 -}}
- {{$company := .Get 2 -}}
- {{if .IsNamedParams -}}
- {{$author = .Get "author" -}}
- {{$title = .Get "title" -}}
- {{$company = .Get "company" -}}
- {{end -}}
- {{if $author -}}
- <div class="BackgroundQuote-author">
- <span>&mdash; {{$author -}}</span>
- {{if $title -}},&nbsp;
- <span class="BackgroundQuote-title">{{$title | safeHTML}}</span>
- {{end -}}
- {{if $company -}}
- <span class="BackgroundQuote-title">&nbsp;at {{$company -}}</span>
- {{end -}}
- </div>
- {{end -}}
- </div>
- {{with .Get "link"}}
-</a>
-{{end -}}