diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..ee9e649 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5286546 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +public +resources diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..e1b6457 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +weight = '' ++++ diff --git a/content/_index.en.md b/content/_index.en.md new file mode 100644 index 0000000..175633d --- /dev/null +++ b/content/_index.en.md @@ -0,0 +1,4 @@ ++++ +title = "" +type = "home" ++++ diff --git a/content/_index.kr.md b/content/_index.kr.md new file mode 100644 index 0000000..175633d --- /dev/null +++ b/content/_index.kr.md @@ -0,0 +1,4 @@ ++++ +title = "" +type = "home" ++++ diff --git a/content/about/_index.en.md b/content/about/_index.en.md new file mode 100644 index 0000000..d0cc278 --- /dev/null +++ b/content/about/_index.en.md @@ -0,0 +1,4 @@ ++++ +title = 'About' +weight = 1 ++++ diff --git a/content/about/_index.kr.md b/content/about/_index.kr.md new file mode 100644 index 0000000..f241da0 --- /dev/null +++ b/content/about/_index.kr.md @@ -0,0 +1,4 @@ ++++ +title = '소개' +weight = 1 ++++ diff --git a/content/blog/_index.en.md b/content/blog/_index.en.md new file mode 100644 index 0000000..9b23152 --- /dev/null +++ b/content/blog/_index.en.md @@ -0,0 +1,4 @@ ++++ +title = "Blog" +weight = 2 ++++ diff --git a/content/blog/_index.kr.md b/content/blog/_index.kr.md new file mode 100644 index 0000000..1e00f07 --- /dev/null +++ b/content/blog/_index.kr.md @@ -0,0 +1,4 @@ ++++ +title = "블로그" +weight = 2 ++++ diff --git a/content/links/_index.en.md b/content/links/_index.en.md new file mode 100644 index 0000000..6b4b61b --- /dev/null +++ b/content/links/_index.en.md @@ -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 diff --git a/content/links/_index.kr.md b/content/links/_index.kr.md new file mode 100644 index 0000000..4bd5382 --- /dev/null +++ b/content/links/_index.kr.md @@ -0,0 +1,16 @@ ++++ +title = '링크' +weight = '3' ++++ + +## 깃허브 + +https://github.com/aPatchyDev + +## 드림핵 + +https://dreamhack.io/users/23452 + +## CTF Time + +https://ctftime.org/user/115723 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..b397286 --- /dev/null +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..dbcbd23 --- /dev/null +++ b/go.sum @@ -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= diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..ca2de70 --- /dev/null +++ b/hugo.toml @@ -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 diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html new file mode 100644 index 0000000..160baa6 --- /dev/null +++ b/layouts/partials/logo.html @@ -0,0 +1,4 @@ +