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 a9e30f6
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build and Deploy
on:
push:
branches: [ master ]
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
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 _layout/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 @@
---
title: 短網址標題
url: https://sitcon.org/
og_title: 自定義分享標題
og_description: 這是在社群媒體上分享時顯示的描述。
og_image: https://sitcon.org/branding/assets/logos/withname.png
---

0 comments on commit a9e30f6

Please sign in to comment.