summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
authorDoge <[email protected]>2021-05-13 18:53:19 +0800
committerDoge <[email protected]>2021-05-13 18:53:19 +0800
commit5e2ae7733ca351ae57fc4fd756ec03f4bc0fc672 (patch)
treedd2960c2caadf4cfaea4f7a6b5513adfc5bcf2c7 /layout
parent7dcd9aea80061bdcdbafb172e478213a962c2f6c (diff)
downloadchromate-5e2ae7733ca351ae57fc4fd756ec03f4bc0fc672.tar.gz
chromate-5e2ae7733ca351ae57fc4fd756ec03f4bc0fc672.tar.bz2
chromate-5e2ae7733ca351ae57fc4fd756ec03f4bc0fc672.zip
Add rss auto discovery and fix some bugs with rss
Diffstat (limited to 'layout')
-rw-r--r--layout/_partial/head.ejs5
1 files changed, 5 insertions, 0 deletions
diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs
index c145c9a..b4cb09e 100644
--- a/layout/_partial/head.ejs
+++ b/layout/_partial/head.ejs
@@ -18,6 +18,11 @@
<meta name="description" content="<%= config.description %>">
<% } %>
+ <!-- RSS Autodiscovery -->
+ <% if (theme.rss.enable) { %>
+ <link rel="alternate" href="<%= theme.rss.path %>" type="application/rss+xml">
+ <% } %>
+
<!-- Scripts and styles -->
<style>pre{background-color:none!important;padding:0%!important;}@media(prefers-color-scheme:dark){*{transition:backgourd-color .5s}.card{box-shadow:none!important;background-color:#121212!important}}@media screen and (max-width:1023px){.navbar-menu{box-shadow:0 8px 16px -8px rgb(10 10 10 / 10%)!important}.post-content{padding-top:0!important}.post-card{margin:0 0 0 0!important}}.post-podcast-player{padding-bottom:1.5rem}.post-card{margin:0 1rem 0rem 1rem}.navbar-brand .navbar-item:hover{background-color:inherit!important}.entry{margin-bottom:1.5rem!important;margin-top:1.5rem!important;transition:box-shadow .1s}.entry:hover{box-shadow:0 1em 2em -0.125em rgb(10 10 10 / 10%),0 0 0 1px rgb(10 10 10 / 2%)}.pagination-bar{padding-left:.25rem;padding-right:.25rem}.footer{padding:1rem 1rem 1rem!important;background-color:transparent!important}</style>
<link rel="preload" as="style" onload="this.rel='stylesheet'" href="https://cdn.jsdelivr.net/npm/bulma/css/bulma.min.css">