updated vendor

This commit is contained in:
Marcell Mars 2020-12-10 02:17:06 +01:00
parent ce7ffc68d9
commit 2edad77a52
6 changed files with 117 additions and 16 deletions

View file

@ -201,6 +201,16 @@ body {
color: black; color: black;
} }
sup, sub {
vertical-align: baseline;
position: relative;
top: -0.4em;
}
sub {
top: 0.4em;
}
.headiter { .headiter {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

View file

@ -82,6 +82,16 @@ body {
color: black; color: black;
} }
sup, sub {
vertical-align: baseline;
position: relative;
top: -0.4em;
}
sub {
top: 0.4em;
}
.headiter { .headiter {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -287,11 +297,6 @@ img {
margin-bottom: 4rem; margin-bottom: 4rem;
} }
.has, .afterhas {
font-style: italic;
font-size: 1.4rem;
}
.grid { .grid {
padding-left: 3rem; padding-left: 3rem;
margin-bottom: 4rem; margin-bottom: 4rem;
@ -332,14 +337,39 @@ img {
} }
.rightcolumn { .rightcolumn {
/* display: grid;
grid-column: 2; grid-column: 2;
display: grid;
grid-template-columns: auto 1fr; grid-template-columns: auto 1fr;
grid-auto-rows: max-content; */
padding-left: 0.5rem; padding-left: 0.5rem;
} }
.has { .has {
display: inline-grid;
grid-column: 2;
grid-auto-rows: max-content;
font-size: 1.4rem;
font-style: italic;
margin-bottom: 0.8rem;
}
.hasauthors {
font-size: 1.6rem !important;
}
.hassup {
grid-column: 1; grid-column: 1;
font-family: 'Great Vibes', cursive;
font-size: 0.9em;
font-style: normal;
color: red;
vertical-align: baseline;
position: relative;
/* top: -0.3em; */
}
.afterhas {
grid-column: 2;
} }
.content { .content {
@ -391,6 +421,38 @@ h6 {
font-size: 1rem; font-size: 1rem;
} }
.abstract {
margin-top: 1.4rem;
padding-bottom: 1rem;
font-style: italic;
border-left: 1px solid rgb(0, 0, 0);
margin-left: 5rem;
margin-right: 2rem;
padding-left: 1rem;
padding-right: 2rem;
padding-top: 0.1rem;
padding-bottom: 0.1rem;
background-color: rgba(0, 0, 0, 0.05);
max-width: 70ch;
}
.authors {
display: inline-block;
font-size: 1.8rem;
margin-left: 5rem;
margin-right: 2rem;
padding-left: 1rem;
}
.keywords {
display: inline-block;
font-size: 1rem;
margin-left: 5rem;
margin-right: 2rem;
padding-left: 1rem;
margin-bottom: 2.2rem;
}
blockquote { blockquote {
border-left: 1px red solid; border-left: 1px red solid;
margin-left: 1rem; margin-left: 1rem;

File diff suppressed because one or more lines are too long

View file

@ -23,6 +23,17 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ with $authors := $p.Params.authors }}
{{ range $author := $authors }}
{{ $authorLink := printf "/author/%s" $author }}
{{ with ($_.Get $authorLink) }}
{{ $_.SetInMap $authorLink "backlinks" (uniq ((index ($_.Get $authorLink) "backlinks") | append $p)) }}
{{ else }}
{{ $_.SetInMap $authorLink "backlinks" (slice $p) }}
{{ end }}
{{ end }}
{{ end }}
{{ $gp := $.GetPage $pPath }} {{ $gp := $.GetPage $pPath }}
{{ $gpPath := printf "/%s" $gp.File }} {{ $gpPath := printf "/%s" $gp.File }}
{{ range $k, $v := $gp.Params }} {{ range $k, $v := $gp.Params }}

View file

@ -8,7 +8,7 @@
{{ $currentFile := (printf "/%s" .File) }} {{ $currentFile := (printf "/%s" .File) }}
{{ $scratch := $s.Get $currentFile }} {{ $scratch := $s.Get $currentFile }}
<div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}:&thinsp;{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div> <div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
<div class="grid"> <div class="grid">
<div class="leftcolumn"> <div class="leftcolumn">
@ -17,46 +17,64 @@
{{ end }} {{ end }}
</div> </div>
<div class="rightcolumn"> <div class="rightcolumn">
{{- range $k, $v := .Page.Params.authors -}}
{{- with $.GetPage (printf "/author/%s" $v) -}}
{{- with not $k -}}
<div class="has hasauthors">
<div class="hassup">authors</div>
<div class="afterhas">
{{- end -}}
<div class="crust">
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
</div>
{{- end -}}
{{- end -}}
{{- with .Page.Params.authors -}}</div></div>{{- end -}}
{{ if in .Page.Site.Params.sandpointsMentionedIn (substr $currentDir 0 -1) }} {{ if in .Page.Site.Params.sandpointsMentionedIn (substr $currentDir 0 -1) }}
<div class="has"> <div class="has">
{{ with $scratch.backlinks }} {{ with $scratch.backlinks }}
<span class="sup">mentioned in</span> <div class="hassup">mentioned in</div>
{{ end }} {{ end }}
</div>
<div class="afterhas"> <div class="afterhas">
{{ range $scratch.backlinks }} {{ range $scratch.backlinks }}
<div class="{{ $scratch.child_depth }}"> <div class="{{ $scratch.child_depth }}">
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a> <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
</div> </div>
{{ end }} {{ end }}
</div></div>
{{ end }} {{ end }}
{{ if and (not (eq $scratch.depth "crust")) $scratch.has_children }} {{ if and (not (eq $scratch.depth "crust")) $scratch.has_children }}
<div class="has"> <div class="has">
{{ with $scratch.has }} {{ with $scratch.has }}
<span class="sup">has {{ $scratch.has }}</span> <div class="hassup">has {{ $scratch.has }}</div>
{{ end }} {{ end }}
</div>
<div class="afterhas"> <div class="afterhas">
{{ range $scratch.has_children }} {{ range $scratch.has_children }}
<div class="{{ $scratch.child_depth }}"> <div class="{{ $scratch.child_depth }}">
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a> <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
</div> </div>
{{ end }} {{ end }}
</div></div>
{{ end }} {{ end }}
{{ if eq $scratch.depth "crust" }} {{ if eq $scratch.depth "crust" }}
<div class="has"> <div class="has">
<span class="sup">in {{ index $scratch.in 1 }}</span> <div class="hassup">in {{ index $scratch.in 1 }}</div>
</div>
<div class="afterhas"> <div class="afterhas">
{{ range $scratch.is_in }} {{ range $scratch.is_in }}
<div class="{{ substr $currentDir 0 -1 }}"> <div class="{{ substr $currentDir 0 -1 }}">
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a> <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
</div> </div>
{{ end }} {{ end }}
</div></div>
{{ end }} {{ end }}
</div> </div>
</div>
</div> </div>
{{ with .Page.Params.abstract }}<div class="abstract"><span class="supt">abstract</span>{{ . | markdownify }}</div>{{ end }}
{{- $vld := false -}}{{- range $k, $v := .Page.Params.keywords -}}{{- if eq $k 0 -}}{{- $vld = true -}}<div
class="keywords"><span class="sup">keywords</span>{{- $v -}}{{- else -}},
{{- $v -}}{{- end -}}{{- end -}}{{- with $vld -}}</div>{{- end -}}

View file

@ -1 +1 @@
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201209090354-47f7e8f5689e # git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201210011602-395340c37b3e