diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 000000000..52da57914
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,24 @@
+name: Build
+
+on:
+ pull_request:
+ branches: [master]
+
+permissions:
+ contents: read
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v7
+
+ - uses: actions/setup-node@v6
+ with:
+ node-version: 24.x
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Build production website
+ run: npm test
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
index 23a8778eb..5f1a79859 100644
--- a/.github/workflows/pages.yml
+++ b/.github/workflows/pages.yml
@@ -4,6 +4,9 @@ on:
push:
branches: [master]
+permissions:
+ contents: write
+
jobs:
build:
runs-on: ${{ matrix.os }}
@@ -24,13 +27,11 @@ jobs:
- name: Install dependencies
run: npm ci
- - name: Delete temporary directories
- run: npm run clean
-
- name: Build production website
run: npm run build
- name: Deploy to GitHub Pages
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/assets/js/clipboard.js b/assets/js/clipboard.js
index d8a95ef6f..028f95d43 100644
--- a/assets/js/clipboard.js
+++ b/assets/js/clipboard.js
@@ -5,13 +5,13 @@ var pre = document.getElementsByTagName('pre');
for (var i = 0; i < pre.length; ++ i)
{
var element = pre[i];
- element.insertAdjacentHTML('afterbegin', '');
+ element.insertAdjacentHTML('afterbegin', '');
}
var clipboard = new Clipboard('.btn-copy', {
- target: function(trigger) {
- return trigger.nextElementSibling;
+ text: function(trigger) {
+ return trigger.parentElement.textContent;
},
});
diff --git a/config/_default/config.yaml b/config/_default/config.yaml
index 4bcc7ab95..dc3c775a6 100644
--- a/config/_default/config.yaml
+++ b/config/_default/config.yaml
@@ -28,11 +28,11 @@ outputs:
section:
- HTML
- RSS
- - SITEMAP
+ - SECTION_SITEMAP
-# add output format for section sitemap.xml
+# Keep section sitemaps separate from Hugo's built-in SITEMAP format.
outputFormats:
- SITEMAP:
+ SECTION_SITEMAP:
mediaType: application/xml
baseName: sitemap
isHTML: false
diff --git a/config/_default/menus/menus.es-us.yaml b/config/_default/menus/menus.es-us.yaml
index 57b0d6260..de77c905d 100644
--- a/config/_default/menus/menus.es-us.yaml
+++ b/config/_default/menus/menus.es-us.yaml
@@ -114,7 +114,7 @@ docs:
weight: 2720
identifier: karaoke-inline-fx
parent: tutorials
- url: Karaoke_inline-fx
+ url: /docs/latest/Karaoke_inline-fx
- name: Tutorial de Furigana
weight: 2730
identifier: furigana-karaoke
diff --git a/config/_default/params/params.en.yaml b/config/_default/params/params.en.yaml
index 92c247a37..78be49c37 100644
--- a/config/_default/params/params.en.yaml
+++ b/config/_default/params/params.en.yaml
@@ -78,10 +78,7 @@ footer: >-
# copyRight: Copyright (c) 2020-2021 Henk Verlinde
# Alert
-alert: true
-alertDismissable: true
-alertText: >-
- Aegisub 3.4.0 released!
+alert: false
# Edit Page
# repoHost [Github | Gitea | GitLab | Bitbucket | BitbucketServer ] is used for building the edit link based on git hoster
diff --git a/config/_default/params/params.es-us.yaml b/config/_default/params/params.es-us.yaml
index cbbae0231..7798cbfbd 100644
--- a/config/_default/params/params.es-us.yaml
+++ b/config/_default/params/params.es-us.yaml
@@ -79,9 +79,6 @@ footer: >-
# Alert
alert: false
-alertDismissable: true
-alertText: >-
- ¡Échele vistazo a la nueva página de Aegisub!
# Edit Page
# repoHost [Github | Gitea | GitLab | Bitbucket | BitbucketServer ] is used for building the edit link based on git hoster
diff --git a/config/_default/params/params.tr-tr.yaml b/config/_default/params/params.tr-tr.yaml
index 7263cec1b..941e8c0a4 100644
--- a/config/_default/params/params.tr-tr.yaml
+++ b/config/_default/params/params.tr-tr.yaml
@@ -78,10 +78,8 @@ footer: >-
# copyRight: Copyright (c) 2020-2021 Henk Verlinde
# Alert
-alert: true
-alertDismissable: true
-alertText: >-
- Aegisub 3.4.0 yayınlandı!
+alert: false
+
# Edit Page
# repoHost [Github | Gitea | GitLab | Bitbucket | BitbucketServer ] is used for building the edit link based on git hoster
repoHost: GitHub
diff --git a/config/_default/params/params.zh-cn.yaml b/config/_default/params/params.zh-cn.yaml
index da08bfef1..115042d75 100644
--- a/config/_default/params/params.zh-cn.yaml
+++ b/config/_default/params/params.zh-cn.yaml
@@ -79,10 +79,7 @@ footer: >-
# copyRight: Copyright (c) 2020-2021 Henk Verlinde
# Alert
-alert: true
-alertDismissable: true
-alertText: >-
- Aegisub 3.4.0 发布了!
+alert: false
# Edit Page
# repoHost [Github | Gitea | GitLab | Bitbucket | BitbucketServer ] is used for building the edit link based on git hoster
diff --git a/config/production/config.yaml b/config/production/config.yaml
index b6fe095c4..a7973b56a 100644
--- a/config/production/config.yaml
+++ b/config/production/config.yaml
@@ -1 +1,2 @@
+baseurl: https://aegisub.org/
canonifyURLs: false
diff --git a/content/en/downloads/index.md b/content/en/downloads/index.md
index 8c6a9e542..00fa78450 100644
--- a/content/en/downloads/index.md
+++ b/content/en/downloads/index.md
@@ -10,10 +10,6 @@ See the [changelog]({{< relref "changelog/" >}}{{< current-version-number >}}) f
{{< current-version >}}
-## Upcoming Versions
-
-Check CI build
-
## Dictionaries
To cut down on the download size, the Windows "Full" Install includes only a US English dictionary for the spell checker. All others must be downloaded separately:
diff --git a/content/es-us/downloads/index.md b/content/es-us/downloads/index.md
index 2ae55f675..8456a6551 100644
--- a/content/es-us/downloads/index.md
+++ b/content/es-us/downloads/index.md
@@ -10,10 +10,6 @@ Vea [changelog]({{< relref path="changelog/" lang="en" >}}{{< current-version-nu
{{< current-version >}}
-## Versiones pendientes
-
-Revise la CI build
-
## Diccionarios
Para reducir el tamaño de descarga, la instalación "completa" Windows incluye solo
diff --git a/content/tr-tr/downloads/index.md b/content/tr-tr/downloads/index.md
index a707e93f7..5fb60da7e 100644
--- a/content/tr-tr/downloads/index.md
+++ b/content/tr-tr/downloads/index.md
@@ -10,10 +10,6 @@ layout: Downloads
{{< current-version >}}
-## Yaklaşan Sürümler
-
-CI derlemesini kontrol edin
-
## Sözlükler
Yükleme paketinin boyutunu küçültmek amacıyla, Windows yükleyicisinde yalnızca İngilizce (ABD) yazım denetimi sözlüğü yer almaktadır. Diğer diller için sözlükler ayrı olarak indirilebilir:
diff --git a/content/zh-cn/downloads/index.md b/content/zh-cn/downloads/index.md
index b92811627..09bca9106 100644
--- a/content/zh-cn/downloads/index.md
+++ b/content/zh-cn/downloads/index.md
@@ -10,10 +10,6 @@ layout: Downloads
{{< current-version >}}
-## 即将推出的版本
-
-Check CI build
-
## 词典
为了减小安装包的体积,Windows 安装程序中仅包含了用于拼写检查的英语(美国)词典,其它语种的词典则需单独下载:
diff --git a/layouts/_default/section.sitemap.xml b/layouts/_default/section.section_sitemap.xml
similarity index 86%
rename from layouts/_default/section.sitemap.xml
rename to layouts/_default/section.section_sitemap.xml
index 701951d63..7d7ee0e7d 100644
--- a/layouts/_default/section.sitemap.xml
+++ b/layouts/_default/section.section_sitemap.xml
@@ -2,12 +2,12 @@
{{ range $i, $e := .Data.Pages -}}
- {{ if ne .Params.sitemap_exclude true }}
+ {{ if and .Permalink (ne .Params.sitemap_exclude true) }}
{{ .Permalink }}{{ if not .Lastmod.IsZero }}
{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }}
{{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
- {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
+ {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range where .Translations "Permalink" "ne" "" }}
{{ .Permalink }}{{ if not .Lastmod.IsZero }}
{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }}
{{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
- {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
+ {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range where .Translations "Permalink" "ne" "" }}
" | safeHTML }}
- {{ range .Data.Pages }}{{ if ne .Params.sitemap_exclude true }}
+ {{ range .Data.Pages }}{{ if and .Permalink (ne .Params.sitemap_exclude true) }}
{{ .Permalink }}{{ if not .Lastmod.IsZero }}
{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }}
{{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
- {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
+ {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range where .Translations "Permalink" "ne" "" }}