Add Tsu theme
This commit is contained in:
21
themes/hexo-theme-Tsu/layout/_partials/head.ejs
Normal file
21
themes/hexo-theme-Tsu/layout/_partials/head.ejs
Normal file
@@ -0,0 +1,21 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
|
||||
<%
|
||||
var title = page.title;
|
||||
if (is_archive()){
|
||||
title = 'Archives';
|
||||
if (is_month()){
|
||||
title += ': ' + page.year + '/' + page.month;
|
||||
} else if (is_year()){
|
||||
title += ': ' + page.year;
|
||||
}
|
||||
} else if (is_category()){
|
||||
title = 'Category: ' + page.category;
|
||||
} else if (is_tag()){
|
||||
title = 'Tag: ' + page.tag;
|
||||
}
|
||||
%>
|
||||
<title><% if (title){ %><%= title %> | <% } %><%= config.title %></title>
|
||||
|
||||
<%- css('styles/main') %>
|
Reference in New Issue
Block a user