Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Moreno <adrian@morenomartinez.com>2016-08-24 16:50:24 +0300
committerAdrian Moreno <adrian@morenomartinez.com>2016-08-24 16:50:24 +0300
commit12225a50bf043ff73639d932da2d7a525e53aced (patch)
tree285af3a1bea74c7cadf83ff486d9d539a1db7781
parentf8650c4acf459ceb23110d718bfce0ecd7fad35d (diff)
Updates blog url from "post" to "blog"
-rw-r--r--exampleSite/config.toml25
-rw-r--r--exampleSite/content/blog/creating-a-new-theme.md (renamed from exampleSite/content/post/creating-a-new-theme.md)0
-rw-r--r--exampleSite/content/blog/go-is-for-lovers.md (renamed from exampleSite/content/post/go-is-for-lovers.md)0
-rw-r--r--exampleSite/content/blog/hugo-is-for-lovers.md (renamed from exampleSite/content/post/hugo-is-for-lovers.md)0
-rw-r--r--exampleSite/content/blog/linked-post.md (renamed from exampleSite/content/post/linked-post.md)0
-rw-r--r--exampleSite/content/blog/migrate-from-jekyll.md (renamed from exampleSite/content/post/migrate-from-jekyll.md)0
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/footer.html5
-rw-r--r--layouts/partials/recent_posts.html (renamed from layouts/partials/blog.html)8
10 files changed, 20 insertions, 22 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 04b6016..9b385b0 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,6 +1,7 @@
-baseurl = "http://themes.gohugo.io/theme/hugo-universal-theme/"
-languageCode = "en-us"
+baseurl = "http://http://replace-this-with-your-hugo-site.com"
title = "Universal"
+theme = "hugo-universal-theme"
+languageCode = "en-us"
# Enable comments by entering your Disqus shortname
disqusShortname = "devcows"
# Enable Google Analytics by entering your tracking code
@@ -8,9 +9,9 @@ googleAnalytics = ""
# Define the number of posts per page
paginate = 10
-theme = "hugo-universal-theme"
[params]
+ viewMorePostLink = "/blog/"
author = "DevCows"
# Since this template is static, the contact form uses www.formspree.io as a
@@ -42,6 +43,9 @@ theme = "hugo-universal-theme"
</p>
"""
+[Permalinks]
+ blog = "/blog/:year/:month/:day/:filename/"
+
[[params.menu]]
name = "Home"
url = "/"
@@ -49,28 +53,19 @@ theme = "hugo-universal-theme"
[[params.menu]]
name = "Blog"
- url = "/post"
+ url = "/blog/"
weight = 2
[[params.menu]]
name = "FAQ"
- url = "/faq"
+ url = "/faq/"
weight = 3
[[params.menu]]
name = "Contact"
- url = "/contact"
+ url = "/contact/"
weight = 4
-[social]
- github = "devcows"
-
-[params.contact]
- map = true
- mapLat = 41.1333037
- mapLng = 1.2467193
- mapTitle = "DevCows"
-
# Enable and disable widgets for the right sidebar
[params.widgets]
categories = true
diff --git a/exampleSite/content/post/creating-a-new-theme.md b/exampleSite/content/blog/creating-a-new-theme.md
index 07f0145..07f0145 100644
--- a/exampleSite/content/post/creating-a-new-theme.md
+++ b/exampleSite/content/blog/creating-a-new-theme.md
diff --git a/exampleSite/content/post/go-is-for-lovers.md b/exampleSite/content/blog/go-is-for-lovers.md
index 8b09d63..8b09d63 100644
--- a/exampleSite/content/post/go-is-for-lovers.md
+++ b/exampleSite/content/blog/go-is-for-lovers.md
diff --git a/exampleSite/content/post/hugo-is-for-lovers.md b/exampleSite/content/blog/hugo-is-for-lovers.md
index 64d6b45..64d6b45 100644
--- a/exampleSite/content/post/hugo-is-for-lovers.md
+++ b/exampleSite/content/blog/hugo-is-for-lovers.md
diff --git a/exampleSite/content/post/linked-post.md b/exampleSite/content/blog/linked-post.md
index f2793d1..f2793d1 100644
--- a/exampleSite/content/post/linked-post.md
+++ b/exampleSite/content/blog/linked-post.md
diff --git a/exampleSite/content/post/migrate-from-jekyll.md b/exampleSite/content/blog/migrate-from-jekyll.md
index ce21cb5..ce21cb5 100644
--- a/exampleSite/content/post/migrate-from-jekyll.md
+++ b/exampleSite/content/blog/migrate-from-jekyll.md
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 140144a..a170fe9 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -22,7 +22,7 @@
<div class="col-md-9" id="blog-listing-medium">
- {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
+ {{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }}
{{ range $paginator.Pages }}
<section class="post">
<div class="row">
diff --git a/layouts/index.html b/layouts/index.html
index 7116234..24a22fa 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -21,7 +21,7 @@
{{ partial "see_more.html" . }}
- {{ partial "blog.html" . }}
+ {{ partial "recent_posts.html" . }}
{{ partial "clients.html" . }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 9b84ff1..4add54e 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -75,8 +75,9 @@ _________________________________________________________ -->
{{ end }}
<p class="pull-right">
Template by <a href="http://bootstrapious.com/free-templates">Bootstrapious</a>.
- Ported by <a href="https://github.com/devcows/hugo-universal-theme">DevCows</a>
- <!-- Not removing these links is part of the licence conditions of the template. Thanks for understanding :) -->
+ <!-- Not removing this link is part of the licence conditions of the template. Thanks for understanding :) -->
+
+ Ported to Hugo by <a href="https://github.com/devcows/hugo-universal-theme">DevCows</a>
</p>
</div>
</div>
diff --git a/layouts/partials/blog.html b/layouts/partials/recent_posts.html
index 122dcff..07bfcb0 100644
--- a/layouts/partials/blog.html
+++ b/layouts/partials/recent_posts.html
@@ -16,7 +16,7 @@
<div class="row">
- {{ $posts := .Paginate (where .Data.Pages "Type" "post") }}
+ {{ $posts := .Paginate (where .Data.Pages "Type" "blog") }}
{{ range first 4 $posts.Pages }}
<div class="col-md-3 col-sm-6">
<div class="box-image-text blog">
@@ -38,9 +38,11 @@
<div class="content">
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
- {{ if isset .Params "author" }}
- <p class="author-category">By <a href="#">{{ .Params.author }}</a> on {{ .Date.Format "January 2, 2006" }}
+ <p class="author-category">
+ {{ with .Params.author }}
+ By <a href="#">{{ . }}</a>
{{ end }}
+ on {{ .Date.Format "January 2, 2006" }}
</p>
<p class="intro">{{ .Summary }}</p>
<p class="read-more">