style(footer): change the footer version to a fixed value
This commit is contained in:
parent
44f7a72b77
commit
af199b088b
|
@ -36,7 +36,7 @@ const { site_uv: bsz_site_uv, site_pv: bsz_site_pv, enable: bsz_enable } = theme
|
||||||
<div class="theme-info info-item">
|
<div class="theme-info info-item">
|
||||||
<%- __('powered_by', '<a target="_blank" href="https://hexo.io">Hexo</a>') %> | <%- __('theme') %>
|
<%- __('powered_by', '<a target="_blank" href="https://hexo.io">Hexo</a>') %> | <%- __('theme') %>
|
||||||
|
|
||||||
<a class="theme-version" target="_blank" href="https://github.com/XPoet/hexo-theme-keep">Keep</a>
|
<a class="theme-version" target="_blank" href="https://github.com/XPoet/hexo-theme-keep">Keep v3.4.7</a>
|
||||||
</div>
|
</div>
|
||||||
<% if (f_icp) { %>
|
<% if (f_icp) { %>
|
||||||
<div class="icp-info info-item">
|
<div class="icp-info info-item">
|
||||||
|
|
|
@ -20,8 +20,6 @@ window.addEventListener('DOMContentLoaded', () => {
|
||||||
|
|
||||||
// print theme base info
|
// print theme base info
|
||||||
KEEP.printThemeInfo = () => {
|
KEEP.printThemeInfo = () => {
|
||||||
const footerVersion = document.querySelector('.footer .theme-version');
|
|
||||||
footerVersion && (footerVersion.innerHTML = KEEP.themeInfo.theme);
|
|
||||||
console.log(
|
console.log(
|
||||||
`\n %c ${KEEP.themeInfo.theme} %c ${KEEP.themeInfo.repository} \n`,
|
`\n %c ${KEEP.themeInfo.theme} %c ${KEEP.themeInfo.repository} \n`,
|
||||||
`color: #fadfa3; background: #333; padding: 6px 0;`, `padding: 6px 0;`
|
`color: #fadfa3; background: #333; padding: 6px 0;`, `padding: 6px 0;`
|
||||||
|
|
Loading…
Reference in New Issue