dev-resources.site
for different kinds of informations.
Linking to a heading in the same page in Hugo
Published at
2/20/2022
Categories
hugo
html
markdown
Author
Precious Chicken
Linking to another page in markdown in Hugo is easy: i.e. [Auntie Beeb](https://www.bbc.co.uk/)
renders as Auntie Beeb - but when you want a link to a heading in the same page I can never remember, so this is a quick aide-memoire:
HTML
In HTML a relative link to an element in the same page looks like:
<!-- <a> element links to the section below -->
<p><a href="#Section_further_down">
Jump to the heading below
</a></p>
<!-- Heading to link to -->
<h2 id="Section_further_down">Section further down</h2>
Hugo markdown
In Hugo to achieve the same effect:
<!-- <a> element links to the section below -->
[Jump to the heading below](#section-further-down)
<!-- Heading to link to -->
## Section further down
Articles
12 articles in total
Githubhack23: Vegaration or Visualising continuous integration using Github actions and vega-lite
read article
Vegaration: Visualising continuous integration using Github actions and vega-lite
read article
A no-tears guide to adding references in Groff
read article
Sprechen sie GraphSQLite? Or querying data in a SQLite database using GraphQL and Apollo Server
read article
Introducing vim-groff-viewer: A vim plugin for displaying Groff files in a document viewer
read article
Look Ma, no Neovim plugin manager!
read article
Étoile du jour: Deploying NASA's Astronomy Picture of the Day on Azure (Microsoft Azure Trial Hackathon)
read article
Linking to a heading in the same page in Hugo
currently reading
Étoile du jour: Deploying a React Web App on the Microsoft Azure Cloud
read article
A concrete Python 'Hello World' with the Neovim API
read article
Groff and the art of letter writing
read article
TiddlyWiki5, Raspberry Pi and Vim: A guide for the command line aficionado
read article
Featured ones: