diff options
author | Doge <[email protected]> | 2021-05-03 08:46:18 +0800 |
---|---|---|
committer | Doge <[email protected]> | 2021-05-03 08:46:18 +0800 |
commit | f3395e29726577f578621d2bfa0c2bbfaca41172 (patch) | |
tree | 1273b05f73c99650c5fbacc9e81409675ad0110e | |
download | chromate-f3395e29726577f578621d2bfa0c2bbfaca41172.tar.gz chromate-f3395e29726577f578621d2bfa0c2bbfaca41172.tar.bz2 chromate-f3395e29726577f578621d2bfa0c2bbfaca41172.zip |
Initial commit
-rw-r--r-- | .DS_Store | bin | 0 -> 6148 bytes | |||
-rw-r--r-- | .gitattributes | 2 | ||||
-rw-r--r-- | _config.yml | 2 | ||||
-rw-r--r-- | layout/_partial/footer.ejs | 0 | ||||
-rw-r--r-- | layout/_partial/head.ejs | 26 | ||||
-rw-r--r-- | layout/_partial/header.ejs | 0 | ||||
-rw-r--r-- | layout/_partial/scripts.ejs | 10 | ||||
-rw-r--r-- | layout/archive.ejs | 0 | ||||
-rw-r--r-- | layout/index.ejs | 1 | ||||
-rw-r--r-- | layout/layout.ejs | 12 | ||||
-rw-r--r-- | layout/page.ejs | 0 | ||||
-rw-r--r-- | layout/post.ejs | 0 | ||||
-rw-r--r-- | readme.md | 11 |
13 files changed, 64 insertions, 0 deletions
diff --git a/.DS_Store b/.DS_Store Binary files differnew file mode 100644 index 0000000..73f67c2 --- /dev/null +++ b/.DS_Store diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..665402d --- /dev/null +++ b/_config.yml @@ -0,0 +1,2 @@ +podcast: true +lazyload: true
\ No newline at end of file diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/_partial/footer.ejs diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs new file mode 100644 index 0000000..6720df0 --- /dev/null +++ b/layout/_partial/head.ejs @@ -0,0 +1,26 @@ +<head> + <title><%= title %></title> + <meta charset="utf-8"> + + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> + + <!-- Making Tim Cook Happy --> + <meta name="apple-touch-fullscreen" content="yes"> + <meta name="apple-mobile-web-app-capable" content="yes"> + + <!-- Making Robots Happy --> + <meta name="keyword" content="<%= config.description %>"> + <meta name="description" content="<%= config.description %>"> + + <%- favicon_tag(config.favicon) %> + + <!-- Scripts and styles --> + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma/css/bulma.min.css"> + <% if (theme.podcast) { %> + <script src="https://cdn.jsdelivr.net/npm/shikwasa/dist/shikwasa.min.js"></script> + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/shikwasa/dist/shikwasa.min.css"> + <% } %> + <script src="https://cdn.jsdelivr.net/npm/darkmode-js/lib/darkmode-js.min.js"></script> + +</head>
\ No newline at end of file diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/_partial/header.ejs diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs new file mode 100644 index 0000000..a982f7d --- /dev/null +++ b/layout/_partial/scripts.ejs @@ -0,0 +1,10 @@ +<!-- Lazyload support --> +<% if (theme.lazyload) { %> + <script defer src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.min.js"></script> + <script> + window.lazyLoadOptions = { + elements_selector: ".lazy", + threshold: 0 + }; + </script> +<% } %>
\ No newline at end of file diff --git a/layout/archive.ejs b/layout/archive.ejs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/archive.ejs diff --git a/layout/index.ejs b/layout/index.ejs new file mode 100644 index 0000000..5e1c309 --- /dev/null +++ b/layout/index.ejs @@ -0,0 +1 @@ +Hello World
\ No newline at end of file diff --git a/layout/layout.ejs b/layout/layout.ejs new file mode 100644 index 0000000..4ae62cc --- /dev/null +++ b/layout/layout.ejs @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="<%= config.language %> "> + <%- partial('_partial/head') %> + <body> + <%- partial('_partial/header') %> + <div class="wrapper"> + <%- body %> + </div> + <%- partial('partial/footer') %> + </body> + <%- partial('_partial/scripts') %> +</html>
\ No newline at end of file diff --git a/layout/page.ejs b/layout/page.ejs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/page.ejs diff --git a/layout/post.ejs b/layout/post.ejs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/post.ejs diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..b530aae --- /dev/null +++ b/readme.md @@ -0,0 +1,11 @@ +# Theme Chromate + +The Chromate theme is a new Hexo theme that has good support for Podcasts. + +It has the following feature: +- Lightweight: There are no redundant setting items, no references to a large number of third-party libraries, which ensures that it can be loaded and displayed as soon as possible. +- Responsive: The theme is built on the Bulma CSS framework, which ensures that it can be displayed normally and beautifully on most devices. +- Support for Podcasts: Without too much configuration, you can easily publish a Podcast. +- Dark mode support: Dark mode browsing on most browsers/operating systems. + +It is still under development. |