vaibhavkandwal

Joined on Aug 23rd 2017
Karma

16

  • So I made a theme, and used a simple python script to convert markdown like template (actually a text file) to html by parsing it through the theme. (Theme was made using twig like templating)
    Directory Structure is as follows:

    /my-website/
        /skeleton-posts/
                post1.txt
                post2.txt
        /theme/
        /generated-site/
                /css/
                /js/
                /img
                /blog/
                                /post-1/
                                                    index.html
                                /post-2/
                                                    index.html
        generator.py

    Each index.html under posts of generated site is linked to common css, js directories, to prevent multiple callbacks.

    Now can you help me create the main index page, which should list all these blog posts, along with pagination (see image below, I would like to make it similar to that of tutorialzine, using cards!). I'm a bit poor in javascript and php, so any help would be greatful!

    17a9FSA.png