diff --git a/assets/scss/gametheory.scss b/assets/scss/gametheory.scss new file mode 100644 index 0000000..b56662b --- /dev/null +++ b/assets/scss/gametheory.scss @@ -0,0 +1,11 @@ +@import "variables.scss"; +@import "mixins.scss"; + +.assumption-number { + font-weight: bold; +} + +.assumption { + @include bordered-block; + padding: 0.8rem; +} diff --git a/layouts/shortcodes/gt_assumption.html b/layouts/shortcodes/gt_assumption.html new file mode 100644 index 0000000..7ec776e --- /dev/null +++ b/layouts/shortcodes/gt_assumption.html @@ -0,0 +1,9 @@ +{{ $n := .Page.Scratch.Get "gt-assumption-count" }} +{{ $newN := add 1 (int $n) }} +{{ .Page.Scratch.Set "gt-assumption-count" $newN }} +{{ .Page.Scratch.SetInMap "gt-assumptions" (.Get 0) $newN }} +