Skip to content

Commit a78d554

Browse files
committed
Added basic bootstrap template
1 parent 98391c6 commit a78d554

File tree

112 files changed

+7429
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+7429
-0
lines changed

archetypes/default.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
date: {{ .Date }}
4+
draft: true
5+
---
6+

config.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
baseURL = "https://taskwarrior.org/"
2+
languageCode = "en-us"
3+
title = "Taskwarrior"
4+
theme = "gbf"

themes/gbf/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.swp

themes/gbf/archetypes/default.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
+++
2+
categories = ["general"]
3+
tags = ["document"]
4+
+++

themes/gbf/layouts/_default/list.html

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{{ partial "header.html" . }}
2+
3+
<div class="row">
4+
<div class="col-sm-8 doc-main">
5+
<main role="main">
6+
<div class="doc-list-header">
7+
<h3>Pages in {{ .Title }}</h3>
8+
</div>
9+
<div class="doc-list-entry">
10+
<ul>
11+
{{ range .Data.Pages }}
12+
<li><a class="doc-entry" href="{{ .RelPermalink }}">
13+
<span class="doc-entry-title">{{ .Title }}{{ if .Draft }} #Draft{{ end }}</span>
14+
<span class="doc-entry-meta in-list">
15+
(<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time>)
16+
</span>
17+
</a></li>
18+
{{ end }}
19+
</ul>
20+
</div>
21+
</main>
22+
</div> <!-- /.doc-main -->
23+
24+
{{ partial "sidebar-list.html" . }}
25+
26+
</div> <!-- /.row -->
27+
28+
{{ partial "footer.html" . }}
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{{ partial "header.html" . }}
2+
3+
<div class="row">
4+
<div class="col-sm-8 doc-main">
5+
<main role="main">
6+
<article>
7+
<a id="title"></a>
8+
<h1 class="doc-entry-title">{{ .Title }}</h1>
9+
<div class="doc-entry-meta">
10+
<span><time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span>
11+
</div>
12+
<section>
13+
{{ .Content }}
14+
</section>
15+
</article>
16+
</main>
17+
</div> <!-- /.doc-main -->
18+
19+
{{ partial "sidebar-single.html" . }}
20+
21+
</div> <!-- /.row -->
22+
23+
{{ partial "footer.html" . }}

themes/gbf/layouts/index.html

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{{ $baseUrl := .Site.BaseURL }}
2+
{{ partial "header.html" . }}
3+
4+
<main role="main">
5+
6+
<div class="row">
7+
<!-- Main jumbotron for a primary marketing message or call to action -->
8+
<div class="jumbotron">
9+
<h1>{{ .Site.Title }}</h1>
10+
<p>{{ with .Site.Params.description }}{{ . }}{{ else }}You can customize this text by params "description" in your <code>config.toml</code>.{{ end }}</p>
11+
</div>
12+
</div>
13+
14+
{{ range where .Site.Pages "Title" "_index" }}
15+
<div class="row doc-main">
16+
<p class="doc-entry-meta"><time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></p>
17+
{{ .Content }}
18+
</div>
19+
{{ end }}
20+
21+
<div class="row doc-category">
22+
<h2>Pages in Categories</h2>
23+
<div>
24+
<ul class="doc-list-category">
25+
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
26+
<li>
27+
<a href="{{ $baseUrl }}/categories/{{ $name | urlize }}">
28+
<span class="doc-list-category">{{ $name | title }}</span>
29+
</a>
30+
<ul>{{ range $taxonomy.Pages }}
31+
<li><a href="{{ .RelPermalink }}">
32+
<span>{{ .Title }}{{ if .Draft }} #Draft{{ end }}</span>
33+
<span class="doc-entry-meta">(<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time>)
34+
</span>
35+
</a></li>
36+
{{ end }}
37+
</ul>
38+
</li>
39+
{{ end }}
40+
</ul>
41+
</div>
42+
</div>
43+
44+
{{ $title := .Site.Title }}
45+
{{ with .Site.Params.withSitePosts }}
46+
<hr />
47+
48+
<div class="row doc-main text-center">
49+
<a href="{{ $baseUrl }}/post">See posts for {{ $title }}</a>
50+
</div>
51+
{{ end }}
52+
53+
</main>
54+
55+
{{ partial "footer.html" . }}
+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{{ $baseUrl := .Site.BaseURL }}
2+
<hr />
3+
4+
<div id="footer">
5+
<div class="container">
6+
<div class="col-md-2">
7+
<p class="text-muted">
8+
Get Involved
9+
<br />
10+
<a href="https://bug.tasktools.org/secure/CreateIssue!default.jspa">Submit a bug</a>
11+
<br />
12+
<a href="https://git.tasktools.org/projects/TM/repos/task/browse">Clone the code</a>
13+
</p>
14+
</div>
15+
<div class="col-md-2">
16+
<p class="text-muted">
17+
Monitor
18+
<br />
19+
<a href="http://status.tasktools.org">System status</a>
20+
<br />
21+
<a href="http://statuspage.tasktools.org">Operations Information</a>
22+
</p>
23+
</div>
24+
<div class="col-md-2">
25+
<p class="text-muted">
26+
Related Sites
27+
<br />
28+
<a href="http://tasktools.org">tasktools.org</a>
29+
<br />
30+
<a href="http://holidata.net">holidata.net</a>
31+
</p>
32+
</div>
33+
<div class="col-md-2">
34+
<p class="text-muted">
35+
Contact
36+
<br />
37+
<a href="mailto:[email protected]"><span class="glyphicon glyphicon-envelope"></span> Email</a>
38+
<br />
39+
<a href="https://twitter.com/taskwarrior"><img src="/images/twitter_dark.png" alt="twitter logo" style="width:16px; height:16px;"> Twitter</a>
40+
</p>
41+
</div>
42+
<div class="col-md-2">
43+
<div class="text-muted">
44+
Donate
45+
<br />
46+
<a href="https://flattr.com/submit/auto?user_id=taskwarrior&url=http%3A%2F%2Ftaskwarrior.org" target="_blank"><span class="glyphicon"><img src="/images/flattr_logo_16.png" width="16px" height="16px" alt="Flattr this" title="Flattr this" border="0"></span> Flattr</a>
47+
<br />
48+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
49+
<input type="hidden" name="lc" value="en_US">
50+
<input type="hidden" name="cmd" value="_s-xclick">
51+
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHPwYJKoZIhvcNAQcEoIIHMDCCBywCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBBCk8xDP0itbbUlqEdxezc2EBPFprkvY1dgZLt//2Fxa5MGC0sr5irXPhh5/9H71/xUDdXLAW48smxMStRgUPNaXtbH9tG+Js3yVRxObGc8c6QHUDFjbDdHZXMYigPCAFCXw69/oliYCkQ8ANt84MUjqns9HLJw8fmEzqOrgE89jELMAkGBSsOAwIaBQAwgbwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIE0SOjNzcFHmAgZhdqtdPAqqb+31BfUMO6AP/M2BDs0lxsa0vdduAcvZ3P1Fi3xa8CgtKArZATuNFbL8+hCMC3qg5spEcX46mlDYFJp2H/13scfP5MDoOa+mxFVAHVRbN4smZsYNYjtw4i59FC4F2/2Zli6QTuGAcZbGNN5xcO4k6RjYHWade66XUYIItn47AeKAVTK9wS95uSxXNtY6TWFosOqCCA4cwggODMIIC7KADAgECAgEAMA0GCSqGSIb3DQEBBQUAMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEc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QQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTExMDcxODIyMTc1NFowIwYJKoZIhvcNAQkEMRYEFC9vnDkMVfzRa+R3epadnzsLl+pbMA0GCSqGSIb3DQEBAQUABIGAUZXskGTgWLLaulW/GTU5hxxBYeJFie8HNfGN0faR2wz4ec3eIFLrVU5bsX663p4gvoEH34PJFspYRDQwN+u09YPigMSAEc5gDQeUtVA7qKBLib2MWagcwXJR1OmJc7g/mqHp7gQ+QxTaG6UlKVSI6TB2vtgDXXa+Pwyv/O7C2ws=-----END PKCS7-----">
52+
<input type="image" src="/images/paypal.jpg" style="border:0px;" name="submit" alt="PayPal - The safer, easier way to pay online!">
53+
<img alt="paypal" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" style="border:0px; width:1px; height:1px;">
54+
</form>
55+
</div>
56+
</div>
57+
<div class="col-md-2">
58+
<p class="text-muted">
59+
Copyright &copy; 2017 <a href="/about.html">Göteborg Bit Factory</a>
60+
</p>
61+
</div>
62+
</div>
63+
</div>
64+
</div> <!-- /.container -->
65+
66+
<script src="{{ $baseUrl }}/js/jquery.min.js"></script>
67+
<script src="{{ $baseUrl }}/js/bootstrap.min.js"></script>
68+
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
69+
<script src="{{ $baseUrl }}/js/highlight.pack.js"></script>
70+
<script>hljs.initHighlightingOnLoad();</script>
71+
<script src="{{ $baseUrl }}/js/ie10-viewport-bug-workaround.js"></script>
72+
<script src="{{ $baseUrl }}/js/bootie-docs.js"></script>
73+
74+
</body>
75+
</html>
+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!DOCTYPE html>
2+
{{ $baseUrl := .Site.BaseURL }}
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="alternate" href="/index.xml" type="application/rss+xml" title="{{ .Site.Title }}">
8+
<link rel="icon" href="{{ $baseUrl }}/favicon.ico">
9+
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
10+
<!--<link href="http://fonts.googleapis.com/css?family=PT+Sans:400,700" rel="stylesheet" type="text/css">-->
11+
<link rel="stylesheet" href="{{ $baseUrl }}/css/highlight/{{ with .Site.Params.highlightStyle }}{{ . }}{{ else }}default{{ end }}.css">
12+
<link rel="stylesheet" href="{{ $baseUrl }}/css/bootstrap.min.css">
13+
<link rel="stylesheet" href="{{ $baseUrl }}/css/bootstrap-theme.min.css">
14+
<link rel="stylesheet" href="{{ $baseUrl }}/css/theme.css">
15+
<link rel="stylesheet" href="{{ $baseUrl }}/css/bootie-docs.css">
16+
<link rel="stylesheet" href="{{ $baseUrl }}/css/site.css">
17+
</head>
18+
19+
<body role="document">
20+
21+
<div class="navbar navbar-default navbar-inverse navbar-fixed-top" role="navigation">
22+
<div class="container">
23+
<a class="navbar-brand text-heavy" href="/"><img src="/images/tw-s.png" alt="{{ .Site.Title }} brand" style="width:24px; height:24px;"> TASKWARRIOR</a>
24+
<div class="navbar-header">
25+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
26+
<span class="sr-only">Toggle navigation</span>
27+
<span class="icon-bar"></span>
28+
<span class="icon-bar"></span>
29+
<span class="icon-bar"></span>
30+
</button>
31+
</div>
32+
<div class="collapse navbar-collapse">
33+
<ul class="nav navbar-nav">
34+
<li><a href="/news/">News</a></li>
35+
<li><a href="/docs/">Docs</a></li>
36+
<li><a href="/download/">Download</a></li>
37+
<li><a href="/support/">Support</a></li>
38+
<li><a href="/tools/">Tools</a></li>
39+
</ul>
40+
</div>
41+
</div>
42+
</div>
43+
44+
<div class="container">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{{ $baseUrl := .Site.BaseURL }}
2+
<div class="col-sm-3 col-sm-offset-1 doc-sidebar">
3+
<div class="sidebar-module">
4+
<h4 class="sidebar-heading">Pages in Categories</h4>
5+
<ul class="sidebar-category-list">
6+
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
7+
<li>
8+
<a href="{{ $baseUrl }}/categories/{{ $name | urlize }}">
9+
<span class="doc-list-category">{{ $name | title }}</span>
10+
</a>
11+
<ul>{{ range $taxonomy.Pages }}
12+
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} #Draft{{ end }}</a></li>
13+
{{ end }}
14+
</ul>
15+
</li>
16+
{{ end }}
17+
</ul>
18+
</div>
19+
<div class="sidebar-module">
20+
<h4 class="sidebar-heading">Tags</h4>
21+
<div class="tag-box">
22+
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
23+
<a class="tag-item" href="{{ $baseUrl }}/tags/{{ $name | urlize }}">{{ $name }}</a>
24+
{{ end }}
25+
</div>
26+
</div>
27+
</div><!-- /.doc-sidebar -->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{{ $baseUrl := .Site.BaseURL }}
2+
{{ $url := .Permalink }}
3+
<div class="col-sm-3 col-sm-offset-1 doc-sidebar">
4+
<div id="sidebar">
5+
<div class="sidebar-module">
6+
<div class="sidebar-toc">
7+
<h4 class="sidebar-heading">Table of Contents</h4>
8+
<ul>
9+
<li><strong><a href="#title">{{ .Title }}</a></strong></li>
10+
</ul>
11+
{{ .TableOfContents }}
12+
</div>
13+
</div>
14+
<div class="sidebar-module">
15+
<h4 class="sidebar-heading">Pages in Categories</h4>
16+
<ul class="sidebar-category-list">
17+
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
18+
<li>
19+
<a href="{{ $baseUrl }}/categories/{{ $name | urlize }}">
20+
<span class="doc-list-category">{{ $name | title }}</span>
21+
</a>
22+
<ul>{{ range $taxonomy.Pages }}
23+
<li>{{ if eq $url .Permalink }}
24+
<span class="active">{{ .Title }}{{ if .Draft }} #Draft{{ end }}</span>
25+
{{ else }}<a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} #Draft{{ end }}</a>
26+
{{ end }}</li>
27+
{{ end }}
28+
</ul>
29+
</li>
30+
{{ end }}
31+
</ul>
32+
</div>
33+
<div class="sidebar-module">
34+
<h4 class="sidebar-heading">Tags</h4>
35+
<div class="tag-box">
36+
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
37+
<a class="tag-item" href="{{ $baseUrl }}/tags/{{ $name | urlize }}">{{ $name }}</a>
38+
{{ end }}
39+
</div>
40+
</div>
41+
</div>
42+
</div><!-- /.doc-sidebar -->

themes/gbf/layouts/section/index.html

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{{ $baseUrl := .Site.BaseURL }}
2+
{{ partial "header.html" . }}
3+
4+
<div class="row">
5+
<div class="col-sm-8 doc-main">
6+
<main role="main">
7+
<div class="doc-list-header">
8+
<h3>Index</h3>
9+
</div>
10+
11+
<div class="doc-list-entry">
12+
<ul>
13+
{{ range .Site.Sections }}
14+
{{ range first 1 .Pages }}
15+
{{ if and (ne .Section "") (ne .Section "index") }}
16+
<li><a class="doc-entry" href="{{ $baseUrl }}/{{ .Section }}">{{ .Section | title }}/</a><ul>
17+
{{ end }}
18+
{{ end }}
19+
{{ range .Pages }}
20+
{{ if eq (substr .Title 0 1) "_" }}
21+
{{ else }}
22+
<li><a class="doc-entry" href="{{ .RelPermalink }}">
23+
<span class="doc-entry-title">{{ .Title }}</span>
24+
<span class="doc-entry-meta in-list">
25+
(<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time>)
26+
</span>
27+
</a></li>
28+
{{ end }}
29+
{{ end }}
30+
{{ range first 1 .Pages }}
31+
{{ if and (ne .Section "") (ne .Section "index") }}</ul></li>{{ end }}
32+
{{ end }}
33+
{{ end }}
34+
</ul>
35+
</div>
36+
37+
</main>
38+
</div> <!-- /.doc-main -->
39+
40+
{{ partial "sidebar-list.html" . }}
41+
</div> <!-- /.row -->
42+
43+
{{ partial "footer.html" . }}

0 commit comments

Comments
 (0)