1 Star 1 Fork 0

WeiYanCC / Stellar-Hugo-Theme

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

Stellar-Hugo-Theme

这是 Hexo theme stellar 主题的 Hugo 移植版本;本仓库是基于 hugo-stellar 的 dev 开发版本。

注意!此移植版本尚未完善,仅供 debug!

示例站点(部分站点可能已失效)

预览

image

image

安装与使用

本地建站

请使用 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

注:

  1. 请务必保证您的站点配置文件(如 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 %}

详见 扩展语法支持

BSD 3-Clause License Copyright (c) 2023, 章魚貓先生 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

Hexo theme stellar 的 Hugo 移植版本,一个内置文档系统的简约商务风 Hugo 主题。 展开 收起
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/shenweiyan/Stellar-Hugo-Theme.git
git@gitee.com:shenweiyan/Stellar-Hugo-Theme.git
shenweiyan
Stellar-Hugo-Theme
Stellar-Hugo-Theme
dev

搜索帮助