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

github.com/parsiya/Hugo-Octopress.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsiya@gmail.com <parsiya@gmail.com>2016-03-28 05:20:57 +0300
committerparsiya@gmail.com <parsiya@gmail.com>2016-03-28 05:20:57 +0300
commit925108992c8fbc5ceed94af6bd894f1120356a35 (patch)
treef19d25bc11fcfc9ce7b9bcbf3dd78483bfd5aa4d /layouts
parent6c1b38dee8074b678931a48efb42fd55b81968ba (diff)
Adds Hugo-Shortcodes repository to the README file
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/sidebar.html2
-rw-r--r--layouts/shortcodes/codecaption.html7
2 files changed, 3 insertions, 6 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index fbb8135..bb72c71 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -55,7 +55,7 @@
{{ end }}
{{ range first ($.Scratch.Get "numberofrecentposts") .Site.Pages }}
<li class="post">
- <a href="{{ .RelPermalink }}">{{.Title}}</a>
+ <a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
diff --git a/layouts/shortcodes/codecaption.html b/layouts/shortcodes/codecaption.html
index 6ce6536..dca5d3f 100644
--- a/layouts/shortcodes/codecaption.html
+++ b/layouts/shortcodes/codecaption.html
@@ -1,5 +1,4 @@
-
-<!-- codecaption short code - basically this is normal highlighted code with caption on top
+<!-- codecaption short code - basically this is normal highlighted code with caption on top
example usage (Hugo seems to ignore stuff in this):
{ { < codecaption lang="language e.g. python/csharp" title="captiontitle" > } }
@@ -8,13 +7,11 @@
{ { < /codecaption > } } -->
-
-
<figure class="code">
<figcaption>
<span>{{ .Get "title" }}</span>
</figcaption>
- <div class="codewrapper">
+ <div class="codewrapper">
{{ highlight .Inner (.Get "lang") "linenos=true" }}
</div>
</figure>