diff options
author | parsiya <parsiya@gmail.com> | 2018-09-03 04:47:41 +0300 |
---|---|---|
committer | parsiya <parsiya@gmail.com> | 2018-09-03 04:47:41 +0300 |
commit | d66f7a547b5cbd9e8e5f470ae2d657ba7c9c1118 (patch) | |
tree | 5e42dab7463300f4e203422e29857fbaa8052f32 | |
parent | 63c9b5b24aa58dc77405222b18a40e99821a1231 (diff) |
Remove usage from shortcodes to prevent Hugo thinking they are actual shortcodes
-rw-r--r-- | layouts/shortcodes/codecaption.html | 13 | ||||
-rw-r--r-- | layouts/shortcodes/imgcap.html | 16 |
2 files changed, 3 insertions, 26 deletions
diff --git a/layouts/shortcodes/codecaption.html b/layouts/shortcodes/codecaption.html index 52b7a34..9288781 100644 --- a/layouts/shortcodes/codecaption.html +++ b/layouts/shortcodes/codecaption.html @@ -1,18 +1,7 @@ <!-- Author: Parsia Hakimian https://github.com/parsiya/Hugo-Shortcodes --> <!-- codecaption short code - basically this is normal highlighted code with caption on top. - - Usage: - - {{< codecaption lang="language e.g. python/csharp" title="captiontitle" >}} - package main - - import "fmt" - - func main() { - fmt.Println("Hello World!") - } - {{< /codecaption >}} --> + see readme or the above repository for usage --> <figure class="code"> <figcaption> 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" }}"> |