- What makes up 墨雅斋
墨雅斋 is controled by text files. Basically, you drop some text files in the same directory as index.php, and it will use them.
Now, there are some special text files that 墨雅斋 uses for control and nothing more
- Link files
A link file is a link to an external page that shows up in the main navigation.
For security reasons, external links here can only go to locations that are sub-directories of the directory that index.php is in.
To make a link, just make a text document titled Link.lnk.txt
The .lnk.txt tells 墨雅斋 to treat that file as a link, and it will make a link in the navigation that goes to the "link" directory.
It will always convert this link to lowercase for simplicity sake. - Content files
Content is controled by text files.
Write your code in a plan text document, then tittle it "Pagename.txt" and put it in the same folder as index.php.
墨雅斋 will generate the link to it in the navigation and display the contents of the text file as the body of the page.
- Link files
- Logo.jpg and title.txt
墨雅斋 will look for a logo.jpg image and if it finds it, it will use it as a banner image. Pretty simple.
If there is no logo.jpg, it will just call the contents of title.txt, which I'll explain the function of. - Required Files
There are just a couple of files that are required for 墨雅斋 to work.
- index.php - The main script and theme
- title.txt - Contains the title of the website, this is used in a few places
- meta.txt - Contans meta tags
- Home.txt - Contains the home page! This is important! Also, mind the case, it is also important
- Database
There is none - Requirements
- Web hosting with PHP
- A text editor
- Some HTML skills, basic PHP knowledge is good too
I'll add more as I actually get questions..