dmoles / adler

A minimalist Markdown wiki viewer
MIT License
0 stars 0 forks source link

Serve custom CSS and scripts #32

Closed dmoles closed 3 years ago

dmoles commented 3 years ago
  1. Supports reading title, scripts, and links from Markdown metadata, e.g.

    ---
    Title: 'The Real Title'
    Stylesheets:
     - foo.css
     - css/bar.css
    Scripts:
     - src: foo.js
       type: module
     - scripts/bar.js
    ---
    
    # Not the real title
    
    Some text

    produces:

    <head>
     <title>The Real Title</title>
     <link rel="stylesheet" href="foo.css"/>
     <link rel="stylesheet" href ="css/bar.css"/>
     <script src="foo.js" type="module"></script>
     <script src="scripts/bar.js"></script>
    </head>
  2. Improves TOC generation and auto-generated directory indexes.

Fixes #20.