Allow hiding newsletter section from footer (#48)

* Allow hiding newsletter section from footer

* Update README.md
This commit is contained in:
Md. Emruz Hossain 2020-07-22 22:27:33 +06:00 committed by GitHub
parent 74bf5e9941
commit 7da028e643
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 1 deletions

View file

@ -81,6 +81,13 @@ params:
# background image of the landing page # background image of the landing page
background: "images/background.jpg" background: "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.png
inverted: /assets/images/inverted-logo.png
# GitHub repo URL of your site # GitHub repo URL of your site
gitRepo: https://github.com/hossainemruz/toha-example-site gitRepo: https://github.com/hossainemruz/toha-example-site
@ -96,6 +103,11 @@ params:
- name: Notes - name: Notes
url: https://hossainnotes.netlify.app/docs/example/ url: https://hossainnotes.netlify.app/docs/example/
# Provide newsletter configuration. This feature hasn't been implemented yet.
# Currently, you can just hide it from the footer.
newsletter:
enable: true
# some information about you # some information about you
author: author:
name: "Jane Doe" name: "Jane Doe"

View file

@ -52,6 +52,11 @@ params:
- name: Notes - name: Notes
url: https://hossainnotes.netlify.app/docs/example/ url: https://hossainnotes.netlify.app/docs/example/
# Provide newsletter configuration. This feature hasn't been implemented yet.
# Currently, you can just hide it from the footer.
newsletter:
enable: true
# some information about you # some information about you
author: author:
name: "Jane Doe" name: "Jane Doe"

View file

@ -24,6 +24,7 @@
{{ end }} {{ end }}
</ul> </ul>
</div> </div>
{{ if .Site.Params.newsletter.enable }}
<div class="col-md-4 col-sm-12"> <div class="col-md-4 col-sm-12">
<!-- <h5>Newsletter</h5> --> <!-- <h5>Newsletter</h5> -->
<p>Stay up to date with email notification</p> <p>Stay up to date with email notification</p>
@ -43,6 +44,7 @@
<button type="submit" class="btn btn-info">Submit</button> <button type="submit" class="btn btn-info">Submit</button>
</form> </form>
</div> </div>
{{ end }}
</div> </div>
</div> </div>
<hr /> <hr />
@ -50,7 +52,7 @@
<div class="row text-left"> <div class="row text-left">
<div class="col-md-4"> <div class="col-md-4">
<a id="theme" href="https://github.com/hossainemruz/toha" target="#"> <a id="theme" href="https://github.com/hossainemruz/toha" target="#">
<img src="/assets/images/logo-inverted.png"> <img src="/assets/images/inverted-logo.png">
Toha Toha
</a> </a>
</div> </div>