From e7fb4f86bd661f6eb8dc58c52703abe3fa80b386 Mon Sep 17 00:00:00 2001 From: thisLight Date: Mon, 30 Aug 2021 13:41:40 +0800 Subject: [PATCH] cmd: support data file as theme config --- source/_data/theme.yaml | 13 +++++++++++++ themes/cmd/layout/includes/layout.swig | 14 +++++++------- themes/cmd/layout/index.swig | 10 +++++++--- themes/cmd/source/css/index.styl | 2 ++ 4 files changed, 29 insertions(+), 10 deletions(-) create mode 100644 source/_data/theme.yaml create mode 100644 themes/cmd/source/css/index.styl diff --git a/source/_data/theme.yaml b/source/_data/theme.yaml new file mode 100644 index 0000000..25e00ff --- /dev/null +++ b/source/_data/theme.yaml @@ -0,0 +1,13 @@ +copyright_addtional: "" + +copyright_year_string: "2020-2021" + +theme_self_claim: true + +about_this_blog: 这里是Rubicon's Rubicon。我在无界之点的偏安之地。 + +my_mastodon: "https://mastodon.social/@thislight" + +footer_links: + GitHub: "https://github.com/thislight" + GitLab: "https://gitlab.com/thislight" \ No newline at end of file diff --git a/themes/cmd/layout/includes/layout.swig b/themes/cmd/layout/includes/layout.swig index 85b2ffc..c5f145b 100644 --- a/themes/cmd/layout/includes/layout.swig +++ b/themes/cmd/layout/includes/layout.swig @@ -69,21 +69,21 @@ diff --git a/themes/cmd/layout/index.swig b/themes/cmd/layout/index.swig index d7f472f..6c4e7f3 100644 --- a/themes/cmd/layout/index.swig +++ b/themes/cmd/layout/index.swig @@ -67,8 +67,8 @@ {% endmacro %} {% macro TagPanel(tags) %} -
-
All Tags
+