Skip to content

fix invalid date #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Deploy the website to Github Pages
on:
push:
branches: ["zine", "main"]
pull_request:
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand All @@ -20,16 +22,11 @@ concurrency:
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
build:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Change if you need git info

- name: Setup Zine
uses: kristoff-it/setup-zine@v1
with:
Expand All @@ -38,6 +35,14 @@ jobs:
- name: Build
run: zine release

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request'
steps:
- name: Setup Pages
uses: actions/configure-pages@v5

Expand Down
28 changes: 5 additions & 23 deletions assets/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,14 @@
<html lang="en">
<head>
<meta charset="utf-8" />

<title>404 - Page Not Found</title>

<!-- Custom styles for this template -->
<link href="/style.css" rel="stylesheet" />

<style>
h1 {
display: flex;
justify-content: center;
align-items: center;
font-size: 3rem;
}
</style>

<script>
if (location.pathname.match(/\/\d{4}\/\d{2}\/\d{2}\//)) {
location.pathname = location.pathname.replace(
/\/(\d{4})\/(\d{2})\/(\d{2})\//,
"/$1-$2-$3-"
);
}
</script>
</head>

<body>
<h1>404 - Page Not Found</h1>
<center>
<h1>404 - Page Not Found</h1>
<p>the page you are looking for not avaible!</p>
<p><a href="/">Go Home</a></p>
<center>
</body>
</html>
13 changes: 5 additions & 8 deletions content/rss.smd
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
---
.title = "RSS Feeds Overview",
.date = @date("2025-7-27"),
.date = @date("2025-07-27"),
.author = "ZigCC",
.layout = "index.shtml",
.draft = false,
---

本站一共有 3 个 RSS 索引,分别索引了 学习、月刊和博客,便于满足不同读者的需求。

他们的链接分别是:
- [/learn/index.xml]($link.page("learn").alternative('rss'))
- [/monthly/index.xml]($link.page("monthly").alternative('rss'))
- [/post/index.xml]($link.page("post").alternative('rss'))
[/monthly/index.xml]($link.page("monthly").alternative('rss'))
[/post/index.xml]($link.page("post").alternative('rss'))

他们的链接分别是:
- [/learn/index.xml]($link.page("learn").alternative('rss'))
- [/monthly/index.xml]($link.page("monthly").alternative('rss'))
- [/post/index.xml]($link.page("post").alternative('rss'))