go-ssr-pocketbase-oauth-att.../pages/templates/index.gohtml

18 lines
404 B
Plaintext

{{ define "title" }}
Index page
{{ end }}
{{ define "content" }}
<h1>Welcome to index page</h1>
{{ if not .NavInfo.IsGuest }}
<p>This is content only for authenticated users! Congratulations!</p>
<ul>
<li>
<a href="/somepage">Link to page only for logged in users</a>
</li>
</ul>
{{ else }}
<p>There will be some content only for authorized users</p>
{{ end }}
{{ end }}