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,75 +118,149 @@ 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
disqus: services:
shortName: toha-example-site disqus:
# valine: shortName: toha-example-site
# appId: HTV6askWxVo3vOxlqjjaq2hd-MsYXbMMI # valine:
# appKey: pVrT3C85KGIuk27t07eh6bUC # appId: HTV6askWxVo3vOxlqjjaq2hd-MsYXbMMI
# avatar: retro # appKey: pVrT3C85KGIuk27t07eh6bUC
# placeholder: Share your thought. # avatar: retro
# lang: en # placeholder: Share your thought.
# recordIP: true # lang: en
# enableQQ: true # recordIP: true
# utteranc: # enableQQ: true
# repo: github.com/hugo-toha/hugo-toha.github.io # utteranc:
# issueTerm: title # repo: github.com/hugo-toha/hugo-toha.github.io
# theme: github-light # issueTerm: title
# giscus: # theme: github-light
# repo: your-repo/name # giscus:
# repoID: your-repo-id # repo: your-repo/name
# category: your-category # repoID: your-repo-id
# categoryID: your-category-id # category: your-category
# theme: light # categoryID: your-category-id
# map: url # theme: light
# reaction: 1 # map: url
# metadata: 0 # reaction: 1
# inputPosition: bottom # metadata: 0
# crossOrigin: anonymous # inputPosition: bottom
# commento: # crossOrigin: anonymous
# serverURL: cdn.commento.io # commento:
# autoInit: true # serverURL: cdn.commento.io
# hideDeleted: false # autoInit: true
# hideDeleted: false
# Enable Analytics # Enable Analytics
analytics: analytics:
enabled: true enabled: false
# Google Analytics services:
google: # Google Analytics
id: G-H4LBG7NDFZ google:
# # CounterDev id: G-H4LBG7NDFZ
# counterDev: # # CounterDev
# id: <your counterdev id> # counterDev:
# # GoatCounter # id: <your counterdev id>
# goatCounter: # # GoatCounter
# code: <your goat counter code> # goatCounter:
# # Matomo / Piwik # code: <your goat counter code>
# matomo: # # Matomo / Piwik
# instance: matomo.example.com # matomo:
# siteId: 1 # Or any other number # instance: matomo.example.com
# 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.
# flagOverwrites:
# - languageCode: en
# 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
# If you want to use different country flag for a language, specify them here.
# flagOverwrites:
# - languageCode: en
# countryCode: us
# Provide footer configuration. # Provide footer configuration.
footer: footer: