2024-06-26 20:25:04 +00:00
|
|
|
{{template "base" .}}
|
|
|
|
{{define "content"}}
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<h1>This is the about page</h1>
|
|
|
|
<p>This is the content</p>
|
2024-06-28 08:40:47 +00:00
|
|
|
|
|
|
|
<p>This came from the template: {{index .StringMap "test"}}</p>
|
2024-06-28 13:41:25 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
{{if ne (index .StringMap "remote_ip") ""}}
|
|
|
|
Your remote IP address is {{index .StringMap "remote_ip"}}
|
|
|
|
{{else}}
|
|
|
|
I don't know your ip address yet. Visit the <a href="/"></a> so I can set it.
|
|
|
|
{{end}}
|
|
|
|
</p>
|
2024-06-26 19:56:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-06-26 20:25:04 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|