mourner / tinyjam

A radically simple, zero-configuration static site generator in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduce destPath variable

mielp opened this issue · comments

commented

Feature suggestion: provide a destPath variable that allows templates to know the current destination file.
As far as I know, it's mostly useful for canonical links (<link rel="canonical"…> and <meta property="og:url"…>), which is mostly a SEO thing.

I wrote a quick implementation in e335913. Not sure how to make a cleaner version.