Here is the default configuration and basic parameters for your website. You can change those as per your requirements.
Default configuration
In this project folder, you will find a file called config.toml. Open this file in any text editor or IDE.
- baseURL field for your website URL / domain. Add your site URL here. Remember, you need to add a trailing slash at the end of the URL.
- languageCode defines your global site language. For more information, see Official Hugo Docs.
- title is for the main title of your website.
- theme sets up the used theme. If your theme is located in
my-project/themes/theme-name
folder, then the value for this parameter istheme-name
. - summaryLength decides how many words are in excerpts of your posts when they are displayed as a preview. The default
summaryLength
is 70 words. - paginate set the number of posts shown on blog overview pages. If you have more than this amount of posts, pagination will be visible to navigate the next set of posts.
- disqusShortname add your Disqus shortname to enable comments on the blog section. To install Disqus please follow this tutorial.
- googleAnalytics add your Google Analytics ID to enable analytics on all pages. # example: UA-123-45. For more info, read the article. If you want another third-party analytics, you can contact us for custom service.
Default Parameters
In this project folder, you will find a file called config.toml. Open this file in any text editor or IDE.
- logo is for your website logo. Place your logo in the
assets/images
folder and put the path here. - description is for your default meta description. It shows on your homepage and other pages that have no meta description on this page front-matter.
- author is for the website author name. It is used in the meta author tag.
- copyright is for copyright text at the bottom of the page.
- preloader is for your website preloader, which means it will show up until your website loads properly in the background. You can enable or disable preloader by setting the value of
enable
astrue
orfalse
. If you want to put any image, logo, or animation as your preloader, give the file location in thepreloader =
, ex:preloader = images/preloader.gif
. If you don’t want any logo or image, leave the preloader field empty. So it will show just a white screen when every component is loading.
- snipcartAPI is for active the snipcart, go to snipcart , create your account and generate a snipcart public API key. and replace with it.
- currency is for your store currency.
- googleAnalitycsID is for turn on google analytics on your site, give your won analytics ID here.
- contactFormAction is for enable contact form in contact page, contact form works with formspree.
- Search is for blog post search, you can enable or disable it from here.