Skip to content

Commit

Permalink
Bump theme version, Add GA4
Browse files Browse the repository at this point in the history
  • Loading branch information
regunakyle committed Feb 10, 2024
1 parent 7bfaabb commit c4940c7
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 45 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.111.3
HUGO_VERSION: 0.121.2
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass Embedded
run: sudo snap install dart-sass-embedded
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
Expand All @@ -61,7 +61,7 @@ jobs:
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v2
with:
path: ./public

Expand All @@ -75,4 +75,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v3
11 changes: 8 additions & 3 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@ theme = "hugo-theme-relearn"

enableRobotsTXT = true

[services]
[services.googleAnalytics]
ID = 'G-39JNMJPK4V'

[outputs]
home = ["HTML", "RSS", "JSON"]
home = ["HTML", "RSS", "SEARCH"]

[params]
custom_css = ["css/custom.css"]
disableLandingPageButton = true
# Disabled because it is not working correctly with Chinese characters.
disableSearch = true
author = "Reguna"
author.name = "Reguna"
description = "Guide for GWENT: The Witcher Card Game, written in Cantonese."

themeVariant = "relearn-dark"

[[menu.shortcuts]]
name = "<i class='fa fa-comments'></i> 最新LIHKG貼文(17)"
url = "https://lih.kg/2844269"
Expand Down
1 change: 1 addition & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
+++
title = "首頁"
archetype = "home"
+++

## LIHKG 昆特牌入門指南
Expand Down
36 changes: 36 additions & 0 deletions layouts/partials/custom-header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<style>
.NR {
font-weight: bold;
color: #3c78d8;
}
.ST {
font-weight: bold;
color: #6aa84f;
}
.MO {
font-weight: bold;
color: #cc0000;
}
.NG {
font-weight: bold;
color: #000000;
}
.SK {
font-weight: bold;
color: #674ea7;
}
.SY {
font-weight: bold;
color: #e69138;
}
.AdvGP {
color: #e69138;
font-weight: bold;
}
.bold {
font-weight: bold;
}
figcaption {
text-align: center;
}
</style>
34 changes: 0 additions & 34 deletions static/css/custom.css

This file was deleted.

2 changes: 1 addition & 1 deletion themes/hugo-theme-relearn

0 comments on commit c4940c7

Please # to comment.