diff options
author | Aaron Ball <nullspoon@oper.io> | 2019-12-07 16:50:59 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2019-12-07 16:51:07 -0700 |
commit | b58ce6bede3d2495092c38e4f61e5b5b6b7279b9 (patch) | |
tree | 3ab1da94ecfa098ec4946b42500c88cd1eae61e7 /res | |
parent | 630a452a93f8b8c35784a3b4d484425b3ffd8ee1 (diff) | |
parent | 14796c47e931b5adee7e0e01d7ecab86498a2eab (diff) | |
download | oper.io-b58ce6bede3d2495092c38e4f61e5b5b6b7279b9.tar.gz oper.io-b58ce6bede3d2495092c38e4f61e5b5b6b7279b9.tar.xz |
Merge branch 'convert-cgi'
Signed-off-by: Aaron Ball <nullspoon@oper.io>
Diffstat (limited to 'res')
-rw-r--r-- | res/footer.j2 (renamed from res/footer.html) | 1 | ||||
-rw-r--r-- | res/header.j2 (renamed from res/header.php) | 12 |
2 files changed, 2 insertions, 11 deletions
diff --git a/res/footer.html b/res/footer.j2 index d054834..55164e9 100644 --- a/res/footer.html +++ b/res/footer.j2 @@ -7,7 +7,6 @@ <div id="footer"> <a href="https://creativecommons.org/licenses/by-sa/4.0/"> <img src="/files/cc-sharealike-88x31.png" /> - </a> <p> This work is licensed under a diff --git a/res/header.php b/res/header.j2 index baecff2..1cf3e26 100644 --- a/res/header.php +++ b/res/header.j2 @@ -1,17 +1,9 @@ -<?php -function friendlify_title($qs) { - if($qs == '') { - return 'Home'; - } - return preg_replace('/_/', ' ', $qs); -} -?> <!DOCTYPE html> <html> <head> <meta name="viewport" content = "user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width"> <link rel="stylesheet" type="text/css" href="res/style.css" /> - <title>oper.io<?php print(': ' . friendlify_title($_GET['p'])); ?></title> + <title>oper.io{{ PAGE_TITLE }}</title> </head> <body> <div id="nav-header"> @@ -20,7 +12,7 @@ function friendlify_title($qs) { <ul> <li><a href="https://oper.io">Home</a></li> <li><a href="https://oper.io/src">Source Code</a></li> - <li><a href="https://oper.io/index.php?p=about">About</a></li> + <li><a href="https://oper.io/?p=about">About</a></li> </ul> </div> </div> |