Skip to content

Commit

Permalink
Navigation and dark mode for Nanoglyphs + Passages
Browse files Browse the repository at this point in the history
  • Loading branch information
brandur committed May 24, 2024
1 parent c30d5a3 commit 5e253ec
Show file tree
Hide file tree
Showing 13 changed files with 318 additions and 158 deletions.
8 changes: 4 additions & 4 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -2350,7 +2350,7 @@ func renderNanoglyph(ctx context.Context, c *modulir.Context, source string,
}

locals := getLocals(issue.Title, map[string]interface{}{
"BodyClass": "web-only", // For web-specific CSS rules
"BodyClass": "web_only", // For web-specific CSS rules
"InEmail": false,
"Issue": issue,
"URLPrefix": "", // Relative prefix for the web version
Expand Down Expand Up @@ -2435,7 +2435,7 @@ func renderNanoglyphsIndex(ctx context.Context, c *modulir.Context, issues []*sn
}

locals := getLocals("Nanoglyph"+scommon.TitleSuffix, map[string]interface{}{
"BodyClass": "web-only", // For web-specific CSS rules
"BodyClass": "web_only", // For web-specific CSS rules
"Issues": issues,
"URLPrefix": "", // Relative prefix for the web version
})
Expand Down Expand Up @@ -2468,7 +2468,7 @@ func renderPassage(ctx context.Context, c *modulir.Context, source string,
}

locals := getLocals(issue.Title, map[string]interface{}{
"BodyClass": "web-only", // For web-specific CSS rules
"BodyClass": "web_only", // For web-specific CSS rules
"InEmail": false,
"Issue": issue,
"URLPrefix": "", // Relative prefix for the web version
Expand Down Expand Up @@ -2553,7 +2553,7 @@ func renderPassagesIndex(ctx context.Context, c *modulir.Context, issues []*snew
}

locals := getLocals("Passages", map[string]interface{}{
"BodyClass": "web-only", // For web-specific CSS rules
"BodyClass": "web_only", // For web-specific CSS rules
"Issues": issues,
"URLPrefix": "", // Relative prefix for the web version
})
Expand Down
2 changes: 1 addition & 1 deletion content/nanoglyphs/036-queues.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ It might not be intuitively obvious why a job queue and its steady health were o

One example of an out-of-band call were to register domains for new Heroku apps, linked back to the Heroku router. Every app creation would get a background job that'd perform:

```
``` sh
POST https://maestro.heroku.com/domains/serene-example-4269
```

Expand Down
4 changes: 1 addition & 3 deletions layouts/atoms.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
min-h-screen{{- end -}}

{{- define "content" -}}
<div>
{{- template "views/_nav.tmpl.html" . -}}
</div>
{{- template "views/_nav.tmpl.html" . -}}

<div class="">
{{block "atoms_content" .}}{{end}}
Expand Down
8 changes: 1 addition & 7 deletions layouts/main.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@
<link href="/fragments.atom" rel="alternate" title="Fragments{{.TitleSuffix}}" type="application/atom+xml">
<link href="/sequences.atom" rel="alternate" title="Sequences{{.TitleSuffix}}" type="application/atom+xml">

{{if eq .SorgEnv "development" -}}
<link href="/assets/{{.Release}}/stylesheets/tailwind.css" media="screen" rel="stylesheet" type="text/css">
{{else -}}
<link href="/assets/{{.Release}}/stylesheets/tailwind.min.css" media="screen" rel="stylesheet" type="text/css">
{{end -}}

<link href="/assets/{{.Release}}/stylesheets/tailwind_custom.css" media="screen" rel="stylesheet" type="text/css">
{{template "views/_tailwind_stylesheets.tmpl.html" .}}

{{block "stylesheets" .}}{{end}}

Expand Down
Loading

0 comments on commit 5e253ec

Please sign in to comment.