# Cite within a Post

**URL:** <https://discourse.gohugo.io/t/cite-within-a-post/27172>\
**Category:** support\
**Created:** [July 26, 2020, 10:17am UTC](https://discourse.gohugo.io/t/cite-within-a-post/27172 "2020-07-26T10:17:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sawrz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sawrz/32/10736_2.png) [@Sawrz](https://discourse.gohugo.io/u/Sawrz)\
**Post date:** [July 26, 2020, 10:17am UTC](https://discourse.gohugo.io/t/cite-within-a-post/27172/1 "2020-07-26T10:17:58Z")

</div>

Hi,  
Recently I choose to move from MediaWiki to Hugo for my documentation/wiki related to all technological things.  
I could achieve most things I would like to have. However, there is one thing I miss - being able to add citations to my articles like in MediaWiki. It’s a bit hard to explain, so let me show you what I mean:

```auto
# Some Markdown Heading
This is some text in my article blah blah blah.[1] And another important 
thing I got from another important resource.[2].

# References
[1] URL or Book Citation
[2] URL or Book Citation

```

I found [this post](https://discourse.gohugo.io/t/how-can-i-manage-a-publication-list-in-hugo-preferrably-from-bibtex-file/2089/4), but they ask explicitly for BibTeX file support.  
For me it doesn’t matter if it’s a BibTeX file, YAML or whatever as long as it does the job the following:

1. I can cite with a placeholder, Something like `This is some text in my article blah blah blah.@citation_alias`.(shortcode?)
2. The numbering happens automatically.
3. The References section with the citation appears automatically (template?)
4. I can reuse a citation. So if I use two times `@citation_alias`, I get only one reference in my “References” section.

For points 2 and 4, I have no idea how to tackle that. I already did some templating and worked with Hugo, so I can work myself through building the mechanics behind that. I can code in Python too, but try to do this as natively as possible to avoid long build times within netlify.

Does anyone have some ideas about how I can tackle this problem? Maybe even a theme that supports the feature already so I can add that into mine?

I hope, I made my idea clear =)

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [July 26, 2020, 12:14pm UTC](https://discourse.gohugo.io/t/cite-within-a-post/27172/2 "2020-07-26T12:14:21Z")

</div>

Can you use footnotes?

```auto
Here is the first footnote.[^1]  
Here is the second footnote.[^2]  
Here is another.[^another]

[^1]: This is the first footnote.
[^2]: This is the second footnote.
[^another]: This is another footnote.

```

---

<div class="post-metadata">

**Author:** ![Sawrz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sawrz/32/10736_2.png) [@Sawrz](https://discourse.gohugo.io/u/Sawrz)\
**Post date:** [July 26, 2020, 4:43pm UTC](https://discourse.gohugo.io/t/cite-within-a-post/27172/3 "2020-07-26T16:43:39Z")

</div>

Well, it seems it’s what I searched for! Thank you!

I thought you have to add them in the exact order you want the numbering to be. However, I was wrong.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [July 28, 2020, 4:43pm UTC](https://discourse.gohugo.io/t/cite-within-a-post/27172/4 "2020-07-28T16:43:40Z")

</div>

Closed on July 28, 2020, 4:43pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
