diff options
author | Doge <[email protected]> | 2021-05-03 18:36:16 +0800 |
---|---|---|
committer | Doge <[email protected]> | 2021-05-03 18:36:16 +0800 |
commit | affca0d5e31f862b3a5022bd49f40cea227707a2 (patch) | |
tree | b16db71a7f5cadb71804481849c89c5c37f985ae /layout/_partial/head.ejs | |
parent | 05f722c51617fceaa0c4b581dfc78762b9b58a03 (diff) | |
download | chromate-affca0d5e31f862b3a5022bd49f40cea227707a2.tar.gz chromate-affca0d5e31f862b3a5022bd49f40cea227707a2.tar.bz2 chromate-affca0d5e31f862b3a5022bd49f40cea227707a2.zip |
Add modules support
Diffstat (limited to 'layout/_partial/head.ejs')
-rw-r--r-- | layout/_partial/head.ejs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 6720df0..6e6f5fd 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -1,5 +1,6 @@ <head> - <title><%= title %></title> + <title><%= config.title %></title> + <% if (config.favicon) favicon_tag(config.favicon) %> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> @@ -10,17 +11,18 @@ <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) %> + <% if (config.keywords) { %> + <meta name="keywords" content="<%= config.keywords %>"> + <% } %> + <% if (config.description) { %> + <meta name="description" content="<%= config.description %>"> + <% } %> <!-- Scripts and styles --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma/css/bulma.min.css"> - <% if (theme.podcast) { %> + <% if (is_post() && theme.podcast && post.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> - + <%- css("css/style.css") %> </head>
\ No newline at end of file |