Parcourir la source

updated hugo module

master
Sean Dockray il y a 3 ans
Parent
révision
c9ec14ae4e
10 fichiers modifiés avec 28 ajouts et 22 suppressions
  1. +4
    -0
      _vendor/git.sandpoints.org/Drawwell/SandpointsTheme/assets/css/site.css
  2. +1
    -1
      _vendor/git.sandpoints.org/Drawwell/SandpointsTheme/assets/js/sandpoints.js
  3. +8
    -5
      _vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/list.html
  4. +7
    -3
      _vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/baseof.html
  5. +1
    -9
      _vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/list.html
  6. +1
    -0
      _vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/single.html
  7. +2
    -2
      _vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/head.html
  8. +1
    -1
      _vendor/modules.txt
  9. +1
    -1
      go.mod
  10. +2
    -0
      go.sum

+ 4
- 0
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/assets/css/site.css Voir le fichier

@@ -876,6 +876,10 @@ details {
background-color: #fff9f9;
}

.svedit {
margin-left: 0.5rem;
}

@media (max-width: 767px) {
html {
box-sizing: border-box;


+ 1
- 1
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/assets/js/sandpoints.js Voir le fichier

@@ -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)=> {


+ 8
- 5
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/list.html Voir le fichier

@@ -6,6 +6,9 @@
{{ $currentDir = .Dir }}
{{ end }}
{{ $currentFile := (printf "/%s" .File) }}
{{ $editFile := $.Site.GetPage "/edit" }}
{{ $editFilePath := $editFile.RelPermalink }}


<div class="coretitle"><span class="supt">Sitemap⁄{{ substr $.Site.Title 0 1 }}</span>{{ substr $.Site.Title 1 }} {{with $currentDir}}({{ . }}){{ end }}</div>

@@ -14,22 +17,22 @@
{{ range $p := .Site.RegularPages }}
{{ $scratch := $s.Get (printf "/%s" $p.File) }}
{{ if eq $scratch.depth "core" }}
<div class="sitemap" ><div class="{{ with $p.File }}{{ if eq $currentDir .Dir }}highline{{ end }}{{ end }}"><a href="{{- $p.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $p.Title}} title="{{- $p.Title -}}"{{- end -}}><span class="sup">{{- substr $p.File.Dir 0 -1 -}}⁄</span>{{- $p.Title -}}</a></div>
<div class="sitemap" ><div class="{{ with $p.File }}{{ if eq $currentDir .Dir }}highline{{ end }}{{ end }}"><a href="{{- $p.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $p.Title}} title="{{- $p.Title -}}"{{- end -}}><span class="sup">{{- substr $p.File.Dir 0 -1 -}}⁄</span>{{- $p.Title -}}</a><a class="svedit" href="{{- printf "%sindex.html#%s" $editFilePath $p.File.UniqueID -}}">[EDIT]</a></div>
{{ range $coreKid := $scratch.has_children }}
<div class="sitemap"><a href="{{- $coreKid.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $coreKid.Title}} title="{{- $coreKid.Title -}}"{{- end -}}><div class="{{ with $coreKid.File }}{{ if eq $currentDir .Dir }}highline{{ end }}{{ end }}"><span class="sup">{{- substr $coreKid.File.Dir 0 -1 -}}⁄</span>{{- $coreKid.Title -}}</a></div>
<div class="sitemap"><a href="{{- $coreKid.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $coreKid.Title}} title="{{- $coreKid.Title -}}"{{- end -}}><div class="{{ with $coreKid.File }}{{ if eq $currentDir .Dir }}highline{{ end }}{{ end }}"><span class="sup">{{- substr $coreKid.File.Dir 0 -1 -}}⁄</span>{{- $coreKid.Title -}}</a><a class="svedit" href="{{- printf "%sindex.html#%s" $editFilePath $coreKid.File.UniqueID -}}">[EDIT]</a></div>
{{ $scratchCKid := $s.Get (printf "/%s" $coreKid.File) }}
{{ range $mantleKid := $scratchCKid.has_children }}
<div class="sitemap"><div class="{{ with $mantleKid.File }}{{ if eq $currentDir .Dir }} highline{{ end }}{{ end }}"><a href="{{- $mantleKid.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $mantleKid.Title}} title="{{- $mantleKid.Title -}}"{{- end -}}><span class="sup">{{ with $mantleKid.File }}{{substr .Dir 0 -1 -}}⁄{{ end }}</span>{{- $mantleKid.Title -}}</a></div></div>
<div class="sitemap"><div class="{{ with $mantleKid.File }}{{ if eq $currentDir .Dir }} highline{{ end }}{{ end }}"><a href="{{- $mantleKid.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $mantleKid.Title}} title="{{- $mantleKid.Title -}}"{{- end -}}><span class="sup">{{ with $mantleKid.File }}{{substr .Dir 0 -1 -}}⁄{{ end }}</span>{{- $mantleKid.Title -}}</a><a class="svedit" href="{{- printf "%sindex.html#%s" $editFilePath $mantleKid.File.UniqueID -}}">[EDIT]</a></div></div>
{{ end }}
</div>
{{ end }}
{{ else if not (in (slice "core" "mantle" "crust") $scratch.depth)}}
{{ $noTriad = $noTriad | append $p }}
{{ $noTriad = $noTriad | append $p }}
{{ else }}
</div>
{{ end }}
{{ end }}
{{ range $noTriad }}
<div class="sitemap {{ with .File }}{{ if eq $currentDir .Dir }} highline{{ end }}{{ end }}"><a href="{{- .RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with .Title }} title="{{- . -}}"{{- end -}}><span class="sup">{{- substr .File.Dir 0 -1 -}}⁄</span>{{- .Title -}}</a></div>
<div class="sitemap {{ with .File }}{{ if eq $currentDir .Dir }} highline{{ end }}{{ end }}"><a href="{{- .RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with .Title }} title="{{- . -}}"{{- end -}}><span class="sup">{{- substr .File.Dir 0 -1 -}}⁄</span>{{- .Title -}}</a>{{ if not (or (hasPrefix .Dir "edit") (hasPrefix .Dir "print")) }}<a class="svedit" href="{{- printf "%sindex.html#%s" $editFilePath .File.UniqueID -}}">[EDIT]</a>{{ end }}</div>
{{ end }}
{{ end }}

+ 7
- 3
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/baseof.html Voir le fichier

@@ -1,9 +1,13 @@
<!DOCTYPE html>

<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link rel='stylesheet' href='build/global.css'>
<link rel='stylesheet' href='build/bundle.css'>
<script defer src='build/bundle.js'></script>
<title>{{- .Title }} - {{ .Site.Title -}}</title>
</head>
<body>
{{ block "edit" . }}{{ end }}
</body>
<body>{{- block "main" . -}}{{- end -}}</body>
</html>

+ 1
- 9
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/list.html Voir le fichier

@@ -1,10 +1,2 @@
{{ define "edit" }}
{{ range (readDir ".") }}
{{ if .IsDir }}
<p>Dir: {{ .Name }}</p>
{{ partial "readdir.html" .Name }}
{{ else }}
<p>File: {{ .Name }}
{{ end }}
{{ end }}
{{ define "main" }}
{{ end }}

+ 1
- 0
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/edit/single.html Voir le fichier

@@ -0,0 +1 @@
{{- define "main" -}}{{- end -}}

+ 2
- 2
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/head.html Voir le fichier

@@ -27,9 +27,9 @@
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#996561">

{{ 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 }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
{{ $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 }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
{{ else }}
<link rel="stylesheet" href="/css/site.min.css" />


+ 1
- 1
_vendor/modules.txt Voir le fichier

@@ -1 +1 @@
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210328004009-992897b9cb1a
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210406230544-a39199cce4d0

+ 1
- 1
go.mod Voir le fichier

@@ -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

+ 2
- 0
go.sum Voir le fichier

@@ -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=

Chargement…
Annuler
Enregistrer