Skip to content
blog.brunneis.…
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
 
 
 
 
 
 
img
 
 
 
 
 
 
 
 
 
 
 
 
 
 

miniTRECE

A very simple, lightweight, minimalist, free (MIT License) CMS or Website builder tool based on documents on the server (no database) and (this is important) multilingual-ready and multilingual-friendly from the very first moment (no plugins needed). Contents can be written with markdown or hmtl syntax.

Files .htaccess, index.php and trece/conf.php are the important ones. The remaining files are just for content or customization. Let me suggest you to start a fresh install of miniTRECE using only these three files and then begin building, adding the other files from the .zip, one by one.

Folder trece/inc is where all the content is stored. For instance: place at trece/inc/ a file named test.php with a simple «Hello!» as content and then add test to the url at your browser (something like yourdomain.com/en/test if your site is multilingual or yourdomain.com/test if your site is monolingual). You're done! (Demo here: https://mini.trece.io/en/test).

Files trece/inc/html-sample.php, trece/inc/markdown-sample.php and trece/inc/demo.php will show you how to build content in both markup languages. In these two files pay special attention to the first 7 lines. What you write there is the content for the meta fields in the header, needed to successfuly share your page in places like Facebook and Twitter. Idea: test these pages in Facebook debugger https://developers.facebook.com/tools/debug and Twitter card validator https://cards-dev.twitter.com/validator.

Important: in order to use Markdown as markup language, constant MARKDOWN must be set to "true" in index.php and the Parsedown library (Parsedown.php, ParsedownExtra.php and ParsedownExtraPlugin.php) installed in the trece/lib/ folder. All those files are included in the .zip you can download from GitHub.

Files trece/inc/minimal_header.php, trece/inc/minimal_footer.php and css/minimal_style.php show you the minimal theme, a starting point for developing your own miniTRECE theme.

The condition equivalent to the .htaccess needed in nginx is:

location ~* /miniTRECE {
            try_files $uri $uri/ /miniTRECE/index.php?$args;
}

:) Quenerapú