page.tmpl 2.62 KB
Newer Older
ale's avatar
ale committed
1 2 3 4 5
{{define "header"}}<!DOCTYPE html>
<html lang="{{cut "\\." "\\.html$" .Path}}">
  <head>
        <meta charset="utf-8">
        <meta name="author" content="Autistici/Inventati">
lucha's avatar
lucha committed
6
        <meta name="keywords" content="privacy, anonymity, antifascism, antisexism, anticapitalism, antiracism, antimililtarism, grassroot, nsw-thpk-s-hm8vcy41gt4t-li-t-egmng7lajwc5x4jttimmdndf0ano3uc009rvmf1mgr0rdi3lh66g1cdjqmbngze2jdd28mp270x8hbiy2rcs29jl4z5rj72nzg9bn06">
7
        <meta name="description" content="Autistici/Inventati provides internet support to activists and collectives coming from the world of grassroot and social movements">
agata's avatar
agata committed
8 9
        <meta name="viewport" content="width=device-width, initial-scale=1">
        
ale's avatar
ale committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
        <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css"> 
        <link rel="stylesheet" type="text/css" href="/static/css/tufte.css">
        <link rel="stylesheet" type="text/css" href="/static/css/ai.css">
        <link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico">
        <title>autistici.org - {{.Title}}</title>
  </head>
  <body>

    <article class="container" id="main">
      {{template "navbar" .}}

      {{/*

	This is an attempt at creating breadcrumbs with the simple
	functions that are available to us... the result for now is
	both horrible and ineffective.

      <p>
	{{$path := split "/" (cut "^" "/[^/]+$" .Url)}}
	{{$limit := len $path}}
	{{range $idx, $p := $path}}
		{{$curpath := "/"}}
		{{range $idx2, $p2 := $path}}
			{{if lt $idx2 $idx}}
			{{$curpath := printf "%s/%s" $curpath $p2}}
			{{end}}
		{{end}}
		{{$curpath := printf "%s/index.md" $curpath}}
	<!-- Parent: {{$p}} {{$curpath}}<br> -->
	{{end}}
      </p>
      */}}

{{end}}

{{define "footer"}}
agata's avatar
agata committed
46
<small class="footer"><a href="/static/javascript.html" data-jslicense="1">JavaScript license information</a></small>
ale's avatar
ale committed
47 48 49 50
    </article>

    <script src="/static/js/jquery-2.1.0.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
agata's avatar
agata committed
51 52 53 54 55 56 57 58
    <script src="/static/js/typeahead.bundle.min.js">
        /* @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt MIT */
        /* @license-end */
   </script>
    <script src="/static/js/ai.js">
        /* @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt MIT */
        /* @license-end */
    </script>
ale's avatar
ale committed
59
    <script>
agata's avatar
agata committed
60
    /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
ale's avatar
ale committed
61
ai.lang = '{{cut "\\." "\\.html$" .Path}}';
agata's avatar
agata committed
62
    /* @license-end */
ale's avatar
ale committed
63 64 65 66 67 68 69 70 71
    </script>
  </body>
</html>
{{end}}

{{define "page"}}{{template "header" .}}
{{.Content}}
{{template "footer" .}}
{{end}}