Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/saadnpq/npq-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsaadnpq <saadnpq@localhost.localdomain>2020-05-15 23:21:03 +0300
committersaadnpq <saadnpq@localhost.localdomain>2020-05-15 23:21:03 +0300
commit3e8aeaa35be978d123bb689c3b91140ad4a1eaa9 (patch)
treeefad4994fa54d1a8f851e526a1f0f30dea82b427
parent7e41ef70d8424d4ca08512f268493b2344c16e27 (diff)
fix alignment issue in footer
-rw-r--r--layouts/partials/footer.html24
-rw-r--r--static/css/style.css2
2 files changed, 14 insertions, 12 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index edf7f4e..859c917 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,16 +1,18 @@
<footer>
<div class="footer-content">
-<div class="contact-info">
- {{with .Site.Params.mail}}
- <div class="footer-mail">
- <i class="far fa-envelope"></i> <a href="mailto:{{.}}">{{.}}</a> </div>
- {{end}}
- {{with .Site.Params.phone}}
- <div class="footer-phone">
- <i class="fas fa-phone"></i> {{.}}
- </div>
- {{end}}
-</div>
+{{if (or (isset .Site.Params "mail") (isset .Site.Params "phone") ) }}
+ <div class="contact-info">
+ {{with .Site.Params.mail}}
+ <div class="footer-mail">
+ <i class="far fa-envelope"></i> <a href="mailto:{{.}}">{{.}}</a> </div>
+ {{end}}
+ {{with .Site.Params.phone}}
+ <div class="footer-phone">
+ <i class="fas fa-phone"></i> {{.}}
+ </div>
+ {{end}}
+ </div>
+{{end}}
{{with .Site.Copyright}}
<p class="copyright meta">{{.}}</p>
{{end}}
diff --git a/static/css/style.css b/static/css/style.css
index 9ca7dc8..19acc23 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -316,7 +316,7 @@ footer{
margin: auto;
display: flex;
flex-direction: row;
- justify-content: space-between;
+ justify-content: center;
align-items: center;
}