From 1745d703844a06391c60a9904442d27841c83132 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Sun, 12 May 2024 13:02:25 +0700 Subject: [PATCH] [Remove] git submodule --- .github/workflows/publish.yaml | 6 +- .hugo_build.lock | 0 assets/{images => media}/icon.png | Bin config/_default/config.yaml | 67 ++++++++++ config/_default/languages.yaml | 22 ++++ config/_default/menus.yaml | 24 ++++ config/_default/module.yaml | 11 ++ config/_default/params.toml | 2 +- config/_default/params.yaml | 123 ++++++++++++++++++ content/home/skills.md | 2 +- themes/academic/assets/js/academic.js | 6 +- .../exampleSite/config/_default/params.toml | 2 +- .../exampleSite/content/home/skills.md | 2 +- 13 files changed, 257 insertions(+), 10 deletions(-) create mode 100644 .hugo_build.lock rename assets/{images => media}/icon.png (100%) create mode 100644 config/_default/config.yaml create mode 100644 config/_default/languages.yaml create mode 100644 config/_default/menus.yaml create mode 100644 config/_default/module.yaml create mode 100644 config/_default/params.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 2f0bdd7..9cd5f08 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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: @@ -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 diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/assets/images/icon.png b/assets/media/icon.png similarity index 100% rename from assets/images/icon.png rename to assets/media/icon.png diff --git a/config/_default/config.yaml b/config/_default/config.yaml new file mode 100644 index 0000000..5c955d3 --- /dev/null +++ b/config/_default/config.yaml @@ -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: ^ +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 diff --git a/config/_default/languages.yaml b/config/_default/languages.yaml new file mode 100644 index 0000000..d067197 --- /dev/null +++ b/config/_default/languages.yaml @@ -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 diff --git a/config/_default/menus.yaml b/config/_default/menus.yaml new file mode 100644 index 0000000..cd89310 --- /dev/null +++ b/config/_default/menus.yaml @@ -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 diff --git a/config/_default/module.yaml b/config/_default/module.yaml new file mode 100644 index 0000000..26f5133 --- /dev/null +++ b/config/_default/module.yaml @@ -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 diff --git a/config/_default/params.toml b/config/_default/params.toml index 7734e71..b0f5862 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -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. diff --git a/config/_default/params.yaml b/config/_default/params.yaml new file mode 100644 index 0000000..010c9b3 --- /dev/null +++ b/config/_default/params.yaml @@ -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 diff --git a/content/home/skills.md b/content/home/skills.md index f478ef7..08ae655 100644 --- a/content/home/skills.md +++ b/content/home/skills.md @@ -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" diff --git a/themes/academic/assets/js/academic.js b/themes/academic/assets/js/academic.js index 1ced20d..a938549 100644 --- a/themes/academic/assets/js/academic.js +++ b/themes/academic/assets/js/academic.js @@ -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, @@ -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(); @@ -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. diff --git a/themes/academic/exampleSite/config/_default/params.toml b/themes/academic/exampleSite/config/_default/params.toml index 52fc216..f9e7048 100644 --- a/themes/academic/exampleSite/config/_default/params.toml +++ b/themes/academic/exampleSite/config/_default/params.toml @@ -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. diff --git a/themes/academic/exampleSite/content/home/skills.md b/themes/academic/exampleSite/content/home/skills.md index d5c7c1a..d382dda 100644 --- a/themes/academic/exampleSite/content/home/skills.md +++ b/themes/academic/exampleSite/content/home/skills.md @@ -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"