yuameshi / hexo-theme-mdx Goto Github PK
View Code? Open in Web Editor NEWA hexo theme with material design
Home Page: https://www.npmjs.com/package/hexo-theme-mdx
License: MIT License
A hexo theme with material design
Home Page: https://www.npmjs.com/package/hexo-theme-mdx
License: MIT License
./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,进入文章后会显示标题。但我不确定其它环境是否如此。
麻烦了(
[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
初次安装,不知道是什么原因,正常使用无问题但报错太长影响感官,故有此问,期望作者能给予解答,谢谢 :)
Hi,
I'm a Waline Comment user, and these days I saw this theme and very like it. But I found that it only support Gitalk, so I want to know when this theme will support Waline or not.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.