From dd2f6b0253656f4ebdfc204158811e0593083186 Mon Sep 17 00:00:00 2001 From: Denny Huang Date: Wed, 16 Oct 2024 01:20:05 +0800 Subject: [PATCH] Init --- .github/workflows/build.yml | 21 +++++++++++++++++++++ CNAME | 1 + _config.yml | 4 ++++ _layouts/redirect.html | 28 ++++++++++++++++++++++++++++ _redirects/template.md | 7 +++++++ 5 files changed, 61 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 CNAME create mode 100644 _config.yml create mode 100644 _layouts/redirect.html create mode 100644 _redirects/template.md diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5c38135 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Build and Deploy +on: + push: + branches: [ master ] + workflow_dispatch: + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build + uses: actions/jekyll-build-pages@v1 + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_site + publish_branch: gh-pages + force_orphan: true + cname: l.sitcon.org diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..56f9e23 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +l.sitcon.org diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..4564d6b --- /dev/null +++ b/_config.yml @@ -0,0 +1,4 @@ +collections: + redirects: + output: true + permalink: /:path/ diff --git a/_layouts/redirect.html b/_layouts/redirect.html new file mode 100644 index 0000000..488b88c --- /dev/null +++ b/_layouts/redirect.html @@ -0,0 +1,28 @@ + + + + + + + + + {{ page.title }} + + + + + + + + + + + +

Redirecting to {{ page.redirect_to }}...

+ + diff --git a/_redirects/template.md b/_redirects/template.md new file mode 100644 index 0000000..5a1012f --- /dev/null +++ b/_redirects/template.md @@ -0,0 +1,7 @@ +--- +layout: redirect +title: "自定義標題" +description: "自定義描述" +image: "https://sitcon.org/branding/assets/logos/withname.png" +redirect_to: "https://sitcon.org/" +---