mirror of https://gitlab.com/curben/blog
fix(config): remove unused theme config
- remove theme.nickname and theme.description - config.subtitle and config.description should suffice
This commit is contained in:
parent
f64241723c
commit
1a9ed39332
|
@ -101,9 +101,5 @@ theme_config:
|
||||||
# https://github.com/hexojs/hexo-generator-feed
|
# https://github.com/hexojs/hexo-generator-feed
|
||||||
rss: /atom.xml
|
rss: /atom.xml
|
||||||
|
|
||||||
# Profile
|
|
||||||
nickname: MDLeom's blog
|
|
||||||
description: Troubleshooting, tips & tricks, etc.
|
|
||||||
|
|
||||||
# Load forkawesome icons? See the links option below.
|
# Load forkawesome icons? See the links option below.
|
||||||
icons: false
|
icons: false
|
||||||
|
|
|
@ -38,8 +38,8 @@
|
||||||
<link rel="manifest" href="/site.webmanifest?v=yyQLrgrMjG">
|
<link rel="manifest" href="/site.webmanifest?v=yyQLrgrMjG">
|
||||||
<link rel="mask-icon" href="/safari-pinned-tab.svg?v=yyQLrgrMjG" color="#3f72af">
|
<link rel="mask-icon" href="/safari-pinned-tab.svg?v=yyQLrgrMjG" color="#3f72af">
|
||||||
<link rel="shortcut icon" href="/favicon.ico?v=yyQLrgrMjG">
|
<link rel="shortcut icon" href="/favicon.ico?v=yyQLrgrMjG">
|
||||||
<meta name="apple-mobile-web-app-title" content="<%- theme.nickname %>">
|
<meta name="apple-mobile-web-app-title" content="<%= config.title %>">
|
||||||
<meta name="application-name" content="<%- theme.nickname %>">
|
<meta name="application-name" content="<%= config.title %>">
|
||||||
<meta name="msapplication-TileColor" content="#3f72af">
|
<meta name="msapplication-TileColor" content="#3f72af">
|
||||||
<meta name="msapplication-config" content="/browserconfig.xml">
|
<meta name="msapplication-config" content="/browserconfig.xml">
|
||||||
<meta name="theme-color" content="#3f72af">
|
<meta name="theme-color" content="#3f72af">
|
||||||
|
|
|
@ -28,17 +28,17 @@ function og (name, content) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function openGraphHelper () {
|
function openGraphHelper () {
|
||||||
const { config, page, theme } = this
|
const { config, page } = this
|
||||||
let description = page.excerpt || theme.description || false
|
let description = page.excerpt || ''
|
||||||
const author = config.author
|
const author = config.author
|
||||||
const keywords = page.tags || false
|
const keywords = page.tags || ''
|
||||||
const title = page.title || theme.nickname
|
const title = page.title || config.title || ''
|
||||||
const type = (this.is_post() ? 'article' : 'website')
|
const type = (this.is_post() ? 'article' : 'website')
|
||||||
const url = prettyUrls(this.url, config.pretty_urls)
|
const url = prettyUrls(this.url, config.pretty_urls)
|
||||||
const screenshot = '/screenshot/' + prettyUrls(this.path, config.pretty_urls)
|
const screenshot = '/screenshot/' + prettyUrls(this.path, config.pretty_urls)
|
||||||
const siteName = config.subtitle || theme.nickname || false
|
const siteName = config.title || ''
|
||||||
const published = page.date || false
|
const published = page.date || ''
|
||||||
const updated = page.lastUpdated || false
|
const updated = page.lastUpdated || ''
|
||||||
const language = config.language.replace('-', '_')
|
const language = config.language.replace('-', '_')
|
||||||
let result = ''
|
let result = ''
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue