changed styling
This commit is contained in:
parent
b6029d6f52
commit
4a5bf3dc88
4
Makefile
4
Makefile
|
@ -49,10 +49,10 @@ html/%.html: src/%.gmi scripts/html.awk lib/navbar.awk
|
|||
gmi/%.gmi: src/%.gmi scripts/gemini.awk lib/navbar.awk
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -v 'sourcePath=src/ outputPath=gmi/' -f scripts/gemini.awk -- $< > $@
|
||||
|
||||
html/sitemap.html: $(SITEMAP_INDEX_FILES) scripts/sitemap_html.awk scripts/navbar.awk
|
||||
html/sitemap.html: $(SITEMAP_INDEX_FILES) scripts/sitemap_html.awk lib/navbar.awk
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -v 'sourcePath=src/ outputPath=html/' -f scripts/sitemap_html.awk -- $(SITEMAP_INDEX_FILES) > $@
|
||||
|
||||
gmi/sitemap.gmi: $(SITEMAP_INDEX_FILES) scripts/sitemap_gmi.awk scripts/navbar.awk
|
||||
gmi/sitemap.gmi: $(SITEMAP_INDEX_FILES) scripts/sitemap_gmi.awk lib/navbar.awk
|
||||
mawk -f lib/navbar.awk -f lib/path.awk -v 'sourcePath=src/ outputPath=gmi/' -f scripts/sitemap_gmi.awk -- $(SITEMAP_INDEX_FILES) > $@
|
||||
|
||||
html/feed.atom: scripts/feed.awk
|
||||
|
|
|
@ -13,7 +13,7 @@ function genNavbarHTML(filename, sourcePath, outputPath) {
|
|||
<a href='%s'>sitemap</a> | \n\
|
||||
<a href='%s'>feed</a> | \n\
|
||||
<a href='http://git.vern.cc/techn0path/'>git</a>\n\
|
||||
</nav><br>\n", \
|
||||
</nav><hr>\n", \
|
||||
getRelativePath(dirname, outputPath "/index.html"), \
|
||||
getRelativePath(dirname, outputPath "/useful/index.html"), \
|
||||
getRelativePath(dirname, outputPath "/notes/index.html"), \
|
||||
|
|
|
@ -31,6 +31,9 @@ BEGIN {
|
|||
}
|
||||
|
||||
END {
|
||||
dirname = getDirname(FILENAME)
|
||||
stylesheetPath = getRelativePath(dirname, outputPath "/style.css")
|
||||
|
||||
printf "<!DOCTYPE html>\n\
|
||||
<html>\n\
|
||||
<head>\n\
|
||||
|
@ -40,11 +43,7 @@ END {
|
|||
<meta name='referrer' content='no-referrer' />\n\
|
||||
<meta name='viewpoint' content='width=device-width,initial-scale=1.0' />\n\
|
||||
\n\
|
||||
<style>\n\
|
||||
body { margin: 20px; }\n\
|
||||
#content { max-width: 80ch; }\n\
|
||||
.permalink { margin-left: 15px; }\n\
|
||||
</style>\n\
|
||||
<link rel='stylesheet' href='%s'/>\n\
|
||||
</head>\n\
|
||||
<body>\n\
|
||||
<header>\n\
|
||||
|
@ -55,6 +54,7 @@ body { margin: 20px; }\n\
|
|||
</article>\n\
|
||||
</body>\n\
|
||||
</html>", \
|
||||
stylesheetPath, \
|
||||
genNavbarHTML(FILENAME, sourcePath, outputPath), \
|
||||
body
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#content { max-width: 70ch; margin: auto; padding: 10px; }
|
||||
#navbar { max-width: 70ch; margin: auto; padding: 10px; background: teal; color: white; }
|
||||
#navbar a { color: white; }
|
||||
hr { max-width: 70ch; }
|
||||
.permalink { margin-left: 15px; }
|
||||
#content { max-width: 40ch; margin: auto; padding: 10px; }
|
||||
#navbar { max-width: 40ch; margin: auto; padding: 10px; }
|
||||
hr { max-width: 45ch; }
|
||||
.permalink { margin-left: 15px; }
|
|
@ -17,7 +17,7 @@
|
|||
<a href='sitemap.html'>sitemap</a> |
|
||||
<a href='feed.atom'>feed</a> |
|
||||
<a href='http://git.vern.cc/techn0path/'>git</a>
|
||||
</nav><br>
|
||||
</nav><hr>
|
||||
|
||||
</header>
|
||||
<article id='content'>
|
||||
|
|
Loading…
Reference in New Issue