Skip to content

Commit

Permalink
Merge pull request #2 from bkfcduchoa/update
Browse files Browse the repository at this point in the history
[Change] use hugo blox
  • Loading branch information
tiennm99 authored May 12, 2024
2 parents 2a51198 + 9160d75 commit 0264eda
Show file tree
Hide file tree
Showing 484 changed files with 1,281 additions and 28,766 deletions.
2 changes: 1 addition & 1 deletion themes/academic/.editorconfig → .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ max_line_length = 100
[*.md]
trim_trailing_whitespace = false

[{layouts/shortcodes/*.html, layouts/_default/_markup/*.html}]
[layouts/shortcodes/*.html]
insert_final_newline = false
62 changes: 27 additions & 35 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,72 +1,64 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Hugo site to Pages
name: Deploy website to GitHub Pages

env:
WC_HUGO_VERSION: '0.124.1'

on:
# Runs on pushes targeting the default branch
# Trigger the workflow every time you push to the `main` branch
push:
branches:
- main

# Allows you to run this workflow manually from the Actions tab
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
# Provide permission to clone the repo and deploy it to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

# Default to bash
defaults:
run:
shell: bash

jobs:
# Build job
# Build website
build:
if: github.repository_owner != 'HugoBlox'
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.100.0
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-64bit.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
# Fetch history for Hugo's .GitInfo and .Lastmod
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ${{ env.WC_HUGO_VERSION }}
extended: true
- uses: actions/cache@v4
with:
path: /tmp/hugo_cache_runner/
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }}
restore-keys: |
${{ runner.os }}-hugomod-
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
uses: actions/configure-pages@v5
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
echo "Hugo Cache Dir: $(hugo config | grep cachedir)"
hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public

# Deployment job
# Deploy website to GitHub Pages hosting
deploy:
if: github.repository_owner != 'HugoBlox'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
26 changes: 10 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
.idea

# Created by https://www.toptal.com/developers/gitignore/api/hugo
# Edit at https://www.toptal.com/developers/gitignore?templates=hugo

### Hugo ###
# Generated files by hugo
/public/
/resources/_gen/

# Executable may be added to repository
hugo.exe
hugo.darwin
hugo.linux

# End of https://www.toptal.com/developers/gitignore/api/hugo
# IDEs
.idea/

# Hugo
resources/
public/
jsconfig.json
node_modules/
go.sum
.hugo_build.lock
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

128 changes: 0 additions & 128 deletions CODE_OF_CONDUCT.md

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# BKFC THPT Đức Hòa

Repository for our website.

Forked from [Hugo Academic CV Theme](https://github.com/HugoBlox/theme-academic-cv).
File renamed without changes
File renamed without changes
File renamed without changes
107 changes: 0 additions & 107 deletions config/_default/config.toml

This file was deleted.

Loading

0 comments on commit 0264eda

Please sign in to comment.