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-04-11 15:51:04 +0300
committersaadnpq <saadnpq@localhost.localdomain>2020-04-11 15:51:04 +0300
commit7c5e438af0a3602003917ac661f61e2134099b40 (patch)
tree07905afa7c3582846c24f85f2f3d2a4d3e584a0a
parent1bff7cc487aa424fe69c22376ecb1da72d578f5e (diff)
support default example site
-rw-r--r--layouts/index.html4
-rw-r--r--layouts/partials/aside.html2
-rw-r--r--layouts/partials/footer.html3
-rw-r--r--layouts/shortcodes/contact.html4
-rw-r--r--static/css/style.css17
5 files changed, 23 insertions, 7 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 1ac5c02..a936a8d 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,8 +1,8 @@
{{define "main"}}
- {{if .Site.Params.displayRecent }}
+ {{if ne .Site.Params.displayRecent false}}
<div class="section">
<div class="section-title">recent</div>
- {{range first .Site.Params.recentMax (where .Site.RegularPages "Section" "ne" "posts")}}
+ {{range first (default 4 .Site.Params.recentMax) (where .Site.RegularPages "Section" "ne" "posts")}}
<div class="list-item">
<a class="entry-title" href="{{ .URL }}">{{ .Title }}</a>
{{$page := .}}
diff --git a/layouts/partials/aside.html b/layouts/partials/aside.html
index 8f5d674..07e3561 100644
--- a/layouts/partials/aside.html
+++ b/layouts/partials/aside.html
@@ -1,7 +1,7 @@
<aside id="sidenav">
<header>
<a href="{{ .Site.BaseURL }}"><img src="/avatar.png" alt="avatar"></a>
- <a id="branding" href="{{ .Site.BaseURL }}">{{ .Site.Params.author | safeHTML }}</a>
+ <a id="branding" href="{{ .Site.BaseURL }}">{{ .Site.Title | safeHTML }}</a>
</header>
<nav>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index d8a3186..4bcd5e6 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -10,4 +10,7 @@
</div>
{{end}}
</div>
+{{with .Site.Copyright}}
+<p class="copyright meta">{{.}}</p>
+{{end}}
</footer> \ No newline at end of file
diff --git a/layouts/shortcodes/contact.html b/layouts/shortcodes/contact.html
index ade324c..a3d6c2c 100644
--- a/layouts/shortcodes/contact.html
+++ b/layouts/shortcodes/contact.html
@@ -8,5 +8,5 @@ method="POST"
<textarea id="message" name="message" placeholder="Your message"></textarea>
<button class="reach-me-send" type="submit">Send</button>
-{{end}}
-</form> \ No newline at end of file
+</form>
+{{end}} \ No newline at end of file
diff --git a/static/css/style.css b/static/css/style.css
index 32c4151..64fc90a 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -108,11 +108,11 @@ aside nav a:hover {
font-size: 32px;
margin-top: 10px;
margin-bottom: 20px;
- color: #E8E8E8;
+ color: rgb(188, 188, 196);
}
#npq{
- color: #BFBFBF;
+ color: rgb(119, 125, 143);
}
#closebtn {
@@ -274,11 +274,15 @@ footer{
display: flex;
flex-direction: column;
justify-content: space-around;
+ align-items: center;
padding: 30px;
margin-top: 40px;
border-top: 1px solid #3D3D3D;
background-color:rgb(30, 34, 39) ;
}
+.copyright{
+ text-align: center;
+}
.contact-form {
display: flex;
@@ -313,10 +317,19 @@ footer{
.contact-info {
display: flex;
+ width: 100%;
flex-direction: row;
justify-content: space-around;
}
+/* .footer-phone{
+ margin-left: 20px;
+}
+.footer-mail{
+ margin-right: 20px;
+
+} */
+
@media only screen and (max-width: 650px){
#sidenav {
width: 0px;