Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jeosol committed May 25, 2016
0 parents commit 6ab25da
Show file tree
Hide file tree
Showing 36 changed files with 10,650 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/public
/public
3 changes: 3 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
baseurl = "http://replace-this-with-your-hugo-site.com/"
languageCode = "en-us"
title = "My New Hugo Site"
8 changes: 8 additions & 0 deletions content/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
+++
date = "2016-05-25T08:54:28-05:00"
draft = false
title = "about"

+++

<h1>Watercut prediction </h1>
7 changes: 7 additions & 0 deletions content/about.md~
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
+++
date = "2016-05-25T08:53:10-05:00"
draft = true
title = "about"

+++

1 change: 1 addition & 0 deletions static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
User-agent: *\nDisallow:
Empty file added themes/herring-cove/LICENSE.md
Empty file.
79 changes: 79 additions & 0 deletions themes/herring-cove/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
Herring Cove
============

Herring Cove is a clean and responsive [Hugo](//gohugo.io) theme based on the [Jekyll](http://jekyllrb.com) theme of the same name.


### Overview

* Fixed Sidebar with social links
* Minimal design
* Comments by Disqus
* Social Sharing abilities
* Easy to configure
* Based on Bootstrap

### Screenshots

![screenshot](/images/screenshot1.png)
![screenshot](/images/screenshot2.png)
![screenshot](/images/screenshot-landing.png)

### Setup

1. Install Hugo
2. Fork or [download](//github.com/spf13/herring-cove/archive/master.zip) this theme repo
3. Edit the config file in the root directory of your site

### Download

[download](//github.com/spf13/herring-cove/archive/master.zip)

### License
* [MIT](//opensource.org/licenses/MIT)

## Author
**Ravi Patel**
- <https://github.com/arnp>

## Ported By
**Steve Francia**
- <https://github.com/spf13>

-------------
Herring Cove is always a work in progress and as such, I hope to clean up the code and add features as time permits. Feel free to add your own additions.

*What's with the name?*

[Herring Cove](//www.capecodbeachchair.com/beachguide/index.cfm?page=3&BeachID=5) is a beach on Cape Cod in Provincetown, Massachusetts. If you're in the area, be sure to check it out!

## Additional features by
**Maikel Bollemeijer**
- <https://github.com/mbollemeijer>

-------------

1. Profile picture parameter
2. Links in the menus are generated through params in the config
3. Landingpage

Below an example of the yaml config
```yaml
params:
ProfilePicture: "pathOrUrlToImage"
links:
Home : "/"
Blog: "/blog/"
About: "/about/"
```
## Landing page
If you want to enable the landing page make sure you have the following params in your config.
```yaml
params:
ProfilePicture: "pathToImageOrUrlToImage"
enableLandingPage: true
landingPageRedirectUrl: "/about/"
AuthorName: "John Doe"
```
5 changes: 5 additions & 0 deletions themes/herring-cove/archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
Description = ""
Tags = []
Categories = []
+++
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/herring-cove/images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/herring-cove/images/screenshot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/herring-cove/images/screenshot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/herring-cove/images/tn.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/herring-cove/images/tn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions themes/herring-cove/layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{ template "theme/partials/header.html" . }}
<div id="article">
<h1>{{.Title}}</h1>
<ul class="posts">
{{ range .Data.Pages }}
<li><span><a href="{{ .RelPermalink }}">{{ .Title }}</a><time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</h4></time></span></span></li>
{{ end }}
</ul>
{{ template "theme/partials/footer.html" . }}
23 changes: 23 additions & 0 deletions themes/herring-cove/layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{ template "theme/partials/header.html" . }}
<div id="article">
<div class="article-title">{{ .Title }}</div>
<p class="meta"><small>&nbsp;<i class="fa fa-calendar-o"></i> {{ .Date.Format "2006-01-02" }}</small></p> <hr/>
<div class="post">
{{ .Content }}
</div>
</div>


<a href="https://twitter.com/share" class="twitter-share-button " data-size="small" data-count="none">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

<ul class="pager">
{{with .Prev}} &nbsp;<li class="previous"><a href="{{.Permalink}}"> {{.Title}}</a></li>{{end}}
{{with .Next}} &nbsp;<li class="next"><a href="{{.Permalink}}"> {{.Title}}</a></li>{{end}}
</ul>

{{ template "_internal/disqus.html" . }}

</ul>
</div>
{{ template "theme/partials/footer.html" . }}
39 changes: 39 additions & 0 deletions themes/herring-cove/layouts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ .Title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ .Description }}">
<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .Site.BaseURL }}/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}/css/hc.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif] d-->
</head>
<body>
{{ if eq .Site.Params.enableLandingPage true}}
<div class="circular">
<img src="{{ .Site.Params.ProfilePicture }}" alt="" />
<div id="landing-about">
<a href="{{ .Site.Params.landingPageRedirectUrl }}">Find out more about <b>{{ .Site.Params.AuthorName }}</b> </a>
</div>
</div>
{{ else }}
{{ template "theme/partials/header.html" . }}
<div id="article">
<h1>{{.Title}}</h1>
<ul class="posts">
{{ range .Data.Pages }}
<li><span><a href="{{ .RelPermalink }}">{{ .Title }}</a><time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</h4></time></span></span></li>
{{ end }}
</ul>
{{ template "theme/partials/footer.html" }}
{{ end }}

</body>
</html>
12 changes: 12 additions & 0 deletions themes/herring-cove/layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<footer>

<p class="text-muted credit">{{ with .Site.Params.Copyright }}{{.}}{{ else }}&copy; {{.Now.Format "2006"}}. All rights reserved. {{end}}</p>
</footer>
<!-- Bootstrap core JavaScript-->
<script src="{{ .Site.BaseURL }}/js/jquery-1.10.2.min.js"></script>
<script src="{{ .Site.BaseURL }}/js/bootstrap.min.js"></script>
<script src="{{ .Site.BaseURL }}/js/bootstrap.js"></script>
<script type="text/javascript" src="{{ .Site.BaseURL }}/js/hc.js"></script>
</body>

</html>
69 changes: 69 additions & 0 deletions themes/herring-cove/layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ .Title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ .Description }}">
{{ .Hugo.Generator }}
<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .Site.BaseURL }}/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}/css/hc.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif] d-->
</head>
<body>
<div class="nav-toggle"><i class="fa fa-bars fa-2x"></i> Herring Cove </div>
<div id = "wrapper">


<div class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-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 href="{{ .Site.BaseURL }}/"><p class="navbar-brand">{{ .Site.Title }}</p></a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
{{ $baseUrl:= .Site.BaseURL }}
{{range $key, $element := .Site.Params.links}}
<li><a href="{{ $baseUrl}}{{ $element }}">{{title $key }} </a></li>
{{ end }}
</ul>
</div><!--/.nav-collapse -->
</div>
</div>



<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<img src="{{ .Site.Params.ProfilePicture }}" />
<li class="sidebar-brand"><a href="{{ .Site.BaseURL }}/"><h1 class="brand">{{ .Site.Title }}</h1></a><h3>{{ .Site.Params.Description }}</h3></li>
<hr />
{{range $key, $element := .Site.Params.links}}
<li><a href="{{ $baseUrl }}{{ $element }}">{{title $key }} </a></li>
{{ end }}
<hr />
<div id="social-wrapper">
{{ with .Site.Params.twitter }}<li> <a href="{{.}}"><i class="fa fa-twitter-square"></i> @twitter</a></li>{{end}}
{{ with .Site.Params.linkedin }}<li> <a href="{{ . }}"><i class="fa fa-linkedin-square"></i> linkedin</a> </li>{{end}}
{{ with .Site.Params.facebook }}<li> <a href="{{ . }}"><i class="fa fa-facebook-square"></i> facebook</a></li>{{end}}
{{ with .Site.Params.github }}<li> <a href="{{ . }}"><i class="fa fa-github-square"></i> github</a> </li>{{end}}
</div>
</ul>
</div>



<div class="container">

Loading

0 comments on commit 6ab25da

Please sign in to comment.