# Franklin.jl relative links

**URL:** <https://discourse.julialang.org/t/franklin-jl-relative-links/75074>\
**Category:** General Usage\
**Tags:** question, franklin\
**Created:** [January 23, 2022, 4:28pm UTC](https://discourse.julialang.org/t/franklin-jl-relative-links/75074 "2022-01-23T16:28:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [January 23, 2022, 4:28pm UTC](https://discourse.julialang.org/t/franklin-jl-relative-links/75074/1 "2022-01-23T16:28:04Z")

</div>

I am migrating a site from Hugo to Franklin. Hugo has a [special syntax for links](https://gohugo.io/content-management/cross-references/), but in for Franklin.jl would one just use Markdown for both absolute or relative links? Eg as in

```markdown
[some page within the site](/pages/blog/thatpage/)

gimme that [PDF](/assets/pdf/article.pdf)

heard about this programming language [Julia](https://julialang.org/)?

```

---

<div class="post-metadata">

**Author:** ![tlienart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tlienart/32/7640_2.png) [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Post date:** [January 23, 2022, 5:17pm UTC](https://discourse.julialang.org/t/franklin-jl-relative-links/75074/2 "2022-01-23T17:17:53Z")

</div>

Yes.

Two additional notes relative to **anchors** (which might not be of interest to you but the Hugo page mentions those as well so I’m just trying to be complete):

1. you’ve probably already noted this but section headers are anchors so for instance if you have “`## a section`” in the markdown, it’s automatically made into an anchor with id `a_section` and you can point to it on the page with `#a_section` or from another page with `/path/to/page/#a_section`
2. further to the previous point, there was a request to make it easy to point to anchors from other pages as well, you can use `\reflink` for this.

To clarify point (2), let’s say that you have a header `## Bayesian inference` on page `A.md` you can refer to it on page `B.md` by doing `[link to bayesian inference section](\reflink{Bayesian inference})` the `\reflink` thing will look for which page defines the relevant anchor and place the proper link there. So you could either use `(/A/#bayesian_inference)` or `(\reflink{Bayesian inference}`)

Final note that you can place anchors anywhere on a page with `\label{some anchor}` and it will correspond to `#some_anchor` (or to `\reflink{some anchor}`).

Hope this kind of makes sense! I guess experimenting with a super simple sandbox site (`newsite("TestWebsite", template="sandbox")`) should help you get a feel for these things.
