Indextemplate

From CGWiki

Revision as of 22:04, 7 March 2009 by Dr Neo Lao (Talk | contribs)
(diff) ?Older revision | Current revision (diff) | Newer revision? (diff)
Jump to: navigation, search

This is the current default indextemplate.html file, provided here in case you need to get it again. If you need to make a new default index template, copy and paste this into a new text file on your computer and then save it as a html file. Exactly how you do this will vary depending on your OS, but do it carefully so that you don't end up with a file named indextemplate.html.txt (which won't work) or that it doesn't re-format the code into something else (such as using &grt; instead of > which can happen if you use something like MSWord).

indextemplate.html

Current as of February 2009

 <?xml version="1.0" encoding="iso-8859-1"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html lang="en" xml:lang="en"
 xmlns="http://www.w3.org/1999/xhtml">
 <head><title>***comic_name*** - ***todays_date***</title>
 <meta http-equiv="Content-Type" content="text/html;
 charset=iso-8859-1" />
 <link rel="alternate" title="***comic_name***" href="/rss.xml" type="application/rss+xml" />
 <style type="text/css">
 <!--
 body {
    
        color:#ffffff;background-color:#000000;
	margin:0px;
	}
	
	//--!>
 </style>
	
 </head><body>
 <script language='JAVASCRIPT' type="text/javascript" src='http://forums.comicgenesis.com/cg_header.js'></script>
 <div class="keen_ad" style="display:inline;">
 ***advertisement***
 </div>
 <div class="main">
 <h1>***comic_name***</h1>
 <h2>by ***author***</h2>
 ***todays_comics***
 <br />
 ***first_day*** ***previous_day*** ***next_day*** ***last_day***
 <br />
 ***comic_name*** is hosted on <a href="http://www.comicgenesis.com">ComicGenesis</a>, a free webhosting and site automation service for webcomics.
 </div>
 </body>
 </html>

How the KeenTags work is explained here.

Fix for Internet Explorer

There is a known bug for some versions of IE where the default template will show up as a blank, black screen. This is caused by the stylesheet used. In the code, all you need to do is remove the extra exclamation mark. Where you see:

      //--!>
 </style>

Replace it with:

      //-->
 </style>

And the comic ought to show up properly in IE.

File Download

You can download the indextemplate.html file by clicking here (from DivShare, click to be taken to download page on DivShare, then click "Download this file"). Note that this file has the IE fix already embedded.

Return to the Tutorials page