Compare commits

..

No commits in common. "c972ba977628b8707e6de681c8b8eb72ad3a9353" and "8e1bb2652c454e78b795439d9e8463adf0146653" have entirely different histories.

2 changed files with 14 additions and 19 deletions

View file

@ -4,26 +4,24 @@
{{- $u := urls.Parse $destination -}}
{{- if not $u.Scheme -}}
{{- $page := site.GetPage $destination -}}
{{- if $page -}}
{{- $backlinks := $page.Store.Get "backlinks" | default slice -}}
{{- with site.GetPage .Destination -}}
{{- $backlinks := .Store.Get "backlinks" | default slice -}}
{{- $backlinks := $backlinks|append $currentPage.RelPermalink -}}
{{- $page.Store.Set "backlinks" ($backlinks|uniq) -}}
{{- .Store.Set "backlinks" ($backlinks|uniq) -}}
{{- if not $text -}}
{{- $text = $page.LinkTitle -}}
{{- $text = .LinkTitle -}}
{{- end -}}
<span class="supt">{{- $page.Section -}}</span><a href="{{- $page.RelPermalink -}}" {{- with $page.Title }} title="{{ . }}"{{ end -}}>{{- $text -}}</a>
{{- else if hasPrefix $destination "/library" -}}
<span class="supt">{{- .Section -}}</span><a href="{{- .RelPermalink -}}" {{- with .Title }} title="{{ . }}"{{ end -}}>{{- $text -}}</a>
{{- end -}}
{{- if hasPrefix $destination "/library" -}}
{{- $bib := strings.TrimPrefix "/library/" $destination -}}
{{- $b := index site.Data.books.catalog $bib -}}
{{- if not $text -}}
{{- $text = $b.title|default "" -}}
{{- end -}}
<span class="supt">library</span><a href="/library/BROWSE_LIBRARY.html#/books/{{- $bib -}}">{{- $text -}}</a>
{{- else -}}
{{- warnf "In %s broken link: %s" $currentPage.RelPermalink $destination -}}
{{- end -}}
{{- else -}}
<span class="supt">www</span><a href="{{ .Destination | safeURL }}"{{- with .Title }} title="{{ . }}"{{ end -}}{{- if $u.IsAbs }} rel="external"{{ end -}}>{{- if .Text }}{{ .Text }}{{- else -}}{{- .Destination -}}{{- end -}}</a>
<span class="supt">www</span><a href="{{ .Destination | safeURL }}"{{- with .Title }} title="{{ . }}"{{ end -}}{{- if $u.IsAbs }} rel="external"{{ end -}}>{{- with .Text }}{{ . }}{{- end -}}</a>
{{- end -}}
{{- /* chomp trailing newline */ -}}

View file

@ -373,7 +373,7 @@ blockquote {
padding-left: 3rem;
padding-right: 10rem;
width: 100%;
max-width: 800px;
max-width: 720px;
padding-top: 0.5rem;
font-size: 1.4rem;
@ -395,9 +395,10 @@ blockquote {
display: grid;
grid-template-rows: auto auto 1fr;
grid-template-areas: "title" "menu" "article";
margin-top: 4rem;
padding-left: 3rem;
padding-right: 10rem;
max-width: 800px;
max-width: 720px;
}
.title {
@ -405,7 +406,7 @@ blockquote {
margin-top: 4rem;
font-style: italic;
font-size: 2rem;
margin-bottom: 6rem;
margin-bottom: 4rem;
}
.supt {
@ -427,7 +428,7 @@ blockquote {
grid-area: menu;
margin-bottom: 2rem;
display: grid;
grid-template-columns: minmax(0, auto) minmax(0, auto);
grid-template-columns: 1fr 1fr;
}
.toc {
@ -437,10 +438,6 @@ blockquote {
position: relative;
}
.toc:empty + .graph-menus {
grid-column: 1/-1;
}
#TableOfContents {
margin-left: -2rem;
margin-top: -1.5rem;
@ -469,7 +466,7 @@ nav#TableOfContents ol li a:hover {
}
.graph-menu {
display: flex;
display: inline-grid;
grid-auto-rows: max-content;
font-size: 1.4rem;
font-style: italic;