Blog/themes/freemind/layout/_partial/head.ejs

61 lines
2.7 KiB
Text
Raw Normal View History

2022-03-16 15:24:24 +01:00
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<%
var title = [];
if (page.current > 1) title.push(__('page', page.current));
if (page.title) title.push(page.title);
if (page.category) title.push(page.category);
if (page.tag) title.push(page.tag);
if (page.archive){
if (page.year) title.push(__('archive_b', page.year + (page.month ? '/' + page.month : '')));
else title.push(__('archive_a'));
}
title.push(config.title);
%>
<title><%= title.join(' | ') %></title>
<% if (config.author){ %><meta name="author" content="<%= config.author %>"><% } %>
<% if (page.description){ %>
2022-12-04 09:36:51 +01:00
<meta name="description" content="<%= page.description %>">
2022-03-16 15:24:24 +01:00
<% } else if (config.description){ %>
<meta name="description" content="<%= config.description %>">
<% } else if (page.excerpt){ %>
<meta name="description" content="<%= strip_html(page.excerpt).replace(/^\s*/, '').replace(/\s*$/, '') %>">
<% } else if (page.content){ %>
<meta name="description" content="<%= strip_html(page.content).replace(/^\s*/, '').replace(/\s*$/, '').substring(0, 150) %>">
<% } %>
<% if (page.keywords){ %><meta name="keywords" content="<%= page.keywords %>"><% } %>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<% if (page.title){ %>
<meta name="og:title" content="<%= page.title %>">
2023-06-23 15:56:09 +02:00
<meta property="og:site_name" content="<%= config.title %>">
<% } %>
2022-03-16 15:24:24 +01:00
<% if(page.cover) { %>
2023-06-23 15:56:09 +02:00
<meta property="og:image" content="<%= page.cover %>">
2022-03-16 15:24:24 +01:00
<% } else { %>
2023-06-23 15:56:09 +02:00
<meta property="og:image" content="https://blog.southfox.me/favicon.png">
2022-03-16 15:24:24 +01:00
<% } %>
<% if (page.description){ %>
2023-06-23 15:56:09 +02:00
<meta name="og:description" content="<%= page.description %>" />
<% } %>
2022-03-16 15:24:24 +01:00
<% if (theme.rss){ %>
<link rel="alternative" href="<%- url_for('./') %><%- theme.rss %>" title="<%= config.title %>" type="application/atom+xml">
<% } %>
<% if (theme.favicon){ %>
<link href="<%- url_for('./') %><%- theme.favicon %>" rel="icon">
<% } %>
<link rel="stylesheet" href="<%- url_for('./css/bootstrap.min.css') %>" media="screen" type="text/css">
<link rel="stylesheet" href="<%- url_for('./css/style.css') %>" media="screen" type="text/css">
<link rel="stylesheet" href="<%- url_for('./css/responsive.css') %>" media="screen" type="text/css">
<link rel="stylesheet" href="<%- url_for('./css/highlight.css') %>" media="screen" type="text/css">
<link rel="stylesheet" href="<%- url_for('./css/font-awesome.css') %>" media="screen" type="text/css">
2022-03-26 18:58:23 +01:00
<script src="<%- url_for('./js/jquery-2.0.3.min.js') %>"> async</script>
2022-03-16 15:24:24 +01:00
</head>