From 502803a8d4e74232d2a52ccd3a3b834cc8049488 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Mon, 23 Jan 2023 16:22:31 +0000
Subject: [PATCH] refactor template
---
layouts/partials/functions/getCodeConfig.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/partials/functions/getCodeConfig.html b/layouts/partials/functions/getCodeConfig.html
index caaae6b..2c30dc8 100644
--- a/layouts/partials/functions/getCodeConfig.html
+++ b/layouts/partials/functions/getCodeConfig.html
@@ -1,5 +1,5 @@
<!-- will return an array holding 1) Whether to show line numbers or not 2) maximum number of lines per code block -->
-{{- $s := .Site.Params }}
+{{- $s := site.Params }}
{{- $p := .Params }}
{{- $maxCodeLines := default 100 $s.codeMaxLines }}
{{- with $p.codeMaxLines }}
--
Gitblit v1.10.0