HTMLy simple comment system

If there’s a book you want to read, but it hasn’t been written yet, then you must write it.

After moving to HTMLy, I missed a local commenting system. My needings are basic: I just need a very simple one, possibly based on flat files, not relying on external commenting systems.

HTMLy only choices were Facebook and Diqus, none local. So I decided to write one for myself, ending in a slightly modified HTMLy 3.3.1 version.

Integrating the comments in existing template its quite simple. First add the PHP lines needed to show the comments box on your posts:

<?php if (local()): ?>
    <?php
    $postId = str_replace(site_url(), '', $p->url);
    displayCommentsSection($postId);
    ?>
<?php endif; ?>

then play with CSS to match your template.

GitHub htmly

Comments

Leave a Comment


Your email will not be published

You can use **bold text** for formatting. Line breaks are preserved.