Skip to content

Commit

Permalink
[Remove] git submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
tiennm99 committed May 12, 2024
1 parent 54231e9 commit 1745d70
Show file tree
Hide file tree
Showing 13 changed files with 257 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# Runs on pushes targeting the default branch
push:
branches:
- master
- main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -32,11 +32,11 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.100.0
HUGO_VERSION: 0.119.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 \
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
run: sudo snap install dart-sass
Expand Down
Empty file added .hugo_build.lock
Empty file.
File renamed without changes
67 changes: 67 additions & 0 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Configuration of Hugo
# Guide: https://wowchemy.com/docs/getting-started/
# Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/

title: Ngăm # Website name
baseURL: 'https://ngamtheproject.github.io' # Website URL

############################
## LANGUAGE
############################

defaultContentLanguage: vi
hasCJKLanguage: false
defaultContentLanguageInSubdir: false
removePathAccents: true

############################
## ADVANCED
############################

enableGitInfo: false
summaryLength: 30
paginate: 10
enableEmoji: true
enableRobotsTXT: true
footnotereturnlinkcontents: <sup>^</sup>
ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
permalinks:
authors: '/author/:slug/'
tags: '/tag/:slug/'
categories: '/category/:slug/'
publication_types: '/publication-type/:slug/'
disableAliases: true
outputs:
home: [HTML, RSS, JSON, WebAppManifest]
section: [HTML, RSS]
imaging:
resampleFilter: lanczos
quality: 75
anchor: smart
timeout: 600000
taxonomies:
tag: tags
category: categories
publication_type: publication_types
author: authors
markup:
_merge: deep
related:
threshold: 80
includeNewer: true
toLower: true
indices:
- name: tags
weight: 100
- name: categories
weight: 70
security:
_merge: deep
sitemap:
_merge: deep

cascade:
- _target:
path: /**
commentable: true
22 changes: 22 additions & 0 deletions config/_default/languages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Languages
# Create a section for each of your site's languages.
# Documentation: https://wowchemy.com/docs/guide/language/

# Default language
vi:
languageCode: vi-vn
# Uncomment for multi-lingual sites, and move English content into `en` sub-folder.
#contentDir: content/en

# Uncomment the lines below to configure your website in a second language.
#zh:
# languageCode: zh-Hans
# contentDir: content/zh
# title: Chinese website title...
# params:
# description: Site description in Chinese...
# menu:
# main:
# - name: 传
# url: '#about'
# weight: 1
24 changes: 24 additions & 0 deletions config/_default/menus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Navigation Links
# To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
# desired widget in your `content/home/` folder.
# The weight parameter defines the order that the links will appear in.

main:
- name: Bài viết
url: post
weight: 10
- name: Sự kiện
url: event
weight: 20
- name: Albums
url: albums
weight: 30
- name: Videos
url: videos
weight: 40
- name: Giới thiệu
url: about
weight: 50
- name: Liên hệ
url: contact
weight: 60
11 changes: 11 additions & 0 deletions config/_default/module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
############################
## HUGO MODULES
## Install or uninstall themes and plugins here.
## Docs: https://gohugo.io/hugo-modules/
############################

imports:
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms
disable: true
# - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5
2 changes: 1 addition & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ plugins_js = []
# Get user avatars from Gravatar.com? (true/false)
gravatar = false

# Choose a shape for avatar images. Options: circle, square.
# Choose a shape for avatar media. Options: circle, square.
shape = "circle"

# Available address formats.
Expand Down
123 changes: 123 additions & 0 deletions config/_default/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# SITE SETUP
# Guide: https://wowchemy.com/docs/getting-started/
# Documentation: https://wowchemy.com/docs/
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/

# Appearance

appearance:
theme_day: ocean
theme_night: # minimal
font: native
font_size: L

# SEO

marketing:
seo:
site_type: Organization
local_business_type: ''
org_name: 'Ngăm'
description: 'Charity Organization.'
twitter: ''
analytics:
google_analytics: 'G-74NLCD7XMJ'
baidu_tongji: ''
google_tag_manager: ''
microsoft_clarity: ''
verification:
google: ''
baidu: ''
bing: ''

# Site header

header:
navbar:
enable: true
align: r
show_logo: true
show_language: false
show_day_night: true
show_search: true
highlight_active_link: false

# Site footer

footer:
copyright:
notice: '© {year} Ngăm. This work is licensed under {license}'
license:
enable: true
allow_derivatives: false
share_alike: true
allow_commercial: false

# Localization

locale:
date_format: '02/01/2006'
time_format: '3:04 PM'
address_format: en-us

# Site features

features:
syntax_highlighter:
enable: false
# extra_languages:
# - r
# - latex
math:
enable: false
privacy_pack:
enable: false
repository:
url: 'https://github.com/ngamtheproject/ngamtheproject.github.io'
content_dir: content
branch: main
avatar:
gravatar: false
shape: circle
comment:
provider: 'giscus'
disqus:
shortname: ''
show_count: true
commento:
url: ''
giscus:
repo: 'ngamtheproject/ngamtheproject.github.io'
repo_id: 'R_kgDOKSl_1A'
category: 'Announcements'
category_id: 'DIC_kwDOKSl_1M4CZj76'
theme: light
language_code: en
mapping: pathname
search:
provider: wowchemy
algolia:
app_id: ''
api_key: ''
index_name: ''
show_logo: false
map:
provider: 'mapnik'
api_key: ''
zoom: 15

# Extensions

extensions:
decap_cms:
branch: main
publish_mode: editorial_workflow
local_backend: false
academicons:
enable: false

# Citation style

publications:
date_format: January 2006
citation_style: apa
2 changes: 1 addition & 1 deletion content/home/skills.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ subtitle = ""
# description = "100%"

# Uncomment to use custom SVG icons.
# Place custom SVG icon in `assets/images/icon-pack/`, creating folders if necessary.
# Place custom SVG icon in `assets/media/icon-pack/`, creating folders if necessary.
# Reference the SVG icon name (without `.svg` extension) in the `icon` field.
# [[feature]]
# icon = "your-custom-icon-name"
Expand Down
6 changes: 3 additions & 3 deletions themes/academic/assets/js/academic.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@
}

$container.imagesLoaded(function () {
// Initialize Isotope after all images have loaded.
// Initialize Isotope after all media have loaded.
$container.isotope({
itemSelector: '.isotope-item',
layoutMode: layout,
Expand All @@ -669,7 +669,7 @@
// If window hash is set, scroll to hash.
// Placing this within `imagesLoaded` prevents scrolling to the wrong location due to dynamic image loading
// affecting page layout and position of the target anchor ID.
// Note: If there are multiple project widgets on a page, ideally only perform this once after images
// Note: If there are multiple project widgets on a page, ideally only perform this once after media
// from *all* project widgets have finished loading.
if (window.location.hash) {
scrollToAnchor();
Expand Down Expand Up @@ -778,7 +778,7 @@
if (window.location.hash == "#top") {
window.location.hash = ""
} else if (!$('.projects-container').length) {
// If URL contains a hash and there are no dynamically loaded images on the page,
// If URL contains a hash and there are no dynamically loaded media on the page,
// immediately scroll to target ID taking into account responsive offset.
// Otherwise, wait for `imagesLoaded()` to complete before scrolling to hash to prevent scrolling to wrong
// location.
Expand Down
2 changes: 1 addition & 1 deletion themes/academic/exampleSite/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ plugins_js = []
# Get user avatars from Gravatar.com? (true/false)
gravatar = false

# Choose a shape for avatar images. Options: circle, square.
# Choose a shape for avatar media. Options: circle, square.
shape = "circle"

# Available address formats.
Expand Down
2 changes: 1 addition & 1 deletion themes/academic/exampleSite/content/home/skills.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ subtitle = ""
# description = "100%"

# Uncomment to use custom SVG icons.
# Place custom SVG icon in `assets/images/icon-pack/`, creating folders if necessary.
# Place custom SVG icon in `assets/media/icon-pack/`, creating folders if necessary.
# Reference the SVG icon name (without `.svg` extension) in the `icon` field.
# [[feature]]
# icon = "your-custom-icon-name"
Expand Down

0 comments on commit 1745d70

Please sign in to comment.