🍱 Regenerated templates

This commit is contained in:
Maxim Lebedev 2023-11-05 20:01:19 +06:00
parent cde7bc0c87
commit a794179028
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
4 changed files with 188 additions and 91 deletions

View File

@ -29,7 +29,7 @@ func NewBaseOf(lang language.Tag, name string) *BaseOf {
}
%}
{% collapsespace %}
{% stripspace %}
{% func (p *BaseOf) lang() %}
{%s p.language.String() %}
{% endfunc %}
@ -41,18 +41,18 @@ func NewBaseOf(lang language.Tag, name string) *BaseOf {
{% func (p *BaseOf) head() %}
{% comment %}https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs{% endcomment %}
<link rel="manifest"
href="/static/manifest.webmanifest">
{% space %}href="/static/manifest.webmanifest">
<link rel="icon"
href="/static/favicon.ico"
sizes="any">
{% space %}href="/static/favicon.ico"
{% space %}sizes="any">
<link rel="icon"
href="/static/icon.svg"
type="image/svg+xml">
{% space %}href="/static/icon.svg"
{% space %}type="image/svg+xml">
<link rel="apple-touch-icon"
href="/static/apple-touch-icon.png">
{% space %}href="/static/apple-touch-icon.png">
{% endfunc %}
{% func (p *BaseOf) body() %}{% endfunc %}
@ -64,24 +64,24 @@ func NewBaseOf(lang language.Tag, name string) *BaseOf {
{% func Template(p Page) %}
<!DOCTYPE html>
<html class="page"
lang="{%= p.lang() %}"
dir="ltr">
{% space %}lang="{%= p.lang() %}"
{% space %}dir="ltr">
<head>
<meta name="viewport"
content="width=device-width, initial-scale=1">
{% space %}content="width=device-width, initial-scale=1">
<title>{%= p.title() %}</title>
<link rel="preload stylesheet"
as="style"
href="/static/style.css"
type="text/css">
{% space %}as="style"
{% space %}href="/static/style.css"
{% space %}type="text/css">
{%= p.head() %}
</head>
<body class="page__body cover">
<body class="[ page__body ][ cover ]">
{%= p.body() %}
{% code
@ -104,18 +104,17 @@ func NewBaseOf(lang language.Tag, name string) *BaseOf {
<p>
Made with
<span role="img"
aria-label="love">
{% space %}aria-label="love">
❤️
</span>
to
<a rel="external"
href="https://{%s path %}">
{% space %}href="https://{%s path %}">
open source
</a>
by
<a rel="author"
hreflang="en"
href="https://toby3d.me/">
{% space %}href="https://toby3d.me/">
toby3d
</a>
</p>
@ -124,7 +123,8 @@ func NewBaseOf(lang language.Tag, name string) *BaseOf {
<small>
{%= p.t("version") %}
<a href="https://{%s path %}/commit/{%s vcsRevision %}"
target="_blank">
{% space %}target="_blank">
{%s vcsRevision[:7] -%}
</a>
</small>
@ -133,4 +133,4 @@ func NewBaseOf(lang language.Tag, name string) *BaseOf {
</body>
</html>
{% endfunc %}
{% endcollapsespace %}
{% endstripspace %}

View File

@ -77,12 +77,8 @@ func NewBaseOf(lang language.Tag, name string) *BaseOf {
//line web/template/baseof.qtpl:33
func (p *BaseOf) streamlang(qw422016 *qt422016.Writer) {
//line web/template/baseof.qtpl:33
qw422016.N().S(` `)
//line web/template/baseof.qtpl:34
qw422016.E().S(p.language.String())
//line web/template/baseof.qtpl:34
qw422016.N().S(` `)
//line web/template/baseof.qtpl:35
}
@ -114,12 +110,8 @@ func (p *BaseOf) lang() string {
//line web/template/baseof.qtpl:37
func (p *BaseOf) streamtitle(qw422016 *qt422016.Writer) {
//line web/template/baseof.qtpl:37
qw422016.N().S(` `)
//line web/template/baseof.qtpl:38
qw422016.E().S(p.name)
//line web/template/baseof.qtpl:38
qw422016.N().S(` `)
//line web/template/baseof.qtpl:39
}
@ -151,10 +143,32 @@ func (p *BaseOf) title() string {
//line web/template/baseof.qtpl:41
func (p *BaseOf) streamhead(qw422016 *qt422016.Writer) {
//line web/template/baseof.qtpl:41
qw422016.N().S(` `)
//line web/template/baseof.qtpl:42
qw422016.N().S(` <link rel="manifest" href="/static/manifest.webmanifest"> <link rel="icon" href="/static/favicon.ico" sizes="any"> <link rel="icon" href="/static/icon.svg" type="image/svg+xml"> <link rel="apple-touch-icon" href="/static/apple-touch-icon.png"> `)
qw422016.N().S(`<link rel="manifest"`)
//line web/template/baseof.qtpl:44
qw422016.N().S(` `)
//line web/template/baseof.qtpl:44
qw422016.N().S(`href="/static/manifest.webmanifest"><link rel="icon"`)
//line web/template/baseof.qtpl:47
qw422016.N().S(` `)
//line web/template/baseof.qtpl:47
qw422016.N().S(`href="/static/favicon.ico"`)
//line web/template/baseof.qtpl:48
qw422016.N().S(` `)
//line web/template/baseof.qtpl:48
qw422016.N().S(`sizes="any"><link rel="icon"`)
//line web/template/baseof.qtpl:51
qw422016.N().S(` `)
//line web/template/baseof.qtpl:51
qw422016.N().S(`href="/static/icon.svg"`)
//line web/template/baseof.qtpl:52
qw422016.N().S(` `)
//line web/template/baseof.qtpl:52
qw422016.N().S(`type="image/svg+xml"><link rel="apple-touch-icon"`)
//line web/template/baseof.qtpl:55
qw422016.N().S(` `)
//line web/template/baseof.qtpl:55
qw422016.N().S(`href="/static/apple-touch-icon.png">`)
//line web/template/baseof.qtpl:56
}
@ -217,12 +231,8 @@ func (p *BaseOf) body() string {
//line web/template/baseof.qtpl:60
func (p *BaseOf) streamt(qw422016 *qt422016.Writer, format message.Reference, args ...any) {
//line web/template/baseof.qtpl:60
qw422016.N().S(` `)
//line web/template/baseof.qtpl:61
qw422016.E().S(p.printer.Sprintf(format, args...))
//line web/template/baseof.qtpl:61
qw422016.N().S(` `)
//line web/template/baseof.qtpl:62
}
@ -255,23 +265,45 @@ func (p *BaseOf) t(format message.Reference, args ...any) string {
//line web/template/baseof.qtpl:64
func StreamTemplate(qw422016 *qt422016.Writer, p Page) {
//line web/template/baseof.qtpl:64
qw422016.N().S(` <!DOCTYPE html> <html class="page" lang="`)
qw422016.N().S(`<!DOCTYPE html><html class="page"`)
//line web/template/baseof.qtpl:67
qw422016.N().S(` `)
//line web/template/baseof.qtpl:67
qw422016.N().S(`lang="`)
//line web/template/baseof.qtpl:67
p.streamlang(qw422016)
//line web/template/baseof.qtpl:67
qw422016.N().S(`" dir="ltr"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>`)
qw422016.N().S(`"`)
//line web/template/baseof.qtpl:68
qw422016.N().S(` `)
//line web/template/baseof.qtpl:68
qw422016.N().S(`dir="ltr"><head><meta name="viewport"`)
//line web/template/baseof.qtpl:72
qw422016.N().S(` `)
//line web/template/baseof.qtpl:72
qw422016.N().S(`content="width=device-width, initial-scale=1"><title>`)
//line web/template/baseof.qtpl:74
p.streamtitle(qw422016)
//line web/template/baseof.qtpl:74
qw422016.N().S(`</title> <link rel="preload stylesheet" as="style" href="/static/style.css" type="text/css"> `)
qw422016.N().S(`</title><link rel="preload stylesheet"`)
//line web/template/baseof.qtpl:77
qw422016.N().S(` `)
//line web/template/baseof.qtpl:77
qw422016.N().S(`as="style"`)
//line web/template/baseof.qtpl:78
qw422016.N().S(` `)
//line web/template/baseof.qtpl:78
qw422016.N().S(`href="/static/style.css"`)
//line web/template/baseof.qtpl:79
qw422016.N().S(` `)
//line web/template/baseof.qtpl:79
qw422016.N().S(`type="text/css">`)
//line web/template/baseof.qtpl:81
p.streamhead(qw422016)
//line web/template/baseof.qtpl:81
qw422016.N().S(` </head> <body class="page__body cover"> `)
qw422016.N().S(`</head><body class="[ page__body ][ cover ]">`)
//line web/template/baseof.qtpl:85
p.streambody(qw422016)
//line web/template/baseof.qtpl:85
qw422016.N().S(` `)
//line web/template/baseof.qtpl:88
var path, vcsRevision string
@ -288,35 +320,51 @@ func StreamTemplate(qw422016 *qt422016.Writer, p Page) {
}
//line web/template/baseof.qtpl:101
qw422016.N().S(` <footer class="[ body__footer ][ center ][ text-align_center ]"> <p> Made with <span role="img" aria-label="love"> ❤️ </span> to <a rel="external" href="https://`)
qw422016.N().S(`<footer class="[ body__footer ][ center ][ text-align_center ]"><p>Made with<span role="img"`)
//line web/template/baseof.qtpl:107
qw422016.N().S(` `)
//line web/template/baseof.qtpl:107
qw422016.N().S(`aria-label="love">❤️</span>to<a rel="external"`)
//line web/template/baseof.qtpl:112
qw422016.N().S(` `)
//line web/template/baseof.qtpl:112
qw422016.N().S(`href="https://`)
//line web/template/baseof.qtpl:112
qw422016.E().S(path)
//line web/template/baseof.qtpl:112
qw422016.N().S(`"> open source </a> by <a rel="author" hreflang="en" href="https://toby3d.me/"> toby3d </a> </p> `)
//line web/template/baseof.qtpl:123
qw422016.N().S(`">open source</a>by<a rel="author"`)
//line web/template/baseof.qtpl:117
qw422016.N().S(` `)
//line web/template/baseof.qtpl:117
qw422016.N().S(`href="https://toby3d.me/">toby3d</a></p>`)
//line web/template/baseof.qtpl:122
if vcsRevision != "" {
//line web/template/baseof.qtpl:123
qw422016.N().S(` <small> `)
//line web/template/baseof.qtpl:125
//line web/template/baseof.qtpl:122
qw422016.N().S(`<small>`)
//line web/template/baseof.qtpl:124
p.streamt(qw422016, "version")
//line web/template/baseof.qtpl:124
qw422016.N().S(`<a href="https://`)
//line web/template/baseof.qtpl:125
qw422016.N().S(` <a href="https://`)
//line web/template/baseof.qtpl:126
qw422016.E().S(path)
//line web/template/baseof.qtpl:126
//line web/template/baseof.qtpl:125
qw422016.N().S(`/commit/`)
//line web/template/baseof.qtpl:126
//line web/template/baseof.qtpl:125
qw422016.E().S(vcsRevision)
//line web/template/baseof.qtpl:125
qw422016.N().S(`"`)
//line web/template/baseof.qtpl:126
qw422016.N().S(`" target="_blank"> `)
qw422016.N().S(` `)
//line web/template/baseof.qtpl:126
qw422016.N().S(`target="_blank">`)
//line web/template/baseof.qtpl:128
qw422016.E().S(vcsRevision[:7])
//line web/template/baseof.qtpl:128
qw422016.N().S(`</a> </small> `)
qw422016.N().S(`</a></small>`)
//line web/template/baseof.qtpl:131
}
//line web/template/baseof.qtpl:131
qw422016.N().S(` </footer> </body> </html> `)
qw422016.N().S(`</footer></body></html>`)
//line web/template/baseof.qtpl:135
}

View File

@ -2,22 +2,25 @@
*BaseOf
} %}
{% collapsespace %}
{% stripspace %}
{% func (p *Home) body() %}
<main class="[ body__main ][ stack center ]">
<div class="[ h-app h-x-app ][ text-align_center ]">
<picture>
<source srcset="/static/icon.svg"
type="image/svg+xml">
{% space %}type="image/svg+xml">
<img class="u-icon u-logo u-photo"
src="/static/apple-touch-icon.png"
loading="lazy"
alt="{%= p.t("%s logo", p.name) %}">
{% space %}src="/static/apple-touch-icon.png"
{% space %}loading="lazy"
{% space %}alt="{%= p.t("%s logo", p.name) %}">
</picture>
<h1>
<a class="[ u-url ][ p-name ]"
href="/">{%s p.name %}</a>
{% space %}href="/">
{%s p.name %}
</a>
</h1>
<p class="p-summary">{%= p.t("Dead simple WebSub hub") %}</p>
</div>
@ -27,24 +30,26 @@
<ul class="stack">
<li>
<span role="img"
aria-label="ping pong">
{% space %}aria-label="ping pong">
🏓
</span>
<a rel="external help"
hreflang="en"
href="https://indieweb.org/how-to-push">
{% space %}hreflang="en"
{% space %}href="https://indieweb.org/how-to-push">
{%= p.t("How to publish and consume?") %}
</a>
</li>
<li>
<span role="img"
aria-label="pages">
{% space %}aria-label="pages">
📑
</span>
<a rel="external help"
hreflang="en"
href="https://www.w3.org/TR/websub/">
{% space %}hreflang="en"
{% space %}href="https://www.w3.org/TR/websub/">
{%= p.t("What the spec?") %}
</a>
@ -52,4 +57,4 @@
</ul>
</main>
{% endfunc %}
{% endcollapsespace %}
{% endstripspace %}

View File

@ -25,52 +25,96 @@ type Home struct {
//line web/template/home.qtpl:6
func (p *Home) streambody(qw422016 *qt422016.Writer) {
//line web/template/home.qtpl:6
qw422016.N().S(` <main class="[ body__main ][ stack center ]"> <div class="[ h-app h-x-app ][ text-align_center ]"> <picture> <source srcset="/static/icon.svg" type="image/svg+xml"> <img class="u-icon u-logo u-photo" src="/static/apple-touch-icon.png" loading="lazy" alt="`)
qw422016.N().S(`<main class="[ body__main ][ stack center ]"><div class="[ h-app h-x-app ][ text-align_center ]"><picture><source srcset="/static/icon.svg"`)
//line web/template/home.qtpl:11
qw422016.N().S(` `)
//line web/template/home.qtpl:11
qw422016.N().S(`type="image/svg+xml"><img class="u-icon u-logo u-photo"`)
//line web/template/home.qtpl:13
qw422016.N().S(` `)
//line web/template/home.qtpl:13
qw422016.N().S(`src="/static/apple-touch-icon.png"`)
//line web/template/home.qtpl:14
qw422016.N().S(` `)
//line web/template/home.qtpl:14
qw422016.N().S(`loading="lazy"`)
//line web/template/home.qtpl:15
qw422016.N().S(` `)
//line web/template/home.qtpl:15
qw422016.N().S(`alt="`)
//line web/template/home.qtpl:15
p.streamt(qw422016, "%s logo", p.name)
//line web/template/home.qtpl:15
qw422016.N().S(`"> </picture> <h1> <a class="[ u-url ][ p-name ]" href="/">`)
qw422016.N().S(`"></picture><h1><a class="[ u-url ][ p-name ]"`)
//line web/template/home.qtpl:20
qw422016.N().S(` `)
//line web/template/home.qtpl:20
qw422016.N().S(`href="/">`)
//line web/template/home.qtpl:22
qw422016.E().S(p.name)
//line web/template/home.qtpl:20
qw422016.N().S(`</a> </h1> <p class="p-summary">`)
//line web/template/home.qtpl:22
qw422016.N().S(`</a></h1><p class="p-summary">`)
//line web/template/home.qtpl:25
p.streamt(qw422016, "Dead simple WebSub hub")
//line web/template/home.qtpl:22
qw422016.N().S(`</p> </div> <hr> <ul class="stack"> <li> <span role="img" aria-label="ping pong"> 🏓 </span> <a rel="external help" hreflang="en" href="https://indieweb.org/how-to-push"> `)
//line web/template/home.qtpl:37
//line web/template/home.qtpl:25
qw422016.N().S(`</p></div><hr><ul class="stack"><li><span role="img"`)
//line web/template/home.qtpl:33
qw422016.N().S(` `)
//line web/template/home.qtpl:33
qw422016.N().S(`aria-label="ping pong">🏓</span><a rel="external help"`)
//line web/template/home.qtpl:38
qw422016.N().S(` `)
//line web/template/home.qtpl:38
qw422016.N().S(`hreflang="en"`)
//line web/template/home.qtpl:39
qw422016.N().S(` `)
//line web/template/home.qtpl:39
qw422016.N().S(`href="https://indieweb.org/how-to-push">`)
//line web/template/home.qtpl:41
p.streamt(qw422016, "How to publish and consume?")
//line web/template/home.qtpl:37
qw422016.N().S(` </a> </li> <li> <span role="img" aria-label="pages"> 📑 </span> <a rel="external help" hreflang="en" href="https://www.w3.org/TR/websub/"> `)
//line web/template/home.qtpl:49
//line web/template/home.qtpl:41
qw422016.N().S(`</a></li><li><span role="img"`)
//line web/template/home.qtpl:46
qw422016.N().S(` `)
//line web/template/home.qtpl:46
qw422016.N().S(`aria-label="pages">📑</span><a rel="external help"`)
//line web/template/home.qtpl:51
qw422016.N().S(` `)
//line web/template/home.qtpl:51
qw422016.N().S(`hreflang="en"`)
//line web/template/home.qtpl:52
qw422016.N().S(` `)
//line web/template/home.qtpl:52
qw422016.N().S(`href="https://www.w3.org/TR/websub/">`)
//line web/template/home.qtpl:54
p.streamt(qw422016, "What the spec?")
//line web/template/home.qtpl:49
qw422016.N().S(` </a> </li> </ul> </main> `)
//line web/template/home.qtpl:54
qw422016.N().S(`</a></li></ul></main>`)
//line web/template/home.qtpl:59
}
//line web/template/home.qtpl:54
//line web/template/home.qtpl:59
func (p *Home) writebody(qq422016 qtio422016.Writer) {
//line web/template/home.qtpl:54
//line web/template/home.qtpl:59
qw422016 := qt422016.AcquireWriter(qq422016)
//line web/template/home.qtpl:54
//line web/template/home.qtpl:59
p.streambody(qw422016)
//line web/template/home.qtpl:54
//line web/template/home.qtpl:59
qt422016.ReleaseWriter(qw422016)
//line web/template/home.qtpl:54
//line web/template/home.qtpl:59
}
//line web/template/home.qtpl:54
//line web/template/home.qtpl:59
func (p *Home) body() string {
//line web/template/home.qtpl:54
//line web/template/home.qtpl:59
qb422016 := qt422016.AcquireByteBuffer()
//line web/template/home.qtpl:54
//line web/template/home.qtpl:59
p.writebody(qb422016)
//line web/template/home.qtpl:54
//line web/template/home.qtpl:59
qs422016 := string(qb422016.B)
//line web/template/home.qtpl:54
//line web/template/home.qtpl:59
qt422016.ReleaseByteBuffer(qb422016)
//line web/template/home.qtpl:54
//line web/template/home.qtpl:59
return qs422016
//line web/template/home.qtpl:54
//line web/template/home.qtpl:59
}