Compare commits

..

No commits in common. "e8202cebf0880c57f7e10439482a48c5c7a895f2" and "46407d6d7eaed4c12bac50cf92eb5cb42275e86a" have entirely different histories.

15 changed files with 43 additions and 73 deletions

View file

@ -22,16 +22,16 @@
<span class="sup">bib</span><a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with $b.title}} title="{{- . -}}"{{- end -}} target="_blank">{{- $text_link -}}</a> <span class="sup">bib</span><a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with $b.title}} title="{{- . -}}"{{- end -}} target="_blank">{{- $text_link -}}</a>
{{- end -}} {{- end -}}
{{- else -}} {{- else -}}
<a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with .Title}} title="{{- . -}}"{{- end -}}>{{- $text_link -}}⦚<span>bib:{{- $destination -}} not found</span></a> <a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with .Title}} title="{{- . -}}"{{- end -}}>{{- $text_link -}}⦚<span class="text-xs font-bold p-1 bg-AuChico text-CoconutCream">bib:{{- $destination -}} not found</span></a>
{{- end -}} {{- end -}}
{{- else if in ($_.Get "triads") (index (split .Destination ":") 0) -}} {{- else if in ($_.Get "triads") (index (split .Destination ":") 0) -}}
{{- if $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}} {{- if $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}}
{{- $session := $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}} {{- $session := $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}}
{{ .Page.Scratch.Add "links" (slice $session) }} {{ .Page.Scratch.Add "links" (slice $session) }}
{{- if not $text_link -}} {{- if not $text_link -}}
<a class="triadlink" repoid="{{- $session.File.UniqueID -}}" printhref="#ph-{{- $session.File.UniqueID -}}" href="{{- $session.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $session.Title}} title="{{- $session.Title -}}"{{- end -}}><span class="sup">{{- index (split .Destination ":") 0 -}}</span>{{- $session.Title -}}</a> <a printhref="#ph-{{- $session.File.UniqueID -}}" href="{{- $session.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $session.Title}} title="{{- $session.Title -}}"{{- end -}}><span class="sup">{{- index (split .Destination ":") 0 -}}</span>{{- $session.Title -}}</a>
{{- else -}} {{- else -}}
<a class="triadlink" repoid="{{- $session.File.UniqueID -}}" printhref="#ph-{{- $session.File.UniqueID -}}" href="{{- $session.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with .Title}} title="{{- . -}}"{{- end -}}><span class="sup">{{- index (split .Destination ":") 0 -}}</span>{{- $text_link -}}</a> <a printhref="#ph-{{- $session.File.UniqueID -}}" href="{{- $session.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with .Title}} title="{{- . -}}"{{- end -}}><span class="sup">{{- index (split .Destination ":") 0 -}}</span>{{- $text_link -}}</a>
{{- end -}} {{- end -}}
{{- else -}} {{- else -}}
<a href="{{- .Destination -}}/{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}">{{- $text_link -}}⦚<span>{{- .Destination -}} not found</span></a> <a href="{{- .Destination -}}/{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}">{{- $text_link -}}⦚<span>{{- .Destination -}} not found</span></a>

View file

@ -93,6 +93,3 @@
{{ with .Page.Params.abstract }}<div class="abstract"><span class="supt">abstract</span>{{ . | $.Page.RenderString | htmlUnescape | safeHTML }}</div>{{ end }} {{ with .Page.Params.abstract }}<div class="abstract"><span class="supt">abstract</span>{{ . | $.Page.RenderString | htmlUnescape | safeHTML }}</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 -}},&nbsp;{{- $v -}}{{- end -}}{{- end -}}{{- with $vld -}}</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 -}},&nbsp;{{- $v -}}{{- end -}}{{- end -}}{{- with $vld -}}</div>{{- end -}}
{{ $var := printf "repo={\"frontmatter\": %s, \"content\": %s, \"path\": \"%s\", \"relpermalink\": \"%s\" }" (jsonify .Params) (jsonify .RawContent) .File.Path .RelPermalink | resources.FromString (printf "js/repo/%s.js" .File.UniqueID) }}
{{ $dummy := $var.Permalink }}

File diff suppressed because one or more lines are too long

View file

@ -89,13 +89,6 @@ target = "static/css/site-min.css"
source = "exampleSite/content/metadata/_index.md" source = "exampleSite/content/metadata/_index.md"
target = "content/metadata/_index.md" target = "content/metadata/_index.md"
## import _index.md from SandpointsTheme exampleSite to content/urls so the site structure with all of the (back)links is available
#
[[module.imports.mounts]]
source = "exampleSite/content/urls/_index.md"
target = "content/urls/_index.md"
## below is the example of custom css imported from customizations directory of Dotawo project ## below is the example of custom css imported from customizations directory of Dotawo project
# #
# [[module.imports.mounts]] # [[module.imports.mounts]]

View file

@ -1,8 +1,10 @@
+++ ---
title = "Top level curriculum" title: Top level curriculum
has_topics = ["firsttopic.md", "secondtopic.md"] has_topics: ["firsttopic.md", "secondtopic.md"]
+++ ---
# Top level, a curriculum # Top level, a curriculum
Here we want to describe what the project is about... Here we want to describe what the project is about...

View file

@ -1,4 +1,4 @@
+++ ---
title = "meta" title: "meta"
outputs = "js" outputs: js
+++ ---

View file

@ -1,7 +1,8 @@
+++ ---
title = "First Syllabus Inside A First Topic Inside A Top Level Curriculum" title: First Syllabus Inside A First Topic Inside A Top Level Curriculum
+++ ---
# About first syllabus # About first syllabus
This should work more as an example than anything else. But one could edit and play with it... This should work more as an example than anything else. But one could edit and play with it...

View file

@ -1,7 +1,8 @@
+++ ---
title = "Fourth Syllabus Inside A Second Topic Inside A Top Level Curriculum" title: Fourth Syllabus Inside A Second Topic Inside A Top Level Curriculum
+++ ---
# About fourth syllabus # About fourth syllabus
This should work more as an example than anything else. But one could edit and play with it... This should work more as an example than anything else. But one could edit and play with it...

View file

@ -1,7 +1,10 @@
+++ --
title = "Second Syllabus Inside A First Topic Inside A Top Level Curriculum" title: Second Syllabus Inside A First Topic Inside A Top Level Curriculum
+++ ---
# About second syllabus # About second syllabus
This should work more as an example than anything else. But one could edit and play with it... This should work more as an example than anything else. But one could edit and play with it...

View file

@ -1,7 +1,8 @@
+++ ---
title = "Third Syllabus Inside A Second Topic Inside A Top Level Curriculum" title: Third Syllabus Inside A Second Topic Inside A Top Level Curriculum
+++ ---
# About third syllabus # About third syllabus
This should work more as an example than anything else. But one could edit and play with it... This should work more as an example than anything else. But one could edit and play with it...

View file

@ -1,8 +1,9 @@
+++ ---
title = First Topic Under Top Level Curriculum title: First Topic Under Top Level Curriculum
has_syllabi = ["firstsyllabus.md", "secondsyllabus.md"] has_syllabi: ["firstsyllabus.md", "secondsyllabus.md"]
+++ ---
# About first topic in a curriculum # About first topic in a curriculum
This should work more as an example than anything else. But one could edit and play with it... This should work more as an example than anything else. But one could edit and play with it...

View file

@ -1,8 +1,10 @@
+++ ---
title = "Second Topic Under Top Level Curriculum" title: Second Topic Under Top Level Curriculum
has_syllabi = ["thirdsyllabus.md", "fourthsyllabus.md"] has_syllabi: ["thirdsyllabus.md", "fourthsyllabus.md"]
+++ ---
# About second topic in a curriculum # About second topic in a curriculum
This should work more as an example than anything else. But one could edit and play with it... This should work more as an example than anything else. But one could edit and play with it...

View file

@ -1,3 +0,0 @@
+++
title = "Sitemap"
+++

View file

@ -1,12 +0,0 @@
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
<head>
{{- partialCached "head.html" . -}}
<title>{{- .Title }} - {{ .Site.Title -}}</title>
{{- partialCached "sandpointjs.html" . .RelPermalink -}}
</head>
<body>
{{- block "keywords" . -}}{{- end -}}
{{- partialCached "footer.html" . -}}
</body>
</html>

View file

@ -1,16 +0,0 @@
{{ define "keywords" }}
{{ $p := split (trim .RelPermalink "/") "/" }}
{{ if eq (len $p) 1 }}
<div class="coretitle"><span class="supt">{{ index $p 0 }}</span>All</div>
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
{{ range $key, $value := $taxonomy }}
<span> <a href="/{{ index $p 0 }}/{{ $key }}">{{ $key }}</a>({{ len (index $.Site.Taxonomies.keywords $key) }})</span>
{{ end }}
{{ end }}
{{ else }}
<div class="coretitle"><span class="supt">{{ index $p 0 }}</span>{{ index $p 1 }}</div>
{{ range .Pages }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
{{ end }}