diff options
author | Ralph Amissah <ralph@amissah.com> | 2012-12-12 15:07:22 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2012-12-12 15:07:22 -0500 |
commit | db23b42728ad667d328af2cd3759cc47091eade3 (patch) | |
tree | 804f5f7042b603315ed917f2428845547f8836c3 /data/doc/sisu/markup-samples/v3/sisu_manual/sisu_homepages.ssi | |
parent | debian/changelog (3.3.3-1) (diff) | |
parent | v4: 4.0.0 version & changelog, dates touched (diff) |
Merge tag 'sisu_4.0.0' into debian/sid
Diffstat (limited to 'data/doc/sisu/markup-samples/v3/sisu_manual/sisu_homepages.ssi')
-rw-r--r-- | data/doc/sisu/markup-samples/v3/sisu_manual/sisu_homepages.ssi | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/data/doc/sisu/markup-samples/v3/sisu_manual/sisu_homepages.ssi b/data/doc/sisu/markup-samples/v3/sisu_manual/sisu_homepages.ssi new file mode 100644 index 00000000..58dc0937 --- /dev/null +++ b/data/doc/sisu/markup-samples/v3/sisu_manual/sisu_homepages.ssi @@ -0,0 +1,66 @@ +% SiSU insert 2.0 + +@title: SiSU + :subtitle: Homepages + +@creator: + :author: Amissah, Ralph + +@date: + :published: 2007-09-16 + :created: 2007-08-28 + :issued: 2007-08-28 + :available: 2007-08-28 + :modified: 2011-02-07 + +@rights: + :copyright: Copyright (C) Ralph Amissah 2007 + :license: GPL 3 (part of SiSU documentation) + +:A~? @title @creator + +:B~? Setting up of homepages + +1~home Homepages + +SiSU is about the ability to auto-generate documents. Home pages are regarded as custom built items, and are not created by SiSU. More accurately, SiSU has a default home page, which will not be appropriate for use with other sites, and the means to provide your own home page instead in one of two ways as part of a site's configuration, these being: + +# through placing your home page and other custom built documents in the subdirectory _sisu/home/ (this probably being the easier and more convenient option) + +# through providing what you want as the home page in a skin, + +Document sets are contained in directories, usually organised by site or subject. Each directory can/should have its own homepage. See the section on directory structure and organisation of content. + +2~ Home page and other custom built pages in a sub-directory + +Custom built pages, including the home page index.html may be placed within the configuration directory _sisu/home/ in any of the locations that is searched for the configuration directory, namely ./_sisu ; ~/_sisu ; /etc/sisu +From there they are copied to the root of the output directory with the command: + +_1 sisu -CC + +2~ Home page within a skin + +Skins are described in a separate section, but basically are a file written in the programming language Ruby that may be provided to change the defaults that are provided with sisu with respect to individual documents, a directories contents or for a site. + +If you wish to provide a homepage within a skin the skin should be in the directory _sisu/skin/dir and have the name of the directory for which it is to become the home page. Documents in the directory commercial_law would have the homepage modified in skin_commercial law.rb ; or the directory poems in skin_poems.rb + +code{ + + class Home + def homepage + # place the html content of your homepage here, this will become index.html + <<HOME <html> +<head></head> +<doc> +<p>this is my new homepage.</p> +</doc> +</html> +HOME + end + end + +}code + +% .SH "SKINS \- document, directory and site skins" + + |