diff options
author | Huy Nguyen <huyb.1991@gmail.com> | 2019-03-14 16:51:06 +0300 |
---|---|---|
committer | Huy Nguyen <huyb.1991@gmail.com> | 2019-03-14 16:51:06 +0300 |
commit | 3e442a5b3e935766d3eb6ad8256e32797d849de0 (patch) | |
tree | ddbcb6f5bb9fd84fd0c660d83b3dd45871616c2b /docs | |
parent | 341c73b74cd8ca30f43b32b62f3534b10ac0ef92 (diff) |
Split document for configuration
Diffstat (limited to 'docs')
-rw-r--r-- | docs/configuration.md | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/docs/configuration.md b/docs/configuration.md new file mode 100644 index 0000000..b2ee4a0 --- /dev/null +++ b/docs/configuration.md @@ -0,0 +1,80 @@ +# Configuration + +Take a look inside the [exampleSite](https://github.com/huyb1991/hugo-lamp/tree/master/exampleSite) at `config.toml` and update by your own: + +## Site Info +```toml +# Base config for your site +baseURL = "http://localhost:1313/" # Your domain +languageCode = "en-us" +title = "Hugo LAMP" # Default site title +theme = "hugo-lamp" +googleAnalytics = "UA-XXXXXXXX-X" # Google Analytics UA number +``` + +## Main Menu +```toml +[[menu.main]] + name = "Hugo" + weight = 1 + identifier = "hugo" + url = "/hugo/" +[[menu.main]] + name = "AMP Project" + weight = 2 + identifier = "amp" + url = "/amp/" +[[menu.main]] + name = "Tags" + weight = 3 + identifier = "tags" + url = "/tags/" +``` + +## Taxonomies +For more details, take a look on official document for [taxonomies](https://gohugo.io/content-management/taxonomies/) + +```toml +[taxonomies] + tag = "tags" + category = "categories" +``` + +## SEO +```toml +[params] + subtitle = "Light responsive AMP theme" + author = "Huy Nguyen" # Your name + logo = "/img/avatar.jpg" # Logo + description = "A light responsive Hugo AMP theme for blogger" # Meta description tag + paginate = 10 + + # SEO configs + seotitle = "Hugo Blog Title (SEO Version)" # Overwrite site title for SEO purpose + googleSiteVerification = "google_site_verification_code" # Google Webmaster + msValidate = "bing_site_verification_code" # Bing Webmaster +``` + +## Publisher +Currently only support Google Adsense as usual, maybe implement [amp-auto-ads](https://www.ampproject.org/docs/reference/components/amp-auto-ads) for future. + +```toml + # Google Adsense + adsensePublisher = "ca-pub-XXX" # Required if you want to include Google Adsense + adsenseSlot = "XXX" # Required slot to display ads + adsenseSlotSticky = "XXX" # Enables sticky ads feature, value maybe the same with adsenseSlot, remove if you don't want display sticky ads +``` + +## Social networks & connections +```toml + # Social networks + email = "name@domain.com" + github = "github_username" + twitter = "twitter_username" + linkedin = "linkedin_username" + facebook = "facebook_username" + google = "googleplus_id_number" + instagram = "instagram_username" + youtube = "youtube_username" + dribbble = "dribbble_username" +``` |