Skip to content

Commit

Permalink
🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
geekswg committed Jun 5, 2023
1 parent 2d7a0a5 commit a9a50f4
Show file tree
Hide file tree
Showing 2,558 changed files with 151,626 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Bug Report 错误报告"
description: "Create a bug report 创建一个错误报告"
title: "[BUG] Some problem ..."
labels: ["bug"]
body:
- type: textarea
id: describe
attributes:
label: Describe the bug 描述你遇到的错误
description: |
A clear and concise description of what the bug is.
一段简短的对于你遇到的错误的描述。
- type: textarea
id: expected
attributes:
label: Expected behavior 期待的行为
description: |
A clear and concise description of what you expected to happen.
一段简短的对于你期待的行为的描述。
- type: textarea
id: screenshots
attributes:
label: Screenshots 屏幕截图
description: |
If applicable, add screenshots to help explain your problem.
如果可以的话,提供屏幕截图对解决问题很有帮助。
- type: textarea
id: environment
attributes:
label: Build Environment 构建环境
description: |
Please try to use Hugo **extended** version before opening the issue.
请在创建 issue 之前尝试使用 Hugo **extended** 版本。
placeholder: |
- OS: [e.g. Windows 10, macOS, Ubuntu]
- Theme version/commit [e.g. 0.2.0, 2ccba79]
- Hugo version [e.g. 0.69.0]
- type: textarea
id: preview
attributes:
label: Preview Environment 预览环境
placeholder: |
- OS: [e.g. Windows 10, macOS, Ubuntu, iOS, Android]
- Browser [e.g. Chrome, Safari, Firefox]
- type: textarea
id: additional
attributes:
label: Additional Information 补充信息
description: |
Configuration files or front matter code ...
配置文件或者前置参数的代码……
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
blank_issues_enabled: false
contact_links:
- name: Questions 问题讨论
url: https://github.com/orgs/gavinblog/discussions
about: Please ask questions in Discussion. 请在讨论中提问。

- name: Theme Documentation 主题文档
url: https://gavinblog.github.io/stellar/categories/%E5%BB%BA%E7%AB%99/
about: Please read the documentation carefully. 请先仔细阅读主题文档。
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Feature request 功能请求"
description: "Suggest an idea for this project 为这个项目提供一个建议"
title: "[FEATURE] Some feature"
labels: ["enhancement"]
body:
- type: textarea
id: describe
attributes:
label: Describe the feature you want 描述你的功能需求
description: |
Please submit new issues for different features.
请针对不同的功能建议提交新的 issue。
placeholder: |
I recommend adding this feature ...
我希望添加这样的一个功能……
- type: textarea
id: reference
attributes:
label: Useful reference 有价值的参考
description: |
If available, provide useful links to fulfill the feature.
如果可以的话,提供实现这个功能的相关参考链接。
52 changes: 52 additions & 0 deletions .github/workflows/hugo-auto-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 自动部署hugo,到 gh-pages分支
name: github pages
# 触发条件和分支
on:
push:
branches:
- main # Set a branch to deploy

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "latest" #
extended: true

- name: Build
run: hugo --minify

# 自动发布到当前仓库的gh-pages分支,如需部署到其它仓库的,参考下面文档修改配置即可
# 更多高级用法查看文档,https://github.com/peaceiris/actions-gh-pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
# 1.如何生成 github_token,github主页,Settings / Developer settings / Personal access tokens (classic)
# 2.github_token 在 仓库 Settings,Actions secrets and variables,设置
# github_token: ${{ secrets.ACCESS_TOKEN }} 无需自定义
# GITHUB_TOKEN secret to authenticate in your workflow. So, you can start to deploy immediately without any configuration.
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

# Deploy to external repository external_repository
# 发布到其他仓库的配置,注意必须使用deploy_key,获取和设置方法同上。
#deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
#external_repository: username/external-repository
#publish_branch: your-branch # default: gh-pages
#publish_dir: ./public

# 以下配置可忽悠,测试功能
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: ${{ github.event.head_commit.message }}
#full_commit_message: ${{ github.event.head_commit.message }}
tag_name: ${{ steps.prepare_tag.outputs.DEPLOY_TAG_NAME }}
tag_message: 'Deployment ${{ github.ref_name }}'
Empty file added .hugo_build.lock
Empty file.
6 changes: 6 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

50 changes: 50 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
baseURL = "https://geekswg.js.cool/"
languageCode = "zh-CN"
title = "毕少侠导航 By WebStack-Hugo 网址导航" #

theme = "WebStack-Hugo"
preserveTaxonomyNames = true
disablePathToLower = true
hasCJKLanguage = true
publishDir = "public" # 站点静态文件保存目录


[params]
author = "毕少侠-geekswg"
description = "毕少侠 by geekswg Webstack-Hugo 网址导航 | Hugo 主题 BY Bio IT 爱好者"
upload = "https://geekswg.js.cool/notepad/" # 左侧导航栏的"网站提交"
about = "https://geekswg.js.cool/" # 左侧导航栏的"关于导航"页面(./about)
repository = "https://github.com/shenweiyan/WebStack-Hugo"
enablePreLoad = true # 网站完全打开前预加载动画
textPreLoad = "毕少侠 ~ Hugo 网址导航主题" # 预加载的动画文字, 只有当enablePreLoad=true时生效
expandSidebar = false # 默认展开左侧边导航栏
logosPath = "/imgs/logos" # 网站每个导航地址logo存放地址
defaultLogo = "/imgs/logos/default.webp" # logo图片资源不存在或者错误时, 默认显示的logo; 该参数如为空,将会一直加载对应的logo,直至成功
nightMode = false # 默认站点为深色(夜间)模式
yiyan = true # 默认启用一言服务

[params.seo]
baiduhmid = 'efccc04cb44fc49faddac5876180b369' # 百度统计 hm.src 的 ID
baiduSiteVer = 'codeva-cCAOSG8MBO' # 百度HTML标签验证(baidu-site-verification)
tj51laid = '' # 51.LA 网站统计
tj51lack = ''
GoogleAdsClient = '' # Google AdSense

[params.qweather]
key = "085791e805a24491b43b06cf58ab31e7"

[params.images]
favicon = "/imgs/favicon.png"
searchImageL = "assets/images/bg-dna.jpg" # 搜索部分浅色背景图
searchImageD = "assets/images/bg-dna.jpg" # 搜索部分深色背景图
logoExpandLight = "assets/images/bt8-expand-light.png"
logoExpandDark = "assets/images/bt8-expand-dark.png"
logoCollapseLight = "/imgs/favicon.png"
logoCollapseDark = "/imgs/favicon.png"

[markup.goldmark.renderer]
unsafe = true

[params.footer]
# '本站内容源自互联网,如有内容侵犯了你的权益,请联系删除相关内容,联系邮箱:shumlab@foxmail.com <br/>&copy; 2010 - {year} By [WebStack-Hugo](https://github.com/shenweiyan/WebStack-Hugo) | [Bio IT 爱好者](https://www.bioitee.com/) | [粤ICP备16023717号](http://beian.miit.gov.cn/)<br/>'
copyright = '本站内容源自互联网,如有内容侵犯了你的权益,请联系删除相关内容,联系邮箱:geekswg@qq.com <br/>&copy; 2010 - {year} By [WebStack-Hugo](https://github.com/shenweiyan/WebStack-Hugo) | [毕少侠 - geekswg](https://geekswg.js.cool/) | <br/>'
33 changes: 33 additions & 0 deletions content/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: "关于网站"
date: 2020-07-28T19:27:08+08:00
draft: false
---

#### 这是 Hugo 版 WebStack 主题

本项目是基于**纯静态**的网址导航网站 [webstack.cc](https://github.com/WebStackPage/WebStackPage.github.io) 制作的 [Hugo](https://gohugo.io/) 主题,其中部分代码参考了以下几个开源项目:<br/><br/>

- [https://github.com/liutongxu/liutongxu.github.io](https://github.com/liutongxu/liutongxu.github.io)
- [https://github.com/iplaycode/webstack-hugo](https://github.com/iplaycode/webstack-hugo)

<br/>

主题安装后,将 exampleSite 目录下的文件复制到 hugo 站点根目录,根据需要把 config.toml 的一些信息改成自己的,导航的网址信息可通过 data 目录下 webstack.yml 修改。

这是一个开源的公益项目,你可以拿来制作自己的网址导航,也可以做与导航无关的网站。

WebStack 有非常多的魔改版本,这是其中一个。如果你对本主题进行了一些个性化调整,欢迎来本项目中 issue 分享一下!

<br/>

#### 主题开源地址

[https://github.com/shenweiyan/webstack-hugo](https://github.com/shenweiyan/webstack-hugo)

<br/>

#### 主题演示地址

- [https://nav.bioitee.com](https://nav.bioitee.com)
- [https://shenweiyan.github.io/webstack-hugo](https://shenweiyan.github.io/webstack-hugo)
14 changes: 14 additions & 0 deletions data/friendlinks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- title: 毕少侠-Hugo
url: https://geekswg.js.cool/
description: 毕少侠也在江湖 by FixIt

- title: 毕少侠-Hexo
url: https://hexo.geekswg.top/
description: 毕少侠也在江湖 by Hexo Anzhiyu

- title: BioIT爱好者
url: https://bioitee.com/
description: Bio & IT 网址导航
- title: 个人博客
url: https://shen.bioitee.com/
description: 个人博客
21 changes: 21 additions & 0 deletions data/headers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- item: 首页
icon: fa fa-home
link: "./"

- item: 作者
icon: fa fa-book
link: https://geekswg.js.cool/about


- item: 起始页
icon: fa fa-home
link: "https://home.geekswg.top"

- item: 配置
icon: fa fa-cog
link: ""
list:
- name: 源码
url: "https://github.com/gavinblog/nav-hugo"
- name: 图标
url: "#"

0 comments on commit a9a50f4

Please sign in to comment.