From a9993b085038f472725153dd8b01c65cf49de9c3 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 29 Nov 2022 22:24:40 -0800 Subject: [PATCH] Format challenge #87 --- content/challenges/87.md | 117 ++++++++++++++++++ .../layouts/challenges/single.html | 7 +- 2 files changed, 122 insertions(+), 2 deletions(-) create mode 100644 content/challenges/87.md diff --git a/content/challenges/87.md b/content/challenges/87.md new file mode 100644 index 0000000..928fe84 --- /dev/null +++ b/content/challenges/87.md @@ -0,0 +1,117 @@ +--- +japanese: + - - - pos: expression + text: さぁさ + dictionary: さあさあ + - pos: noun + text: + - 手: て + - pos: particle + text: を + - pos: verb + text: + - 叩: たた + - い + dictionary: 叩く + - pos: verb + text: たら + - - - pos: verb + text: + - 舞: ま + - って + dictionary: 舞う + - pos: verb + text: マワって + dictionary: 回る + - pos: noun + text: + - 独: ひと + - り + - 舞: ぶ + - 台: たい + dictionary: 一人舞台 + - - - pos: noun + text: + - 浮: うき + - 世: よ + dictionary: 浮き世 + - pos: particle + text: も + - pos: noun + text: + - 鬼: おに + - pos: particle + text: の + - pos: noun + text: + - 笑: わら + - い + - pos: particle + text: も + - pos: noun + text: + - 今: いま + - pos: particle + text: は + - pos: verb + text: + - 忘: わす + - れて + dictionary: 忘れる + - - - pos: noun + text: + - 季: き + - 節: せつ + - pos: particle + text: は + - pos: verb + text: + - 巡: めぐ + - る + - dictionary: ~ + text: " " + - pos: adjective + text: + - 我: わ + - が + - pos: noun + text: + - 世: よ + - pos: noun + text: + - 誰: だれ + - pos: particle + text: ぞ + - pos: noun + text: + - 常: つね + dictionary: 常-1 + - pos: phrase + text: ならむ + dictionary: https://en.wikipedia.org/wiki/Iroha + - - - pos: noun + text: + - 憂: うれ + - い + dictionary: 憂い-1 + - dictionary: ~ + text: " " + - pos: particle + text: は + - pos: particle + text: もう + - pos: adjective + text: いー + dictionary: 良い + - pos: particle + text: かい + - dictionary: ~ + text: "?" +date: 2022-11-29 +--- + +This week's challenge is from the lyrics of マイヒメ ([YouTube](https://www.youtube.com/watch?v=TaK-Rdprtnw)): + +{{< youtube TaK-Rdprtnw >}} + +*This challenge was suggested by **猛火妹紅(MochaMoko)** using the `-h suggest` command.* \ No newline at end of file diff --git a/themes/tegakituesday.com/layouts/challenges/single.html b/themes/tegakituesday.com/layouts/challenges/single.html index cb7ddfc..620183c 100644 --- a/themes/tegakituesday.com/layouts/challenges/single.html +++ b/themes/tegakituesday.com/layouts/challenges/single.html @@ -47,13 +47,16 @@ {{- end -}} {{- end -}} {{- end -}} - {{- if .dictionary -}} + {{ if .dictionary }} {{- $.Scratch.Set "dictionary" .dictionary -}} + {{ end }} + {{- if not (and .dictionary (hasPrefix .dictionary "http")) -}} + {{- $.Scratch.Set "dictionary" (printf "%s" ($.Scratch.Get "dictionary") | printf "%s%s" "https://jisho.org/word/" | printf "%s") -}} {{- end -}} {{- if and (not .dictionary) (not .pos) -}} {{- $.Scratch.Get "html" | safeHTML -}} {{- else -}} - {{- $.Scratch.Get "html" | safeHTML -}} + {{- $.Scratch.Get "html" | safeHTML -}} {{- end -}} {{- end -}}

{{- end -}}