Compare commits
4 commits
f7f4f1e00c
...
a2a1dd2a7c
Author | SHA1 | Date | |
---|---|---|---|
a2a1dd2a7c | |||
628acae725 | |||
728e840dc5 | |||
7210d1c959 |
12 changed files with 55 additions and 32 deletions
|
@ -1,13 +1,17 @@
|
|||
.site-footer {
|
||||
grid-area: footer;
|
||||
display: block;
|
||||
inline-size: 100%;; /* Overflows right of viewport otherwise */
|
||||
inline-size: 100%; /* Overflows right of viewport otherwise */
|
||||
|
||||
@include mq("medium") {
|
||||
position: fixed;
|
||||
inset-block-end: 0;
|
||||
}
|
||||
|
||||
& p {
|
||||
text-align: center;
|
||||
background: $light;
|
||||
margin-block-start: 0;
|
||||
padding: 0.4em;
|
||||
margin-block-end: unset;
|
||||
border-block-end: none;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
". page-container ."
|
||||
"footer footer footer";
|
||||
border: 2px solid black;
|
||||
margin-inline: 2em;
|
||||
margin: 2em;
|
||||
}
|
||||
|
||||
&--homepage {
|
||||
|
|
|
@ -66,3 +66,4 @@ markup:
|
|||
|
||||
ignoreErrors:
|
||||
- "missing-cite"
|
||||
- "size-set-on-non-resizable"
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
title: CV
|
||||
layout: cv
|
||||
type: cv
|
||||
layout: cv-root
|
||||
---
|
||||
|
||||
This section is for things you have done in your life, e.g. jobs, roles,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Portfolio
|
||||
type: portfolio
|
||||
layout: portfolio-root
|
||||
---
|
||||
|
||||
This section is for things you have produced, whatever their formats and media.
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
{{- warnf "Requested size %s is more than image width %d (%q)" $width $img.Width $img.File.Path -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- warnf "Size set on non-resizable image of type %s; ignoring" $img.MediaType.SubType -}}
|
||||
{{- warnidf "size-set-on-non-resizable" "Size set on non-resizable image of type %s; ignoring" $img.MediaType.SubType -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
|
|
@ -21,17 +21,17 @@
|
|||
<!-- Rendering -->
|
||||
|
||||
<section
|
||||
class="article-body__corrigendum"
|
||||
class="article-body__corrigenda"
|
||||
itemprop="correction"
|
||||
itemscope
|
||||
itemtype="https://schema.org/CorrectionComment"
|
||||
>
|
||||
<h2
|
||||
class="subheading subheading--corrigendum"
|
||||
id="corrigendum"
|
||||
class="subheading subheading--corrigenda"
|
||||
id="corrigenda"
|
||||
>
|
||||
Corrigendum
|
||||
Corrigenda
|
||||
</h2>
|
||||
{{ $file := path.Join $.sc.Page.File.Dir "corrigendum.md" | readFile }}
|
||||
{{ $file := path.Join $.sc.Page.File.Dir "corrigenda.md" | readFile }}
|
||||
{{ $file | .pc.RenderString }}
|
||||
</section>
|
|
@ -69,7 +69,7 @@
|
|||
{{- end -}}
|
||||
</head>
|
||||
|
||||
<body class="site-container site-container {{ block "main-class" . }}layouts-default-baseof layouts-default-baseof-single{{ end }}">
|
||||
<body class="site-container site-container{{ block "main-class" . }} layouts-default-baseof layouts-default-baseof-single{{ end }}">
|
||||
{{- block "header" . -}}
|
||||
{{- partialCached "header/site-header.html" . -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,16 +1,12 @@
|
|||
{{ define "main-class" }}--section layouts-cv-cv{{ end }}
|
||||
|
||||
{{ define "header-scripts" }}
|
||||
{{ if ( or ( eq .Type "cv" ) ( .IsDescendant ( .GetPage "/cv/organisations" ) ) ) }}
|
||||
<script id="Google-Charts-script" src="/js/google-charts/google-charts.js"></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer-scripts" }}
|
||||
{{ if ( not ( .IsDescendant ( .GetPage "/cv/organisations" ) ) ) }}
|
||||
{{ $js := resources.Get "js/roles-chart.js" | resources.ExecuteAsTemplate "/js/render-roles-timeline.js" ( .GetPage "cv/roles" ) | resources.Fingerprint }}
|
||||
<script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}"></script>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main-header" }}
|
|
@ -10,17 +10,10 @@
|
|||
{{ end }}
|
||||
</h2>
|
||||
{{ .Content }}
|
||||
|
||||
{{ if ne .Type "portfolio" }}
|
||||
<nav class="page-header__minor-links">
|
||||
{{ partial "years-list.html" . }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
</header>
|
||||
{{ end }}
|
||||
|
||||
{{ define "main-body" }}
|
||||
{{ if eq .Type "portfolio" }}
|
||||
<article class="site-content__body site-content__body--list">
|
||||
<ul class="site-content__sections-list">
|
||||
{{ range .Sections.ByWeight }}
|
||||
|
@ -29,7 +22,4 @@
|
|||
{{ end }}
|
||||
</ul>
|
||||
</article>
|
||||
{{ else }}
|
||||
{{ partial "items-grid.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
22
layouts/section.html
Normal file
22
layouts/section.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
{{ define "main-class" }}--section layouts-default-section{{ end }}
|
||||
|
||||
{{ define "main-header" }}
|
||||
<header class="site-content__header">
|
||||
<h2 class="page-title">{{ .Title | safeHTML }}.
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
<img class="feed-icon" src="{{ $.Site.Params.feedIcon }}">
|
||||
</a>
|
||||
{{ end }}
|
||||
</h2>
|
||||
{{ .Content }}
|
||||
|
||||
<nav class="page-header__minor-links">
|
||||
{{ partial "years-list.html" . }}
|
||||
</nav>
|
||||
</header>
|
||||
{{ end }}
|
||||
|
||||
{{ define "main-body" }}
|
||||
{{ partial "items-grid.html" . }}
|
||||
{{ end }}
|
11
layouts/single.html
Normal file
11
layouts/single.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{ define "main-class" }}--single layouts-default-single{{ end }}
|
||||
|
||||
{{ define "main-body-additional" }}
|
||||
{{ if fileExists ( path.Join $.Page.File.Dir "appendices.md" ) }}
|
||||
{{- partial "single/main-body/appendices.html" ( dict "pc" . "sc" $ ) -}}
|
||||
{{ end }}
|
||||
|
||||
{{ if fileExists ( path.Join $.Page.File.Dir "corrigenda.md" ) }}
|
||||
{{- partial "single/main-body/corrigenda.html" ( dict "pc" . "sc" $ ) -}}
|
||||
{{ end }}
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue