From f71b35193f95ac0511786691aadea0715ce8247f Mon Sep 17 00:00:00 2001 From: Koopa Date: Sat, 17 Aug 2019 16:50:53 -0400 Subject: [PATCH] Improve shortcodes (#108) Improve shortcodes --- site/content/entry/citra-progress-report-2017-september.md | 4 ++-- site/themes/citra-bs-theme/layouts/shortcodes/alert.html | 3 +++ site/themes/citra-bs-theme/layouts/shortcodes/callout.html | 3 --- site/themes/citra-bs-theme/layouts/shortcodes/figure.html | 2 +- .../citra-bs-theme/layouts/shortcodes/sidebyside.html | 7 ++++++- 5 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 site/themes/citra-bs-theme/layouts/shortcodes/alert.html delete mode 100644 site/themes/citra-bs-theme/layouts/shortcodes/callout.html diff --git a/site/content/entry/citra-progress-report-2017-september.md b/site/content/entry/citra-progress-report-2017-september.md index 1385b88..12657cb 100644 --- a/site/content/entry/citra-progress-report-2017-september.md +++ b/site/content/entry/citra-progress-report-2017-september.md @@ -15,14 +15,14 @@ There's also been many changes this month that improve the speed of emulation ac the board, on top of the usual improvements in accuracy and features. And because of that, I've dubbed this month #Speedtember. Let's dive right in. -{{% callout %}} +{{% alert info %}} Hello everyone! We're all terribly sorry for the delay in getting this progress report out the door, but our main technical writer [anodium](https://github.com/anodium), was just a bit busy surviving both Hurricane Irma and Maria. Although she's a trooper and claims it's not an excuse for the delay, we find that her personal safety is a tad more important. We're all glad that she's safe and sound, and in a state where she can keep pumping out quality articles for Citra! -{{% /callout %}} +{{% /alert %}} ## [Switchable Page Tables](https://github.com/citra-emu/citra/pull/2952) by [MerryMage](https://github.com/MerryMage) diff --git a/site/themes/citra-bs-theme/layouts/shortcodes/alert.html b/site/themes/citra-bs-theme/layouts/shortcodes/alert.html new file mode 100644 index 0000000..37b67e9 --- /dev/null +++ b/site/themes/citra-bs-theme/layouts/shortcodes/alert.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
\ No newline at end of file diff --git a/site/themes/citra-bs-theme/layouts/shortcodes/callout.html b/site/themes/citra-bs-theme/layouts/shortcodes/callout.html deleted file mode 100644 index 0b0dc6e..0000000 --- a/site/themes/citra-bs-theme/layouts/shortcodes/callout.html +++ /dev/null @@ -1,3 +0,0 @@ -
- {{ .Inner }} -
diff --git a/site/themes/citra-bs-theme/layouts/shortcodes/figure.html b/site/themes/citra-bs-theme/layouts/shortcodes/figure.html index 25304f9..95e5809 100644 --- a/site/themes/citra-bs-theme/layouts/shortcodes/figure.html +++ b/site/themes/citra-bs-theme/layouts/shortcodes/figure.html @@ -13,7 +13,7 @@ {{ with .Get "title" }}

- {{ . }} + {{ . | markdownify }}

{{ end }} diff --git a/site/themes/citra-bs-theme/layouts/shortcodes/sidebyside.html b/site/themes/citra-bs-theme/layouts/shortcodes/sidebyside.html index 37a0bd1..8bb3119 100644 --- a/site/themes/citra-bs-theme/layouts/shortcodes/sidebyside.html +++ b/site/themes/citra-bs-theme/layouts/shortcodes/sidebyside.html @@ -9,6 +9,7 @@ {{ range $figure := $figures }} {{ $.Scratch.Set "src" (index (split $figure "=") 0) }} {{ $.Scratch.Set "title" (index (split $figure "=") 1) }} + {{ $.Scratch.Set "link" (index (split $figure "=") 2) }}
{{ if eq $type "gifv" }} @@ -20,10 +21,14 @@
{{ else if eq $type "image" }} {{ $.Scratch.Get + {{ else if eq $type "imagelink" }} + + {{ $.Scratch.Get + {{ end }}

- {{ $.Scratch.Get "title" }} + {{ $.Scratch.Get "title" | markdownify }}