Skip to content

Commit 659230d

Browse files
committed
base implementation of a hugo template using jekyll-now
1 parent d0e7d24 commit 659230d

File tree

156 files changed

+29964
-22
lines changed

Some content is hidden

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

156 files changed

+29964
-22
lines changed

Gulpfile.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
var gulp = require('gulp'),
2+
sass = require('gulp-sass'),
3+
exec = require('gulp-exec'),
4+
autoprefixer = require('gulp-autoprefixer');
5+
6+
gulp.task('pygments', function() {
7+
var options = {
8+
continueOnError: false,
9+
pipeStdout: false
10+
};
11+
});
12+
13+
gulp.task('sass', function() {
14+
gulp.src('sass/style.scss')
15+
.pipe(sass()
16+
.on('error', sass.logError))
17+
.pipe(autoprefixer())
18+
.pipe(gulp.dest('static/css/'));
19+
});
20+
21+
gulp.task('default', ['sass']);
22+
23+
gulp.task('watch', function() {
24+
gulp.watch('sass/**/*.scss', ['sass']);
25+
});

LICENSE

-21
This file was deleted.

LICENSE.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 YOUR_NAME_HERE
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# hugo-now
2-
a Hugo port of [Jekyll Now](https://github.com/barryclark/jekyll-now)
2+
3+
A Hugo port of [Jekyll Now](https://github.com/barryclark/jekyll-now). The Hugo implementation based based off [hucore](https://github.com/mgjohansen/hucore).

archetypes/default.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
+++
2+
title = ""
3+
date = ""
4+
slug = ""
5+
tags = [
6+
""
7+
]
8+
categories = [
9+
""
10+
]
11+
draft = true
12+
+++

archetypes/post.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
+++
2+
title = ""
3+
date = ""
4+
slug = ""
5+
tags = [
6+
""
7+
]
8+
categories = [
9+
""
10+
]
11+
draft = true
12+
+++
13+
14+
<div class="well content-header">
15+
<img src="/images/insert_image_here.svg" alt="insert image here" />
16+
</div>
17+
18+
<!--more-->

layouts/404.html

Whitespace-only changes.

layouts/_default/list.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{{ partial "header" . }}
2+
{{ partial "nav" . }}
3+
<div class="container">
4+
<section class="section">
5+
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
6+
{{ range sort $paginator.Pages }}
7+
<article>
8+
{{ partial "post-metadata-list" . }}
9+
<div class="content">
10+
{{ .Summary | safeHTML }}
11+
</div>
12+
</article>
13+
{{ end }}
14+
</section>
15+
</div>
16+
{{ partial "paginate" . }}
17+
{{ partial "footer" . }}

layouts/_default/single.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{{ partial "header" . }}
2+
{{ partial "nav" . }}
3+
<div class="container">
4+
<section class="section">
5+
<div class="container">
6+
<article class="article">
7+
{{ partial "post-metadata-single" . }}
8+
<div class="content">
9+
{{ .Content }}
10+
</div>
11+
</article>
12+
</div>
13+
</section>
14+
</div>
15+
{{ partial "footer" . }}

layouts/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ template "theme/_default/list.html" . }}

layouts/meta/single.html

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{{ partial "header" . }}
2+
{{ partial "nav" . }}
3+
<div class="container">
4+
<section class="section">
5+
<div class="card card-inverse card-success mb-3 text-center">
6+
<div class="card-block">
7+
<h1 class="card-title"><i class="fa fa-sticky-note fa-3x" aria-hidden="true"></i></h1>
8+
<h3 class="card-title">
9+
{{ $posts := (where .Site.Pages "Section" "post") }}
10+
{{ len $posts }} Posts
11+
</h3>
12+
</div>
13+
</div>
14+
<div class="card card-inverse card-primary mb-3 text-center">
15+
<div class="card-block">
16+
<h1 class="card-title"><i class="fa fa-tags" aria-hidden="true"></i> Tags</h1>
17+
<p class="card-text">
18+
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
19+
<li><a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}">{{ $name }}</a></li>
20+
{{ end }}
21+
</p>
22+
</div>
23+
</div>
24+
</section>
25+
</div>
26+
{{ partial "footer" . }}

layouts/partials/analytics.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{ if .Params.Analytics }}
2+
<!-- Google Analytics -->
3+
<script>
4+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
5+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
6+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
7+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
8+
9+
ga('create', '{{ .Params.Analytics }}', 'auto');
10+
ga('send', 'pageview');
11+
</script>
12+
<!-- End Google Analytics -->
13+
{{ end }}

layouts/partials/favicons.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<link rel="apple-touch-icon" sizes="57x57" href="/images/favicons/apple-icon-57x57.png">
2+
<link rel="apple-touch-icon" sizes="60x60" href="/images/favicons/apple-icon-60x60.png">
3+
<link rel="apple-touch-icon" sizes="72x72" href="/images/favicons/apple-icon-72x72.png">
4+
<link rel="apple-touch-icon" sizes="76x76" href="/images/favicons/apple-icon-76x76.png">
5+
<link rel="apple-touch-icon" sizes="114x114" href="/images/favicons/apple-icon-114x114.png">
6+
<link rel="apple-touch-icon" sizes="120x120" href="/images/favicons/apple-icon-120x120.png">
7+
<link rel="apple-touch-icon" sizes="144x144" href="/images/favicons/apple-icon-144x144.png">
8+
<link rel="apple-touch-icon" sizes="152x152" href="/images/favicons/apple-icon-152x152.png">
9+
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicons/apple-icon-180x180.png">
10+
<link rel="icon" type="image/png" sizes="192x192" href="/images/favicons/android-icon-192x192.png">
11+
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicons/favicon-32x32.png">
12+
<link rel="icon" type="image/png" sizes="96x96" href="/images/favicons/favicon-96x96.png">
13+
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicons/favicon-16x16.png">
14+
<link rel="manifest" href="/images/favicons/manifest.json">
15+
<meta name="msapplication-TileColor" content="#ffffff">
16+
<meta name="msapplication-TileImage" content="/images/favicons/ms-icon-144x144.png">
17+
<meta name="theme-color" content="#ffffff">

layouts/partials/footer.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="wrapper-footer">
2+
<div class="container">
3+
<footer class="footer">
4+
</footer>
5+
</div>
6+
</div>
7+
{{ partial "analytics.html" . }}
8+
</body>
9+
</html>

layouts/partials/github-link.html

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- Place this tag where you want the button to render. -->
2+
<a class="github-button" href="https://github.com/{{ .Params.services.github.url }}/musicbrainz-mysql" aria-label="Star mikeblum/musicbrainz-mysql on GitHub">Star</a>

layouts/partials/header.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html class="no-js" lang="en-US" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
3+
<head>
4+
{{ partial "meta.html" . }}
5+
6+
{{ partial "favicons.html" . }}
7+
8+
<!--[if lt IE 9]>
9+
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
10+
<![endif]-->
11+
12+
<base href="{{ .Site.BaseURL }}">
13+
<title>{{ .Title }}</title>
14+
<link rel="canonical" href="{{ .Permalink }}">
15+
{{ if .RSSLink }}<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Title }}" />{{ end }}
16+
17+
{{ partial "includes.html" . }}
18+
</head>
19+
<body lang="en">

layouts/partials/includes.html

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- CSS -->
2+
<link rel="stylesheet" href="/css/style.css">

layouts/partials/meta.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<meta charset="utf-8" />
2+
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
3+
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
4+
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>
5+
6+
<meta name="description" content="{{ .Params.Description }}">
7+
<meta property="og:description" content="{{ .Params.Description }}" />
8+
<meta name="author" content="{{ .Site.Author }}" />
9+
10+
<meta property="og:title" content="{{ .Title }}" />
11+
<meta property="twitter:title" content="{{ .Title }}" />

layouts/partials/nav.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<div class="wrapper-masthead">
2+
<div class="container">
3+
<header class="masthead clearfix">
4+
<a href="{{ .Site.BaseURL }}/" class="site-avatar"><img src="{{ .Site.Params.avatar }}" /></a>
5+
6+
<div class="site-info">
7+
<h1 class="site-name"><a href="{{ .Site.BaseURL }}/">{{ .Site.Params.author }}</a></h1>
8+
<p class="site-description">{{ .Site.Params.description }}</p>
9+
</div>
10+
11+
<nav>
12+
<a href="{{ .Site.BaseURL }}/">Blog</a>
13+
<a href="{{ .Site.BaseURL }}/about">About</a>
14+
</nav>
15+
</header>
16+
</div>
17+
</div>

layouts/partials/paginate.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<div class="container">
2+
<div class="pagination">
3+
{{ if .Paginator.HasPrev }}
4+
<button type="button" class="btn btn-secondary pull-right"><a href="{{ .Paginator.Prev.URL }}"><i class="fa fa-chevron-left" aria-hidden="true"></i> Previous</a></button>
5+
{{ else }}
6+
<button type="button" class="btn btn-secondary pull-left disabled"><i class="fa fa-chevron-left" aria-hidden="true"></i> Previous</button>
7+
{{ end }}
8+
{{ if .Paginator.HasNext }}
9+
<button type="button" class="btn btn-secondary pull-right"><a href="{{ .Paginator.Next.URL }}">Next <i class="fa fa-chevron-right" aria-hidden="true"></i></a></button>
10+
{{ else }}
11+
<button type="button" class="btn btn-secondary pull-left disabled">Next <i class="fa fa-chevron-right" aria-hidden="true"></i></button>
12+
{{ end }}
13+
</div>
14+
</div>
15+
16+
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a>{{ if .Draft }} ::Draft{{ end }}
2+
<small class="text-muted pull-right">{{ .Date.Format "January 1, 2006" }}</small>
3+
</h1>
4+
<div class="post-metadata">
5+
<p class="text-muted">{{ .Params.subtitle }}</p>
6+
{{ if .Params.tags }}
7+
{{ partial "tags" .Params.tags }}
8+
{{ end }}
9+
</div>
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a>{{ if .Draft }} ::Draft{{ end }}
2+
<small class="text-muted pull-right">{{ .Date.Format "January 1, 2006" }}</small>
3+
</h1>
4+
<div class="post-metadata">
5+
{{ if (ne ($.Param "displayauthor") false) }}
6+
<small class="text-muted">by {{ .Params.author | default .Site.Params.author }}</small>
7+
{{ end }}
8+
<p class="text-muted"></p>
9+
{{ if .Params.tags }}
10+
{{ partial "tags" .Params.tags }}
11+
{{ end }}
12+
</div>

layouts/partials/tags.html

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div class="tags text-muted">
2+
<i class="fa fa-tags" aria-hidden="true"></i>
3+
{{ range . }}
4+
<a class="button is-link code" href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
5+
{{ end }}
6+
</div>

0 commit comments

Comments
 (0)