From c896442fcf46fe12fc1c8b811ddc71f8127e8509 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Fri, 8 Jan 2021 11:59:28 +0800 Subject: refactor: migrate code highlight to an extension --- _includes/extensions/code-highlight.html | 82 ++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 _includes/extensions/code-highlight.html (limited to '_includes/extensions') diff --git a/_includes/extensions/code-highlight.html b/_includes/extensions/code-highlight.html new file mode 100644 index 0000000..c843459 --- /dev/null +++ b/_includes/extensions/code-highlight.html @@ -0,0 +1,82 @@ + + + + + +{%- assign name = 'code_badge.enabled' -%} +{%- include functions.html func='get_value' default='false' -%} +{%- assign badge_enabled = return -%} + +{%- assign name = 'code_badge.color' -%} +{%- include functions.html func='get_value' default='#fff' -%} +{%- assign badge_color = return -%} + +{%- assign name = 'code_badge.background_color' -%} +{%- include functions.html func='get_value' default='#ff4e00' -%} +{%- assign badge_background_color = return -%} + +{%- assign name = 'code_badge.text_transform' -%} +{%- include functions.html func='get_value' default='uppercase' -%} +{%- assign badge_text_transform = return -%} + + + + -- cgit v1.2.3