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 }} +
+ + Assumption {{ $newN }} ({{ .Get 1 }}). + {{ .Inner }} +
diff --git a/layouts/shortcodes/gt_css.html b/layouts/shortcodes/gt_css.html new file mode 100644 index 0000000..c514249 --- /dev/null +++ b/layouts/shortcodes/gt_css.html @@ -0,0 +1,2 @@ +{{ $style := resources.Get "scss/gametheory.scss" | resources.ToCSS | resources.Minify }} + diff --git a/layouts/shortcodes/gt_link.html b/layouts/shortcodes/gt_link.html new file mode 100644 index 0000000..bbcc32c --- /dev/null +++ b/layouts/shortcodes/gt_link.html @@ -0,0 +1 @@ +assumption {{ index (.Page.Scratch.Get "gt-assumptions") (.Get 0) }}