Git Product home page Git Product logo

hexo-theme-mdx's Introduction

GitHub Status

hexo-theme-mdx's People

Contributors

ayaneye avatar gxres042 avatar yuameshi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

gxres042 ayaneye

hexo-theme-mdx's Issues

[Feature] 首页下头图部分显示 Slogan & 增加简洁页脚

./layout/_partial/title.ejs

<div 
	class="pageTitle mdui-color-theme mdui-color-theme"
	id="pageTitleContainer"
	style="background-image: url('<%- props.background || theme.header_picture_link %>'); ">
	<% if (is_post() || is_page()) { %>
	    <h1 id="pageTitle">
		<%= props.title %>
	    </h1>
	<% } else { %>
	    <h1>
                <%= theme.subtitle %>
	     </h1>
	<% } %>
</div>

这样在非文章或页面的情况下在顶部显示 Slogan,而不是显示标题(左上角已经有标题显示了)

需要在主题的配置文件里增加一行 slogan: 以便读取

已经在本地测试过,首页会显示 Slogan,进入文章后会显示标题。但我不确定其它环境是否如此。

麻烦了(

Hexo g 后报错

[MDx]   [INFO]  Checking configurations...
ERROR {
  err: TypeError: Cannot read properties of undefined (reading 'path')
      at C:\Users\21225\OneDrive\Documents\mlou\node_modules\hexo-theme-mdx\scripts\index.js:5:64
      at C:\Users\21225\OneDrive\Documents\mlou\node_modules\hexo\lib\hexo\index.js:305:14
      at tryCatcher (C:\Users\21225\OneDrive\Documents\mlou\node_modules\bluebird\js\release\util.js:16:23)
      at Promise._settlePromiseFromHandler (C:\Users\21225\OneDrive\Documents\mlou\node_modules\bluebird\js\release\promise.js:547:31)
      at Promise._settlePromise (C:\Users\21225\OneDrive\Documents\mlou\node_modules\bluebird\js\release\promise.js:604:18)
      at Promise._settlePromise0 (C:\Users\21225\OneDrive\Documents\mlou\node_modules\bluebird\js\release\promise.js:649:10)
      at Promise._settlePromises (C:\Users\21225\OneDrive\Documents\mlou\node_modules\bluebird\js\release\promise.js:729:18)
      at _drainQueueStep (C:\Users\21225\OneDrive\Documents\mlou\node_modules\bluebird\js\release\async.js:93:12)
      at _drainQueue (C:\Users\21225\OneDrive\Documents\mlou\node_modules\bluebird\js\release\async.js:86:9)
      at Async._drainQueues (C:\Users\21225\OneDrive\Documents\mlou\node_modules\bluebird\js\release\async.js:102:5)
      at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\21225\OneDrive\Documents\mlou\node_modules\bluebird\js\release\async.js:15:14)
      at processImmediate (node:internal/timers:466:21)
} Script load failed: %s n

初次安装,不知道是什么原因,正常使用无问题但报错太长影响感官,故有此问,期望作者能给予解答,谢谢 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.