Don’t use SSH URL of the theme during adding as git sub-module. Also, don’t clone the theme in your themes directory using git clone. They don’t work well with Github Action or Netlify.
If you want to customize the theme templates, then fork it and use the fork as your theme.
Configure your config.yaml file of your site as below:
baseURL: http://example.org/languageCode: en-ustitle: "Toha"theme: "toha"# Manage languages# For any more details, you can check the official documentation: https://gohugo.io/content-management/multilingual/languages:
languageName: Englishweight: 1fr:
languageName: Françaisweight: 2bn:
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: fr# Allow raw html in markdown filemarkup:
startLevel: 2endLevel: 6ordered: false# Enable Google AnalyticsgoogleAnalytics: UA-XXXXXXXXX-X# Enable Disqus forumdisqusShortname: does-not-exist# Enable global emoji supportenableEmoji: true# Custom parametersparams:
# background image of the landing pagebackground: "images/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.# It will be default to the theme logos if not provided.logo:
main: /assets/images/main-logo.pnginverted: /assets/images/inverted-logo.pngfavicon: /assets/images/favicon.png# GitHub repo URL of your sitegitRepo: https://github.com/hossainemruz/toha-example-site# specify whether you want to write blog post or notenableBlogPost: true# specify whether you want to show Table of Contents in reading pageenableTOC: true# Provide newsletter configuration. This feature hasn't been implemented yet.# Currently, you can just hide it from the footer.newsletter:
You can just copy the content for config.yaml files from theme/toha/exampleSite/config.yaml.
If you want to customize the any of the CSS styles on your site, create a
static/assets/css/style.css file and add any custom CSS there.
Run your hugo site with this theme.
hugo server -w
When you first run your site, it will start with the default parameters. It should look similar to the example site except it will not have any sections in the homepage. Those sections are added via some data files.
You can configure your site by following the step by step guides from here.
Here, are some handy shortcodes you can use with this theme.