Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
hossainemruz
3b0f9ca0ae Fix build
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2023-01-06 01:05:43 +06:00
hossainemruz
06fd8e8919 Update config.yaml for exampleSite to match new structure
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2023-01-06 00:56:42 +06:00
2 changed files with 161 additions and 72 deletions

View file

@ -14,15 +14,21 @@ jobs:
submodules: true # Fetch Hugo themes (true OR recursive) submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
# install Hugo - name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install node modules
run: npm install
- name: Setup Hugo - name: Setup Hugo
uses: peaceiris/actions-hugo@v2.6.0 uses: peaceiris/actions-hugo@v2.6.0
with: with:
hugo-version: 'latest' hugo-version: 'latest'
extended: true extended: true
# build website
- name: Create Config
run: touch config.toml
- name: Build - name: Build
run: hugo --minify run: |
cd exampleSite
hugo --minify

View file

@ -75,17 +75,26 @@ params:
topNavbar: topNavbar:
maxVisibleSections: 5 maxVisibleSections: 5
# Enable dark theme
darkMode:
provider: darkreader
enable: true
default: system
# Configure various features of this theme # Configure various features of this theme
features: features:
# Enable dark theme
darkMode:
enable: false
services:
darkreader:
defaultColorScheme: system # options are 'system', 'dark', 'light'
fixes:
invert: ['img[src$=".svg"]'] # inverts svg colors.
theme:
brightness: 100
contrast: 100
sepia: 0
# Enable and configure portfolio # Enable and configure portfolio
portfolio: portfolio:
enable: true enable: true
# Enable and configure blog posts # Enable and configure blog posts
blog: blog:
enable: true enable: true
@ -109,6 +118,7 @@ params:
# Enable comment feature. There, should be only one of them. # Enable comment feature. There, should be only one of them.
comment: comment:
enable: false enable: false
services:
disqus: disqus:
shortName: toha-example-site shortName: toha-example-site
# valine: # valine:
@ -141,7 +151,8 @@ params:
# Enable Analytics # Enable Analytics
analytics: analytics:
enabled: true enabled: false
services:
# Google Analytics # Google Analytics
google: google:
id: G-H4LBG7NDFZ id: G-H4LBG7NDFZ
@ -156,29 +167,101 @@ params:
# instance: matomo.example.com # instance: matomo.example.com
# siteId: 1 # Or any other number # siteId: 1 # Or any other number
# # Enable Support # Enable Support
# support: support:
# enabled: true enable: false
# kofi: services:
# user: hossainemruz kofi:
# text: Tip Me user: hossainemruz
# textColor: '#f9fafc' text: Tip Me
# backgroundColor: '#248aaa' textColor: '#f9fafc'
backgroundColor: '#248aaa'
# buymeacoffee:
# user: <your buymeacoffee.com user>
# text: Support me on Buy me a coffee!
# info: Buy me a coffee!
# color: '#FFDD00'
# specify whether you want to show Table of Contents in reading page # specify whether you want to show Table of Contents in reading page
enableTOC: true toc:
enable: true
# Show tags under the post title # Show tags under the post title
enableTags: true tags:
enable: true
# Specify whether to show flag in the language selector. Default is true. # Specify whether to show flag in the language selector. Default is true.
showFlags: true flags:
enable: true
# If you want to use different country flag for a language, specify them here. # # If you want to use different country flag for a language, specify them here.
# flagOverwrites: # flagOverwrites:
# - languageCode: en # - languageCode: en
# countryCode: us # countryCode: us
# Enable this to use `embed-pdf` shortcode.
embedpdf:
enable: false
# Enable this to create flowcharts using shortcodes.
flowchart:
enable: false
services:
# Uncomment for `mermaid` shortcode.
mermaid:
# For config options, see: https://mermaid-js.github.io/mermaid/#/Setup?id=configuration
# theme: dark
# Enable this to create mathematic expressions using `$$` blocks
math:
enable: false
services:
# https://katex.org/docs/autorender.html#api for more configurations
katex:
delimiters:
- left: $$
right: $$
display: true
- left: \\[
right: \\]
display: true
- left: $
right: $
display: false
- left: \\(
right: \\)
display: false
# Enable to use custom syntax highlight
# Please note, Hugo comes with it's own html based syntax highlighter.
# Your code block will still be syntax highlighted by hugo.
# For more details: https://gohugo.io/content-management/syntax-highlighting/
# To disable Hugo's builtin syntax highlight,
# see: https://gohugo.io/getting-started/configuration-markup#highlight
# ```
# # config.yaml
# markup:
# # this disables hugo's syntax highlighting.
# codeFences: false
# ```
syntaxHighlight:
enable: true
services:
hljs:
# see: https://highlightjs.readthedocs.io/en/latest/api.html#configure
noHighlightRe: /^no-highlight$/i
# Enable to use `video-player` shortcode
videoPlayer:
enable: false
services:
# convert .js-player class into video player via https://plyr.io/
# Can play HTML5 Video, Audio, Youtube, Vimeo.
# For more info on setup: https://github.com/sampotts/plyr#quick-setup
plyr:
# options doc: https://github.com/sampotts/plyr#options
# fullscreen: true
# Provide footer configuration. # Provide footer configuration.
footer: footer:
enable: true enable: true