vaibhavkandwal

Joined on Aug 23rd 2017
Karma

41

  • Yes, I know that I have the whole code in front of me, but I want something like a tutorial or a basic concept of how and why that code works. That's the reason I asked for it in the first place.
    Anyways, thanks for the reply!

  • Is this a dead community? Why does no one reply on the topics this forum was based on?

  • Linux (Elementary OS) by Day (coding and stuff)
    &&
    Windows by night (Gaming!!)

    PS: Dual boot system :P

  • 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