!publish! mod vendor...

master
Marcell Mars 3 years ago
parent 6dab3f8afe
commit 17fe88ec24

@ -60,7 +60,7 @@ button:focus {
/* custom part */
form {
.formgrid {
display: grid;
grid-template-columns: auto 1fr;
grid-gap: 1rem;
@ -72,12 +72,12 @@ form {
margin-top: 1rem;
}
label {
label, .filepath {
grid-column: 1/2;
text-transform: capitalize;
}
input, button, textarea, .selecttier {
input, button, textarea, .selecttier, .relpath {
grid-column: 2/3;
}
@ -99,6 +99,7 @@ textarea {
.tierline {
display: flex;
align-items: baseline;
}
.tiertitle {
@ -110,3 +111,51 @@ textarea {
margin-left: auto;
padding-left: 0.2rem;
}
select {
align-self: start;
border: 0;
padding: 0.1rem;
}
.selecttier {
margin-top: 0.5rem;
}
.buttons button {
border: solid #999 1px;
padding: 0;
padding-left: 0.1rem;
padding-right: 0.1rem;
margin: 1px;
}
.filepath {
font-size: large;
font-style: italic;
margin-bottom: 1rem;
}
.relpath {
font-size: large;
font-weight: bold;
}
.tierbox, #selecthas {
margin-top: 0.5rem;
}
.fmHidden {
display: none;
}
.fmShown {
display: grid;
grid-template-columns: auto 1fr;
grid-gap: 1rem;
}
.togglefold {
margin-top: 1rem;
margin-bottom: 1rem;
}

@ -9,7 +9,8 @@
{{ $scratch := $s.Get $currentFile }}
{{ $sandnamePlural := (slice) }}
{{ $sandnameSingular := "" }}
{{ $mentionLink := "" }}
<div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
@ -32,12 +33,17 @@
{{ $mentions := intersect $paramsKeys $sandnamePlural }}
{{ range $mention := $mentions }}
{{ range $k, $m := index $currentNode.Params $mention }}
{{ $mentionLink := printf "/%s/%s" (substr $mention 0 -1) $m }}
{{ range $k, $v := $.Site.Data.sandpointsnamegraph }}
{{ if eq $v $mention }}
{{ $mentionLink = printf "/%s/%s" $k $m }}
{{ $sandnameSingular = $k }}
{{ end }}
{{ end }}
{{- with $.GetPage $mentionLink -}}
{{- with not $k -}}
{{ $closeDivs = true }}
<div class="has hasauthors">
<div class="hassup">{{ with (index $currentNode.Params $mention) }}{{ if gt (len (index $currentNode.Params $mention)) 1 }}{{ $mention }}{{ else }}{{ substr $mention 0 -1 }}{{ end }}{{ end }}</div>
<div class="hassup">{{ with (index $currentNode.Params $mention) }}{{ if gt (len (index $currentNode.Params $mention)) 1 }}{{ $mention }}{{ else }}{{ $sandnameSingular }}{{ end }}{{ end }}</div>
<div class="afterhas">
{{- end -}}
<div class="crust">

@ -1,2 +1,2 @@
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210518233224-555c8051a159
# git.sandpoints.org/Drawwell/SandpointsEditPage v0.0.0-20210430215933-46a4decd1e9b
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210525005428-46407d6d7eae
# git.sandpoints.org/Drawwell/SandpointsEditPage v0.0.0-20210608103907-b24f80e496c9

@ -33,7 +33,7 @@ disableKinds = ["RSS", "sitemap"]
[module]
# replacement allow for easier local development
replacements = ["git.sandpoints.org/Drawwell/SandpointsTheme -> /home/m/devel/SandpointsTheme", "git.sandpoints.org/Drawwell/SandpointsEditPage -> /home/m/devel/SandpointsEditPage"]
# replacements = ["git.sandpoints.org/Drawwell/SandpointsTheme -> /home/m/devel/SandpointsTheme", "git.sandpoints.org/Drawwell/SandpointsEditPage -> /home/m/devel/SandpointsEditPage"]
[[module.imports]]
path = "git.sandpoints.org/Drawwell/SandpointsTheme"
[[module.imports.mounts]]
@ -78,7 +78,7 @@ disableKinds = ["RSS", "sitemap"]
target = "static/edit/build/bundle.js.map"
# [[module.imports.mounts]]
# [[MODULE.imports.mounts]]
# source = "customizations/Dotawo/assets/css/site.css"
# target = "assets/css/site.css"
# [[module.imports.mounts]]

Loading…
Cancel
Save