~stormdragon2976/bashtml

2edd29070716b4cb00d6166647060bddec1e030f — Storm Dragon 1 year, 6 months ago 3188917
Try to make titles on index page into links.
1 files changed, 1 insertions(+), 1 deletions(-)

M bashtml.sh
M bashtml.sh => bashtml.sh +1 -1
@@ 498,7 498,7 @@ new_post() {
  # Get the final file name to pass to plugins.
  fileName="${pageName}.${settings[pageExtension]}"
  # make sure the first line (title) is a heading level 2.
  sed -i -e '1s/^\([[:space:][:alnum:]]\)/## \1/' -e '1s/^#\+/##/' "$mdFile"
  sed -i -e '1s/^\([[:space:][:alnum:]]\)/## [\1]($fileName)/' -e '1s/^#\+/##/' "$mdFile"
  # Add the header:
  add_header "$htmlFile"
  markdown "$mdFile" >> "$htmlFile"