aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorJulien Dessaux2021-08-16 12:35:32 +0200
committerJulien Dessaux2021-08-16 12:35:32 +0200
commit78a6f5505d585fae4d32ae53304f7a1981263f4b (patch)
treef06b13877272ee11f6e6b4e115263326da4200f2 /layouts
parentFix w3c css validator errors and updated fonts (diff)
downloadwww-78a6f5505d585fae4d32ae53304f7a1981263f4b.tar.gz
www-78a6f5505d585fae4d32ae53304f7a1981263f4b.tar.bz2
www-78a6f5505d585fae4d32ae53304f7a1981263f4b.zip
Switched to a solarized color scheme
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html3
-rw-r--r--layouts/partials/nav.html4
-rw-r--r--layouts/partials/pagination.html4
3 files changed, 6 insertions, 5 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 5b4f442..07920c1 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -14,7 +14,8 @@
{{- $home := resources.Get "home.css" -}}
{{- $pagination := resources.Get "pagination.css" -}}
{{- $footer := resources.Get "footer.css" -}}
- {{- $allCss := slice $base $header $home $pagination $footer | resources.Concat "static/all.css" | fingerprint | minify -}}
+ {{- $solarized := resources.Get "solarized.css" -}}
+ {{- $allCss := slice $base $header $home $pagination $footer $solarized | resources.Concat "static/all.css" | fingerprint | minify -}}
<link rel="stylesheet" href="{{ $allCss.Permalink }}">
{{ range .AlternativeOutputFormats -}}
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index f54ae38..97f494e 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -12,8 +12,8 @@
{{- end -}}
{{- $url := urls.Parse .URL -}}
{{- $baseurl := urls.Parse $.Site.Params.Baseurl -}}
- <li>
- <a{{if $active }} class="nav-menu-active"{{end}} href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}"{{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}>{{ .Name }}</a>
+ <li{{if $active }} class="nav-menu-active"{{end}}>
+ <a href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}"{{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}>{{ .Name }}</a>
</li>
{{ end }}
</ul>
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html
index 7220408..e2724ec 100644
--- a/layouts/partials/pagination.html
+++ b/layouts/partials/pagination.html
@@ -2,7 +2,7 @@
{{- if gt $pag.TotalPages 1 -}}
<ul class="pagination">
{{ with $pag.First -}}
- <li{{ if not $pag.HasPrev }} class="pagination-disabled"{{ end }}>
+ <li {{ if $pag.HasPrev }}class="pagination-enabled"{{ else }}class="pagination-disabled"{{ end }}>
<a {{ if $pag.HasPrev }}href="{{ .URL }}"{{ end }} aria-label="First"><span aria-hidden="true">&laquo;</span></a>
</li>
{{ end -}}
@@ -12,7 +12,7 @@
</li>
{{- end }}
{{- with $pag.Last }}
- <li{{ if not $pag.HasNext }} class="pagination-disabled"{{ end }}>
+ <li {{ if $pag.HasNext }}class="pagination-enabled"{{ else }}class="pagination-disabled"{{ end }}>
<a {{ if $pag.HasNext }}href="{{ .URL }}"{{ end }} aria-label="Last"><span aria-hidden="true">&raquo;</span></a>
</li>
{{- end }}