How to use settings for global meta values.

If you want even more detail, read the MorfLess description and instructions at GitHub.



The settings file (settings.txt) defines various meta information and default values for many elements. It is also where the search api url is added along with the search information for template files, index and 404.

A typical settings file is shown below. You can read more about it how to set elements at MorfLess settings file and building the site

Settings



///META:

posts_per_page={ 5 }:
post_meta_default={ title, category, author, date_created, date_modified, show_time }:
page_meta_default={ title, author, date_created, date_modified }:
date_format={ UK }:
title={ PoliMorfic }:
description={ }:

templates={
  {
    "search": "search",
    "categories": "categories",
    "authors": "authors",
    "archive": "archive",
    "posts": "posts"
  }
}:

template_main_header_text={
  {
    "search": "Results for: ",
    "categories": "Categories",
    "authors": "Authors",
    "archive": "Monthly Archives",
    "posts": "Posts"
  }
}:


template_sub_header_text={

  {
    "categories": "Posts for category: ",
    "authors": "Posts by author: ",
    "archive": "Posts for month: "
  }
}:

template_sub_header_back_link_text={
  {
    "categories": "Back to Categories",
    "authors": "Back to Authors",
    "archive": "Back to Archives"
  }
}:

default_author={

    {
        "name": "Polimorfic",
        "shortname": "PM",
        "thumbnail": "/images/Polimorf-shapes-background.jpg",
        "description": "General information and content from the site"
    }

}:

template_search_content={

{
    "categories": {
        "name": "Categories",
        "thumbnail": "/images/Polimorf-shapes-background-orange.jpg",
        "description": "Posts listed by category"
    },
    "authors": {
        "name": "Authors",
        "thumbnail": "/images/Polimorf-shapes-background-yellow.jpg",
        "description": "Posts and pages listed by author"
    },
    "archive": {
        "name": "Archive",
        "thumbnail": "/images/Polimorf-shapes-background-black.jpg",
        "description": "Monthly archives arranged by most recent to older"
    },
    "posts": {
        "name": "Posts",
        "thumbnail": "/images/Polimorf-shapes-background-darkblue.jpg",
        "description": "Posts by various authors and in various categories"
    },
    "index": {
        "name": "Home",
        "thumbnail": "/images/Polimorf-shapes-background.jpg",
        "description": "Welcome to the site! Feel free to browse around and follow the links to other pages and posts"
    },
    "404": {
        "name": "Not Found",
        "thumbnail": "/images/Polimorf-shapes-background.jpg",
        "description": "When you can't find anything you end up here!"
    }
}

}:

categories={

  [
    {
        "name": "Interesting things",
        "thumbnail": "/images/int-things.jpg",
        "description": "Interesting things to write about"
    },
    {
        "name": "animals",
        "thumbnail": "/images/animals.jpg",
        "description": "Posts about animals"
    },
  ]

}:

author={
  [
    {
        "name": "Author name 1",
        "shortname": "AUT1",
        "thumbnail": "/images/author1.jpg",
        "description": "General information for author1"
    },
    {
        "name": "Author name 2",
        "shortname": "AUT2",
        "thumbnail": "/images/author2.jpg",
        "description": "General information for author2"
    }
  ]
}:

search_api_url={ https://[link to api call]/prod }:


///HEADER:
%%HEADER_ADDITIONS::
content={
<link rel="stylesheet" href="/css/polimorfic-basic-style.css" type="text/css" media="screen">
}:

///BEFORE::
NONE

///MAIN:
%%DEFAULT::

///AFTER:
NONE

///SIDEBAR:
NONE:

///FOOTER:

%%3_BOX_CUSTOM: footer-text-1 ::

BOX1:
TITLE=[ What are we about? ]:
TEXT=[
<p>PoliMorfic is a venture whose main goal is to produce innovative web-based software.[</p>
]:
MENU=[
mlk={ href="/about/" name="About PoliMorfic" }:
]:

BOX2:
MENU=[
title={ Contact }:
mlk={ href="/contact/" name="Contact Form" }:
mlk={ href="/privacy-policy/" name="Privacy Policy" }:
mlk={ href="/cookie-policy/" name="Cookie Policy" }:
]:

BOX3:
TITLE=[ Download from GitHub ]:
TEXT=[
<p class="clearfix-small">
<a href="https://github.com/MickyHCorbett/PoliMorf" target="_new" class="footer-github-link-polimorf">PoliMorf Theme
</a></p>
<p class="clearfix-small">
<a href="https://github.com/MickyHCorbett/MorfLess" target="_new" class="footer-github-link-morfless">MorfLess Application
</a></p>
]:

%%CONTENT_CUSTOM: footer-copyright ::
TEXT=[
<p>© <span class="copyright-date">2020</span> All Rights Reserved</p>
]:

Pages and Posts

Layouts

Inserts

Settings

Understood
This website is using cookies. More details