Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<html>
<head>
{{ if .title }}
<title>{{ .title }}</title>
{{ else }}
<title>Título por defecto</title>
{{ end }}
</head>
<body>
<div>
GoBlog:
<a href="/">Homepage</a>
<a href="/login">Login</a>
</div>
<hr>
{{ if .error }}
<p>Error: {{ .error }} </p>
{{ end }}
{{ template "index.html" . }}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.