Jekyll theme as a file explorer without any advanced features

Hi!

I would like to know if Jekyll is the right tool?

Let’s assume I have a directory of md-files

- dir
  |- 1.md
  |- 2.md
  |- 3.md
  |- subdir
    |- file1.md
    |- file2.md
    |- file3.md

And I’d like host a simple site from a simple html-template like

<html> 
  <ul>
    <li>1.md</li>
    <li>2.md</li>
    <li>3.md</li>
    <li>
      <ul>
        <li>file1.md</li>
        <li>file2.md</li>
        <li>file3.md</li>
  <ul>
    </li>
  <ul>
</html>

Where each

  • *.md
  • is link to md-preview.

    No plugins. No extends. No extra dirs like _post and e.t.c.

    Can Jekyll do that?

    Yes, it can do that.

    Technically, Jekyll is not the best program for this task.

    Out-of-the-box, Jekyll only

    • creates objects for individual files. References to directories are not stored.
    • generates the processed output files. The source files are not copied alongside. There is a way to achieve this though. Just remove front matter from each file. The side-effect of this being, Jekyll will no longer process the Markdown content into HTML.

    A

    1 Like

    R u sure? :face_with_raised_eyebrow:

    Thanks!

    I realized something similar when I tried it.
    Your answer convinced me of this.

    OK.

    Based on the responses above I made it with github-pages as fine GitHub - contributorpw/contributorpw.github.io at copy_for_jekyll_talks

    1 Like