From b8b525b213e6256513dce8ef20aa82889b4a63c2 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Thu, 23 Apr 2020 19:56:10 +0800 Subject: Initial commit Custom alabaster theme 3 blogposts and 2 metaposts Deployment script --- alabaster-lite/sidebars/about.html | 16 +++++++++++ alabaster-lite/sidebars/navigation.html | 50 +++++++++++++++++++++++++++++++++ alabaster-lite/sidebars/related.html | 15 ++++++++++ alabaster-lite/sidebars/toc.html | 28 ++++++++++++++++++ 4 files changed, 109 insertions(+) create mode 100644 alabaster-lite/sidebars/about.html create mode 100644 alabaster-lite/sidebars/navigation.html create mode 100644 alabaster-lite/sidebars/related.html create mode 100644 alabaster-lite/sidebars/toc.html (limited to 'alabaster-lite/sidebars') diff --git a/alabaster-lite/sidebars/about.html b/alabaster-lite/sidebars/about.html new file mode 100644 index 0000000..674dab4 --- /dev/null +++ b/alabaster-lite/sidebars/about.html @@ -0,0 +1,16 @@ +{% if theme.logo %} + + {% if theme.logo_name %} +

{{ config.site_name }}

+ {% endif %} +{% else %} +

{{ config.site_name }}

+{% endif %} + +{% if config.site_description %} +

{{ config.site_description }}

+{% endif %} diff --git a/alabaster-lite/sidebars/navigation.html b/alabaster-lite/sidebars/navigation.html new file mode 100644 index 0000000..3d609b0 --- /dev/null +++ b/alabaster-lite/sidebars/navigation.html @@ -0,0 +1,50 @@ +{% macro _toc_tree_inner(toc) -%} + +{%- endmacro %} + +{% macro toc_tree(toc) -%} + {# This ignores H1s #} + {% for toc_item in toc %} + {{ _toc_tree_inner(toc_item.children) }} + {% endfor %} +{%- endmacro %} + +{% macro nav_tree(nav) -%} + +{%- endmacro %} + +

Navigation

+ + diff --git a/alabaster-lite/sidebars/related.html b/alabaster-lite/sidebars/related.html new file mode 100644 index 0000000..f49e019 --- /dev/null +++ b/alabaster-lite/sidebars/related.html @@ -0,0 +1,15 @@ +{% if page.previous_page or page.next_page %} +

Related Topics

+ +{% endif %} diff --git a/alabaster-lite/sidebars/toc.html b/alabaster-lite/sidebars/toc.html new file mode 100644 index 0000000..cce0f4a --- /dev/null +++ b/alabaster-lite/sidebars/toc.html @@ -0,0 +1,28 @@ +{% macro _toc_tree_inner(toc) -%} + +{%- endmacro %} + +{% macro toc_tree(toc) -%} + {# This ignores H1s #} + {% for toc_item in toc %} + {{ _toc_tree_inner(toc_item.children) }} + {% endfor %} +{%- endmacro %} + + -- cgit v1.2.3