diff options
Diffstat (limited to 'site/page.sh')
-rwxr-xr-x | site/page.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/site/page.sh b/site/page.sh index 69db1fb..d3bf1a7 100755 --- a/site/page.sh +++ b/site/page.sh @@ -1,5 +1,12 @@ #!/bin/sh -# set a variable to avoid this template being repeated indefinitely + +# if this is called with -s then make it the small version of the page + +type="regular-window" +[ "$1" = "-s" ] &&{ + type="small-window" + shift +} cat << EOF <!DOCTYPE html> @@ -11,7 +18,7 @@ cat << EOF <title>davidovski.xyz</title> </head> <body bgcolor="#191919" text="#f58f44" link="#b4d6d1"> - <div valign="middle" class="main" bgcolor="#191919" text="#f58f44"> + <div valign="middle" class="main $type" bgcolor="#191919" text="#f58f44"> <div class="header"> <a href="https://davidovski.xyz/"<h1 class="title">davidovski.xyz</h1></a> <hr> @@ -32,12 +39,13 @@ cat << EOF </div> </div> <hr> - + <div class="content"> EOF [ -z "$1" ] || /bin/sh $* cat << EOF + </div> </div> </body> |