grim/hgkeeper-theme

41edd67a62bf
Parents 0629e343412a
Children d9146a369de3
Add support for the title and sub_title template keywords
--- a/templates/hgkeeper/header.tmpl Sun May 17 16:58:17 2020 -0500
+++ b/templates/hgkeeper/header.tmpl Sun May 17 17:29:46 2020 -0500
@@ -1,9 +1,11 @@
<!DOCTYPE html>
<html>
<head>
- <link rel="icon" href="{staticurl|urlescape}img/hgicon.png" type="image/png" />
+ <link rel="icon" href="{staticurl|urlescape}hgicon.png" type="image/png" />
<meta name="robots" content="index, nofollow"/>
+ <title>{if(title, title, 'HGKeeper')}</title>
+
<link rel="stylesheet" href="{staticurl|urlescape}hgk/css/icofont.min.css">
<link rel="stylesheet" href="{staticurl|urlescape}hgk/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="{staticurl|urlescape}hgk/css/github-markdown.css">
@@ -17,14 +19,13 @@
<head>
<body>
<nav class="navbar">
- <a class="navbar-brand" href="/">HGKeeper</a>
+ <a class="navbar-brand" href="/">{title}{if(sub_title, ' <small> - {sub_title}</small>')}</a>
</nav>
-
<div class="container">
<!-- we should make the button work with cookies if possible, but until
then, hide it -->
{if(motd, '<div class="alert alert-info" role="alert"><!--<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>--><i class="icofont-info-circle"></i> {motd}</div>')}
- {if(repo, '{reponav}', '')}
+ {if(repo, '{reponav}', '')}