💄 style(blog): adjust indentation for mermaid diagram

- update indentation to improve readability of the class diagram in the blog post
This commit is contained in:
Jeremiah Russell 2025-03-19 13:02:26 +00:00
parent a3944486ee
commit ce5577154e
No known key found for this signature in database
GPG key ID: E576B835ACE207E5

View file

@ -1,7 +1,7 @@
+++ +++
title = "Custom shortcodes" title = "Custom shortcodes"
date = 2023-02-19 date = 2023-02-19
updated = 2025-02-21 updated = 2025-03-19
description = "This theme includes some useful custom shortcodes that you can use to enhance your posts. Whether you want to display images that adapt to light and dark themes, or format a professional-looking reference section, these custom shortcodes have got you covered." description = "This theme includes some useful custom shortcodes that you can use to enhance your posts. Whether you want to display images that adapt to light and dark themes, or format a professional-looking reference section, these custom shortcodes have got you covered."
[taxonomies] [taxonomies]
@ -60,28 +60,28 @@ The diagram will be rendered as follows:
{% mermaid() %} {% mermaid() %}
classDiagram classDiagram
class CognitiveDistortions { class CognitiveDistortions {
+AllOrNothingThinking() +AllOrNothingThinking()
+Overgeneralization() +Overgeneralization()
+MentalFilter() +MentalFilter()
+JumpingToConclusions() +JumpingToConclusions()
} }
class AllOrNothingThinking { class AllOrNothingThinking {
+SeeInExtremes() +SeeInExtremes()
} }
class Overgeneralization { class Overgeneralization {
+GeneralizeFromSingle() +GeneralizeFromSingle()
} }
class MentalFilter { class MentalFilter {
+FocusOnNegative() +FocusOnNegative()
} }
class JumpingToConclusions { class JumpingToConclusions {
+MakeAssumptions() +MakeAssumptions()
} }
CognitiveDistortions *-- AllOrNothingThinking CognitiveDistortions *-- AllOrNothingThinking
CognitiveDistortions*-- Overgeneralization CognitiveDistortions*-- Overgeneralization
CognitiveDistortions *-- MentalFilter CognitiveDistortions *-- MentalFilter
CognitiveDistortions*-- JumpingToConclusions CognitiveDistortions*-- JumpingToConclusions
{% end %} {% end %}
The Mermaid shortcode supports two parameters: The Mermaid shortcode supports two parameters: