Skip to content

Commit

Permalink
Redesign website from scratch using new hugo template
Browse files Browse the repository at this point in the history
  • Loading branch information
ncw committed May 16, 2014
1 parent def9ada commit 2b70658
Show file tree
Hide file tree
Showing 43 changed files with 12,725 additions and 6,315 deletions.
11 changes: 11 additions & 0 deletions docs/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"indexes": {
"tag": "tags",
"group": "groups",
"menu": "menu"
},
"baseurl": "http://rclone.org",
"title": "rclone - rsync for object storage",
"description": "rclone - rsync for object storage: google drive, s3, swift, cloudfiles, memstore...",
"canonifyurls": true
}
5 changes: 0 additions & 5 deletions docs/config.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions docs/content/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ Links
* [Github project page for source and more instructions](http://github.com/ncw/rclone)
* <a href="https://google.com/+RcloneOrg" rel="publisher">Google+ page</a></li>
* [Downloads](/downloads/)

rclone is brought to you by <a href="http://www.craig-wood.com/nick/">Nick Craig-Wood</a> <img src="http://www.craig-wood.com/nick/small/njcw.jpg" />
4 changes: 2 additions & 2 deletions docs/content/downloads.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ type: page
date: "2014-05-05"
---

v0.97
=====
Rclone Download v0.97
=====================

* Windows
* [386 - 32 Bit](http://downloads.rclone.org/rclone-v0.97-windows-386.zip)
Expand Down
4 changes: 2 additions & 2 deletions docs/content/downloads.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ type: page
date: "DATE"
---

VERSION
=====
Rclone Download VERSION
=====================

* Windows
* [386 - 32 Bit](http://downloads.rclone.org/rclone-VERSION-windows-386.zip)
Expand Down
62 changes: 0 additions & 62 deletions docs/layouts/_default/indexes.html

This file was deleted.

21 changes: 21 additions & 0 deletions docs/layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{ template "chrome/header.html" . }}
<body>
{{ template "chrome/navbar.html" . }}
<div class="container">
<div class="row">
<div class="col-md-9">
<div class="well well-sm">
<h3>{{ .Title }}<br> <small>{{ .Description }}</small></h3>
<hr>
{{ .Content }}
</div>
</div>

<!-- Sidebar -->
<div class="col-md-3">
{{ template "chrome/menu.html" . }}
</div>
</div>
{{ template "chrome/footer.copyright.html" . }}
</div>
{{ template "chrome/footer.html" . }}
6 changes: 0 additions & 6 deletions docs/layouts/base/footer.html

This file was deleted.

20 changes: 0 additions & 20 deletions docs/layouts/base/header.html

This file was deleted.

35 changes: 0 additions & 35 deletions docs/layouts/base/navbar.html

This file was deleted.

9 changes: 9 additions & 0 deletions docs/layouts/chrome/footer.copyright.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<footer>
<div class="row">
<hr>
<div class="col-sm-12">
<p>&copy; <a href="http://www.craig-wood.com/nick/">Nick Craig-Wood</a> 2014<br>
Built with <a href="https://github.com/spf13/hugo">Hugo</a></p>
</div>
</div>
</footer>
5 changes: 5 additions & 0 deletions docs/layouts/chrome/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

<script src="/js/jquery.js"></script>
<script src="/js/bootstrap.js"></script>
</body>
</html>
10 changes: 10 additions & 0 deletions docs/layouts/chrome/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!doctype html>
<html lang="en">
<head>
{{ template "chrome/meta.html" . }}

<title>{{ .Title }} - {{ .Site.BaseUrl }}</title>
<link rel="canonical" href="{{ .Permalink }}">
{{ template "chrome/header.includes.html" . }}
{{ if .RSSlink }}<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />{{ end }}
</head>
6 changes: 6 additions & 0 deletions docs/layouts/chrome/header.includes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

<link href="/css/bootstrap.css" rel="stylesheet">
<link href="/css/font-awesome.css" rel="stylesheet">
<link href="/css/custom.css" rel="stylesheet">
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
9 changes: 9 additions & 0 deletions docs/layouts/chrome/menu.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="panel panel-default">
<div class="panel-heading" style="padding: 2px 15px;">
<h4>Share and Enjoy.</h4>
</div>
<div class="panel-body">
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="njcw">Tweet</a>
<g:plusone size="medium"></g:plusone>
</div>
</div>
14 changes: 14 additions & 0 deletions docs/layouts/chrome/meta.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ .Description }}">
<meta name="author" content="Nick Craig-Wood">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-51081799-1', 'rclone.org');
ga('send', 'pageview');
</script>
29 changes: 29 additions & 0 deletions docs/layouts/chrome/navbar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ .Site.BaseUrl }}"><i class="fa fa-home"></i> {{ .Site.Title }}</a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li><a href="/downloads/"><i class="fa fa-cloud-download"></i> Downloads</a></li>
<li><a href="/docs/"><i class="fa fa-book"></i> Docs</a></li>
<li><a href="/contact/"><i class="fa fa-envelope"></i> Contact</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><b class="caret"></b> Storage Systems</a>
<ul class="dropdown-menu">
<li><a href="/drive/"><i class="fa fa-google"></i> Drive</a></li>
<li><a href="/s3/"><i class="fa fa-archive"></i> S3</a></li>
<li><a href="/swift/"><i class="fa fa-space-shuttle"></i> Swift</a></li>
<li><a href="/local/"><i class="fa fa-file"></i> Local</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
24 changes: 19 additions & 5 deletions docs/layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
{{ template "base/header.html" . }}
{{ range $key, $value := .Site.Indexes.groups.about.Pages }}
{{ $value.Content }}
{{ end }}
{{ template "base/footer.html" . }}
{{ template "chrome/header.html" . }}
<body>
{{ template "chrome/navbar.html" . }}
<div class="container">
<div class="row">
<div class="col-md-9">
{{ range $key, $value := .Site.Indexes.groups.about.Pages }}
{{ $value.Content }}
{{ end }}
</div>

<!-- Sidebar -->
<div class="col-md-3">
{{ template "chrome/menu.html" . }}
</div>
</div>
{{ template "chrome/footer.copyright.html" . }}
</div>
{{ template "chrome/footer.html" . }}
24 changes: 24 additions & 0 deletions docs/layouts/indexes/category.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{ template "chrome/header.html" . }}
<body>
{{ template "chrome/navbar.html" . }}
<div class="container">
<div class="row">
<div class="col-md-9">
<div class="well well-sm">
<strong>Items in category <code>{{ .Title | lower }}</code></strong>
<ul class="list-unstyled">
{{ range .Data.Pages }}
{{ .Render "li" }}
{{ end}}
</ul>
</div>
</div>

<!-- Sidebar -->
<div class="col-md-3">
{{ template "chrome/menu.html" . }}
</div>
</div>
{{ template "chrome/footer.copyright.html" . }}
</div>
{{ template "chrome/footer.html" . }}
24 changes: 24 additions & 0 deletions docs/layouts/indexes/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{ template "chrome/header.html" . }}
<body>
{{ template "chrome/navbar.html" . }}
<div class="container">
<div class="row">
<div class="col-md-9">
<div class="well well-sm">
<strong>Blog Post Archive</strong>
<ul class="list-unstyled">
{{ range .Data.Pages }}
{{ .Render "li" }}
{{ end}}
</ul>
</div>
</div>

<!-- Sidebar -->
<div class="col-md-3">
{{ template "chrome/menu.html" . }}
</div>
</div>
{{ template "chrome/footer.copyright.html" . }}
</div>
{{ template "chrome/footer.html" . }}
24 changes: 24 additions & 0 deletions docs/layouts/indexes/tag.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{ template "chrome/header.html" . }}
<body>
{{ template "chrome/navbar.html" . }}
<div class="container">
<div class="row">
<div class="col-md-9">
<div class="well well-sm">
<strong>Items with tag <code>{{ .Title | lower }}</code></strong>
<ul class="list-unstyled">
{{ range .Data.Pages }}
{{ .Render "li" }}
{{ end}}
</ul>
</div>
</div>

<!-- Sidebar -->
<div class="col-md-3">
{{ template "chrome/menu.html" . }}
</div>
</div>
{{ template "chrome/footer.copyright.html" . }}
</div>
{{ template "chrome/footer.html" . }}
Loading

0 comments on commit 2b70658

Please sign in to comment.