thescientist13 / greenwood-starter-presentation

A Greenwood plugin and general purpose starter kit for creating slide decks and presentations from markdown.
https://awesome-bhaskara-b7d76c.netlify.app
3 stars 0 forks source link

create an app template to consolidate shared `<head>` tag contents across layout templates #42

Open thescientist13 opened 3 years ago

thescientist13 commented 3 years ago

Type of Change

Summary

There is a lot of repetition in the <head> sections of all the templates in layouts/. Maybe also create a scripts/init.js for "loose" code / non components?

<link rel="stylesheet" href="/node_modules/greenwood-starter-presentation/dist/styles/theme.css"></link>
<link rel="stylesheet" href="/node_modules/greenwood-starter-presentation/dist/styles/main.css"></link>

<script src="/node_modules/greenwood-starter-presentation/dist/components/link-target.js"></script>

Details

It would be nice to just make an app.html, but would that also wrap index.html too? Could that conflict or can we distinguish / exclude certain pages? I guess we will have to test and find out. 👀

Might also want to pull in this fix at the same time - https://github.com/ProjectEvergreen/greenwood/issues/702