Skip to content

Commit

Permalink
Add tests for linking to other org file
Browse files Browse the repository at this point in the history
  • Loading branch information
hungpham2511 authored and kaushalmodi committed Jun 23, 2020
1 parent 2a3e48c commit a08478a
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/site/content-org/issues.org
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,19 @@ Description-less link an ~https~ image link.
** COMMENT A comment block
Testing an /https/ image link inside a comment block.
[[https://ox-hugo.scripter.co/test/ox-hugo/org.png]]

* Issue 336
:PROPERTIES:
:EXPORT_FILE_NAME: 336_test
:EXPORT_HUGO_PANDOC_CITATIONS: t
:EXPORT_BIBLIOGRAPHY: cite/bib/bib1.bib, cite/bib/bib2.bib
:END:
{{{issue(336)}}}

This issue only appears when there is a citation @giovanelli2016

[[file:root-level-content-empty-section.org][Tag]]

[[file:336_test.org][Exclude tag]]


32 changes: 32 additions & 0 deletions test/site/content/issues/336_test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
+++
title = "Issue 336"
tags = ["issues"]
draft = false
+++

`ox-hugo` Issue
\#[336](https://github.com/kaushalmodi/ox-hugo/issues/336)

This issue only appears when there is a citation Giovanelli (2016)

[Tag]({{< relref "root-level-content-empty-section" >}})

[Exclude tag]({{< relref "336_test" >}})

## References {#references}

<div id="refs" class="references hanging-indent">
<div></div>


<div id="ref-giovanelli2016">
<div></div>

Giovanelli, Marco. 2016. "\"\...But I Still Can't Get Rid of a Sense of
Artificiality\" the Reichenbach--Einstein Debate on the Geometrization
of the Electromagnetic Field." *Studies in History and Philosophy of
Science* 54: 35--51.

</div>

</div>

0 comments on commit a08478a

Please sign in to comment.