@2now/gatsby-theme-minimal-blog-core 中文文档教程
2-NOW fork version
@lekoarts/gatsby-theme-minimal-blog-core
@lekoarts/gatsby-theme-minimal-blog 的核心主题
。 该主题实现了
Post
和 Page
节点接口并导出了您可以隐藏的模板(+ 查询)。
还请务必结帐其他Free & 开源 Gatsby 主题
Installation
npm install @lekoarts/gatsby-theme-minimal-blog-core
Usage
Theme options
Key | Default Value | Description |
---|---|---|
basePath | / | Root url for the theme |
blogPath | /blog | url for the blog post overview page |
tagsPath | /tags | url for the tags overview page and prefix for tags (e.g. /tags/my-tag ) |
postsPath | content/posts | Location of posts |
postsPrefix | / | Prefix for all individual blog posts |
pagesPath | content/pages | Location of additional pages (optional) |
mdx | true | Configure gatsby-plugin-mdx (if your website already is using the plugin pass false to turn this off) |
formatString | DD.MM.YYYY | Configure the date format for Date fields |
content/pages
的使用是可选的。
Shadowing
请阅读指南盖茨比主题中的阴影以了解如何自定义此主题! 您还可以查看 @lekoarts/gatsby-theme -minimal-blog
以查看实际效果。 一般来说,您会希望将文件放入 src/@lekoarts/gatsby-theme-minimal-blog-core/
以隐藏/覆盖文件。
Supporting me
感谢您使用这个项目! 我一直很想知道人们对我的项目做了什么,所以不要犹豫,在 Twitter 上标记我并与我分享项目.
请为这个项目加注星标,在社交媒体上分享它,或者考虑在 Patreon 或 GitHub 赞助商!
2-NOW fork version
@lekoarts/gatsby-theme-minimal-blog-core
Core Theme for @lekoarts/gatsby-theme-minimal-blog
. This theme implements the Post
and Page
node interfaces and exports templates (+ queries) which you can shadow.
Also be sure to checkout other Free & Open Source Gatsby Themes
Installation
npm install @lekoarts/gatsby-theme-minimal-blog-core
Usage
Theme options
Key | Default Value | Description |
---|---|---|
basePath | / | Root url for the theme |
blogPath | /blog | url for the blog post overview page |
tagsPath | /tags | url for the tags overview page and prefix for tags (e.g. /tags/my-tag ) |
postsPath | content/posts | Location of posts |
postsPrefix | / | Prefix for all individual blog posts |
pagesPath | content/pages | Location of additional pages (optional) |
mdx | true | Configure gatsby-plugin-mdx (if your website already is using the plugin pass false to turn this off) |
formatString | DD.MM.YYYY | Configure the date format for Date fields |
The usage of content/pages
is optional.
Shadowing
Please read the guide Shadowing in Gatsby Themes to understand how to customize the this theme! You can also have a look at @lekoarts/gatsby-theme-minimal-blog
to see it in action. Generally speaking you will want to place your files into src/@lekoarts/gatsby-theme-minimal-blog-core/
to shadow/override files.
???? Supporting me
Thanks for using this project! I'm always interested in seeing what people do with my projects, so don't hesitate to tag me on Twitter and share the project with me.
Please star this project, share it on Social Media or consider supporting me on Patreon or GitHub Sponsor!