Jekyll extension-less permalinks with markdown
<p>From the Jekyll <a href="http://jekyllrb.com/docs/pages/" rel="nofollow noreferrer">docs</a> it says (using <code>.md</code> format):</p>

<blockquote>
  <p>Clean URLs can also be achieved using the <code>permalink</code> front matter variable. In the example above, using the first method, you can get URL <code>http://example.com/other</code> for the file <code>other.md</code> by setting this at the top of the file: <code>permalink: /other</code></p>
</blockquote>

<p>Here is an example my page front matter:</p>

<pre><code>---
layout: page
title: Contact
permalink: /contact
---
</code></pre>

<p>Everything works fine when I'm using <code>jekyll serve</code> but when I <code>build</code> and upload to my static host it doesn't work. The file structure Jekyll outputs doesn't make sense for the functionality it claims from the docs.</p>

<pre><code>.
|-- css/
|-- index.html    # =&gt; http://example.com/
└── contact.md    # =&gt; http://example.com/contact.html
</code></pre>

<p>I want to be able to go to <code>http://example.com/contact</code> and have it show <code>contact.md</code>. I know I could have similar functionality by manually putting my files in folders (and then renaming them all to <code>index.html</code>) like it says in the docs <a href="http://jekyllrb.com/docs/pages/#named-folders-containing-index-html-files" rel="nofollow noreferrer">here</a>, but I don't want to have to go through the extra step <strong>and</strong> I don't prefer the trailing <code>/</code> e.g. <code>http://example.com/other/</code>.</p>

<p>I am using <code>Jekyll 3.0.1</code></p>

<hr>

<p>I have found these questions but they don't address the problem I'm facing. </p>

<p><a href="https://stackoverflow.com/questions/22034994/how-to-link-to-a-page-without-html-extension-in-jekyll">How to link to a page with page.url without the html extension in Jekyll?</a> </p>

<p><a href="https://stackoverflow.com/questions/5286964/jekyll-permalinks">How to make all posts have a permalink with custom format &quot;domain.com/blog/title&quot;?</a></p>

<p><a href="https://stackoverflow.com/questions/34863745/can-jekyll-omit-index-html-from-folder-urls">Can Jekyll omit index.html from folder URLs?</a></p>