From 5707448085cf8e969a55ac4e3e260fd0f3ac9947 Mon Sep 17 00:00:00 2001 From: hossainemruz Date: Sat, 9 Dec 2023 01:10:05 +0600 Subject: [PATCH] Enable embed-pdf and mermaid feature Signed-off-by: hossainemruz --- config.yaml | 6 +++--- content/posts/shortcodes/index.md | 36 ++++++++++++++++--------------- go.mod | 2 +- go.sum | 4 ++++ 4 files changed, 27 insertions(+), 21 deletions(-) diff --git a/config.yaml b/config.yaml index 5ee83f1315b..5ced4dda13c 100644 --- a/config.yaml +++ b/config.yaml @@ -189,16 +189,16 @@ params: # Enable this to use `embed-pdf` shortcode. embedpdf: - enable: false + enable: true # Enable this to create flowcharts using shortcodes. flowchart: - enable: false + enable: true services: # Uncomment for `mermaid` shortcode. mermaid: # For config options, see: https://mermaid-js.github.io/mermaid/#/Setup?id=configuration - # theme: dark + theme: forest # Enable this to create mathematic expressions using `$$` blocks math: diff --git a/content/posts/shortcodes/index.md b/content/posts/shortcodes/index.md index 4deb10a8681..bd83e28f9ba 100644 --- a/content/posts/shortcodes/index.md +++ b/content/posts/shortcodes/index.md @@ -199,23 +199,21 @@ classDiagram **Git Graph:** -{{< mermaid background="black" align="right" >}} -gitGraph: -options -{ - "nodeSpacing": 150, - "nodeRadius": 10 -} -end -commit -branch newbranch -checkout newbranch -commit -commit -checkout master -commit -commit -merge newbranch +{{< mermaid >}} +gitGraph + commit id: "ZERO" + branch develop + commit id:"A" + checkout main + commit id:"ONE" + checkout develop + commit id:"B" + checkout main + commit id:"TWO" + cherry-pick id:"A" + commit id:"THREE" + checkout develop + commit id:"C" {{< /mermaid >}} **ER Diagram:** @@ -230,3 +228,7 @@ erDiagram ## Gist {{< gist hossainemruz 4ad86c9b6378677e14eff12713e75e44 >}} + +## Embeded PDF + +{{< embed-pdf src="/files/resume.pdf" >}} diff --git a/go.mod b/go.mod index 23ead0c7e5b..df699704be9 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/hugo-toha/hugo-toha.github.io go 1.19 -require github.com/hugo-toha/toha/v4 v4.0.0-20231031082454-cd2546d4e8ea // indirect +require github.com/hugo-toha/toha/v4 v4.0.0 // indirect // replace( // github.com/hugo-toha/toha/v4 => ../toha diff --git a/go.sum b/go.sum index d46760f84c9..4fd17835cd6 100644 --- a/go.sum +++ b/go.sum @@ -12,3 +12,7 @@ github.com/hugo-toha/toha/v4 v4.0.0-20231031071528-05c9d3d850b2 h1:EkR94Ztv1Ao+i github.com/hugo-toha/toha/v4 v4.0.0-20231031071528-05c9d3d850b2/go.mod h1:p/K34lqlqmhzfPd4cx66od7sjlROBqhMxG30mJz+aKQ= github.com/hugo-toha/toha/v4 v4.0.0-20231031082454-cd2546d4e8ea h1:CCJ4JjZFHNWx8jLG8BQDx6Yf6pLbXY09LKgJdcUI3zc= github.com/hugo-toha/toha/v4 v4.0.0-20231031082454-cd2546d4e8ea/go.mod h1:p/K34lqlqmhzfPd4cx66od7sjlROBqhMxG30mJz+aKQ= +github.com/hugo-toha/toha/v4 v4.0.0-20231206184850-bb9fec2e5d53 h1:sKr2HLVq1b3aFsgiXDUTneqBNnsakm0xCnxrqEFi/Oo= +github.com/hugo-toha/toha/v4 v4.0.0-20231206184850-bb9fec2e5d53/go.mod h1:p/K34lqlqmhzfPd4cx66od7sjlROBqhMxG30mJz+aKQ= +github.com/hugo-toha/toha/v4 v4.0.0 h1:rOiQeXzppzBLslTcQ1q2cqtz4KrjvYsrEVAHClbnsU8= +github.com/hugo-toha/toha/v4 v4.0.0/go.mod h1:p/K34lqlqmhzfPd4cx66od7sjlROBqhMxG30mJz+aKQ=