Allow html title to be set dynamically
Each page content template can set a page_title variable.
This commit is contained in:
@@ -1,9 +1,18 @@
|
|||||||
<!--% PROCESS 'shared-utils.tpl.html' %-->
|
<!--% PROCESS 'shared-utils.tpl.html' %-->
|
||||||
<!--% USE date %-->
|
<!--% USE date %-->
|
||||||
|
<!--% page_title = "Hacker Public Radio (HPR) ~ The Technology Community Podcast" %-->
|
||||||
|
<!--% WRAPPER page
|
||||||
|
# The default page_title variable set above can be overridden
|
||||||
|
# in each individual $content template (i.e. templates/conten-<template name>.tpl.html)
|
||||||
|
# processed below.
|
||||||
|
%-->
|
||||||
|
<!--% PROCESS $content %-->
|
||||||
|
<!--% END %-->
|
||||||
|
<!--% BLOCK page %-->
|
||||||
<!DOCTYPE HTML>
|
<!DOCTYPE HTML>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Hacker Public Radio ~ The Technology Community Podcast</title>
|
<title><!--% page_title %--></title>
|
||||||
<!--% IF baseurl %-->
|
<!--% IF baseurl %-->
|
||||||
<base href="<!--% baseurl %-->">
|
<base href="<!--% baseurl %-->">
|
||||||
<!--% END %-->
|
<!--% END %-->
|
||||||
@@ -54,7 +63,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<main id="main_content" role="main">
|
<main id="main_content" role="main">
|
||||||
<!--% INCLUDE $content %-->
|
<!--% content %-->
|
||||||
|
<!--% page_title = "acck" %-->
|
||||||
</main>
|
</main>
|
||||||
<footer role="contentinfo">
|
<footer role="contentinfo">
|
||||||
<hr class="no-css">
|
<hr class="no-css">
|
||||||
@@ -70,3 +80,4 @@
|
|||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
<!--% END %-->
|
||||||
|
|||||||
Reference in New Issue
Block a user