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:
Diffstat (limited to 'layouts/shortcodes/imgcap.html')
-rw-r--r--layouts/shortcodes/imgcap.html18
1 files changed, 7 insertions, 11 deletions
diff --git a/layouts/shortcodes/imgcap.html b/layouts/shortcodes/imgcap.html
index 2f5c109..7b0b183 100644
--- a/layouts/shortcodes/imgcap.html
+++ b/layouts/shortcodes/imgcap.html
@@ -1,23 +1,19 @@
+<!-- Author: Parsia Hakimian https://github.com/parsiya/Hugo-Shortcodes -->
+
<!-- normal image with caption
sample usage:
- { { < imgcap title="figurecaption" src="imagesrc" > } }
+ {{< imgcap title="figurecaption" src="imagesrc" >}}
- { { < imgcap title="this is a tree" src="/images/2016/gardening/tree1.jpg" > } }
+ {{< imgcap title="this is a tree" src="/images/2016/gardening/tree1.jpg" >}}
- alt and title and caption will be the same
+ alt text and title and caption will be the same.
+ Images can be referenced from the static directory or from the page bundle.
-->
-<!-- <figure class="imagecaption">
- <img class="caption" title="{{ .Get "title" }}" alt="{{ .Get "title" }}" src="{{ .Get "src" }}"></img>
- <figcaption>
- <span class="caption-text">{{ .Get "title" }}</span>
- </figcaption>
-</figure> -->
-
-<!-- imitates the imgcap plugin from Octopress - -->
+<!-- imitates the imgcap plugin from Octopress -->
<span class="caption-wrapper">