From 3f2e5824e2422ac419e03e7f7f96c38a80eba028 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Fri, 8 Jan 2021 12:12:57 +0800 Subject: [PATCH] feat: support configure the code badge (#19) --- _includes/extensions/code-highlight.html | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/_includes/extensions/code-highlight.html b/_includes/extensions/code-highlight.html index c843459..3903c21 100644 --- a/_includes/extensions/code-highlight.html +++ b/_includes/extensions/code-highlight.html @@ -6,7 +6,7 @@ src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/languages/go.min.js"> {%- assign name = 'code_badge.enabled' -%} -{%- include functions.html func='get_value' default='false' -%} +{%- include functions.html func='get_value' default='true' -%} {%- assign badge_enabled = return -%} {%- assign name = 'code_badge.color' -%} @@ -21,6 +21,11 @@ {%- include functions.html func='get_value' default='uppercase' -%} {%- assign badge_text_transform = return -%} +{{ badge_enabled }} +{{ badge_color }} +{{ badge_background_color }} +{{ badge_text_transform }} +