~npisanti/npisantidotcomssg

7e01244856c0242ecc9ac0bf5508536d7a6b367a — Nicola Pisanti 30 days ago b1ef535
now works also with markdown pages
2 files changed, 18 insertions(+), 1 deletions(-)

M build.sh
M input/base/style.css
M build.sh => build.sh +16 -1
@@ 155,8 155,23 @@ end
function build_pages #-----------------------------------------------------------
	printf "building pages"
	mkdir -p "$OUTFOLDER/pages"

	for x in input/pages/*.md # --- builds markdown pages ---
		set name (basename $x .md)

		set    text (open_page "$x" "$name")
		set -a text "\n"(navigation_header $name)
		set -a text "<section>"
		set -a text ( pandoc $x -f commonmark -t html --ascii )
		set -a text "</section>"
		set -a text "\n"(close_page)
		set text (echo $text | sed -e "s|SITEROOTPATH|..|g") 		

		echo -e "$text" > "$OUTFOLDER/pages/$name.html"
		printf "."
	end
	
	for x in input/pages/*.html
	for x in input/pages/*.html  # --- builds html pages ---
		set name (basename $x .html)
		set outname (basename $x)


M input/base/style.css => input/base/style.css +2 -0
@@ 41,6 41,8 @@ ul {
    padding-left: 20px;
}

h3 { text-align: center; }

video {  outline: none; }

img { width:100%; }