# Transform ox-hugo anchors to links This blog is built with Hugo, and the content is exported from Org files to Hugo-compatible Markdown via [ox-hugo](https://ox-hugo.scripter.co/). Each heading is followed by an anchor after the export: ```markdown ## Heading {#heading} ### Another heading {#another-heading} ``` To make the anchors clickable, Kaushal Modi (the author of ox-hugo) recommends replacing anchors with links ([source](https://discourse.gohugo.io/t/adding-anchor-next-to-headers/1726/9?u=goofansu)), the steps are as follows: First, create a partial `layouts/partials/headline-hash.html`: ```html {{ . | replaceRE `()` `${1} # ${3}` | safeHTML }} ``` Next, apply the partial to `.Content`: ```html {{ partial "headline-hash.html" .Content }} ``` The result will look like this: ```html

Heading #

Another heading #

```