diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/assets/css/site.css b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/assets/css/site.css index cfc4cd0..0e8e5fb 100644 --- a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/assets/css/site.css +++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/assets/css/site.css @@ -876,6 +876,10 @@ details { background-color: #fff9f9; } +.svedit { + margin-left: 0.5rem; +} + @media (max-width: 767px) { html { box-sizing: border-box; diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/assets/js/sandpoints.js b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/assets/js/sandpoints.js index 14d9303..23188a9 100644 --- a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/assets/js/sandpoints.js +++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/assets/js/sandpoints.js @@ -63,7 +63,7 @@ function editPage(repoJsId) { } el.src = `${relPath}js/repo/${repoJsId}.js` document.body.appendChild(el) - document.location.href = `${relPath}svedit/index.html#${repoJsId}` + document.location.href = `${relPath}edit/index.html#${repoJsId}` ev} window.addEventListener("keyup", (e)=> { diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/list.html b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/list.html index 62c1535..1aacf81 100644 --- a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/list.html +++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/list.html @@ -6,6 +6,9 @@ {{ $currentDir = .Dir }} {{ end }} {{ $currentFile := (printf "/%s" .File) }} + {{ $editFile := $.Site.GetPage "/edit" }} + {{ $editFilePath := $editFile.RelPermalink }} +
Sitemap⁄{{ substr $.Site.Title 0 1 }}{{ substr $.Site.Title 1 }} {{with $currentDir}}({{ . }}){{ end }}
@@ -14,22 +17,22 @@ {{ range $p := .Site.RegularPages }} {{ $scratch := $s.Get (printf "/%s" $p.File) }} {{ if eq $scratch.depth "core" }} -
{{- substr $p.File.Dir 0 -1 -}}⁄{{- $p.Title -}}
+
{{ range $coreKid := $scratch.has_children }} -
+ {{ end }} {{ else if not (in (slice "core" "mantle" "crust") $scratch.depth)}} - {{ $noTriad = $noTriad | append $p }} + {{ $noTriad = $noTriad | append $p }} {{ else }}
{{ end }} {{ end }} {{ range $noTriad }} - +
{{- substr .File.Dir 0 -1 -}}⁄{{- .Title -}}{{ if not (or (hasPrefix .Dir "edit") (hasPrefix .Dir "print")) }}[EDIT]{{ end }}
{{ end }} {{ end }} diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/baseof.html b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/baseof.html index 95528be..e91285a 100644 --- a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/baseof.html +++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/baseof.html @@ -1,9 +1,13 @@ + + + + + + {{- .Title }} - {{ .Site.Title -}} - - {{ block "edit" . }}{{ end }} - + {{- block "main" . -}}{{- end -}} diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/list.html b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/list.html index 5214213..e4e4a83 100644 --- a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/list.html +++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/list.html @@ -1,10 +1,2 @@ -{{ define "edit" }} - {{ range (readDir ".") }} - {{ if .IsDir }} -

Dir: {{ .Name }}

- {{ partial "readdir.html" .Name }} - {{ else }} -

File: {{ .Name }} - {{ end }} - {{ end }} +{{ define "main" }} {{ end }} diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/single.html b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/single.html new file mode 100644 index 0000000..27f8f31 --- /dev/null +++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/single.html @@ -0,0 +1 @@ +{{- define "main" -}}{{- end -}} diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/head.html b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/head.html index 6173b24..a4dc95d 100644 --- a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/head.html +++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/head.html @@ -27,9 +27,9 @@ {{ if eq hugo.Environment "dev" }} - {{ $style := resources.Get "css/site.css" | postCSS (dict "config" "assets/css/postcss.config.js") | minify }} + {{ $style := resources.Get "css/site.css" | resources.PostCSS (dict "config" "assets/css/postcss.config.js") | minify }} - {{ $style := resources.Get "css/player.css" | postCSS (dict "config" "assets/css/postcss.config.js") | minify }} + {{ $style := resources.Get "css/player.css" | resources.PostCSS (dict "config" "assets/css/postcss.config.js") | minify }} {{ else }} diff --git a/_vendor/modules.txt b/_vendor/modules.txt index b617959..5e15b88 100644 --- a/_vendor/modules.txt +++ b/_vendor/modules.txt @@ -1 +1 @@ -# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210328004009-992897b9cb1a +# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210406230544-a39199cce4d0 diff --git a/go.mod b/go.mod index e9f549c..0155728 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module git.sandpoints.org/sean/MachineListening go 1.15 -require git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210328004009-992897b9cb1a // indirect +require git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210406230544-a39199cce4d0 // indirect diff --git a/go.sum b/go.sum index 6386c9b..0b92a0b 100644 --- a/go.sum +++ b/go.sum @@ -4,3 +4,5 @@ git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210219121445-3e058b4ebb35 h git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210219121445-3e058b4ebb35/go.mod h1:VmIeeZ1BJRLjBO9x4d45BkYsYiwa/D0OrSNUglKTam4= git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210328004009-992897b9cb1a h1:++a2TBqFp/Zr24QhC29MDoBge+F0LdbfDmw66iBs4zk= git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210328004009-992897b9cb1a/go.mod h1:VmIeeZ1BJRLjBO9x4d45BkYsYiwa/D0OrSNUglKTam4= +git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210406230544-a39199cce4d0 h1:vUwepYtiAgEhfSWEcXKmFfBhs8kEwBm8OljkabvgI80= +git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210406230544-a39199cce4d0/go.mod h1:VmIeeZ1BJRLjBO9x4d45BkYsYiwa/D0OrSNUglKTam4=