Skip to content

Commit

Permalink
Add tests for issue 360
Browse files Browse the repository at this point in the history
Ref: #360
  • Loading branch information
kaushalmodi committed May 18, 2020
1 parent 8f36181 commit d6138da
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions test/site/content-org/issues.org
@@ -0,0 +1,27 @@
#+hugo_base_dir: ../
#+hugo_section: issues

#+options: author:nil

#+filetags: issues

* Issue 360 :images:figure:
** ox-hugo Issue 360 test (Bundle) :bundle:
:PROPERTIES:
:EXPORT_FILE_NAME: index
:EXPORT_HUGO_BUNDLE: 360-bundle
:END:
#+begin_description
Link to image using ~file:~ in a Leaf Bundle.
#+end_description

[[file:images/issues/360-bundle/org.png]]
** ox-hugo Issue 360 test (Regular)
:PROPERTIES:
:EXPORT_FILE_NAME: 360
:END:
#+begin_description
Link to image using ~file:~ in a Regular page.
#+end_description

[[file:images/issues/360-bundle/org.png]]
8 changes: 8 additions & 0 deletions test/site/content/issues/360-bundle/index.md
@@ -0,0 +1,8 @@
+++
title = "ox-hugo Issue 360 test (Bundle)"
description = "Link to image using `file:` in a Leaf Bundle."
tags = ["issues", "images", "figure", "bundle"]
draft = false
+++

{{< figure src="org.png" >}}
Binary file added test/site/content/issues/360-bundle/org.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions test/site/content/issues/360.md
@@ -0,0 +1,8 @@
+++
title = "ox-hugo Issue 360 test (Regular)"
description = "Link to image using `file:` in a Regular page."
tags = ["issues", "images", "figure"]
draft = false
+++

{{< figure src="/ox-hugo/org.png" >}}

0 comments on commit d6138da

Please sign in to comment.