Skip to content

Commit

Permalink
feat: Initialize website
Browse files Browse the repository at this point in the history
Use Hugo Relearn theme
  • Loading branch information
aPatchyDev committed Nov 17, 2024
1 parent f840e42 commit a0ecaee
Show file tree
Hide file tree
Showing 16 changed files with 147 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy pages
on:
push:
branches:
- main

# Allow manual triggering
workflow_dispatch:

# 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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Run hugo
shell: bash
run: |
mkdir public
hugo --minify --environment github
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: public/
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
public
resources
Empty file added .hugo_build.lock
Empty file.
5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
date = '{{ .Date }}'
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
weight = ''
+++
4 changes: 4 additions & 0 deletions content/_index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
+++
title = ""
type = "home"
+++
4 changes: 4 additions & 0 deletions content/_index.kr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
+++
title = ""
type = "home"
+++
4 changes: 4 additions & 0 deletions content/about/_index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
+++
title = 'About'
weight = 1
+++
4 changes: 4 additions & 0 deletions content/about/_index.kr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
+++
title = '소개'
weight = 1
+++
4 changes: 4 additions & 0 deletions content/blog/_index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
+++
title = "Blog"
weight = 2
+++
4 changes: 4 additions & 0 deletions content/blog/_index.kr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
+++
title = "블로그"
weight = 2
+++
16 changes: 16 additions & 0 deletions content/links/_index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
+++
title = 'Links'
weight = '3'
+++

## Github

https://github.com/aPatchyDev

## DreamHack

https://dreamhack.io/users/23452

## CTF Time

https://ctftime.org/user/115723
16 changes: 16 additions & 0 deletions content/links/_index.kr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
+++
title = '링크'
weight = '3'
+++

## 깃허브

https://github.com/aPatchyDev

## 드림핵

https://dreamhack.io/users/23452

## CTF Time

https://ctftime.org/user/115723
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/aPatchyDev/apatchydev.github.io

go 1.23.2

require github.com/McShelby/hugo-theme-relearn v0.0.0-20241115233707-a22e183c5153 // indirect
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/McShelby/hugo-theme-relearn v0.0.0-20241115233707-a22e183c5153 h1:ais94pCOO3DRxKdJj+tT+NAIuuMnrFp+XROAOskYZZ4=
github.com/McShelby/hugo-theme-relearn v0.0.0-20241115233707-a22e183c5153/go.mod h1:mKQQdxZNIlLvAj8X3tMq+RzntIJSr9z7XdzuMomt0IM=
24 changes: 24 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
baseURL = 'https://apatchydev.github.io/'
languageCode = 'kr-ko'
defaultContentLanguage = 'kr'
[module]
[[module.imports]]
path = 'github.com/McShelby/hugo-theme-relearn'
[languages]
[languages.kr]
languageCode = 'kr'
languageName = '한국어'
title = 'aPatchyDev의 개발블로그'
weight = 1
[languages.en]
languageCode = 'en'
languageName = 'English'
title = '''aPatchyDev's DevBlog'''
weight = 2
[params]
showVisitedLinks = false
themeVariant = 'zen-dark'
collapsibleMenu = true
alwaysopen = false
disableLandingPageButton = true
disableExplicitIndexURLs = true
4 changes: 4 additions & 0 deletions layouts/partials/logo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<a id="R-logo" class="R-default" href="/index.html">
aPatchyDev's <br />
DevBlog
</a>

0 comments on commit a0ecaee

Please sign in to comment.