Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
lsx-qit committed Nov 2, 2024
0 parents commit 640381c
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on: push
jobs:
build:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- name: 'checkout'
uses: actions/checkout@v4
- name: 'build'
uses: shalzz/[email protected]
env:
PAGES_BRANCH: gh-pages
BUILD_DIR: .
TOKEN: ${{ secrets.TOKEN }}
# BUILD_ONLY: true
build_and_deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: 'checkout'
uses: actions/checkout@v4
- name: 'build and deploy'
uses: shalzz/[email protected]
env:
PAGES_BRANCH: gh-pages
BUILD_DIR: .
TOKEN: ${{ secrets.PUBLIC_TOKEN }}
REPOSITORY: dbthreee/dbthree.github.io
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "themes/after-dark"]
path = themes/after-dark
url = https://github.com/getzola/after-dark.git
24 changes: 24 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# The URL the site will be built for
base_url = "https://dbthreee.github.io/zola"

# Whether to automatically compile all Sass files in the sass directory
compile_sass = true

# Whether to build a search index to be used later on by a JavaScript library
build_search_index = true

theme = 'after-dark'

taxonomies = [
# You can enable/disable RSS
{name = "categories", feed = true},
{name = "tags", feed = true},
]

[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true

[extra]
# Put all your custom variables here
11 changes: 11 additions & 0 deletions content/2024-11-02-my-new-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: My New Post
date: 2024-11-02
tags:
- example
- tutorial
---

# My New Post

This is the content of my new post. You can write your text here using Markdown syntax.
5 changes: 5 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
paginate_by: 5
draft: false
sort_by: 'date'
---
1 change: 1 addition & 0 deletions themes/after-dark
Submodule after-dark added at 37b451

0 comments on commit 640381c

Please sign in to comment.