Skip to content

Commit

Permalink
Saved and refactored actual status.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lednerb committed Oct 27, 2017
0 parents commit a699aca
Show file tree
Hide file tree
Showing 43 changed files with 12,407 additions and 0 deletions.
20 changes: 20 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2017 Sascha Brendel | @Lednerb <[email protected]>

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.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Bilberry Hugo Theme
11 changes: 11 additions & 0 deletions archetypes/audio.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true

# Set your audio url for
spotify: "" # (Spotify URI) spotify:track:43mGIUqxFoDQI4YiqbGmqd
soundcloud: "" # https://soundcloud.com/jahseh-onfroy/fuck-love-feat-trippie-redd
mixcloud: "" # https://www.mixcloud.com/swankytunes/swanky-tunes-showland-172/

---
5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true
---
10 changes: 10 additions & 0 deletions archetypes/link.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true

# Set your external url
link: "https://github.com/Lednerb/gohugo-theme-bilberry"

---

10 changes: 10 additions & 0 deletions archetypes/video.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true

# Set your video id for
youtube: "" # https://www.youtube.com/watch?v=M7IjJiZUutk -> "M7IjJiZUutk"
vimeo: "" # https://vimeo.com/239830182 -> "239830182"

---
1 change: 1 addition & 0 deletions layouts/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sorry
25 changes: 25 additions & 0 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html class="no-js" lang="{{ .Site.Language.Lang }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ .Hugo.Generator }}

<link rel="stylesheet" href="{{ "dist/theme.css" | relURL }}">

{{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
<title>{{ block "title" . }}{{ .Site.Title }} {{ with .Title }} | {{ . }}{{ end }}{{ end }}</title>
</head>
<body>
{{ partial "header.html" . }}

<div class="main container">
{{ block "main" . }}{{ end }}
</div>

{{ partial "footer.html" . }}

<script src="{{ "dist/theme.js" | relURL }}"></script>
{{ template "_internal/google_analytics_async.html" . }}
</body>
</html>
1 change: 1 addition & 0 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
list.html
1 change: 1 addition & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
single.html
15 changes: 15 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{ define "main" }}
{{ range .Paginator.Pages }}
<div class="article-wrapper u-cf">

{{ if or (fileExists (print "layouts/partials/content-type/" .Type ".html") ) (fileExists (print "themes/bilberry/layouts/partials/content-type/" .Type ".html")) }}
{{ partial (print "content-type/" .Type) . }}
{{ else }}
{{ partial "content-type/article.html" . }}
{{ end }}

</div>
{{ end }}

{{ partial "paginator.html" . }}
{{ end }}
7 changes: 7 additions & 0 deletions layouts/partials/content-type/article.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<a class="bubble" href="{{ .URL }}">
<i class="fa fa-fw fa-pencil"></i>
</a>

<article class="default article">
{{ partial "default-content.html" . }}
</article>
22 changes: 22 additions & 0 deletions layouts/partials/content-type/audio.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<a class="bubble" href="{{ .URL }}">
<i class="fa fa-fw fa-music"></i>
</a>

<article class="audio">

{{ if and (isset .Params "spotify") (ne .Params.spotify "") }}
<div class="responsive-audio spotify">
<iframe src="https://open.spotify.com/embed?uri={{ .Params.spotify }}" width="300" height="80" frameborder="0" allowtransparency="true"></iframe>
</div>
{{ else if and (isset .Params "soundcloud") (ne .Params.soundcloud "") }}
<div class="responsive-audio soundcloud">
<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url={{ .Params.soundcloud }}&amp;color=%23ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;show_teaser=true"></iframe>
</div>
{{ else if and (isset .Params "mixcloud") (ne .Params.mixcloud "") }}
<div class="responsive-audio mixcloud">
<iframe width="100%" height="120" src="https://www.mixcloud.com/widget/iframe/?hide_cover=1&light=1&feed=%2Fswankytunes%2Fswanky-tunes-showland-172%2F" frameborder="0" ></iframe>
</div>
{{ end }}

{{ partial "default-content.html" . }}
</article>
10 changes: 10 additions & 0 deletions layouts/partials/content-type/link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<a class="bubble" href="{{ .Params.link }}" target="_blank">
<i class="fa fa-fw fa-link"></i>
</a>

<article class="link">
<a href="{{ .Params.link }}" target="_blank">
<h4>{{ .Title }}</h4>
{{ .Content }}
</a>
</article>
10 changes: 10 additions & 0 deletions layouts/partials/content-type/quote.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<a class="bubble" href="{{ .URL }}">
<i class="fa fa-fw fa-quote-right"></i>
</a>

<article class="quote">
<blockquote>
{{ .Content }}
<cite>{{ .Params.author }}</cite>
</blockquote>
</article>
18 changes: 18 additions & 0 deletions layouts/partials/content-type/video.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<a class="bubble" href="{{ .URL }}">
<i class="fa fa-fw fa-video-camera"></i>
</a>

<article class="video">

{{ if and (isset .Params "youtube") (ne .Params.youtube "") }}
<div class="responsive-video youtube">
<iframe src="https://www.youtube-nocookie.com/embed/{{ .Params.youtube }}?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
{{ else if and (isset .Params "vimeo") (ne .Params.vimeo "") }}
<div class="responsive-video vimeo">
<iframe src="https://player.vimeo.com/video/{{ .Params.vimeo }}" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
{{ end }}

{{ partial "default-content.html" . }}
</article>
25 changes: 25 additions & 0 deletions layouts/partials/default-content.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<div class="content">
<h3><a href="{{ .URL }}">{{ .Title }}</a></h3>
<div class="meta">
<span class="date">{{ .PublishDate.Format "January 2, 2006" }}</span>

{{ with .Params.categories }}
<span class="categories">
{{ range . }}
<a href="/categories/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}

{{ with .Params.author }}
<span class="author"><a href="/authors/{{ . | urlize }}">{{ . }}</a></span>
{{ end }}
</div>

{{ .Summary }}

{{ if .Truncated }}
<a href="{{ .URL }}" class="more">Continue reading</a>
{{ end }}

</div>
75 changes: 75 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<footer>
<div class="container">

<div class="recent-posts">
<strong>Recent posts</strong>

{{ with .Pages }}
<ul>
{{ range first 5 . }}
<li>
<a href="{{ .URL }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
{{ end }}
</div>

<div class="categories">
<strong>Categories</strong>

{{ with .Site.Taxonomies.categories }}
<ul>
{{ range $name, $taxonomy := . }}
<li>
<a href="/categories/{{ $name | urlize }}">{{ $name | humanize }} ({{ $taxonomy.Count }})</a>
</li>
{{ end }}
</ul>
{{ end }}
</div>

<div class="social-media">
<strong>Social media</strong>

{{ with .Site.Params.facebook }}
<a href="{{ . }}" target="_blank"><i class="fa fa-facebook"></i></a>
{{ end }}
{{ with .Site.Params.twitter }}
<a href="{{ . }}" target="_blank"><i class="fa fa-twitter"></i></a>
{{ end }}
{{ with .Site.Params.googleplus }}
<a href="{{ . }}" target="_blank"><i class="fa fa-google-plus-official"></i></a>
{{ end }}
{{ with .Site.Params.pinterest }}
<a href="{{ . }}" target="_blank"><i class="fa fa-pinterest"></i></a>
{{ end }}
{{ with .Site.Params.instagram }}
<a href="{{ . }}" target="_blank"><i class="fa fa-instagram"></i></a>
{{ end }}
{{ with .Site.Params.tumblr }}
<a href="{{ . }}" target="_blank"><i class="fa fa-tumblr"></i></a>
{{ end }}
{{ with .Site.Params.youtube }}
<a href="{{ . }}" target="_blank"><i class="fa fa-youtube"></i></a>
{{ end }}
{{ with .Site.Params.vimeo }}
<a href="{{ . }}" target="_blank"><i class="fa fa-vimeo"></i></a>
{{ end }}
{{ with .Site.Params.github }}
<a href="{{ . }}" target="_blank"><i class="fa fa-github"></i></a>
{{ end }}
</div>
</div>
</footer>

<div class="credits">
<div class="container">
<div class="copyright">
Copyright &copy; 2017 <a href="https://github.com/Lednerb/gohugo-theme-bilberry" target="_blank">Bilberry</a>
</div>
<div class="author">
Theme by <a href="https://github.com/Lednerb" target="_blank">Lednerb</a>
</div>
</div>
</div>
19 changes: 19 additions & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<header>
<div class="container">
<a href="/" class="logo">
{{ if (ne .Site.Params.customImage "") }}
<img src="{{ .Site.Params.customImage }}" alt="">
{{ else }}
<img src="https://www.gravatar.com/avatar/{{ md5 .Site.Params.gravatarEMail }}?d=mm&size=200" alt="">
{{ end }}

<span class="overlay"><i class="fa fa-home"></i></span>
</a>
<div class="titles">
<h3 class="title"><a href="/">{{ .Site.Title }}</a></h3>
{{ if (ne .Site.Params.Subtitle "") }}
<span class="subtitle">{{ .Site.Params.Subtitle }}</span>
{{ end }}
</div>
</div>
</header>
11 changes: 11 additions & 0 deletions layouts/partials/paginator.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{ if ne .Paginator.TotalPages 0 }}
<div class="paginator">
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}" class="older"><i class="fa fa-angle-double-left"></i> Older posts</a>
{{ end }}

{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL }}" class="newer">Newer posts <i class="fa fa-angle-double-right"></i></a>
{{ end }}
</div>
{{ end }}
Loading

0 comments on commit a699aca

Please sign in to comment.