From ad8f9f55ea79a4d587aecc69698808da82de3d62 Mon Sep 17 00:00:00 2001 From: somhairle Date: Tue, 21 Apr 2026 20:40:27 +0800 Subject: 二〇二六年四月二十一日 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/theme/layout/partials/head.ejs | 73 +++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 themes/theme/layout/partials/head.ejs (limited to 'themes/theme/layout/partials/head.ejs') diff --git a/themes/theme/layout/partials/head.ejs b/themes/theme/layout/partials/head.ejs new file mode 100644 index 00000000..23265719 --- /dev/null +++ b/themes/theme/layout/partials/head.ejs @@ -0,0 +1,73 @@ + + + +<% if(config.author){ %> + + <% } %> + <% if(config.subtitle){ %> + + <% } %> + <% if(config.description){ %> + + <% } %> + <% if(config.keywords){ %> + + <% } %> + + <% var title=page.title; if (is_archive()){ title=__('Archive'); 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; } %> + + + <% if (title){ %> + <%= title %> | <% } %> + <%= config.title %> + + + <%# favicon %> + <% if (theme.favicon){ %> + + <% } %> + + <%# css list %> + <% if (theme.stylesheets !==undefined && theme.stylesheets.length> + 0) { %> + + <% theme.stylesheets.forEach(url=> { %> + + <% }); %> + <% } %> + + <%# font preload - critical slices %> + + + + <%# javascript list %> + <% if (theme.scripts !==undefined && + theme.scripts.length> 0) { %> + + <% theme.scripts.forEach(url=> { %> + + <% }); %> + <% } %> + + <%# mathjax support %> + <% if(theme.mathjax_enable){ + %> + + + <% } %> + + <%# valine comment + support %> + <% if(theme.valine.enable){ + %> + + <% } %> \ No newline at end of file -- cgit v1.2.3