style(footer): change the footer version to a fixed value

This commit is contained in:
XPoet 2022-09-29 22:48:05 +08:00
parent 44f7a72b77
commit af199b088b
2 changed files with 1 additions and 3 deletions

View File

@ -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>') %>&nbsp;|&nbsp;<%- __('theme') %> <%- __('powered_by', '<a target="_blank" href="https://hexo.io">Hexo</a>') %>&nbsp;|&nbsp;<%- __('theme') %>
&nbsp; &nbsp;
<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">

View File

@ -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;`