Hacking InfogamiHow to get the most of the host Known Template CodesThese are codes that, when used in the templates for Page and Site, will be replaced with generated content when the page is saved and viewed.
More? Is there an official list of template codes somewhere? Moving (And Removing) The Google AdsIt appears that if you edit the Site template and just remove the reference to $ads, then the Google AdWords will disappear. I'm not sure why Infogami lets you do this, since the site appears to be supported by those ads, but one idea is that to give the user the greatest freedom of design, the entire page's appearance had to be surrendered to the templating engine. This is at least nicer than the way GeoCities and other ad-supported hosting services worked, which was to either put your site in a frameset to protect the advertising frame, or to do some ugly post-processing of the HTML. Regardless, since each site on Infogami continues to exist at the discretion of Infogami's makers, it might be polite to leave them in somewhere. Creating Additional PagesHow to create new pages on Infogami Embedding Images Without Hosting Image FilesNote: Remove this when/if Infogami supports uploading media If you can't host an image on an external server yourself, you could still get an image into an Infogami page by using the "data URL" technique, where the data for an image is encoded in base64 and used as the SRC for an image tag. If your browser supports it, you should see the image of a pussycat below: To show images in an Infogami page you need to use the Markdown syntax:
The path between the parenthesis is where you'd need to paste the data URL, like this:
Sveinbjorn Thordarson has an online data URL generator that you can upload any image to and convert into a proper data URL. Note that the example code he gives you is for a regular HTML Creating Custom CSS StylesheetsStolen from Dave's Place Edit the Site template and comment out Infogami's default stylesheet. Next, plug the following into your browser's URL/Address field and go to it:
the Once saved, you can now edit the Site template again and put in a reference like this in the header: The material here is Public Domain. |