Hyperlight

2. Configuration

Once the files are in the right place, open the config.php file in the root directory. There are a number of variables you can change to affect how the site works. They are described as follows:

  • Root:

    This must be the same (public-facing) directory you installed hyperlight into. For example:

    • http://example.com/ would be "/"
    • http://example.com/blog would be "/blog/"

    Must start and/or end with a forward slash.

    Default: "/"

  • Title:

    The title that appears at the top of the blog (theme dependant).

    Default: "Hyperlight"

  • PostsDirectory:

    The location to store blog posts in. This does not change the URL people visit, but the internal folder structure.

    Default: "posts/"

  • PagesDirectory:

    The location to store pages in. This does not change the URL people visit, but the internal folder structure.

    Default: "pages/"

  • Theme:

    The theme to use. This folder must exist in the "themes" directory with an index.php file to run, otherwise nothing will display.

    Default: "hyperlight"

  • Footer:

    The text that appears at the bottom of each page (theme dependant). It's highly recommended you change this unless you want my name and copyright at the bottom of your website.

    Default: "© Tom Gardiner 2017"

  • PostsPerPage:

    How many posts to display per page before requiring pagination

    Default: 10

  • ImageWidth:

    NOTE: Currently unused, but will be made use of in future versions of hyperlight

    This is the width images get resized to when uploaded on the post/page editor.

    Default: 1024

  • Parsedown:

    Determines whether to convert markdown documents into HTML, otherwise your posts and pages will have to be written in plain text or HTML.

    Default: true

  • DatePretty:

    What format to print the date on posts. This follows the PHP Date format, as found here

    Default: "l jS F o, H:i:s" (looks like "Sunday 14th May 2017, 09:57:27")

  • TitleSeparator:

    What to put in between the Post title and the site title. For example: "Latest Post | My Site"

    Default: " | "