Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
denny0223 committed Oct 15, 2024
0 parents commit 2543a57
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
l.sitcon.org
4 changes: 4 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
collections:
redirects:
output: true
permalink: /:path/
15 changes: 15 additions & 0 deletions _layouts/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<meta name="description" content="{{ page.description }}">
<meta property="og:title" content="{{ page.title }}">
<meta property="og:description" content="{{ page.description }}">
<meta property="og:image" content="{{ page.image }}">
<meta http-equiv="refresh" content="0;url={{ page.redirect_to }}">
</head>
<body>
<p>Redirecting to <a href="{{ page.redirect_to }}">{{ page.redirect_to }}</a>...</p>
</body>
</html>
7 changes: 7 additions & 0 deletions _redirects/template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: redirect
title: "自定義標題"
description: "自定義描述"
image: "https://sitcon.org/branding/assets/logos/withname.png"
redirect_to: "https://sitcon.org/"
---

0 comments on commit 2543a57

Please sign in to comment.