diff options
author | Miguel.Simoni <miguel.simoni@gmail.com> | 2021-05-08 16:01:21 +0300 |
---|---|---|
committer | Miguel.Simoni <miguel.simoni@gmail.com> | 2021-05-08 16:01:21 +0300 |
commit | a00168f52a7b5c6c9ff73d81a59fa3cee64e11f4 (patch) | |
tree | 1f6fa2a2aed0f3d6ee183c12a988ac51ba9e989f | |
parent | 94b5f41cbecd270bfe8592858242b776e70a3afa (diff) |
Homologate footer parameters. Update README.
-rw-r--r-- | README.md | 29 | ||||
-rw-r--r-- | exampleSite/config.toml | 14 | ||||
-rw-r--r-- | layouts/partials/footer/footer.html | 8 |
3 files changed, 31 insertions, 20 deletions
@@ -34,28 +34,38 @@ More info: [hugo setup guide](https://gohugo.io/overview/installing/) ## Configuration +[Live Demo](https://miguelsimoni.github.io/hugo-initio-site/) + [Example Site](https://github.com/miguelsimoni/hugo-initio/tree/master/exampleSite) [config.toml](https://github.com/miguelsimoni/hugo-initio/tree/master/exampleSite/config.toml) ### Sections +You can show or hide each home page section from the `config.toml`: ```toml showSubheader = true showServices = true showRecentWorks = true -showDownload = true +showDownloads = true showClients = true +``` + +### Footer -footerEnableContact = true -footerEnableFollowme = true -footerEnableTextWidget = false -footerEnableFormWidget = false +You can show or hide each footer widget from the `config.toml`: + +```toml +showFooterContact = true +showfooterFollowMe = true +showFooterTextWidget = true +showFooterFormWidget = true ``` -### Social Networks Icons -You can add as many social networks as you want in the params.social array following this template: +### Social Networks + +You can add as many social networks as you want in the `params.social` array following this template: ```toml [[params.social]] @@ -94,10 +104,11 @@ Disable the Google Analytics by leaving `params.google.analytics.trackerID` empt In order to see your site in action, you can run Hugo's built-in local server. ``` -$ hugo server +$ cd exampleSite +$ hugo server -t ../.. ``` -Now enter [`http://localhost:1313/hugo-initio-site/`](http://localhost:1313/hugo-initio-site/) in the address bar of your browser. +Now enter [`http://localhost:1313/`](http://localhost:1313/) in the address bar of your browser. ## Deployment diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 5429505..4b32f46 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -21,14 +21,14 @@ publishDir = "docs" showSubheader = true showServices = true - showRecentWorks = false - showDownloads = false - showClients = false + showRecentWorks = true + showDownloads = true + showClients = true - footerEnableContact = true - footerEnableFollowme = true - footerEnableTextWidget = true - footerEnableFormWidget = true + showFooterContact = true + showFooterFollowMe = true + showFooterTextWidget = true + showFooterFormWidget = true [[menu.main]] name = "home" diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index d868d3d..4f676dc 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,7 +1,7 @@ <footer id="footer"> <div class="container"> <div class="row"> - {{ if .Site.Params.footerEnableContact }} + {{ if .Site.Params.showFooterContact }} <div class="col-md-3 widget"> <h3 class="widget-title">Contact</h3> <div class="widget-body"> @@ -14,7 +14,7 @@ </div> {{ end }} - {{ if .Site.Params.footerEnableFollowme }} + {{ if .Site.Params.showFooterFollowMe }} <div class="col-md-3 widget"> <h3 class="widget-title">Follow me</h3> <div class="widget-body"> @@ -29,7 +29,7 @@ </div> {{ end }} - {{ if .Site.Params.footerEnableTextWidget }} + {{ if .Site.Params.showFooterTextWidget }} <div class="col-md-3 widget"> <h3 class="widget-title">Text widget</h3> <div class="widget-body"> @@ -43,7 +43,7 @@ </div> {{ end }} - {{ if .Site.Params.footerEnableFormWidget }} + {{ if .Site.Params.showFooterFormWidget }} <div class="col-md-3 widget"> <h3 class="widget-title">Form widget</h3> <div class="widget-body"> |