From 2acfb2430df19c8d749e1ff8ba523112d6dd9cb0 Mon Sep 17 00:00:00 2001 From: Dave Winer Date: Sun, 31 Jul 2016 16:22:19 -0400 Subject: [PATCH] v0.71 --- README.md | 4 ++++ docs/config.md | 8 +++++++- prefs/mdTemplate.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 prefs/mdTemplate.txt diff --git a/README.md b/README.md index b8e1115..96e5af5 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,10 @@ There will always be more work to do here. ;-) #### Updates +##### v0.71 7/31/16 by DW + +The repository now includes mdTemplate.txt in the prefs folder. Previously it would download this file from one of my sites the first time it was used. This is a more modern way to distribute it. + ##### v0.70 12/8/15 by DW It used to be that a file had to exist in order for you to redirect from it in config.redirects. Now it doesn't have to exist. diff --git a/docs/config.md b/docs/config.md index 62f8473..0adde26 100644 --- a/docs/config.md +++ b/docs/config.md @@ -2,7 +2,7 @@ Websites evolve over time, and PagePark has features that help you adjust things so links keep working after the change. Some of the features described on this page are here to help you prevent linkrot! That's how prevalent it is. -Another thing you want to do is pass the content through various processors. The file extensions control that. So if a file name ends with .md, it is passed through the Markdown processor. If it's .js, it's assumed to contain JavaScript code, and that code is run, and the value it returns is what we return. You can also control whether or not the scripts run. +Another thing you'll want to do is pass the content through various processors. The file extensions control that. So if a file name ends with .md, it is passed through the Markdown processor. If it's .js, it's assumed to contain JavaScript code, and that code is run, and the value it returns is what we return. You can also control whether or not the scripts run. #### config.json @@ -184,3 +184,9 @@ Example: } +#### The template for Markdown files + +There's a special template used for rendering Markdown files. It defines the shell in which the Markdown text is included in to create the HTML file. You can position the text, or add CSS styles or script code in the template. + +Here's the template we use on our demo site. + diff --git a/prefs/mdTemplate.txt b/prefs/mdTemplate.txt new file mode 100644 index 0000000..e408151 --- /dev/null +++ b/prefs/mdTemplate.txt @@ -0,0 +1,43 @@ + + + [%title%] + + + + + + + + + +
+ [%bodytext%] +
+ + +