diff options
Diffstat (limited to 'templates/base.qtpl.go')
| -rw-r--r-- | templates/base.qtpl.go | 58 |
1 files changed, 32 insertions, 26 deletions
diff --git a/templates/base.qtpl.go b/templates/base.qtpl.go index 783de2c..3c4d8a9 100644 --- a/templates/base.qtpl.go +++ b/templates/base.qtpl.go @@ -8,14 +8,16 @@ package templates //line templates/base.qtpl:3 -import ( - "context" - "strconv" - "time" //line templates/base.qtpl:4 +import "context" + +//line templates/base.qtpl:4 +import "strconv" - //line templates/base.qtpl:5 - //line templates/base.qtpl:7 +//line templates/base.qtpl:5 +import "time" +//line templates/base.qtpl:7 +import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" @@ -110,60 +112,64 @@ func StreamPageTemplate(qw422016 *qt422016.Writer, p Page, ctx context.Context) qw422016.E().S(Slug) //line templates/base.qtpl:62 qw422016.N().S(`.css"> - <link rel="stylesheet" href="/static/theme"> + <link rel="stylesheet" href="/static/theme`) +//line templates/base.qtpl:63 + qw422016.E().S(Slug) +//line templates/base.qtpl:63 + qw422016.N().S(`.css"> <html data-bs-theme="dark"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta name="viewport" content="width=device-width, initial-scale=1" /> </head> <body> `) -//line templates/base.qtpl:70 +//line templates/base.qtpl:69 p.StreamNavbar(qw422016, ctx) -//line templates/base.qtpl:70 +//line templates/base.qtpl:69 qw422016.N().S(` <div class="container"> `) -//line templates/base.qtpl:72 +//line templates/base.qtpl:71 p.StreamContent(qw422016, ctx) -//line templates/base.qtpl:72 +//line templates/base.qtpl:71 qw422016.N().S(` </div> </body> `) -//line templates/base.qtpl:75 +//line templates/base.qtpl:74 p.StreamScript(qw422016, ctx) -//line templates/base.qtpl:75 +//line templates/base.qtpl:74 qw422016.N().S(` <script> function a(){const e=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.setAttribute("data-bs-theme",e?"dark":"light")}a(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a); </script> </html> `) -//line templates/base.qtpl:80 +//line templates/base.qtpl:79 } -//line templates/base.qtpl:80 +//line templates/base.qtpl:79 func WritePageTemplate(qq422016 qtio422016.Writer, p Page, ctx context.Context) { -//line templates/base.qtpl:80 +//line templates/base.qtpl:79 qw422016 := qt422016.AcquireWriter(qq422016) -//line templates/base.qtpl:80 +//line templates/base.qtpl:79 StreamPageTemplate(qw422016, p, ctx) -//line templates/base.qtpl:80 +//line templates/base.qtpl:79 qt422016.ReleaseWriter(qw422016) -//line templates/base.qtpl:80 +//line templates/base.qtpl:79 } -//line templates/base.qtpl:80 +//line templates/base.qtpl:79 func PageTemplate(p Page, ctx context.Context) string { -//line templates/base.qtpl:80 +//line templates/base.qtpl:79 qb422016 := qt422016.AcquireByteBuffer() -//line templates/base.qtpl:80 +//line templates/base.qtpl:79 WritePageTemplate(qb422016, p, ctx) -//line templates/base.qtpl:80 +//line templates/base.qtpl:79 qs422016 := string(qb422016.B) -//line templates/base.qtpl:80 +//line templates/base.qtpl:79 qt422016.ReleaseByteBuffer(qb422016) -//line templates/base.qtpl:80 +//line templates/base.qtpl:79 return qs422016 -//line templates/base.qtpl:80 +//line templates/base.qtpl:79 } |
