diff --git a/_config.yml b/_config.yml index 8674e21..53bb9bc 100644 --- a/_config.yml +++ b/_config.yml @@ -100,7 +100,7 @@ ignore: # Extensions ## Plugins: https://hexo.io/plugins/ ## Themes: https://hexo.io/themes/ -theme: landscape +theme: cmd # Deployment ## Docs: https://hexo.io/docs/one-command-deployment diff --git a/themes/cmd/.editorconfig b/themes/cmd/.editorconfig new file mode 100644 index 0000000..beffa30 --- /dev/null +++ b/themes/cmd/.editorconfig @@ -0,0 +1,11 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/themes/cmd/_config.yml b/themes/cmd/_config.yml new file mode 100644 index 0000000..d59f87e --- /dev/null +++ b/themes/cmd/_config.yml @@ -0,0 +1,35 @@ + +# html lang +language: + - zh-cn + - en + +# main menu navigation +menu: + Home: / + About: /about + Contact: /contact + Archives: /archives + +# stylesheets loaded in the
+stylesheets: +- /css/cmd.css +- /materialize/css/materialize.css +- /css/materialdesignicons.min.css + +# scripts loaded in the end of the body +scripts: +- /js/cmd.js +- /materialize/js/materialize.js + +copyright_addtional: "Most original contents are public under CC BY-NC-ND 4.0 or GNU Affero General Public License version 3." + +copyright_year_string: "2020-2021" + +theme_self_claim: true + +about_this_blog: This blog is created with Classical Material Desgin theme, which is a original taste of Material Design for hexo. + +footer_links: + Link 1: "https://example.org" + Link 2: "https://example.com" diff --git a/themes/cmd/layout/archive.swig b/themes/cmd/layout/archive.swig new file mode 100644 index 0000000..8517778 --- /dev/null +++ b/themes/cmd/layout/archive.swig @@ -0,0 +1,73 @@ +{% extends 'includes/layout.swig' %} + +{% block body %} + {% set categoriesList = list_categories({ show_count: false }) %} + {% set tagsList = list_tags({ show_count: false }) %} + {% set archivesList = list_archives({ show_count: false }) %} + + {% if !is_year() %} ++ The feed is available via + atom. +
++ The feed is available via + atom. +
+{{ post.excerpt }}
+ {% endif %} +{{ post.excerpt }}
+ {{ PostTags(post) }} +{%if description %}{{description}}{% else %}Nothing to say.{%endif%}
+ + + +
+ +
+ Materialize, a CSS Framework based on material design.
+
+ -- Browse the docs --
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+