-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 310a100
Showing
129 changed files
with
6,130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Sample workflow for building and deploying a Hugo site to GitHub Pages | ||
name: Deploy Hugo site to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: | ||
- main | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
# Default to bash | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
HUGO_VERSION: 0.136.5 | ||
steps: | ||
- name: Install Hugo CLI | ||
run: | | ||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ | ||
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb | ||
- name: Install Dart Sass | ||
run: sudo snap install dart-sass | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v5 | ||
- name: Install Node.js dependencies | ||
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" | ||
- name: Build with Hugo | ||
env: | ||
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache | ||
HUGO_ENVIRONMENT: production | ||
TZ: America/Los_Angeles | ||
run: | | ||
hugo \ | ||
--gc \ | ||
--minify \ | ||
--baseURL "${{ steps.pages.outputs.base_url }}/" | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./public | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Created by https://www.toptal.com/developers/gitignore/api/hugo,visualstudiocode,windows | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=hugo,visualstudiocode,windows | ||
|
||
### Hugo ### | ||
# Generated files by hugo | ||
/public/ | ||
/resources/_gen/ | ||
/assets/jsconfig.json | ||
hugo_stats.json | ||
|
||
# Executable may be added to repository | ||
hugo.exe | ||
hugo.darwin | ||
hugo.linux | ||
|
||
# Temporary lock file while building | ||
/.hugo_build.lock | ||
|
||
### VisualStudioCode ### | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
!.vscode/*.code-snippets | ||
|
||
# Local History for Visual Studio Code | ||
.history/ | ||
|
||
# Built Visual Studio Code Extensions | ||
*.vsix | ||
|
||
### VisualStudioCode Patch ### | ||
# Ignore all local history of files | ||
.history | ||
.ionide | ||
|
||
### Windows ### | ||
# Windows thumbnail cache files | ||
Thumbs.db | ||
Thumbs.db:encryptable | ||
ehthumbs.db | ||
ehthumbs_vista.db | ||
|
||
# Dump file | ||
*.stackdump | ||
|
||
# Folder config file | ||
[Dd]esktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msix | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/hugo,visualstudiocode,windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "themes/PaperMod"] | ||
path = themes/PaperMod | ||
url = https://github.com/adityatelange/hugo-PaperMod.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pages.cyouth.cn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# xfcy.github.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
date: '{{ .Date }}' | ||
draft: true | ||
title: '{{ replace .File.ContentBaseName "-" " " | title }}' | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
date: '2024-10-25T13:08:56+08:00' | ||
draft: false | ||
title: 'About' | ||
--- | ||
|
||
CYouth here, | ||
|
||
an English beginner trying to learn English by writing some posts. | ||
|
||
If you have any questions or advice, | ||
|
||
please contact me at [email protected], | ||
|
||
or [open an issue on my GitHub repo](https://github.com/xfcy/xfcy.github.io/issues/new). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: Archive | ||
layout: archives | ||
url: /archives/ | ||
summary: archives | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
date: '2024-10-25T13:00:23+08:00' | ||
draft: false | ||
title: 'Hello World' | ||
--- | ||
|
||
Hi there, I'll write some posts here! | ||
|
||
```python | ||
print('Hello, world!') | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
baseURL: https://pages.cyouth.cn/ | ||
languageCode: en-us | ||
title: CYouth Blog | ||
theme: PaperMod | ||
enableEmoji: true | ||
|
||
enableRobotsTXT: true | ||
buildDrafts: false | ||
buildFuture: false | ||
buildExpired: false | ||
|
||
minify: | ||
disableXML: true | ||
minifyOutput: true | ||
|
||
params: | ||
env: development | ||
title: CYouth Blog | ||
description: The homepage and blog for CYouth to share technology and more. | ||
keywords: [CYouth, Homepage, Blog, Technology, Sharing] | ||
author: CYouth | ||
mainSections: | ||
- posts | ||
homeInfoParams: | ||
Title: CYouth Blog | ||
Content: > | ||
:smile: Hi there! | ||
menu: | ||
main: | ||
- identifier: home | ||
name: Home | ||
url: / | ||
weight: 10 | ||
- identifier: categories | ||
name: Categories | ||
url: /categories/ | ||
weight: 20 | ||
- identifier: tags | ||
name: Tags | ||
url: /tags/ | ||
weight: 30 | ||
- identifier: archive | ||
name: Archive | ||
url: /archives/ | ||
weight: 40 | ||
- identifier: about | ||
name: About | ||
url: /about/ | ||
weight: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
name: Bug Report 🐞 | ||
description: Create a report to help us improve | ||
title: "[Bug]: " | ||
labels: ["bug", "triage"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report :) | ||
- Kindly **DO NOT** ask for instructions. | ||
- Use [Discussions](https://github.com/adityatelange/hugo-PaperMod/discussions) section if you have a query or doubts or any orther relevant question. | ||
- You may join [Discord community](https://discord.gg/ahpmTvhVmp) to interact with fellow contributors and users | ||
- Read project's [Wiki](https://github.com/adityatelange/hugo-PaperMod/wiki) for detailed documentation. | ||
- Read project's [FAQs](https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs) section for Frequently asked questions. | ||
- Search for previous [Issues](https://github.com/adityatelange/hugo-PaperMod/issues)/[Pull Requests](https://github.com/adityatelange/hugo-PaperMod/pulls) if this issue is already reported or fix has been created. | ||
- type: textarea | ||
id: what_happened | ||
attributes: | ||
label: What happened? | ||
description: Also tell us, what did you expect to happen? | ||
placeholder: A bug happened! Here are the screenshots.. Tell us what you see! | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps_to_reproduce | ||
attributes: | ||
label: Steps to reproduce | ||
description: How to reproduce this issue. Here are the steps... | ||
placeholder: | | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: hugo_version | ||
attributes: | ||
label: Hugo Version | ||
description: What version of Hugo are you running? | ||
options: | ||
- Hugo >= 0.112.4 (Recommended - Minimum version required for PaperMod) | ||
- Hugo < 0.112.4 (Incompatible - Not recommended to build PaperMod on lower verions) | ||
validations: | ||
required: true | ||
- type: input | ||
id: papermod_version | ||
attributes: | ||
label: PaperMod Version | ||
description: What version of PaperMod are you running? | ||
placeholder: | | ||
PaperMod v7.0 or | ||
Branch master or | ||
Commit-id: 3f50861a0ced88f9b614a43662edeb4c0bc45da8 | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: browser_type | ||
attributes: | ||
label: What kind of devices are you seeing the problem on? | ||
multiple: true | ||
options: | ||
- Mobile | ||
- Desktop | ||
validations: | ||
required: false | ||
- type: dropdown | ||
id: browsers | ||
attributes: | ||
label: What browsers are you seeing the problem on? | ||
multiple: true | ||
options: | ||
- Firefox | ||
- Chrome | ||
- Safari | ||
- Microsoft Edge | ||
validations: | ||
required: false | ||
- type: input | ||
id: browser_version | ||
attributes: | ||
label: Browser Version | ||
description: Please add browser version or enter user agent string (navigator.userAgent) | ||
placeholder: ex. Google Chrome 86.0 | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Relevant log output | ||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. | ||
render: shell | ||
validations: | ||
required: true | ||
- type: input | ||
id: repo_url | ||
attributes: | ||
label: Repository/Source Code link where this issue can be reproduced | ||
description: Please add url of the repository where this issue can be reproduced | ||
placeholder: https://github.com/<username>/<repo name> | ||
validations: | ||
required: false | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Code of Conduct | ||
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/adityatelange/hugo-PaperMod?tab=coc-ov-file#readme). | ||
options: | ||
- label: I agree to follow this project's Code of Conduct | ||
required: true | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: PaperMod Discussions | ||
url: https://github.com/adityatelange/hugo-PaperMod/discussions | ||
about: Please ask and answer questions/doubts here, DO NOT open an issue for questions. |
Oops, something went wrong.