summaryrefslogtreecommitdiff
path: root/layout/_partial/head.ejs
blob: bebcf1d4a6d25637c2d102a82a59f4435861783a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<head>
    <%
        let title = config.title;
        if (!is_home()) title = page.title + ' | ' + title;
    %>
    <title><%= title %></title>
    <% if (theme.favicon) { %>
        <%- favicon_tag(theme.favicon) %> 
    <% } %>
    <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 -->
    <% if (config.keywords) { %>
        <meta name="keywords" content="<%= config.keywords %>">
    <% } %>
    <% if (config.description) { %>
        <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 -->
    <%- css('css/style.min.css') %>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma/css/bulma.min.css">
    <link media="(prefers-color-scheme: dark)" rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jloh/bulma-prefers-dark/css/bulma-prefers-dark.min.css">
</head>