Giter Site home page Giter Site logo

hugo-stellar's Introduction

Hugo Stellar

Hexo theme stellar 的 Hugo 移植版本。

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

Demo

模板网站:https://hugo-template.github.io/Stellar-Hugo-Template/

Yharim Area:https://yharim.com/

DeCheng Note:https://note.dc6.fun/

Preview

image

image

Usage

方案 1:GitHub Actions + Pages 建站

Hugo Stellar 一键模板

十分甚至九分感谢由用户 cyolc932 提供的大力支持。

方案 2:本地建站

请使用 hugo extended v0.109.0 或更新版本。

本地建站 sh 脚本:

hugo new site mysite
cd mysite
git init
git submodule add https://github.com/Yharimium/hugo-stellar themes/stellar
cp -R themes/stellar/exampleSite/* .
rm config.toml

预览网站:

hugo server

注:请务必保证您的站点配置文件(如 config.yaml)中包含有下列配置:

markup:
  _merge: deep

否则将导致代码块渲染异常。

Content Management

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

Experimental Features

扩展语法支持

注:此功能可能存在 bug,请谨慎使用。

支持在正文中使用 mkdocs 和 hexo stellar 语法,例如:

!!! note
    `markdown` text
{% poetry 独不见 author:唐·沈佺期 footer:诗词节选 %}
卢家少妇郁金堂,海燕双栖玳瑁梁。
**九月寒砧催木叶,十年征戍忆辽阳。**
白狼河北音书断,丹凤城南秋夜长。
谁为含愁独不见,更教明月照流黄?
{% endpoetry %}

详见 扩展语法支持

hugo-stellar's People

Contributors

yharimium avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.