summaryrefslogtreecommitdiff
path: root/layout/_partial/head.ejs
blob: 55eccfd4531cb487d65e45a9e80fadc014340872 (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
37
38
<head>
    <%
        let title = config.title;
        if (page.title !== undefined) {
            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 media="all" rel="stylesheet" id="bulma-light" href="https://lib.baomitu.com/bulma/0.9.4/css/bulma.min.css">
    <link media="none" rel="stylesheet" id="bulma-dark" href="https://lib.baomitu.com/bulmaswatch/0.8.1/darkly/bulmaswatch.min.css">
</head>