Skip to content

Commit

Permalink
More porting efforts
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmo committed Jun 15, 2016
1 parent 1588937 commit a11ec70
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 59 deletions.
4 changes: 1 addition & 3 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>

<!-- *** MENUS AND WIDGETS *** -->

{{ partial "categories.html" }}

{{ partial "tags.html" }}
{{ partial "sidebar.html" . }}

<!-- *** MENUS AND FILTERS END *** -->

Expand Down
5 changes: 1 addition & 4 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
<div class="col-md-9" id="blog-post">

<p class="text-muted text-uppercase mb-small text-right">{{ if .Params.author }}By <a href="#">{{ .Params.author }}</a> | {{ end }}{{ .Date.Format "January 2, 2006" }}</p>
<p class="lead">{{ .Summary }}</p>

<div id="post-content">
{{ .Content }}
Expand All @@ -50,9 +49,7 @@

<!-- *** MENUS AND WIDGETS *** -->

{{ partial "categories.html" }}

{{ partial "tags.html" }}
{{ partial "sidebar.html" . }}

<!-- *** MENUS AND FILTERS END *** -->

Expand Down
10 changes: 10 additions & 0 deletions layouts/archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
+++
tags = []
categories = []
description = ""
menu = ""
banner = ""
images = []
+++

<!--more-->
1 change: 1 addition & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
{{ partial "footer.html" . }}

</div>

<!-- /#all -->

<!-- #### JAVASCRIPT FILES ### -->
Expand Down
19 changes: 0 additions & 19 deletions layouts/partials/categories.html

This file was deleted.

3 changes: 3 additions & 0 deletions layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ partial "widgets/categories.html" . }}

{{ partial "widgets/tags.html" . }}
26 changes: 0 additions & 26 deletions layouts/partials/tags.html

This file was deleted.

21 changes: 21 additions & 0 deletions layouts/partials/widgets/categories.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{ if .Site.Params.widgets.categories }}
{{ if isset .Site.Taxonomies "categories" }}
{{ if not (eq (len .Site.Taxonomies.categories) 0) }}
<div class="panel panel-default sidebar-menu">

<div class="panel-heading">
<h3 class="panel-title">Categories</h3>
</div>

<div class="panel-body">
<ul class="nav nav-pills nav-stacked">
{{ range $name, $items := .Site.Taxonomies.categories }}
<li><a href="{{ $.Site.BaseURL }}categories/{{ $name | urlize | lower }}">{{ $name }} ({{ len $items }})</a>
</li>
{{ end }}
</ul>
</div>
</div>
{{ end }}
{{ end }}
{{ end }}
20 changes: 20 additions & 0 deletions layouts/partials/widgets/tags.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ if .Site.Params.widgets.tags }}
{{ if isset .Site.Taxonomies "tags" }}
{{ if not (eq (len .Site.Taxonomies.tags) 0) }}
<div class="panel sidebar-menu">
<div class="panel-heading">
<h3 class="panel-title">Tags</h3>
</div>

<div class="panel-body">
<ul class="tag-cloud">
{{ range $name, $items := .Site.Taxonomies.tags }}
<li><a href="{{ $.Site.BaseURL }}tags/{{ $name | urlize | lower }}"><i class="fa fa-tags"></i> {{ $name }}</a>
</li>
{{ end }}
</ul>
</div>
</div>
{{ end }}
{{ end }}
{{ end }}
13 changes: 6 additions & 7 deletions theme.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name = "Universal"
license = "MIT"
licenselink = "https://github.com/halogenica/Hugo-BeautifulHugo/blob/master/LICENSE"
description = "A port of Beautiful Jekyll theme"
licenselink = "https://github.com/devcows/hugo-universal-theme/blob/master/LICENSE"
description = "A port of the Universal theme"
tags = ["blog", "company", "portfolio", "projects", "minimal", "responsive"]
features = ["blog", "themes", "disqus", "minimal", "responsive"]
min_version = 0.15

[author]
name = "halogenica"
homepage = "http://halogenica.net"
name = "adrianmo"
homepage = "https://github.com/adrianmo"

# If Porting existing theme
[original]
author = "dattali"
homepage = "http://deanattali.com/beautiful-jekyll/"
repo = "https://github.com/daattali/beautiful-jekyll"
author = "bootstrapious"
homepage = "http://bootstrapious.com/p/universal-business-e-commerce-template"

0 comments on commit a11ec70

Please sign in to comment.