mirror of
https://github.com/ditatompel/insights.git
synced 2025-01-08 03:12:06 +07:00
Append PWD into the security.funcs.getenv for Hugo versions less than v0.112.0
This commit is contained in:
commit
072656fbd7
201 changed files with 4147 additions and 0 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
.hugo_build.lock
|
||||
hugo_stats.json
|
||||
package-json.lock
|
||||
public/
|
||||
node_modules/
|
15
.mergify.yml
Normal file
15
.mergify.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
pull_request_rules:
|
||||
- name: automatic merge for Renovate pull requests
|
||||
conditions:
|
||||
- author=renovate[bot]
|
||||
# - check-success=build
|
||||
actions:
|
||||
merge:
|
||||
method: rebase
|
||||
|
||||
- name: Automatic merge on approval
|
||||
conditions:
|
||||
- "#approved-reviews-by>=1"
|
||||
actions:
|
||||
merge:
|
||||
method: rebase
|
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
###############
|
||||
# Build Stage #
|
||||
###############
|
||||
FROM hugomods/hugo:exts as builder
|
||||
# Base URL
|
||||
ARG HUGO_BASEURL=
|
||||
ENV HUGO_BASEURL=${HUGO_BASEURL}
|
||||
# Module Proxy
|
||||
ARG HUGO_MODULE_PROXY=
|
||||
ENV HUGO_MODULE_PROXY=${HUGO_MODULE_PROXY}
|
||||
# Build site
|
||||
COPY . /src
|
||||
RUN hugo --minify --gc --enableGitInfo
|
||||
# Set the fallback 404 page if defaultContentLanguageInSubdir is enabled, please replace the `en` with your default language code.
|
||||
RUN cp ./public/en/404.html ./public/404.html
|
||||
|
||||
###############
|
||||
# Final Stage #
|
||||
###############
|
||||
FROM hugomods/hugo:nginx
|
||||
COPY --from=builder /src/public /site
|
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2023 Razon Yang
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
51
README.md
Normal file
51
README.md
Normal file
|
@ -0,0 +1,51 @@
|
|||
# HB Theme Template
|
||||
|
||||
The starter theme template of [HB Framework](https://hbstack.dev/), live demo: https://theme.hbstack.dev/.
|
||||
|
||||
## Documentations
|
||||
|
||||
| English | 简体中文 |
|
||||
| ------- | -------- |
|
||||
| [Prerequisites](https://hbstack.dev/en/docs/getting-started/prerequisites/) | [先决条件](https://hbstack.dev/zh-hans/docs/getting-started/prerequisites/) |
|
||||
| [Installation](https://hbstack.dev/en/docs/getting-started/installation/) | [安裝](https://hbstack.dev/zh-hans/docs/getting-started/installation/) |
|
||||
| [Configuration](https://hbstack.dev/en/docs/configuration/) | [配置](https://hbstack.dev/zh-hans/docs/configuration/) |
|
||||
| [Content](https://hbstack.dev/en/docs/content/) | [内容](https://hbstack.dev/zh-hans/docs/content/) |
|
||||
| [Deployment](https://hbstack.dev/en/docs/deployment/) | [部署](https://hbstack.dev/zh-hans/docs/deployment/) |
|
||||
| [Modules](https://hbstack.dev/en/docs/modules/) | [模块](https://hbstack.dev/zh-hans/docs/modules/) |
|
||||
|
||||
## Features
|
||||
|
||||
- **Fast** and **SEO** friendly: [PageSpeed Insight](https://pagespeed.web.dev/analysis?url=https://theme.hbstack.dev/en/) scored perfect :100: in all four metrics on mobile and desktop.
|
||||
- **Multi-purpose**: blog, project documentations, digital garden, gallery, landing pages and so on.
|
||||
- **Responsive**: mobile first, built on top of Bootstrap v5.3.
|
||||
- :ice_cube: **Modular** and **flexible**: extend features via various modules.
|
||||
- :first_quarter_moon: **Dark mode**: light, dark or auto (follow system).
|
||||
- :mag: **Search**: powerful client side *fuzzy* search that allows *filtering* and *sorting* of results, as well as searching from all multilingual sites.
|
||||
- **PurgeCSS**: remove unused CSS.
|
||||
- :rocket: **PWA**:
|
||||
- Installable: add site to home screen.
|
||||
- Offline available: offline page and offline image.
|
||||
- Allow precaching resources, such as CSS, JS and fonts.
|
||||
- **Advanced**:
|
||||
- Custom SCSS [variables](https://github.com/hbstack/theme/blob/main/assets/hb/modules/custom/scss/variables.tmpl.scss) and [style](https://github.com/hbstack/theme/blob/main/assets/hb/modules/custom/scss/index.scss).
|
||||
- Custom [JavaScript](https://github.com/hbstack/theme/blob/main/assets/hb/modules/custom/js/index.ts).
|
||||
- Custom HTML markup:
|
||||
- [Before the end of `<head>`](https://github.com/hbstack/theme/blob/main/layouts/partials/hugopress/modules/hb-custom/hooks/head-end.html)
|
||||
- [Before the end of `<body>`](https://github.com/hbstack/theme/blob/main/layouts/partials/hugopress/modules/hb-custom/hooks/body-end.html)
|
||||
- :framed_picture: **Images Processing**: process images via URL query string and fragment, such as alignment, resizing, cropping and so on, friendly to Markdown.
|
||||
- :computer: **Code block panel**: expand toggle, code copy button, line number toggle and wrap toggle.
|
||||
- **Menus**: supports header menus and footer menus.
|
||||
- Related posts slide.
|
||||
- :framed_picture: Image viewer: zoom in/out image.
|
||||
- :card_index_dividers: **Archives**: group by year and month.
|
||||
- :memo: **Multiple authors**: articles can be co-authored.
|
||||
- :globe_with_meridians: **Multilingual**.
|
||||
- :arrow_left: **RTL**: supports Right-to-Left languages.
|
||||
- :arrow_up: Back/Return to top button.
|
||||
- Social links: supports header and footer social links.
|
||||
- Content: supports KaTex (math), Mermaid (diagrams) and Bootstrap shortcodes.
|
||||
- ...
|
||||
|
||||
## Screenshot
|
||||
|
||||
![Screenshot](https://raw.githubusercontent.com/hbstack/theme/main/images/screenshot.png)
|
32
archetypes/blog.md
Normal file
32
archetypes/blog.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
description:
|
||||
noindex: false
|
||||
featured: false
|
||||
pinned: false
|
||||
# comments: false
|
||||
series:
|
||||
# -
|
||||
categories:
|
||||
# -
|
||||
tags:
|
||||
# -
|
||||
images:
|
||||
# -
|
||||
# menu:
|
||||
# main:
|
||||
# weight: 100
|
||||
# params:
|
||||
# icon:
|
||||
# vendor: bs
|
||||
# name: book
|
||||
# color: '#e24d0e'
|
||||
---
|
||||
|
||||
Summary.
|
||||
|
||||
<!--more-->
|
||||
|
||||
Content.
|
36
archetypes/docs.md
Normal file
36
archetypes/docs.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
# linkTitle:
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
description:
|
||||
noindex: false
|
||||
# comments: false
|
||||
nav_weight: 1000
|
||||
# nav_icon:
|
||||
# vendor: bootstrap
|
||||
# name: toggles
|
||||
# color: '#e24d0e'
|
||||
series:
|
||||
- Docs
|
||||
categories:
|
||||
# -
|
||||
tags:
|
||||
# -
|
||||
images:
|
||||
# -
|
||||
# menu:
|
||||
# main:
|
||||
# weight: 100
|
||||
# params:
|
||||
# icon:
|
||||
# vendor: bs
|
||||
# name: book
|
||||
# color: '#e24d0e'
|
||||
---
|
||||
|
||||
Summary.
|
||||
|
||||
<!--more-->
|
||||
|
||||
Content.
|
12
archetypes/gallery.md
Normal file
12
archetypes/gallery.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
description:
|
||||
resources:
|
||||
- src: foo.jpg
|
||||
title: Foo
|
||||
params:
|
||||
author:
|
||||
source:
|
||||
---
|
35
archetypes/tutorials.md
Normal file
35
archetypes/tutorials.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
# linkTitle:
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
description:
|
||||
noindex: false
|
||||
# comments: false
|
||||
nav_weight: 1000
|
||||
# nav_icon:
|
||||
# vendor: bootstrap
|
||||
# name: toggles
|
||||
# color: '#e24d0e'
|
||||
series:
|
||||
- Tutorial
|
||||
categories:
|
||||
# -
|
||||
tags:
|
||||
# -
|
||||
images:
|
||||
# menu:
|
||||
# main:
|
||||
# weight: 100
|
||||
# params:
|
||||
# icon:
|
||||
# vendor: bs
|
||||
# name: book
|
||||
# color: '#e24d0e'
|
||||
---
|
||||
|
||||
Summary.
|
||||
|
||||
<!--more-->
|
||||
|
||||
Content.
|
1
assets/.gitignore
vendored
Normal file
1
assets/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
jsconfig.json
|
BIN
assets/favicon.ico
Normal file
BIN
assets/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
1
assets/hb/modules/custom/js/index.ts
Normal file
1
assets/hb/modules/custom/js/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
// This script will be compiled into the JS bundle automatically.
|
7
assets/hb/modules/custom/purgecss.config.toml
Normal file
7
assets/hb/modules/custom/purgecss.config.toml
Normal file
|
@ -0,0 +1,7 @@
|
|||
classes = []
|
||||
ids = []
|
||||
tags = []
|
||||
attributes = []
|
||||
safelist_deep = []
|
||||
safelist_greedy = []
|
||||
safelist_standard = []
|
7
assets/hb/modules/custom/scss/index.scss
Normal file
7
assets/hb/modules/custom/scss/index.scss
Normal file
|
@ -0,0 +1,7 @@
|
|||
// This SCSS styles will be compiled into the CSS bundle automatically.
|
||||
|
||||
/*! purgecss start ignore */
|
||||
|
||||
/*! PUT YOU STYLE HERE TO AVOID GETTING REMOVING BY PURGECSS. */
|
||||
|
||||
/*! purgecss end ignore */
|
4
assets/hb/modules/custom/scss/variables.tmpl.scss
Normal file
4
assets/hb/modules/custom/scss/variables.tmpl.scss
Normal file
|
@ -0,0 +1,4 @@
|
|||
// Override the Bootstrap and HB SCSS variables.
|
||||
// See https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss.
|
||||
// See https://github.com/twbs/bootstrap/blob/main/scss/_variables-dark.scss.
|
||||
// $primary: red;
|
BIN
assets/images/logo.png
Normal file
BIN
assets/images/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 47 KiB |
BIN
assets/images/pwa/offline.png
Normal file
BIN
assets/images/pwa/offline.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
35
assets/mask-icon.svg
Normal file
35
assets/mask-icon.svg
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||
width="1000.000000pt" height="1000.000000pt" viewBox="0 0 1000.000000 1000.000000"
|
||||
preserveAspectRatio="xMidYMid meet">
|
||||
|
||||
<g transform="translate(0.000000,1000.000000) scale(0.100000,-0.100000)"
|
||||
fill="#000000" stroke="none">
|
||||
<path d="M0 5000 l0 -5000 5000 0 5000 0 0 5000 0 5000 -5000 0 -5000 0 0
|
||||
-5000z m9000 2625 l0 -1875 -165 0 -165 0 -6 28 c-79 347 -170 604 -314 892
|
||||
-367 734 -946 1313 -1680 1680 -953 477 -2049 524 -3045 133 -957 -376 -1732
|
||||
-1151 -2108 -2108 -79 -200 -126 -356 -181 -597 l-6 -28 -165 0 -165 0 0 1875
|
||||
0 1875 4000 0 4000 0 0 -1875z m-3551 851 c657 -94 1205 -325 1726 -728 155
|
||||
-119 454 -418 573 -573 405 -524 634 -1070 729 -1736 25 -177 25 -701 0 -878
|
||||
-95 -666 -324 -1212 -729 -1736 -119 -155 -418 -454 -573 -573 -524 -405
|
||||
-1070 -634 -1736 -729 -177 -25 -701 -25 -878 0 -666 95 -1212 324 -1736 729
|
||||
-155 119 -454 418 -573 573 -405 524 -634 1070 -729 1736 -25 177 -25 701 0
|
||||
878 95 667 326 1218 729 1735 106 136 316 357 443 467 551 474 1210 761 1935
|
||||
844 169 19 659 13 819 -9z m-4113 -4253 c79 -348 170 -605 314 -893 367 -734
|
||||
946 -1313 1680 -1680 953 -477 2049 -524 3045 -133 957 376 1732 1151 2108
|
||||
2108 79 200 126 356 181 598 l6 27 165 0 165 0 0 -1875 0 -1875 -4000 0 -4000
|
||||
0 0 1875 0 1875 165 0 165 0 6 -27z"/>
|
||||
<path d="M3110 5009 l0 -2781 1143 5 c1140 4 1219 7 1472 42 823 116 1425 637
|
||||
1544 1336 61 357 21 720 -109 994 -177 372 -521 641 -965 755 -70 18 -111 33
|
||||
-113 43 -2 9 31 34 89 67 254 147 466 370 560 590 60 141 81 247 86 436 12
|
||||
384 -86 658 -308 869 -132 125 -311 226 -531 300 -321 107 -601 124 -2010 125
|
||||
l-858 0 0 -2781z m2245 2122 c390 -50 609 -202 682 -471 28 -101 25 -384 -5
|
||||
-503 -56 -226 -163 -363 -365 -468 -103 -53 -198 -85 -332 -111 -104 -20 -151
|
||||
-21 -802 -25 l-693 -4 0 801 0 802 713 -5 c450 -3 745 -9 802 -16z m110 -2211
|
||||
c368 -27 576 -92 775 -245 207 -159 293 -380 293 -755 0 -307 -62 -489 -226
|
||||
-666 -156 -168 -350 -270 -612 -323 -250 -50 -324 -54 -1112 -58 l-743 -5 0
|
||||
1031 0 1031 743 0 c408 0 805 -5 882 -10z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
118
config/_default/hugo.yaml
Normal file
118
config/_default/hugo.yaml
Normal file
|
@ -0,0 +1,118 @@
|
|||
baseURL: https://theme.hbstack.dev/
|
||||
title: HB Starter Theme Template
|
||||
# Copyright, the {year} is the placeholder of this year.
|
||||
copyright: "Copyright © 2022-{year} [Hugo Modules](https://hugomods.com/) and [HB Framework](https://hbstack.dev/). All Rights Reserved."
|
||||
defaultContentLanguage: en
|
||||
defaultContentLanguageInSubdir: true # disable this to remove the default language code from URL, i.e. /en/docs -> /docs.
|
||||
enableRobotsTXT: true
|
||||
timeout: 120s # images processing takes a long time, it's recommended to commit the resources folder for improve the build performance.
|
||||
enableEmoji: true
|
||||
|
||||
permalinks:
|
||||
blog: /blog/:year/:month/:title
|
||||
|
||||
module:
|
||||
# For some regions can not access the proxy.golang.org, i.e. China.
|
||||
# See https://hugomods.com/en/blog/2023/04/go-and-hugo-proxy-servers/ for all available proxy servers.
|
||||
# proxy: https://goproxy.cn,direct
|
||||
|
||||
# The order of module is very important, precedence from top to bottom.
|
||||
imports:
|
||||
# gallery modules.
|
||||
- path: github.com/hbstack/gallery
|
||||
- path: github.com/hbstack/gallery/modules/breadcrumb
|
||||
|
||||
# syntax highlighting, see https://hbstack.dev/en/docs/modules/syntax-highlighting/.
|
||||
# - path: github.com/hbstack/syntax-highlighting/styles/github-dark
|
||||
|
||||
# icons modules
|
||||
- path: github.com/hugomods/icons/vendors/font-awesome
|
||||
# - path: github.com/hugomods/icons/vendors/mdi
|
||||
# - path: github.com/hugomods/icons/vendors/simple-icons
|
||||
# - path: github.com/hugomods/icons/vendors/tabler
|
||||
# - path: github.com/hugomods/icons/vendors/feather
|
||||
|
||||
# blog comments engine
|
||||
- path: github.com/hbstack/blog/modules/giscus
|
||||
# - path: github.com/hbstack/blog/modules/disqus
|
||||
# - path: github.com/hbstack/blog/modules/utterances
|
||||
|
||||
# blog table of contents scrollspy
|
||||
- path: github.com/hbstack/blog/modules/toc-scrollspy
|
||||
|
||||
# blog content panel
|
||||
- path: github.com/hbstack/blog/modules/content-panel
|
||||
|
||||
# docs comments engine
|
||||
- path: github.com/hbstack/docs/modules/giscus
|
||||
# - path: github.com/hbstack/docs/modules/utterances
|
||||
# - path: github.com/hbstack/docs/modules/disqus
|
||||
|
||||
# docs table of contents scrollspy
|
||||
- path: github.com/hbstack/docs/modules/toc-scrollspy
|
||||
|
||||
# docs content panel
|
||||
- path: github.com/hbstack/docs/modules/content-panel
|
||||
|
||||
# other modules
|
||||
# - path: github.com/hugomods/google-analytics
|
||||
# - path: github.com/hugomods/google-adsense
|
||||
|
||||
# recommended modules
|
||||
# check which modules were imported by recommended module by "hugo mod graph | grep recommended".
|
||||
# see also https://hbstack.dev/en/docs/modules/meta/.
|
||||
# to remove unused modules, you need to replace the recommended module with modules your need.
|
||||
- path: github.com/hbstack/meta/recommended
|
||||
|
||||
outputs:
|
||||
home:
|
||||
- HTML
|
||||
- Offline # required by PWA module for displaying the offline pages.
|
||||
- RSS
|
||||
- SearchIndex # required by search module.
|
||||
- WebAppManifest # required by PWA module to make your site installable.
|
||||
|
||||
taxonomies:
|
||||
authors: authors # multiple authors.
|
||||
tags: tags
|
||||
categories: categories
|
||||
series: series
|
||||
|
||||
build:
|
||||
writeStats: true # required by PurgeCSS.
|
||||
|
||||
markup:
|
||||
goldmark:
|
||||
renderer:
|
||||
unsafe: true
|
||||
highlight:
|
||||
noClasses: false
|
||||
lineNos: true
|
||||
lineNumbersInTable: false
|
||||
|
||||
# see https://gohugo.io/content-management/related/#configure-related-content
|
||||
related:
|
||||
includeNewer: true
|
||||
indices:
|
||||
- name: keywords
|
||||
weight: 100
|
||||
- name: tags
|
||||
weight: 80
|
||||
- name: categories
|
||||
weight: 60
|
||||
- name: series
|
||||
weight: 60
|
||||
- name: authors
|
||||
weight: 10
|
||||
- name: date
|
||||
weight: 10
|
||||
threshold: 10 # for testing, increase it to suit your case.
|
||||
toLower: false
|
||||
|
||||
security:
|
||||
funcs:
|
||||
getenv:
|
||||
- ^HUGO
|
||||
- CI$
|
||||
- PWD
|
||||
|
8
config/_default/languages.yaml
Normal file
8
config/_default/languages.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
en:
|
||||
languageName: English
|
||||
weight: 1
|
||||
|
||||
zh-hans:
|
||||
languageName: 简体中文
|
||||
title: HB 博客主题模板
|
||||
weight: 2
|
70
config/_default/menus.en.yaml
Normal file
70
config/_default/menus.en.yaml
Normal file
|
@ -0,0 +1,70 @@
|
|||
main:
|
||||
- name: Support
|
||||
identifier: support
|
||||
weight: 100
|
||||
url: https://github.com/hbstack
|
||||
params:
|
||||
header: The HB support community.
|
||||
icon:
|
||||
vendor: font-awesome-solid
|
||||
name: headset
|
||||
|
||||
- name: Documentations
|
||||
parent: support
|
||||
url: https://hbstack.dev/
|
||||
weight: 1
|
||||
params:
|
||||
icon:
|
||||
vendor: bs
|
||||
name: book
|
||||
className: text-primary
|
||||
description: The documentations.
|
||||
|
||||
- identifier: support-divider
|
||||
parent: support
|
||||
weight: 10
|
||||
params:
|
||||
divider: true
|
||||
|
||||
- name: GitHub
|
||||
parent: support
|
||||
url: https://github.com/hbstack
|
||||
weight: 11
|
||||
params:
|
||||
icon:
|
||||
vendor: fab
|
||||
name: github
|
||||
description: The code repository.
|
||||
|
||||
- name: Discussion
|
||||
parent: support
|
||||
url: https://github.com/orgs/hbstack/discussions
|
||||
weight: 12
|
||||
params:
|
||||
icon:
|
||||
vendor: font-awesome-regular
|
||||
name: comments
|
||||
color: green
|
||||
description: Ask questions and share your ideas.
|
||||
|
||||
- name: Bug Report
|
||||
parent: support
|
||||
url: https://github.com/orgs/hbstack/discussions/new?category=issues-and-bugs
|
||||
weight: 13
|
||||
params:
|
||||
icon:
|
||||
vendor: font-awesome-solid
|
||||
name: bug
|
||||
color: red
|
||||
description: Tell us about a bug or issue.
|
||||
|
||||
- name: Feature Request
|
||||
parent: support
|
||||
url: https://github.com/orgs/hbstack/discussions/new?category=ideas
|
||||
weight: 14
|
||||
params:
|
||||
icon:
|
||||
vendor: font-awesome-regular
|
||||
name: lightbulb
|
||||
color: orange
|
||||
description: Suggest new or updated features.
|
80
config/_default/menus.zh-hans.yaml
Normal file
80
config/_default/menus.zh-hans.yaml
Normal file
|
@ -0,0 +1,80 @@
|
|||
main:
|
||||
- name: 支持
|
||||
identifier: support
|
||||
weight: 100
|
||||
url: https://github.com/hbstack
|
||||
params:
|
||||
header: HB 支持社区。
|
||||
icon:
|
||||
vendor: font-awesome-solid
|
||||
name: headset
|
||||
|
||||
- name: GitHub
|
||||
parent: support
|
||||
url: https://github.com/hbstack
|
||||
weight: 1
|
||||
params:
|
||||
icon:
|
||||
vendor: fab
|
||||
name: github
|
||||
description: 代码仓库。
|
||||
|
||||
- name: 讨论
|
||||
parent: support
|
||||
url: https://github.com/hbstack/discussions
|
||||
weight: 2
|
||||
params:
|
||||
icon:
|
||||
vendor: font-awesome-regular
|
||||
name: comments
|
||||
color: green
|
||||
description: 提问题和分享你的想法。
|
||||
|
||||
- name: Bug 反馈
|
||||
parent: support
|
||||
url: https://github.com/hbstack/issues/new
|
||||
weight: 3
|
||||
params:
|
||||
icon:
|
||||
vendor: font-awesome-solid
|
||||
name: bug
|
||||
color: red
|
||||
description: 向我们反馈一个错误或问题。
|
||||
|
||||
- name: 功能提议
|
||||
parent: support
|
||||
url: https://github.com/hbstack/issues/new
|
||||
weight: 4
|
||||
params:
|
||||
icon:
|
||||
vendor: font-awesome-regular
|
||||
name: lightbulb
|
||||
color: orange
|
||||
description: 建议新的或需要改进的功能。
|
||||
|
||||
- name: Sponsor
|
||||
identifier: sponsor
|
||||
parent: support
|
||||
weight: 10
|
||||
params:
|
||||
divider: true
|
||||
|
||||
- name: PayPal
|
||||
weight: 11
|
||||
parent: support
|
||||
url: https://paypal.me/razonyang
|
||||
params:
|
||||
description: 通过 PayPal 赞助我们。
|
||||
icon:
|
||||
vendor: simple-icons
|
||||
name: paypal
|
||||
|
||||
- name: Ko-fi
|
||||
weight: 12
|
||||
parent: support
|
||||
url: https://ko-fi.com/razonyang
|
||||
params:
|
||||
description: 通过 Ko-fi 赞助我们。
|
||||
icon:
|
||||
vendor: simple-icons
|
||||
name: kofi
|
78
config/_default/params.yaml
Normal file
78
config/_default/params.yaml
Normal file
|
@ -0,0 +1,78 @@
|
|||
description: The starter theme template of HB (Hugo Bootstrap) Framework.
|
||||
|
||||
hb:
|
||||
# js_bundle_name: main # the JS bundle name.
|
||||
# css_bundle_name: main # the CSS bundle name.
|
||||
header:
|
||||
brand: HB # the brand name, leave it empty to use site's title.
|
||||
logo_bg: '#712cf9' # logo background color, used by logo with transparent background.
|
||||
# see https://hbstack.dev/en/docs/modules/socials/.
|
||||
socials:
|
||||
github: hbstack
|
||||
twitter: razonyang
|
||||
footer:
|
||||
# see https://hbstack.dev/en/docs/modules/socials/.
|
||||
socials:
|
||||
github: hbstack
|
||||
twitter: razonyang
|
||||
blog:
|
||||
paginate: 12 # paginate.
|
||||
# post_thumbnail: false # whether to show the thumbnails.
|
||||
# post_date_format: ":date_long" # see https://gohugo.io/functions/dateformat/#datetime-formatting-layouts.
|
||||
home: # homepage settings.
|
||||
featured_posts: 5 # the number of the featured posts.
|
||||
main_sections: # leave it empty to include all regular pages.
|
||||
- docs
|
||||
- blog
|
||||
- tutorials
|
||||
giscus:
|
||||
repo: hbstack/theme
|
||||
repo_id: R_kgDOJP3qtA
|
||||
category_id: DIC_kwDOJP3qtM4CVavM
|
||||
docs:
|
||||
giscus:
|
||||
repo: hbstack/theme
|
||||
repo_id: R_kgDOJP3qtA
|
||||
category_id: DIC_kwDOJP3qtM4CVavM
|
||||
content_panel:
|
||||
repo:
|
||||
service: github # github or gitlab.
|
||||
repo: hbstack/theme
|
||||
branch: main
|
||||
# subpath: exampleSite
|
||||
# gallery:
|
||||
# thumbnail_size: "x640"
|
||||
|
||||
seo:
|
||||
favicons: # see https://hugomods.com/en/docs/seo/#favicons-module
|
||||
icon: images/logo.png # use logo as favicon.
|
||||
|
||||
# PWA settings, see https://hugomods.com/en/docs/pwa/#site-parameters.
|
||||
pwa:
|
||||
debug: false
|
||||
manifest:
|
||||
background_color: '#712cf9'
|
||||
theme_color: '#712cf9'
|
||||
short_name: 'HB Theme'
|
||||
|
||||
# see https://hugomods.com/en/docs/search/#site-parameters
|
||||
search:
|
||||
stall_threshold: 300
|
||||
min_match_char_length: 2
|
||||
case_sensitive: false
|
||||
# shortcut_search: ["/"]
|
||||
|
||||
mermaid:
|
||||
# replace it with other CDNs or self-hosted URLs.
|
||||
js_url: https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.esm.min.mjs
|
||||
|
||||
hugopress:
|
||||
modules:
|
||||
hb-custom:
|
||||
hooks:
|
||||
# see layouts/partials/hugopress/modules/hb-custom/hooks/head-end.html.
|
||||
head-end:
|
||||
cacheable: true
|
||||
# see layouts/partials/hugopress/modules/hb-custom/hooks/body-end.html.
|
||||
body-end:
|
||||
cacheable: true
|
0
config/development/hugo.yaml
Normal file
0
config/development/hugo.yaml
Normal file
10
config/development/params.yaml
Normal file
10
config/development/params.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
pwa:
|
||||
caches:
|
||||
font:
|
||||
strategy: network-first
|
||||
image:
|
||||
strategy: network-first
|
||||
script:
|
||||
strategy: network-first
|
||||
style:
|
||||
strategy: network-first
|
4
config/development/server.yaml
Normal file
4
config/development/server.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
redirects:
|
||||
- from: /**
|
||||
to: /404.html
|
||||
status: 404
|
4
config/production/hugo.yaml
Normal file
4
config/production/hugo.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
# see https://hugomods.com/en/docs/google-analytics/.
|
||||
# googleAnalytics = 'G-XXXXXXXXXX' # Google Analytics, please make sure you've imported the Google Analytics module.
|
||||
|
||||
# disqusShortname: XXXXXX # The Disqus shortname.
|
2
config/production/params.yaml
Normal file
2
config/production/params.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
# see https://hugomods.com/en/docs/google-adsense/.
|
||||
# google_adsense = 'ca-pub-XXXXXXXXXXXXXXXX' # Please make that the Google AdSense module was imported.
|
11
content/_index.md
Normal file
11
content/_index.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
title: HB Theme Template
|
||||
# menu:
|
||||
# main:
|
||||
# name: Home
|
||||
# weight: 1
|
||||
# params:
|
||||
# icon:
|
||||
# vendor: bs
|
||||
# name: house
|
||||
---
|
11
content/_index.zh-hans.md
Normal file
11
content/_index.zh-hans.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
title: HB 主题模板
|
||||
# menu:
|
||||
# main:
|
||||
# name: 主页
|
||||
# weight: 1
|
||||
# params:
|
||||
# icon:
|
||||
# vendor: bs
|
||||
# name: house
|
||||
---
|
3
content/archives/2021/01/_index.md
Normal file
3
content/archives/2021/01/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "Jan"
|
||||
---
|
3
content/archives/2021/01/_index.zh-hans.md
Normal file
3
content/archives/2021/01/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "一月"
|
||||
---
|
3
content/archives/2021/02/_index.md
Normal file
3
content/archives/2021/02/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "Feb"
|
||||
---
|
3
content/archives/2021/02/_index.zh-hans.md
Normal file
3
content/archives/2021/02/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "二月"
|
||||
---
|
3
content/archives/2021/03/_index.md
Normal file
3
content/archives/2021/03/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Mar
|
||||
---
|
3
content/archives/2021/03/_index.zh-hans.md
Normal file
3
content/archives/2021/03/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 三月
|
||||
---
|
3
content/archives/2021/04/_index.md
Normal file
3
content/archives/2021/04/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Apr
|
||||
---
|
3
content/archives/2021/04/_index.zh-hans.md
Normal file
3
content/archives/2021/04/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 四月
|
||||
---
|
3
content/archives/2021/05/_index.md
Normal file
3
content/archives/2021/05/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: May
|
||||
---
|
3
content/archives/2021/05/_index.zh-hans.md
Normal file
3
content/archives/2021/05/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 五月
|
||||
---
|
3
content/archives/2021/06/_index.md
Normal file
3
content/archives/2021/06/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Jun
|
||||
---
|
3
content/archives/2021/06/_index.zh-hans.md
Normal file
3
content/archives/2021/06/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 六月
|
||||
---
|
3
content/archives/2021/07/_index.md
Normal file
3
content/archives/2021/07/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: July
|
||||
---
|
3
content/archives/2021/07/_index.zh-hans.md
Normal file
3
content/archives/2021/07/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 七月
|
||||
---
|
3
content/archives/2021/08/_index.md
Normal file
3
content/archives/2021/08/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Aug
|
||||
---
|
3
content/archives/2021/08/_index.zh-hans.md
Normal file
3
content/archives/2021/08/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 八月
|
||||
---
|
3
content/archives/2021/09/_index.md
Normal file
3
content/archives/2021/09/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Sep
|
||||
---
|
3
content/archives/2021/09/_index.zh-hans.md
Normal file
3
content/archives/2021/09/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 九月
|
||||
---
|
3
content/archives/2021/10/_index.md
Normal file
3
content/archives/2021/10/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Oct
|
||||
---
|
3
content/archives/2021/10/_index.zh-hans.md
Normal file
3
content/archives/2021/10/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 十月
|
||||
---
|
3
content/archives/2021/11/_index.md
Normal file
3
content/archives/2021/11/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Nov
|
||||
---
|
3
content/archives/2021/11/_index.zh-hans.md
Normal file
3
content/archives/2021/11/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 十一月
|
||||
---
|
3
content/archives/2021/12/_index.md
Normal file
3
content/archives/2021/12/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Dec
|
||||
---
|
3
content/archives/2021/12/_index.zh-hans.md
Normal file
3
content/archives/2021/12/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 十二月
|
||||
---
|
3
content/archives/2021/_index.md
Normal file
3
content/archives/2021/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 2021
|
||||
---
|
3
content/archives/2021/_index.zh-hans.md
Normal file
3
content/archives/2021/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 2021
|
||||
---
|
3
content/archives/2022/01/_index.md
Normal file
3
content/archives/2022/01/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "Jan"
|
||||
---
|
3
content/archives/2022/01/_index.zh-hans.md
Normal file
3
content/archives/2022/01/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "一月"
|
||||
---
|
3
content/archives/2022/02/_index.md
Normal file
3
content/archives/2022/02/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "Feb"
|
||||
---
|
3
content/archives/2022/02/_index.zh-hans.md
Normal file
3
content/archives/2022/02/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "二月"
|
||||
---
|
3
content/archives/2022/03/_index.md
Normal file
3
content/archives/2022/03/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Mar
|
||||
---
|
3
content/archives/2022/03/_index.zh-hans.md
Normal file
3
content/archives/2022/03/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 三月
|
||||
---
|
3
content/archives/2022/04/_index.md
Normal file
3
content/archives/2022/04/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Apr
|
||||
---
|
3
content/archives/2022/04/_index.zh-hans.md
Normal file
3
content/archives/2022/04/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 四月
|
||||
---
|
3
content/archives/2022/05/_index.md
Normal file
3
content/archives/2022/05/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: May
|
||||
---
|
3
content/archives/2022/05/_index.zh-hans.md
Normal file
3
content/archives/2022/05/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 五月
|
||||
---
|
3
content/archives/2022/06/_index.md
Normal file
3
content/archives/2022/06/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Jun
|
||||
---
|
3
content/archives/2022/06/_index.zh-hans.md
Normal file
3
content/archives/2022/06/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 六月
|
||||
---
|
3
content/archives/2022/07/_index.md
Normal file
3
content/archives/2022/07/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: July
|
||||
---
|
3
content/archives/2022/07/_index.zh-hans.md
Normal file
3
content/archives/2022/07/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 七月
|
||||
---
|
3
content/archives/2022/08/_index.md
Normal file
3
content/archives/2022/08/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Aug
|
||||
---
|
3
content/archives/2022/08/_index.zh-hans.md
Normal file
3
content/archives/2022/08/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 八月
|
||||
---
|
3
content/archives/2022/09/_index.md
Normal file
3
content/archives/2022/09/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Sep
|
||||
---
|
3
content/archives/2022/09/_index.zh-hans.md
Normal file
3
content/archives/2022/09/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 九月
|
||||
---
|
3
content/archives/2022/10/_index.md
Normal file
3
content/archives/2022/10/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Oct
|
||||
---
|
3
content/archives/2022/10/_index.zh-hans.md
Normal file
3
content/archives/2022/10/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 十月
|
||||
---
|
3
content/archives/2022/11/_index.md
Normal file
3
content/archives/2022/11/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Nov
|
||||
---
|
3
content/archives/2022/11/_index.zh-hans.md
Normal file
3
content/archives/2022/11/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 十一月
|
||||
---
|
3
content/archives/2022/12/_index.md
Normal file
3
content/archives/2022/12/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Dec
|
||||
---
|
3
content/archives/2022/12/_index.zh-hans.md
Normal file
3
content/archives/2022/12/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 十二月
|
||||
---
|
3
content/archives/2022/_index.md
Normal file
3
content/archives/2022/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 2022
|
||||
---
|
3
content/archives/2022/_index.zh-hans.md
Normal file
3
content/archives/2022/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 2022
|
||||
---
|
3
content/archives/2023/01/_index.md
Normal file
3
content/archives/2023/01/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "Jan"
|
||||
---
|
3
content/archives/2023/01/_index.zh-hans.md
Normal file
3
content/archives/2023/01/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "一月"
|
||||
---
|
3
content/archives/2023/02/_index.md
Normal file
3
content/archives/2023/02/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "Feb"
|
||||
---
|
3
content/archives/2023/02/_index.zh-hans.md
Normal file
3
content/archives/2023/02/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "二月"
|
||||
---
|
3
content/archives/2023/03/_index.md
Normal file
3
content/archives/2023/03/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Mar
|
||||
---
|
3
content/archives/2023/03/_index.zh-hans.md
Normal file
3
content/archives/2023/03/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 三月
|
||||
---
|
3
content/archives/2023/04/_index.md
Normal file
3
content/archives/2023/04/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Apr
|
||||
---
|
3
content/archives/2023/04/_index.zh-hans.md
Normal file
3
content/archives/2023/04/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 四月
|
||||
---
|
3
content/archives/2023/05/_index.md
Normal file
3
content/archives/2023/05/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: May
|
||||
---
|
3
content/archives/2023/05/_index.zh-hans.md
Normal file
3
content/archives/2023/05/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 五月
|
||||
---
|
3
content/archives/2023/06/_index.md
Normal file
3
content/archives/2023/06/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Jun
|
||||
---
|
3
content/archives/2023/06/_index.zh-hans.md
Normal file
3
content/archives/2023/06/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 六月
|
||||
---
|
3
content/archives/2023/07/_index.md
Normal file
3
content/archives/2023/07/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: July
|
||||
---
|
3
content/archives/2023/07/_index.zh-hans.md
Normal file
3
content/archives/2023/07/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 七月
|
||||
---
|
3
content/archives/2023/08/_index.md
Normal file
3
content/archives/2023/08/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Aug
|
||||
---
|
3
content/archives/2023/08/_index.zh-hans.md
Normal file
3
content/archives/2023/08/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 八月
|
||||
---
|
3
content/archives/2023/09/_index.md
Normal file
3
content/archives/2023/09/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Sep
|
||||
---
|
3
content/archives/2023/09/_index.zh-hans.md
Normal file
3
content/archives/2023/09/_index.zh-hans.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: 九月
|
||||
---
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue