@2now/gatsby-theme-minimal-blog-core 中文文档教程

发布于 3年前 浏览 15 项目主页 更新于 3年前

2-NOW fork version

盖茨比主题

@lekoarts/gatsby-theme-minimal-blog-core

@lekoarts/gatsby-theme-minimal-blog-core 在 MIT 许可证下发布。 当前 npm 包版本。 npm 每月下载量。 npm 上的总下载量。 欢迎 PR! 关注@lekoarts_de

@lekoarts/gatsby-theme-minimal-blog 的核心主题。 该主题实现了 PostPage 节点接口并导出了您可以隐藏的模板(+ 查询)。

还请务必结帐其他Free & 开源 Gatsby 主题

Installation

npm install @lekoarts/gatsby-theme-minimal-blog-core

Usage

Theme options

KeyDefault ValueDescription
basePath/Root url for the theme
blogPath/blogurl for the blog post overview page
tagsPath/tagsurl for the tags overview page and prefix for tags (e.g. /tags/my-tag)
postsPathcontent/postsLocation of posts
postsPrefix/Prefix for all individual blog posts
pagesPathcontent/pagesLocation of additional pages (optional)
mdxtrueConfigure gatsby-plugin-mdx (if your website already is using the plugin pass false to turn this off)
formatStringDD.MM.YYYYConfigure the date format for Date fields

content/pages 的使用是可选的。

Shadowing

请阅读指南盖茨比主题中的阴影以了解如何自定义此主题! 您还可以查看 @lekoarts/gatsby-theme -minimal-blog 以查看实际效果。 一般来说,您会希望将文件放入 src/@lekoarts/gatsby-theme-minimal-blog-core/ 以隐藏/覆盖文件。

Supporting me

感谢您使用这个项目! 我一直很想知道人们对我的项目做了什么,所以不要犹豫,在 Twitter 上标记我并与我分享项目.

请为这个项目加注星标,在社交媒体上分享它,或者考虑在 PatreonGitHub 赞助商

2-NOW fork version

Gatsby Theme

@lekoarts/gatsby-theme-minimal-blog-core

@lekoarts/gatsby-theme-minimal-blog-core is released under the MIT license. Current npm package version. Downloads per month on npm. Total downloads on npm. PRs welcome! Follow @lekoarts_de

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

KeyDefault ValueDescription
basePath/Root url for the theme
blogPath/blogurl for the blog post overview page
tagsPath/tagsurl for the tags overview page and prefix for tags (e.g. /tags/my-tag)
postsPathcontent/postsLocation of posts
postsPrefix/Prefix for all individual blog posts
pagesPathcontent/pagesLocation of additional pages (optional)
mdxtrueConfigure gatsby-plugin-mdx (if your website already is using the plugin pass false to turn this off)
formatStringDD.MM.YYYYConfigure 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!

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文