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

github.com/davidhampgonsalves/hugo-black-and-light-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavid hamp-gonsalves <davidhampgonsalves@gmail.com>2020-06-13 15:42:53 +0300
committerGitHub <noreply@github.com>2020-06-13 15:42:53 +0300
commit8f1e724216fd25f2e68c0a911d74cc72773dc654 (patch)
tree4b9485aebdffd5c7e5d1ed9782935aa32893a5a5
parent0ee31aea08b84b8ccd798e70673545485f49e740 (diff)
parent3e9aa0eb3c70e68ee92012cacb20cdf8f77a1a4a (diff)
Merge pull request #24 from cconcannon/bugfix
fix justification of nav links and improve performance
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/partials/header.html4
-rw-r--r--layouts/partials/styles.html2
3 files changed, 6 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index b47b8f4..d20c4f8 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -15,10 +15,10 @@
<div id=links>
{{ if .PrevInSection }}
- <a class="basic-alignment left" href="{{.PrevInSection.Permalink}}">&laquo; {{.PrevInSection.Title}}</a>
+ <a class="left-justify" href="{{.PrevInSection.Permalink}}">&laquo; {{.PrevInSection.Title}}</a>
{{ end }}
{{ if .NextInSection }}
- <a class="basic-alignment left" href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}} &raquo;</a>
+ <a class="right-justify" href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}} &raquo;</a>
{{ end }}
</div>
</section>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 713d5de..46442bb 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -6,10 +6,10 @@
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer">
- {{ if .Site.Params.description }}<meta name="description" content="{{ .Site.Params.description }}">{{ end }}
+ <meta name="description" content="{{ .Description | default .Site.Params.Description }}">
{{ if not .Site.Params.disableWebFonts }}
- <link href='https://fonts.googleapis.com/css?family=Open+Sans:400|Old+Standard+TT:400&display=swap' rel='stylesheet' type='text/css'>
+ <link href="https://fonts.googleapis.com/css?family=Open+Sans:400|Old+Standard+TT:400&display=swap" rel="stylesheet" media="print" type="text/css" onload="this.media='all'">
{{ end }}
<title>
diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html
index bcea6b8..8647880 100644
--- a/layouts/partials/styles.html
+++ b/layouts/partials/styles.html
@@ -35,10 +35,12 @@
.left-justify {
float: left;
+ width: 45%;
}
.right-justify {
float:right;
+ width: 45%;
}
pre, code {