diff options
| -rw-r--r-- | _config.yml | 3 | ||||
| -rw-r--r-- | layout/_partial/head.ejs | 18 | ||||
| -rw-r--r-- | layout/_partial/scripts.ejs | 7 | ||||
| -rw-r--r-- | layout/layout.ejs | 2 | ||||
| -rw-r--r-- | source/css/style.css | 0 | 
5 files changed, 19 insertions, 11 deletions
| diff --git a/_config.yml b/_config.yml index 665402d..232ab37 100644 --- a/_config.yml +++ b/_config.yml @@ -1,2 +1,3 @@  podcast: true -lazyload: true
\ No newline at end of file +lazyload: true +highlight: true
\ No newline at end of file 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 diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index a982f7d..662702a 100644 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -7,4 +7,9 @@              threshold: 0          };      </script> -<% } %>
\ No newline at end of file +<% } %> + +<!-- Darkmode support --> +<script defer src="https://cdn.jsdelivr.net/npm/darkmode-js/lib/darkmode-js.min.js"></script> + +<!-- Highlight.js support --> diff --git a/layout/layout.ejs b/layout/layout.ejs index 4ae62cc..96d7f6a 100644 --- a/layout/layout.ejs +++ b/layout/layout.ejs @@ -6,7 +6,7 @@          <div class="wrapper">              <%- body %>          </div> -        <%- partial('partial/footer') %>  +        <%- partial('_partial/footer') %>       </body>      <%- partial('_partial/scripts') %>  </html>
\ No newline at end of file diff --git a/source/css/style.css b/source/css/style.css new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/source/css/style.css | 
