title: How can another file be Included in a Hugo/Markdown page?
body: <p>Recently the re-development of a web site was given to me. The re-worked site is to be done in <a href="http://daringfireball.net/projects/markdown/" rel="noreferrer">Markdown</a> and run through the <a href="https://gohugo.io/" rel="noreferrer">Hugo static site</a> generator.</p>
  
  <p>Is there a way to include other files in a Markdown web page processed through Hugo? If so, how? Unless I've missed something, this isn't addressed in the <a href="http://gohugo.io/overview/introduction/" rel="noreferrer">Hugo docs</a>.</p>
  
  <p>With HTML and some servers (Apache, at least) you can do something like:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  Some content
  &lt;!--#include virtual="name_of_first_file_to_include" --&gt;
  More content
  &lt;!--#include virtual="name_of_second_file_to_include" --&gt;
  Still more content
  &lt;/body&gt;
  &lt;html&gt;
  </code></pre>
  
  <p>I've tried creating a template page which puts stuff like "Some content" and "More content" into the template and then the included stuff in my .md file which gets "included" via {{ .Content }} in the template. However, 1) That seems like the wrong way to use a template. 2) I've not figured out a way to bring in more files if I need them.</p>