浏览代码

Add exampleSite + update module to v4 (#717)

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Emruz Hossain 2 年之前
父节点
当前提交
d3c2c6d1fc
共有 4 个文件被更改,包括 219 次插入1 次删除
  1. 209 0
      exampleSite/config.yaml
  2. 7 0
      exampleSite/go.mod
  3. 2 0
      exampleSite/go.sum
  4. 1 1
      go.mod

+ 209 - 0
exampleSite/config.yaml

@@ -0,0 +1,209 @@
+
+baseURL: http://example.org/
+languageCode: en-us
+title: Example Site
+
+module:
+  imports:
+  - path: github.com/hugo-toha/hugo-toha.github.io
+    disable: false
+    mounts:
+    - source: content
+      target: content
+    - source: layouts
+      target: layouts
+    - source: data
+      target: data
+    - source: assets
+      target: assets
+    - source: static
+      target: static
+  - path: github.com/hugo-toha/toha/v4
+
+# Manage languages
+# For any more details, you can check the official documentation: https://gohugo.io/content-management/multilingual/
+languages:
+  en:
+    languageName: English
+    weight: 1
+  bn:
+    languageName: বাংলা
+    weight: 3
+
+# Force a locale to be use, really useful to develop the application ! Should be commented in production, the "weight" should rocks.
+# DefaultContentLanguage: bn
+
+# Allow raw html in markdown file
+markup:
+  goldmark:
+    renderer:
+      unsafe: true
+  tableOfContents:
+    startLevel: 2
+    endLevel: 6
+    ordered: false
+
+# At least HTML and JSON are required for the main HTML content and
+# client-side JavaScript search
+outputs:
+  home:
+    - HTML
+    - RSS
+    - JSON
+
+# Enable global emoji support
+enableEmoji: true
+
+# Site parameters
+params:
+  # Background image of the landing page
+  background: /images/site/background.jpg
+
+  # Provide logos for your site. The inverted logo will be used in the initial
+  # transparent navbar and the main logo will be used in the non-transparent navbar.
+  logo:
+    main: /images/site/main-logo.png
+    inverted: /images/site/inverted-logo.png
+    favicon: /images/site/favicon.png
+
+  # GitHub repo of your site
+  gitRepo: https://github.com/hugo-toha/hugo-toha.github.io
+  # Default branch of your Git repo
+  gitBranch: main
+
+  # Configure the number of section title visible in the top navbar
+  topNavbar:
+    maxVisibleSections: 5
+
+  # Enable dark theme
+  darkMode:
+    provider: darkreader
+    enable: true
+    default: system
+
+  # Configure various features of this theme
+  features:
+    # Enable and configure portfolio
+    portfolio:
+      enable: true
+    # Enable and configure blog posts
+    blog:
+      enable: true
+      # Share post on different social media
+      shareButtons:
+        facebook: true
+        twitter: true
+        linkedin: true
+        reddit: true
+        whatsapp: true
+        email: true
+        # tumblr: true
+        # pocket: true
+        # diaspora: true
+        # mastodon: true
+
+    # Enable & configure "Notes" features
+    notes:
+      enable: true
+
+    # 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
+
+    # Enable Analytics
+    analytics:
+      enabled: true
+      # Google Analytics
+      google:
+        id: G-H4LBG7NDFZ
+      # # CounterDev
+      # counterDev:
+      #   id: <your counterdev id>
+      # # GoatCounter
+      # goatCounter:
+      #   code: <your goat counter 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'
+
+  # specify whether you want to show Table of Contents in reading page
+  enableTOC: true
+
+  # Show tags under the post title
+  enableTags: true
+
+  # Specify whether to show flag in the language selector. Default is true.
+  showFlags: true
+
+  # If you want to use different country flag for a language, specify them here.
+  # flagOverwrites:
+  # - languageCode: en
+  #   countryCode: us
+
+  # Provide footer configuration.
+  footer:
+    enable: true
+    # You can provide your custom footer template using this option.
+    # Put your template in "layouts/partials" folder of your repo.
+    template: footer.html
+    # Show/hide navigation in the footer. Default is "true".
+    navigation:
+      enable: true
+      # show custom menus in the footer
+      customMenus: true
+    # Show/hide "Contact Me" section in the footer. Default is "true".
+    contactMe:
+      enable: true
+    # Show/hide credentials section in the footer. Default is "true".
+    credentials:
+      enable: true
+
+    # Show/hide newsletter section in the footer. Default is "true".
+    # Currently, it supports "mailchimp".
+    newsletter:
+      enable: true
+      provider: mailchimp
+      mailchimpURL: https://github.us1.list-manage.com/subscribe/post?u=19de52a4603135aae97163fd8&amp;id=094a24c76e
+
+    # Show/hide disclaimer notice in the footer. Default is "false".
+    disclaimer:
+      enable: true

+ 7 - 0
exampleSite/go.mod

@@ -0,0 +1,7 @@
+module github.com/hugo-toha/toha/exampleSite
+
+go 1.19
+
+require github.com/hugo-toha/hugo-toha.github.io v0.0.0-20221228191121-007f31838bd6 // indirect
+
+replace github.com/hugo-toha/toha/v4 => ../../toha

+ 2 - 0
exampleSite/go.sum

@@ -0,0 +1,2 @@
+github.com/hugo-toha/hugo-toha.github.io v0.0.0-20221228191121-007f31838bd6 h1:TPFhOZAnuH4wjLIdzimswCRa2qCcc1teKVTatADJU2g=
+github.com/hugo-toha/hugo-toha.github.io v0.0.0-20221228191121-007f31838bd6/go.mod h1:OMMaP9Hh9NsKd41lVIazBQRPa0s6Z57AfJoY3DcCNNY=

+ 1 - 1
go.mod

@@ -1,3 +1,3 @@
-module github.com/hugo-toha/toha/v3
+module github.com/hugo-toha/toha/v4
 
 go 1.19