Skip to content

Commit

Permalink
Use mermaid directive for config
Browse files Browse the repository at this point in the history
Try directive instead of the newer front matter config to fix missing
git diagram styling

Signed-off-by: James Taylor <[email protected]>
  • Loading branch information
jt-nti committed Feb 6, 2024
1 parent ac40e24 commit 73e4abc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
26 changes: 15 additions & 11 deletions content/git-misinformation/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,21 @@ You've already set everything up, e.g.
It's commits all the way down...

```mermaid
---
config:
themeVariables:
git0: "#ffffff"
commitLabelColor: "#ffffff"
commitLabelBackground: "#000000"
commitLabelFontSize: "24px"
gitGraph:
rotateCommitLabel: false
showBranches: false
---
%%{
init: {
'logLevel': 'debug',
'themeVariables': {
'git0': '#ffffff',
'commitLabelColor': '#ffffff',
'commitLabelBackground': '#000000',
'commitLabelFontSize': '24px'
},
'gitGraph': {
'rotateCommitLabel': false,
'showBranches': false
}
}
}%%
gitGraph TB:
commit id: "C1"
commit id: "C2"
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
github.com/dzello/reveal-hugo v0.0.0-20231220085453-34a810ef52ed h1:sfzlYhfLVeln1A7Wf14ZbLvEjxUv6CnMSzQkzBZLH4Y=
github.com/dzello/reveal-hugo v0.0.0-20231220085453-34a810ef52ed/go.mod h1:9mgTYgEkMfnc36vaNSvk3xRedXIv2qXjejlugfwyb3o=
github.com/dzello/reveal-hugo v0.0.0-20240121164136-5e38035fe41f h1:UPALL8009oW6MhGR7iwp5Ew/wcSmLILh3e9MsSsz6vg=
github.com/dzello/reveal-hugo v0.0.0-20240121164136-5e38035fe41f/go.mod h1:9mgTYgEkMfnc36vaNSvk3xRedXIv2qXjejlugfwyb3o=

0 comments on commit 73e4abc

Please sign in to comment.