mirror of
https://gerrit.hackerspace.pl/hscloud
synced 2024-10-18 06:07:46 +00:00
Serge Bazanski
491542589b
This adds Bazel/hscloud integration to gostatic, via gostatic_tarball. A sample is provided in //tools/gostatic/example, it can be built using: bazel build //tools/gostatic/example The resulting tarball can then be extracted and viewed in a web browser. Change-Id: Idf8d4a8e0ee3a5ae07f7449a25909478c2d8b105
50 lines
1.3 KiB
Cheetah
50 lines
1.3 KiB
Cheetah
{{ define "header" }}<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="author" content="{{ html .Site.Other.Author }}">
|
|
<link rel="alternate" type="application/atom+xml" title="{{ html .Site.Other.Title }} feed" href="{{ .Rel "blog.atom" }}">
|
|
<title>{{ .Site.Other.Title }}{{ if .Title }}: {{ .Title }}{{ end }}</title>
|
|
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" type="text/css" href="{{ .Rel "static/style.css" }}">
|
|
</head>
|
|
<body>
|
|
{{ end }}
|
|
|
|
{{ define "footer" }}
|
|
</body>
|
|
</html>
|
|
{{ end }}
|
|
|
|
{{define "date"}}
|
|
<time datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}">
|
|
{{ .Format "2006, January 02" }}
|
|
</time>
|
|
{{end}}
|
|
|
|
{{ define "page" }}{{ template "header" . }}
|
|
{{ .Content }}
|
|
{{ template "footer" . }}{{ end }}
|
|
|
|
{{ define "post" }}
|
|
<article>
|
|
<header>
|
|
<h1>{{ .Title }}</h1>
|
|
<div class="info">
|
|
{{ template "date" .Date }} —
|
|
{{ range $i, $t := .Tags }}{{if $i}},{{end}}
|
|
<a href="/tags/{{ $t }}/">{{ $t }}</a>{{ end }}
|
|
</div>
|
|
</header>
|
|
<section>
|
|
{{ .Content }}
|
|
</section>
|
|
</article>
|
|
{{ end }}
|
|
|
|
{{define "tag"}}
|
|
# Pages tagged with {{ .Title }}
|
|
{{ range .Site.Pages.WithTag .Title }}
|
|
- [{{ .Title }}](../../{{ .Url }})
|
|
{{ end }}
|
|
{{ end }}
|