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

github.com/jpescador/hugo-future-imperfect.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Pescador <jpescador@users.noreply.github.com>2016-02-26 07:45:24 +0300
committerJulio Pescador <jpescador@users.noreply.github.com>2016-02-26 07:45:24 +0300
commit6069b2977ff273d740eed5505197b50b8351c05d (patch)
tree82e68383dda8f0f725f3e8dab09b02f6485d0638
parenta9664056169e1699e0a27017bd3dcdbc435cecc6 (diff)
Adding disqus to post and applying minor changesv0.1
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/header.html1
-rw-r--r--layouts/post/content-single.html6
-rw-r--r--layouts/post/featured.html12
4 files changed, 16 insertions, 5 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 9513fd7..4f18b45 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,3 +1,5 @@
+{{ partial "general-title" . }}
+
{{ partial "header" . }}
{{ partial "navbar" . }}
<!-- Main -->
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index a62d179..01aa29e 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -18,6 +18,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
+ {{ .Hugo.Generator }}
{{ with .Description }}
<meta name="description" content="{{ . }}">
{{ else }}
diff --git a/layouts/post/content-single.html b/layouts/post/content-single.html
index 473f635..3b6642a 100644
--- a/layouts/post/content-single.html
+++ b/layouts/post/content-single.html
@@ -14,3 +14,9 @@
</footer>
</article>
{{ .Render "prev-next" }}
+
+{{ if ne .Site.DisqusShortname "" }}
+ <article class="post">
+ {{ template "_internal/disqus.html" . }}
+ </article>
+{{ end }}
diff --git a/layouts/post/featured.html b/layouts/post/featured.html
index 8655b3d..3a1a248 100644
--- a/layouts/post/featured.html
+++ b/layouts/post/featured.html
@@ -1,13 +1,15 @@
-{{ if isset .Params "featuredpath" }}
+{{ if and (isset .Params "featuredpath") (ne .Params.featuredpath "") }}
{{ $.Scratch.Set "path" .Params.featuredpath }}
- {{ if isset .Params "featured" }}
+ {{ if and (isset .Params "featured") (ne .Params.featuredpath "") }}
{{ $.Scratch.Set "structType" "page" }}
{{ partial "img-path" . }}
{{ $path := $.Scratch.Get "path" }}
- <a href="{{ .Permalink }}" class="image featured">
- <img src="{{ $path }}/{{ .Params.featured }}" alt="" />
- </a>
+ <div>
+ <a href="{{ .Permalink }}" class="image featured">
+ <img src="{{ $path }}/{{ .Params.featured }}" alt="" />
+ </a>
+ </div>
{{ end }}
{{ end }}