完善主题的备注信息
This commit is contained in:
1 parent
2c46cd35e7
commit
1726586b32
91 files changed
+28153
-109
No files matched your search
+11
-1
@@ -1,7 +1,17 @@
|
||||
# Theme Name
|
||||
|
||||
Ying
|
||||
|
||||
## Features
|
||||
|
||||
- 简洁优雅的设计
|
||||
- 支持多语言
|
||||
- 自定义社交链接
|
||||
- 灵活的导航菜单配置
|
||||
|
||||
## Installation
|
||||
|
||||
## Configuration
|
||||
1. 克隆主题仓库到你的 Hugo 项目中:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/owner/repo themes/ying
|
||||
+51
-14
@@ -1,23 +1,60 @@
|
||||
baseURL = 'https://example.org/'
|
||||
languageCode = 'en-US'
|
||||
title = 'My New Hugo Site'
|
||||
# 网站的基本 URL
|
||||
baseURL = 'https://52ql.cn'
|
||||
|
||||
# 网站的语言代码
|
||||
languageCode = 'Zh-cn'
|
||||
|
||||
# 网站的标题
|
||||
title = '优世界'
|
||||
|
||||
# 自定义参数设置
|
||||
[params]
|
||||
# 自定义作者头像的 URL
|
||||
authorImage = "https://avatars.githubusercontent.com/u/94612053"
|
||||
|
||||
# 自定义描述
|
||||
description = "风吹云散,云卷云舒"
|
||||
|
||||
# 社交链接列表
|
||||
social = [
|
||||
# GitHub 链接和图标
|
||||
{ title = "GitHub", url = "https://pan.usj.cc", icon = "ri-cloudy-2-line" },
|
||||
# Twitter 链接和图标
|
||||
{ title = "Twitter", url = "https://space.bilibili.com/525472039", icon = "ri-bilibili-line" },
|
||||
# LinkedIn 链接和图标
|
||||
{ title = "LinkedIn", url = "https://github.com/imzql", icon = "ri-github-fill" },
|
||||
]
|
||||
|
||||
# 导航菜单设置
|
||||
[[menus.main]]
|
||||
# 菜单项名称
|
||||
name = 'Home'
|
||||
# 菜单项指向的页面
|
||||
pageRef = '/'
|
||||
# 菜单项的权重(影响显示顺序)
|
||||
weight = 10
|
||||
|
||||
[[menus.main]]
|
||||
name = 'Home'
|
||||
pageRef = '/'
|
||||
weight = 10
|
||||
# 菜单项名称
|
||||
name = 'Posts'
|
||||
# 菜单项指向的页面
|
||||
pageRef = '/posts'
|
||||
# 菜单项的权重(影响显示顺序)
|
||||
weight = 20
|
||||
|
||||
[[menus.main]]
|
||||
name = 'Posts'
|
||||
pageRef = '/posts'
|
||||
weight = 20
|
||||
|
||||
[[menus.main]]
|
||||
name = 'Tags'
|
||||
pageRef = '/tags'
|
||||
weight = 30
|
||||
# 菜单项名称
|
||||
name = 'Tags'
|
||||
# 菜单项指向的页面
|
||||
pageRef = '/tags'
|
||||
# 菜单项的权重(影响显示顺序)
|
||||
weight = 30
|
||||
|
||||
# 模块配置
|
||||
[module]
|
||||
# Hugo 版本要求
|
||||
[module.hugoVersion]
|
||||
# 是否使用扩展版本
|
||||
extended = false
|
||||
# 最低版本要求
|
||||
min = "0.116.0"
|
||||
+20
-10
@@ -1,35 +1,45 @@
|
||||
# 主题的名称
|
||||
name = 'Ying'
|
||||
|
||||
# 主题的许可证类型(如 MIT、GPL 等)
|
||||
license = 'MIT'
|
||||
|
||||
# 主题许可证的链接(通常是 GitHub 仓库中的 LICENSE 文件)
|
||||
licenselink = 'https://github.com/owner/repo/LICENSE'
|
||||
|
||||
# 主题的简短描述
|
||||
description = 'Theme description'
|
||||
|
||||
# The home page of the theme, where the source can be found
|
||||
# 主题的主页链接(通常是主题源码的 GitHub 仓库)
|
||||
homepage = 'https://github.com/owner/repo'
|
||||
|
||||
# If you have a running demo of the theme
|
||||
# 主题的演示站点链接(如果有)
|
||||
demosite = 'https://owner.github.io/repo'
|
||||
|
||||
# Taxonomy terms
|
||||
# 主题的分类标签(用于主题市场或分类展示)
|
||||
tags = ['blog', 'company']
|
||||
|
||||
# 主题的特性列表(描述主题的一些主要功能)
|
||||
features = ['some', 'awesome', 'features']
|
||||
|
||||
# If the theme has multiple authors
|
||||
# 如果主题有多个作者,使用数组来列出每个作者的信息
|
||||
authors = [
|
||||
{name = 'Name of author', homepage = 'Website of author'},
|
||||
{name = 'Name of author', homepage = 'Website of author'}
|
||||
]
|
||||
|
||||
# If the theme has a single author
|
||||
# 如果主题只有一个作者,使用单个作者的信息块
|
||||
[author]
|
||||
# 作者的名字
|
||||
name = 'Your name'
|
||||
# 作者的个人网站或主页
|
||||
homepage = 'Your website'
|
||||
|
||||
# If porting an existing theme
|
||||
# 如果是移植自其他现有主题,提供原始主题的信息
|
||||
[original]
|
||||
# 原始主题的作者名字
|
||||
author = 'Name of original author'
|
||||
# 原始主题作者的个人网站或主页
|
||||
homepage = 'Website of original author'
|
||||
# 原始主题的 GitHub 仓库链接
|
||||
repo = 'https://github.com/owner/repo'
|
||||
|
||||
|
||||
[params]
|
||||
authorImage = "https://usj.cc/usr/uploads/2024/05/1060042780.png"
|
||||
Reference in new issue
Block a user