<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">

<% if(theme.head.preload) { theme.head.preload.forEach(function(content) { %>
    <link rel="preload" <%- content %>>
<% })} if(theme.head.preconnect) { theme.head.preconnect.forEach(function(content) { %>
    <link rel="preconnect" <%- content %>>
<% })} if(theme.head.prefetch) { theme.head.prefetch.forEach(function(content) { %>
    <link rel="prefetch" <%- content %>>
<% })} if(theme.head.dns_prefetch) { theme.head.dns_prefetch.forEach(function(content) { %>
    <link rel="dns-prefetch" <%- content %>>
<% })} if(theme.head.stylesheet) { theme.head.stylesheet.forEach(function(content) { %>
    <link rel="stylesheet" <%- content %>>
<% })} %>

<%- css(theme.vendors.mdui_css) %>

<% if(config.prismjs.enable) { %>
    <%- css(theme.vendors.prism_theme) %>
    <% if(config.prismjs.line_numbers) { %>
        <%- css(theme.vendors.prism_line_numbers) %>
    <% } %>
<% } %>

<% if(theme.head.favicon) { %>
<link rel="icon shortcut" href="<%= theme.head.favicon %>">
<% } if(theme.head.high_res_icon) { %>
<link rel="icon" type="image/png" href="<%= theme.head.high_res_icon %>">
<% } if(theme.head.apple_touch_icon) { %>
<link rel="apple-touch-icon" href="<%= url_for(theme.head.apple_touch_icon) %>">
<% } if(theme.head.theme_color) { %>
<meta name="theme-color" content="<%= theme.head.theme_color %>">
<% } if(theme.plugins.pwa == true) { if(theme.vendors.webmanifest) { %>
    <link rel="manifest" href='<%- theme.vendors.webmanifest %>'>
    <% } else { %>
    <link rel="manifest" href="<%= url_for('/manifest.webmanifest') %>">
<% }} if (theme.url.rss && config.feed){ %>
    <% if(config.feed.type == "atom"){ %>
        <link rel=alternate type="application/atom+xml" href="<%= url_for(theme.url.rss) || '#' %>">
    <% } else if(config.feed.type == "rss2") { %>
        <link rel=alternate type="application/rss+xml" href="<%= url_for(theme.url.rss) || '#' %>">
<% }} %>

<style>
    html,body{scroll-behavior:smooth;min-height:100vh}
    blockquote>strong>a{word-break:break-all}
    .mdui-hoverable:hover,.mdui-hoverable:focus{-webkit-box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12) !important;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12) !important;}
    .mdui-card-primary-title a{text-decoration:none !important}
    .page-number{display:none !important}
    .mdui-container-fluid{transition:opacity .4s}
    <% if(theme.m.css) { %>
        <%- theme.m.css %>
    <% } %>
</style>