Allow hiding newsletter section from footer

This commit is contained in:
hossainemruz 2020-07-22 22:23:54 +06:00
parent 74bf5e9941
commit da92162264
2 changed files with 8 additions and 1 deletions

View file

@ -52,6 +52,11 @@ params:
- name: Notes
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
author:
name: "Jane Doe"

View file

@ -24,6 +24,7 @@
{{ end }}
</ul>
</div>
{{ if .Site.Params.newsletter.enable }}
<div class="col-md-4 col-sm-12">
<!-- <h5>Newsletter</h5> -->
<p>Stay up to date with email notification</p>
@ -43,6 +44,7 @@
<button type="submit" class="btn btn-info">Submit</button>
</form>
</div>
{{ end }}
</div>
</div>
<hr />
@ -50,7 +52,7 @@
<div class="row text-left">
<div class="col-md-4">
<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
</a>
</div>