Building a multi-page website with Liberty Basic

If you have ever wondered how it is possible to create static web pages with hundreds or even thousands of web pages, you may not have thought of using Liberty Basic.

Liberty Basic is an excellent programming language that makes it relatively simple to create the multi-page sites you see on the Internet.

To create a multi-page website, you’ll need to create a website template and use an appropriate style sheet to get the look you need.

Within the template, a series of labels are inserted that will tell the program where to insert the imported articles.

Imported articles are stored as text files on your local hard drive, and the article is read and embedded in the body of the template. The article title can be used as the title and description of the web page, and the output file would have a name similar to the page title plus the use of .htm as the file extension.

This idea can be further expanded by creating directories based on towns or counties across the country, an example of this is http://www.a63.co.uk, a main road based business directory , the A63, which runs from Hull in the east of England to Leeds in Yorkshire.

4 files were used to create this file, each file was imported to write to the template in the appropriate place.

1. Metadata.txt: contains all the metadata information of the web pages

2. Business Listings: Stores the addresses, phone numbers, and category of each business

3. Category Descriptions – Helps create the H1 tags for that particular category

4. City: contains the names of the cities

Using these 4 files, it is possible to create a unique web page for that particular category in that city.

There are approximately 140 categories and 5 towns, adding up to 700 web pages.

Expanding the idea further, it is possible to create a website with the main cities in the UK, which is about 1,200 cities, which would give us around 170,000 pages.

The programming language provides massive opportunities to create multi-page websites with ease. It only takes a little time to assemble the basic data sets.

Leave a Reply

Your email address will not be published. Required fields are marked *