diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..6ea9159
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,47 @@
+name: Build and Deploy Website
+
+on:
+ push:
+ branches:
+ - main
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+concurrency:
+ group: "pages"
+ cancel-in-progress: false
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ submodules: 'recursive'
+ - name: Download Zola
+ run: curl -fLsS "https://github.com/getzola/zola/releases/download/v0.17.2/zola-v0.17.2-x86_64-unknown-linux-gnu.tar.gz" | tar xzf - -C /usr/local/bin
+ - name: Verify Zola binary
+ run: echo "b62c19a1e104a0526a48a1f29c05ba90b9a14fe7a17ef6a7978d9610886cc783 /usr/local/bin/zola" | shasum -a 256 -b -c --strict
+ - name: Build website
+ run: zola build
+ - name: Upload artifact
+ uses: actions/upload-pages-artifact@v2
+ with:
+ path: ./public
+ name: github-pages
+ retention-days: 1
+ deploy:
+ needs: build
+ runs-on: ubuntu-latest
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ steps:
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v3
\ No newline at end of file
diff --git a/.gitmodules b/.gitmodules
index 082ee7d..ae35e79 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,3 @@
[submodule "themes/academic-paper"]
path = themes/academic-paper
- url = https://github.com/aterenin/academic-paper
+ url = https://github.com/aterenin/academic-paper.git
diff --git a/config.toml b/config.toml
index 3070a86..3fa8424 100644
--- a/config.toml
+++ b/config.toml
@@ -8,4 +8,7 @@ theme = "academic-paper"
[markdown]
highlight_code = true
highlight_theme = "css"
-smart_punctuation = true
\ No newline at end of file
+smart_punctuation = true
+
+[extra]
+google_analytics = "G-GB3BZDSEMD"
\ No newline at end of file
diff --git a/content/_index.md b/content/_index.md
index a8102f1..c5b544e 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -1,3 +1,6 @@
+++
-render = false
+title = "Redirect"
+template = "redirect.html"
+[extra]
+redirect_to = "https://avt.im/"
+++
\ No newline at end of file
diff --git a/templates/default.html b/templates/default.html
new file mode 100644
index 0000000..3952f98
--- /dev/null
+++ b/templates/default.html
@@ -0,0 +1,12 @@
+{% extends "academic-paper/templates/default.html" %}
+
+{% block head_includes %}
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/themes/academic-paper b/themes/academic-paper
new file mode 160000
index 0000000..9ed7ea2
--- /dev/null
+++ b/themes/academic-paper
@@ -0,0 +1 @@
+Subproject commit 9ed7ea258fe7197afd5292b4b5172af5e9417e5f