Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
example.json 2.36 KiB
Newer Older
  • Learn to ignore specific revisions
  • {
        "root_page": {
    
            "template_name": "A Custom Template",
    
            "metadata": {
    
                "title": "Hello Krustcea !",
                "description": "An example website",
    
                "image": "https://example.com/images/ex_pic.png",
    
    peterrabbit's avatar
    peterrabbit committed
                "js": [],
    
    peterrabbit's avatar
    peterrabbit committed
                "url_slug": "",
                "lang": "en"
    
    peterrabbit's avatar
    peterrabbit committed
                    "tag": "h1",
    
                    "text": "Example Story"
    
    peterrabbit's avatar
    peterrabbit committed
                },
                {
                    "tag": "p",
    
                    "text": "Hello,<br />How are you?",
    
    peterrabbit's avatar
    peterrabbit committed
                    "attrs": {
    
                        "class": "p_class"
    
    peterrabbit's avatar
    peterrabbit committed
                    }
                },
                {
                    "tag": "img",
                    "attrs": {
                        "src": "/img/url.png"
                    }
    
    peterrabbit's avatar
    peterrabbit committed
            ],
            "sub_pages": []
    
                "name": "A Custom template",
    
                "layout": {
                    "display": "grid"
                },
    
    peterrabbit's avatar
    peterrabbit committed
                "contents": [
    
                        "tag": "div",
                        "attrs": {
                            "id": "custom-template",
                            "class": "page-template"
                        },
    
                                        "tag": "ul",
                                        "contents": [
                                            {
                                                "tag": "li",
                                                "text": "menu item 1"
                                            },
                                            {
                                                "tag": "li",
                                                "text": "menu item 2"
                                            }
                                        ]
    
                            },
                            {
                                "tag": "footer",
                                "contents": []
    
            "/images/toto.jpg",
            "/sounds/toto.mp3",
            "/video/toto.mp4",
            "/docs/toto.xcf",
            "/source_code/toto.js"