Adding theme
This commit is contained in:
parent
5e182f4a78
commit
8b0516179d
1
themes
1
themes
|
@ -1 +0,0 @@
|
||||||
Subproject commit afb1e630023b2a6660bbb0d9c3d61c4ffc543ea1
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
The MIT License (MIT)
|
||||||
|
Copyright © 2013 Oswaldo Acauan <hello@oswaldoacauan.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the “Software”), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
|
@ -0,0 +1,10 @@
|
||||||
|
# Detox
|
||||||
|
|
||||||
|
|
||||||
|
Detox is a beautiful theme, originally created to work with [Ghost](http://www.ghost.org). I wanted a copy of this theme for use with [Hugo](http://gohugo.io).
|
||||||
|
|
||||||
|
[The original](http://www.eatablueberry.com/detox.html) can be downloaded from [Blueberry](http://www.eatablueberry.com).
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
[MIT License](http://oswaldoacauan.mit-license.org/)
|
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
---
|
Binary file not shown.
After Width: | Height: | Size: 131 KiB |
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
|
@ -0,0 +1,22 @@
|
||||||
|
<article class="li {{ .Type }}">
|
||||||
|
<header class="post-header">
|
||||||
|
<h3 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
|
||||||
|
<p class="post-time"><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">{{ .Date.Format "January 2, 2006" }}</time></p>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<section class="post-excerpt">
|
||||||
|
<p>{{ .Summary }}</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<footer class="post-footer">
|
||||||
|
<span>
|
||||||
|
{{ if .Site.Params.disqusShortname }}
|
||||||
|
<a href="{{ .Permalink }}#comments"><i class="fa fa-comment"></i> Comments</a>
|
||||||
|
{{ end }}
|
||||||
|
{{ with.Params.tags }}
|
||||||
|
<i class="fa fa-tag"></i>
|
||||||
|
{{ delimit . ", " }}
|
||||||
|
{{ end }}
|
||||||
|
</span>
|
||||||
|
</footer>
|
||||||
|
</article>
|
|
@ -0,0 +1,23 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
{{ `<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->` | safeHTML }}
|
||||||
|
{{ `<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"> <![endif]-->` | safeHTML }}
|
||||||
|
{{ `<!--[if IE 8]><html class="no-js lt-ie9"> <![endif]-->` | safeHTML }}
|
||||||
|
{{ `<!--[if gt IE 8]><!-->` | safeHTML }}<html class="no-js" prefix="og: http://ogp.me/ns#" xmlns:og="http://ogp.me/ns#">{{ `<!--<![endif]-->` | safeHTML }}
|
||||||
|
|
||||||
|
{{ partial "head.html" . }}
|
||||||
|
<body>
|
||||||
|
{{ `<!--[if lt IE 7]><p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chrome/">install Google Chrome</a> to experience this site.</p><![endif]-->` | safeHTML }}
|
||||||
|
|
||||||
|
{{ partial "header.html" . }}
|
||||||
|
<main class="content" role="main">
|
||||||
|
<div class="container">
|
||||||
|
{{ range .Paginator.Pages }}
|
||||||
|
{{ .Render "li" }}
|
||||||
|
{{ end }}
|
||||||
|
{{ partial "pagination.html" . }}
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
{{ partial "footer.html" . }}
|
||||||
|
{{ partial "google_analytics.html" . }}
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,53 @@
|
||||||
|
<article class="{{ .Type }}">
|
||||||
|
<header class="post-header">
|
||||||
|
<h3 class="p-post-title">{{ .Title }}</h3>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<section class="post-content">
|
||||||
|
{{ .Content }}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<footer class="post-footer">
|
||||||
|
<section class="f-1">
|
||||||
|
{{ if isset .Params "author" }}
|
||||||
|
<section class="author">
|
||||||
|
<p>Words by {{ index .Params "author" }}</p>
|
||||||
|
</section>
|
||||||
|
{{ else if isset .Site.Params "author" }}
|
||||||
|
<section class="author">
|
||||||
|
<p>Words by {{ index .Site.Params "author" }}</p>
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<p class="f-post-time"><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "January 2, 2006" }}</time></p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="f-2">
|
||||||
|
<section class="share">
|
||||||
|
<span>Share:
|
||||||
|
<a class="icon-twitter" href="http://twitter.com/share?text={{ .Title }}&url={{ .Permalink }}"
|
||||||
|
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
|
||||||
|
<i class="fa fa-twitter"></i>
|
||||||
|
</a>
|
||||||
|
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}"
|
||||||
|
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
|
||||||
|
<i class="fa fa-facebook"></i>
|
||||||
|
</a>
|
||||||
|
<a class="icon-google-plus" href="https://plus.google.com/share?url={{ .Permalink }}"
|
||||||
|
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
|
||||||
|
<i class="fa fa-google-plus"></i>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{{ with .Params.tags }}
|
||||||
|
<span class="f-post-tags"><i class="fa fa-tag"></i>
|
||||||
|
{{ delimit . ", " }}
|
||||||
|
</span>
|
||||||
|
{{ end }}
|
||||||
|
</section>
|
||||||
|
{{ partial "disqus.html" . }}
|
||||||
|
</footer>
|
||||||
|
</article>
|
|
@ -0,0 +1,21 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
{{ `<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->` | safeHTML }}
|
||||||
|
{{ `<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"> <![endif]-->` | safeHTML }}
|
||||||
|
{{ `<!--[if IE 8]><html class="no-js lt-ie9"> <![endif]-->` | safeHTML }}
|
||||||
|
{{ `<!--[if gt IE 8]><!-->` | safeHTML }}<html class="no-js" prefix="og: http://ogp.me/ns#" xmlns:og="http://ogp.me/ns#">{{ `<!--<![endif]-->` | safeHTML }}
|
||||||
|
|
||||||
|
{{ partial "head.html" . }}
|
||||||
|
<body>
|
||||||
|
{{ `<!--[if lt IE 7]><p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chrome/">install Google Chrome</a> to experience this site.</p><![endif]-->` | safeHTML }}
|
||||||
|
|
||||||
|
{{ partial "header.html" . }}
|
||||||
|
<main class="content" role="main">
|
||||||
|
<div class="container">
|
||||||
|
{{ .Render "post" }}
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
{{ partial "footer.html" . }}
|
||||||
|
{{ partial "google_analytics.html" . }}
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,20 @@
|
||||||
|
{{ with $.Site.Params.disqusShortname }}
|
||||||
|
<section id="comments">
|
||||||
|
<div id="disqus_thread" class="post-comments"></div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
if (window.location.hostname != "localhost") {
|
||||||
|
var disqus_shortname = '{{ . }}';
|
||||||
|
(function() {
|
||||||
|
var dsq = document.createElement('script');
|
||||||
|
dsq.type = 'text/javascript';
|
||||||
|
dsq.async = true;
|
||||||
|
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||||
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>
|
||||||
|
</noscript>
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
|
@ -0,0 +1,18 @@
|
||||||
|
<footer id="site-footer">
|
||||||
|
<div class="container">
|
||||||
|
{{ with .Site.Params.instagram }}
|
||||||
|
<a href="https://www.instagram.com/{{ . }}/" title="Instagram" target="_blank"><span class="tooltip"><i class="fa fa-instagram"></i></span></a>
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Site.Params.twitter_name }}
|
||||||
|
<a href="https://www.twitter.com/{{ . }}" title="Twitter" target="_blank"><span class="tooltip"><i class="fa fa-twitter"></i></span></a>
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Site.Params.facebook }}
|
||||||
|
<a href="https://www.facebook.com/{{ . }}" title="Facebook" target="_blank"><span class="tooltip"><i class="fa fa-facebook"></i></span></a>
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Site.Params.github }}
|
||||||
|
<a href="https://www.github.com/{{ . }}" title="GitHub" target="_blank"><span class="tooltip"><i class="fa fa-github"></i></span></a>
|
||||||
|
{{ end }}
|
||||||
|
<a href="{{ .Site.BaseURL }}index.xml" title="Get the RSS feed"><span class="tooltip"><i class="fa fa-rss"></i></span></a>
|
||||||
|
<section><a href="{{ .Site.BaseURL }}">{{ .Site.Params.author }}</a></section>
|
||||||
|
</div>
|
||||||
|
</footer>
|
|
@ -0,0 +1,8 @@
|
||||||
|
{{ with .Site.Params.google_analytics }}
|
||||||
|
<script>
|
||||||
|
var _gaq=[['_setAccount','{{ . }}'],['_trackPageview']];
|
||||||
|
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||||
|
g.src='//www.google-analytics.com/ga.js';
|
||||||
|
s.parentNode.insertBefore(g,s)}(document,'script'));
|
||||||
|
</script>
|
||||||
|
{{ end }}
|
|
@ -0,0 +1,10 @@
|
||||||
|
<head>
|
||||||
|
{{ partial "meta.html" . }}
|
||||||
|
<title>{{ .Title }} · {{ .Site.Title }}</title>
|
||||||
|
<link rel="canonical" href="{{ .Site.BaseURL }}" />
|
||||||
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ .RSSLink }}">
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/main.css"/>
|
||||||
|
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300|Montserrat:700" rel="stylesheet" type="text/css">
|
||||||
|
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
|
||||||
|
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
|
||||||
|
</head>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<header id="site-header">
|
||||||
|
<div class="container">
|
||||||
|
<a href="{{ .Site.BaseURL }}" alt="{{ .Site.Title }}"><h1 class="blog-title heading">{{ .Site.Title }}</h1></a>
|
||||||
|
<p class="blog-description">{{ .Site.Params.description }}</p>
|
||||||
|
</div>
|
||||||
|
</header>
|
|
@ -0,0 +1,29 @@
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="description" content="{{ if .IsNode }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ else }}{{ with .Description }}{{ . }}{{ end }}{{ end }}">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
|
||||||
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||||
|
<meta name="author" content="{{ .Site.Params.author }}">
|
||||||
|
{{ with .Site.Params.keywords }}
|
||||||
|
<meta name="keywords" content="{{ range $index, $element := $.Site.Params.keywords }}{{ if gt $index 0 }}, {{ end }}{{ . | safeHTML }}{{ else }}{{ . | safeHTML }}{{ end }}">
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Site.Params.twitter_name }}
|
||||||
|
<meta name="twitter:card" content="summary">
|
||||||
|
<meta name="twitter:site" content="@https://twitter.com/{{ . }}">
|
||||||
|
<meta name="twitter:creator" content="@https://twitter.com/{{ . }}">
|
||||||
|
<meta name="twitter:domain" content="{{ $.Site.BaseURL }}">
|
||||||
|
{{ end }}
|
||||||
|
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||||
|
<meta property="og:title" content="{{ .Site.Title }}">
|
||||||
|
<meta property="og:url" content="{{ .Permalink }}">
|
||||||
|
<meta property="og:description" content="{{ .Site.Params.description }}">
|
||||||
|
{{ if .IsPage }}
|
||||||
|
<meta property="og:type" content="article" />
|
||||||
|
<meta property="og:article:author" content="{{ .Site.Params.author }}" />
|
||||||
|
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
|
||||||
|
{{ else }}
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
{{ end }}
|
||||||
|
{{ .Hugo.Generator }}
|
|
@ -0,0 +1,15 @@
|
||||||
|
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||||
|
<nav role="pagination" class="pagination">
|
||||||
|
{{ if .Paginator.HasPrev }}
|
||||||
|
<a href="{{.Paginator.Prev.URL}}" class="newer-posts">
|
||||||
|
<i class="fa fa-angle-double-left"></i> Newer
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
<span class="post-list-pagination-item post-list-pagination-item-current">Page {{.Paginator.PageNumber}} of {{.Paginator.TotalPages}}</span>
|
||||||
|
{{ if .Paginator.HasNext }}
|
||||||
|
<a href="{{.Paginator.Next.URL}}" class="older-posts">
|
||||||
|
Older <i class="fa fa-angle-double-right"></i>
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
</nav>
|
||||||
|
{{ end }}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,19 @@
|
||||||
|
// fittext.js plugin
|
||||||
|
(function($){
|
||||||
|
$.fn.fitText = function(kompressor, options){
|
||||||
|
var compressor = kompressor || 1,
|
||||||
|
settings = $.extend({
|
||||||
|
'minFontSize' : Number.NEGATIVE_INFINITY,
|
||||||
|
'maxFontSize' : Number.POSITIVE_INFINITY
|
||||||
|
}, options);
|
||||||
|
|
||||||
|
return this.each(function(){
|
||||||
|
var $this = $(this);
|
||||||
|
var resizer = function () {
|
||||||
|
$this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize)));
|
||||||
|
};
|
||||||
|
resizer();
|
||||||
|
$(window).on('resize orientationchange', resizer);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
})( jQuery );
|
|
@ -0,0 +1,18 @@
|
||||||
|
name = "Detox"
|
||||||
|
license = "MIT"
|
||||||
|
licenselink = "https://github.com/allnightgrocery/hugo-theme-blueberry-detox/blob/master/LICENSE"
|
||||||
|
description = "Detox is a beautiful theme, originally designed by Jordan Bowman (@jrdnbwmn)."
|
||||||
|
homepage = "https://github.com/allnightgrocery/hugo-theme-blueberry-detox"
|
||||||
|
tags = ["blog", "minimal", "ghost", "white"]
|
||||||
|
features = ["blog", "disqus", "google analytics", "pagination", "rss", "sharing options"]
|
||||||
|
min_version = 0.14
|
||||||
|
|
||||||
|
[author]
|
||||||
|
name = "Andrew R. Jenkins"
|
||||||
|
homepage = "http://andrewrjenkins.com"
|
||||||
|
|
||||||
|
# If porting an existing theme
|
||||||
|
[original]
|
||||||
|
name = "Jordan Bowman"
|
||||||
|
homepage = "http://www.jrdnbwmn.com"
|
||||||
|
repo = "https://github.com/jrdnbwmn/detox"
|
Loading…
Reference in New Issue