mirror of
https://github.com/foo-dogsquared/hugo-theme-more-contentful.git
synced 2025-02-12 00:19:02 +00:00
Update the site layout
Made the resulting HTML cleaner and added a color to the border for more personality.
This commit is contained in:
parent
1e0cf9bbd7
commit
023c34c22a
@ -17,6 +17,16 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
== Unreleased
|
||||||
|
|
||||||
|
=== Changed
|
||||||
|
|
||||||
|
* Clean the layouts.
|
||||||
|
* Change the style of the horizontal rule with colors.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
== [0.1.3] - 2020-11-06
|
== [0.1.3] - 2020-11-06
|
||||||
|
|
||||||
=== Changed
|
=== Changed
|
||||||
|
@ -122,6 +122,10 @@ mark {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border-color: var(--base0C);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Multimedia blocks */
|
/* Multimedia blocks */
|
||||||
img, video, audio, iframe {
|
img, video, audio, iframe {
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
font-family: var(--body-family);
|
font-family: var(--body-family);
|
||||||
font-size: var(--font-size);
|
font-size: var(--font-size);
|
||||||
background: var(--base00);
|
background: var(--base00);
|
||||||
color: var(--base06);
|
color: var(--base05);
|
||||||
line-height: var(--vertical-rhythm);
|
line-height: var(--vertical-rhythm);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -4,7 +4,9 @@
|
|||||||
<body>
|
<body>
|
||||||
{{- partial "components/theme-button.html" . }}
|
{{- partial "components/theme-button.html" . }}
|
||||||
{{- partial "header.html" . -}}
|
{{- partial "header.html" . -}}
|
||||||
|
<hr>
|
||||||
{{- block "main" . }}{{- end }}
|
{{- block "main" . }}{{- end }}
|
||||||
|
<hr>
|
||||||
{{- partial "footer.html" . -}}
|
{{- partial "footer.html" . -}}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<hr>
|
<section>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
</section>
|
||||||
|
|
||||||
{{- /* The homepage should show only pages from the given sections (with `$.Site.Params.mainSections`).
|
{{- /* The homepage should show only pages from the given sections (with `$.Site.Params.mainSections`).
|
||||||
Otherwise, we take the pages of a section. */ -}}
|
Otherwise, we take the pages of a section. */ -}}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
{{ if (and $is_toc (gt (countrunes .TableOfContents) 0)) }}
|
{{ if (and $is_toc (gt (countrunes .TableOfContents) 0)) }}
|
||||||
<style>
|
<style>
|
||||||
#TableOfContents:not(:empty)::before {
|
#TableOfContents:not(:empty)::before {
|
||||||
content: "{{ i18n "table_of_contents" }}";
|
content: "{{ i18n "table_of_contents" | default "Table of contents" }}";
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -6,18 +6,20 @@
|
|||||||
{{- range .Data.Terms }}
|
{{- range .Data.Terms }}
|
||||||
{{- $pages := .Pages }}
|
{{- $pages := .Pages }}
|
||||||
{{- if ge (len $pages) 1 }}
|
{{- if ge (len $pages) 1 }}
|
||||||
<header id="{{ .Page.Title | urlize }}" class="taxonomy__header">
|
<section id="{{ .Page.Title | urlize }}">
|
||||||
<h2>{{ .Page.Title }}</h2>
|
<header class="taxonomy__header">
|
||||||
<small>(<a href="{{ .Page.RelPermalink }}">{{ i18n "permalink" | default "Permalink" }}</a>)</small>
|
<h2>{{ .Page.Title }}</h2>
|
||||||
</header>
|
<small>(<a href="{{ .Page.RelPermalink }}">{{ i18n "permalink" | default "Permalink" }}</a>)</small>
|
||||||
<ul class="taxonomy__pages">
|
</header>
|
||||||
{{- range $pages }}
|
<ul class="taxonomy__pages">
|
||||||
<li class="taxonomy__page">
|
{{- range $pages }}
|
||||||
|
<li class="taxonomy__page">
|
||||||
<date datetime="{{ .PublishDate }}">{{ .PublishDate.Format "2006-01-02" }}</date>
|
<date datetime="{{ .PublishDate }}">{{ .PublishDate.Format "2006-01-02" }}</date>
|
||||||
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
</section>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
<hr>
|
|
||||||
<footer>
|
<footer>
|
||||||
<!-- A convenient back to top link. -->
|
<!-- A convenient back to top link. -->
|
||||||
<p><a href="#top">{{ i18n "back_to_top" | default "Back to top" }}</a></p>
|
<p><a href="#top">{{ i18n "back_to_top" | default "Back to top" }}</a></p>
|
||||||
|
Loading…
Reference in New Issue
Block a user