Middleman: referencing URL stored in a data file from markdown
问题 For my Middleman-built website I have stored links and other information about all pages in a data file. data/pages.yaml : pageA: link: /some-long-url-subject-to-change.html name: PageA name info: Some other related info Then, in my HAML template ( source/test.haml ), I can print relative path to pageA with = data.pages.pageA.link . Now, I want to use markdown syntax to reference that page by its name (pageA). Example ( source/test.html.haml ): .info :markdown This is some text with a [manual