feat: add page.keywords and page.description

This commit is contained in:
nspyf 2021-10-08 13:55:03 +08:00
parent 827ca6faeb
commit 04303ad18b
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="keywords" content="<%= config.keywords || 'Hexo Theme Keep' %>">
<meta name="description" content="<%= config.description || 'Hexo Theme Keep' %>">
<meta name="keywords" content="<%= page.keywords || config.keywords || 'Hexo Theme Keep' %>">
<meta name="description" content="<%= page.description || config.description || 'Hexo Theme Keep' %>">
<meta name="author" content="<%= theme.base_info.author || config.author || 'Keep Team' %>">
<%
let title = page.title;