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.html16
1 files changed, 2 insertions, 14 deletions
diff --git a/layouts/shortcodes/imgcap.html b/layouts/shortcodes/imgcap.html
index 7b0b183..ab23e28 100644
--- a/layouts/shortcodes/imgcap.html
+++ b/layouts/shortcodes/imgcap.html
@@ -1,20 +1,8 @@
<!-- Author: Parsia Hakimian https://github.com/parsiya/Hugo-Shortcodes -->
-<!-- normal image with caption
- sample usage:
-
- {{< imgcap title="figurecaption" src="imagesrc" >}}
-
- {{< imgcap title="this is a tree" src="/images/2016/gardening/tree1.jpg" >}}
-
- alt text and title and caption will be the same.
-
- Images can be referenced from the static directory or from the page bundle.
--->
-
-<!-- imitates the imgcap plugin from Octopress -->
-
+<!-- imitates the imgcap plugin from Octopress
+ see readme or the above repository for usage -->
<span class="caption-wrapper">
<img class="caption" src="{{ .Get "src" }}" title="{{ .Get "title" }}" alt="{{ .Get "title" }}">