Skip to content

Joyace/Galaxy-hugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Galaxy

Galaxy theme, ported to Hugo.

预览效果:梦幻银河

一款非常简洁、性能高的Hugo主题,适配不同的设备(PC,Mobile等)。

功能特性

  1. 最近发表的文章支持,显示最近的10篇
  2. 分类支持,并且可以显示分类内的文章数量
  3. 标签云支持
  4. 一键回到页面顶部
  5. RSS支持,并且可以自动发现RSS
  6. 自定义菜单支持,不限个数,自定义排序
  7. 自定义友情链接支持
  8. 支持文章按年份日期进行归档
  9. 支持GA分析统计
  10. sitemap站点地图
  11. 代码高亮、代码行号
    • markup、css、clike、javascript、c、csharp、bash、cpp
    • aspnet、dart、docker、markup-templating、erlang
    • go、groovy、java、json、kotlin、markdown、lua、objectivec
    • php、python、r、yaml、toml
  12. 404错误页
  13. 支持关键字SEO优化
  14. Google站内搜索
  15. See Also 支持
  16. Disqus评论支持
  17. 不蒜子页面计数器支持
  18. 自定义css、js
  19. utteranc评论
  20. 部分自定义的shortcode
  21. 文章自定义摘要

下载安装

cd <YOUR Bolg Root Dir>
git clone https://github.com/yinheio/Galaxy-hugo

配置

应用主题

theme = "Galaxy"

基本配置

baseURL = "https://example.com"
title = "梦幻银河"
theme = "Galaxy"
paginate = 12
enableEmoji = true
enableRobotsTXT = true
googleAnalytics = ""

preserveTaxonomyNames = true

[blackfriday]
  hrefTargetBlank = true
  nofollowLinks = true
  noreferrerLinks = true

[Permalinks]
 posts = "/:sections/:filename/"

[params]
    subtitle = "想象力才是终极生产力"  
	
[menu]

  [[menu.main]]
    identifier = "about"
    name = "关于"
    url = "/about/"
    weight = 4

更多信息

参考 https://yinhe.io/posts/hugo_galaxy/

About

hugo theme

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published