keymanapp / shared-sites

Shared code across keyman.com sites
MIT License
0 stars 0 forks source link

chore: Add showmenu keyword for Markdown header #5

Closed darcywong00 closed 8 months ago

darcywong00 commented 8 months ago

This adds a showmenu keyword for processing Markdown files. If false, the top menu links (like on keyman.com) won't be displayed. I intend to use these on some keyman.com test pages.

To use this keyword, the corresponding mdhost.php in the sites repo would use

  head([
    'title' => $md->PageTitle(),
    'css' => ['template.css','prism.css'],
    'showMenu' => $md->ShowMenu(),
    'js' => ['prism.js']
  ]);
darcywong00 commented 8 months ago

I suppose we could also add other head options: showHeader foot