diff --git a/_config_theme.yml b/_config_theme.yml index 317961c3..ecbec6d2 100644 --- a/_config_theme.yml +++ b/_config_theme.yml @@ -59,8 +59,11 @@ navbar-text-col: "#e4e6eb" page-col: "#303436" text-col: "#e4e4e4" mobile-theme-col: "#05FF3B" +sass: + sass_dir: _sass + style: compressed site-css: - - "/assets/css/custom-styles.css" + - "/assets/css/styles.css" gtag: "G-SSW90X5YZX" giscus: hostname: giscus.app # Replace with your giscus instance's hostname if self-hosting diff --git a/_includes/admonition.html b/_includes/admonition.html new file mode 100644 index 00000000..1eb2738f --- /dev/null +++ b/_includes/admonition.html @@ -0,0 +1,35 @@ +{% comment %} + credit: https://www.adamsdesk.com/posts/admonitions-jekyll +{% endcomment %} + +{% if include.type.size > 0 and include.body.size > 0 %} + {% assign types = " + attention:Attention, + caution:Caution, + danger:Danger, + error:Error, + hint:Hint, + important:Important, + note:Note, + seealso:See also, + tip:Tip, + todo: TODO, + warning:Warning" | split: "," %} + {% assign title = include.title | default: "" %} + {% if title == "" %} + {% for type in types %} + {% assign typeKeyVal = type | split: ":" %} + {% assign typeKey = typeKeyVal[0] | strip %} + {% assign typeValue = typeKeyVal[1] | strip %} + {% if typeKey == include.type %} + {% assign title = typeValue %} + {% endif %} + {% endfor %} + {% endif %} +
{{ title }}
++ {{ include.body | markdownify }} +
+