代码拉取完成,页面将自动刷新
这是 Hexo theme stellar 主题的 Hugo 移植版本;本仓库是基于 hugo-stellar 的 dev 开发版本。
注意!此移植版本尚未完善,仅供 debug!
请使用 hugo extended
v0.109.0
或更新版本。
本地建站 sh 脚本:
hugo new site mysite
cd mysite
git init
git submodule add https://github.com/shenweiyan/Stellar-Hugo-Theme themes/Stellar-Hugo-Theme
cp -R themes/Stellar-Hugo-Theme/exampleSite/* .
rm config.toml
预览网站:
hugo server
注:
- 请务必保证您的站点配置文件(如
config.yaml
)中包含有下列配置:markup: _merge: deep
否则将导致代码块渲染异常。 2. 请务必检查路径下
/content/posts/至少有一篇文章.md
, 否则无法正常预览 3. 请务必检查您的站点配置文件(如config.yaml
)中包含有:theme: - Stellar-Hugo-Theme
content
目录结构:支持 posts
(博客)和 docs
(文档)两种模式。
content/
├── posts/
│ ├── test.md <- example.com/posts/test.html
│ └── folder/
│ ├── index.md <- example.com/posts/index.html
│ └── test.md <- example.com/posts/folder/test.html
└── docs/
└── test.md <- example.com/docs/test.html
注:此功能可能存在 bug,请谨慎使用。
支持在正文中使用 mkdocs 和 hexo stellar 语法,例如:
!!! note
`markdown` text
{% poetry 独不见 author:唐·沈佺期 footer:诗词节选 %}
卢家少妇郁金堂,海燕双栖玳瑁梁。
**九月寒砧催木叶,十年征戍忆辽阳。**
白狼河北音书断,丹凤城南秋夜长。
谁为含愁独不见,更教明月照流黄?
{% endpoetry %}
详见 扩展语法支持
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。