diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e3141f..e5923ba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,15 +14,21 @@ jobs: submodules: true # Fetch Hugo themes (true OR recursive) 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 uses: peaceiris/actions-hugo@v2.6.0 with: hugo-version: 'latest' extended: true - # build website - - name: Create Config - run: touch config.toml - name: Build - run: hugo --minify + run: | + cd exampleSite + hugo --minify diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 9e9ac59..99d29f9 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -75,17 +75,26 @@ params: topNavbar: maxVisibleSections: 5 - # Enable dark theme - darkMode: - provider: darkreader - enable: true - default: system - # Configure various features of this theme 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 portfolio: enable: true + # Enable and configure blog posts blog: enable: true @@ -109,75 +118,149 @@ params: # Enable comment feature. There, should be only one of them. comment: enable: false - disqus: - shortName: toha-example-site - # valine: - # appId: HTV6askWxVo3vOxlqjjaq2hd-MsYXbMMI - # appKey: pVrT3C85KGIuk27t07eh6bUC - # avatar: retro - # placeholder: Share your thought. - # lang: en - # recordIP: true - # enableQQ: true - # utteranc: - # repo: github.com/hugo-toha/hugo-toha.github.io - # issueTerm: title - # theme: github-light - # giscus: - # repo: your-repo/name - # repoID: your-repo-id - # category: your-category - # categoryID: your-category-id - # theme: light - # map: url - # reaction: 1 - # metadata: 0 - # inputPosition: bottom - # crossOrigin: anonymous - # commento: - # serverURL: cdn.commento.io - # autoInit: true - # hideDeleted: false + services: + disqus: + shortName: toha-example-site + # valine: + # appId: HTV6askWxVo3vOxlqjjaq2hd-MsYXbMMI + # appKey: pVrT3C85KGIuk27t07eh6bUC + # avatar: retro + # placeholder: Share your thought. + # lang: en + # recordIP: true + # enableQQ: true + # utteranc: + # repo: github.com/hugo-toha/hugo-toha.github.io + # issueTerm: title + # theme: github-light + # giscus: + # repo: your-repo/name + # repoID: your-repo-id + # category: your-category + # categoryID: your-category-id + # theme: light + # map: url + # reaction: 1 + # metadata: 0 + # inputPosition: bottom + # crossOrigin: anonymous + # commento: + # serverURL: cdn.commento.io + # autoInit: true + # hideDeleted: false # Enable Analytics analytics: - enabled: true - # Google Analytics - google: - id: G-H4LBG7NDFZ - # # CounterDev - # counterDev: - # id: - # # GoatCounter - # goatCounter: - # code: - # # Matomo / Piwik - # matomo: - # instance: matomo.example.com - # siteId: 1 # Or any other number + enabled: false + services: + # Google Analytics + google: + id: G-H4LBG7NDFZ + # # CounterDev + # counterDev: + # id: + # # GoatCounter + # goatCounter: + # code: + # # Matomo / Piwik + # matomo: + # instance: matomo.example.com + # siteId: 1 # Or any other number - # # Enable Support - # support: - # enabled: true - # kofi: - # user: hossainemruz - # text: Tip Me - # textColor: '#f9fafc' - # backgroundColor: '#248aaa' + # Enable Support + support: + enable: false + services: + kofi: + user: hossainemruz + text: Tip Me + textColor: '#f9fafc' + backgroundColor: '#248aaa' + # buymeacoffee: + # 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 - enableTOC: true + # specify whether you want to show Table of Contents in reading page + toc: + enable: true - # Show tags under the post title - enableTags: true + # Show tags under the post title + tags: + enable: true - # Specify whether to show flag in the language selector. Default is true. - showFlags: true + # Specify whether to show flag in the language selector. Default is 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. footer: