From 84ba3fa835702013c6dd9e801fb49e277cb10a47 Mon Sep 17 00:00:00 2001 From: zzossig Date: Wed, 29 Jan 2020 17:45:29 +0900 Subject: [PATCH] contact default case added, library version up mermaid 8.4.4 -> 8.4.6 wavedrom 2.1.6 -> 2.3.0 --- README.ko.md | 2 +- README.md | 2 +- data/lib.toml | 10 +++++----- layouts/contact/single.html | 20 +++++++++++--------- 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/README.ko.md b/README.ko.md index 0776a9c..0fd73ba 100644 --- a/README.ko.md +++ b/README.ko.md @@ -456,7 +456,7 @@ root ## Contact Page -현재 이용 가능한 서비스: [formspree]. 다른 서비스를 이용하고 싶으시면 새 이슈를 만들어주세요. +현재 이용 가능한 서비스: [formspree]. 다른 서비스를 이용하고 싶으시면 새 이슈를 만들어주세요. 서비스 파라미터를 빈값으로 설정하면 마크다운으로 해당 페이지를 채울 수 있습니다. 1. 파일을 다음 경로에 만들어줍니다. root/contact/index.md diff --git a/README.md b/README.md index f15709f..8a8e5f6 100644 --- a/README.md +++ b/README.md @@ -446,7 +446,7 @@ root ## Contact Page -Currently available service: [formspree]. Open an issue if you need another service vendor. +Currently available service: [formspree]. Open an issue if you need another service vendor. If you want just a blank page and use a markdown, set the service param empty. 1. Make a file at root/contact/index.md diff --git a/data/lib.toml b/data/lib.toml index 885ae92..f31f134 100644 --- a/data/lib.toml +++ b/data/lib.toml @@ -1,7 +1,7 @@ # js [js.mermaid] - sri = "sha256-JEqEejGt4tR35L0a1zodzsV0/PJ6GIf7J4yDtywdrH8=" - url = "https://cdn.jsdelivr.net/npm/mermaid@8.4.4/dist/mermaid.min.js" + sri = "sha256-wV/0jM5E/0V+KqyxUio2Ve5OAC/gweTTqdbnRX1fgAE=" + url = "https://cdn.jsdelivr.net/npm/mermaid@8.4.6/dist/mermaid.min.js" [js.katex] sri = "sha256-F/Xda58SPdcUCr+xhSGz9MA2zQBPb0ASEYKohl8UCHc=" @@ -43,12 +43,12 @@ url = "https://cdn.jsdelivr.net/npm/chart.js@2.9.3/dist/Chart.min.js" [js.wavedrom] - sri = "sha256-IDuClDzRPosOM4bqD2e6ANDjqDwqNJrQxvXvegg47eI=" - url = "https://cdn.jsdelivr.net/npm/wavedrom@2.1.6/wavedrom.min.js" + sri = "sha256-Gvxb3h9f9p1eiyr59LuWSLX/tWVncuDrHgLF9+rwkw8=" + url = "https://cdn.jsdelivr.net/npm/wavedrom@2.3.0/wavedrom.min.js" [js.wavedrom_skin] sri = "sha256-AcH/tECvCrfgPUHK98GALAPyAE7XpAYyEsbpmQrniFo=" - url = "https://cdn.jsdelivr.net/npm/wavedrom@2.1.6/skins/default.js" + url = "https://cdn.jsdelivr.net/npm/wavedrom@2.3.0/skins/default.js" [js.viz] sri = "" # no sri diff --git a/layouts/contact/single.html b/layouts/contact/single.html index eac88b0..f43f4c3 100644 --- a/layouts/contact/single.html +++ b/layouts/contact/single.html @@ -6,15 +6,17 @@
-
- {{ .Content }} -
- {{ if eq .Params.service "formspree" }} - {{ partial "contact/formspree" . }} - {{ else }} - {{ partial "contact/formspree" . }} - {{ end }} -
+ {{ if eq .Params.service "formspree" }} +
+ {{ .Content }} +
+ {{ partial "contact/formspree" . }} + {{ else }} +
+ {{ .Content }} +
+ {{ end }} +
{{ partial "search/site-search" . }}