Skip to content

Instantly share code, notes, and snippets.

View luminarious's full-sized avatar
🃏
    ​

Hardi Kõvamees luminarious

🃏
    ​
View GitHub Profile
@luminarious
luminarious / static.php
Last active July 26, 2018 09:04
Getting a static site out of Cockpit CMS
<?php
use Pug; // https://github.com/pug-php/pug
use Cockpit;
require_once __DIR__.'/vendor/autoload.php'; // Composer
require_once __DIR__.'/cockpit/bootstrap.php'; // https://github.com/COCOPi/cockpit
chdir(dirname(__FILE__)); // Keep this directory if called directly or from Cockpit
//setlocale(LC_TIME, 'et_EE', 'et', 'EE', 'ET', 'Estonia');
//define('DATE_FORMAT', "%e. %B %G");
@luminarious
luminarious / Markdown.vue
Created April 8, 2024 13:46
Rendering Markdown in Nuxt
<script>
import MarkdownIt from 'markdown-it'
import mdAttrs from 'markdown-it-attrs'
import mdDecorate from 'markdown-it-decorate'
import mdTaskLists from 'markdown-it-task-lists'
import mdExpandTabs from 'markdown-it-expand-tabs'
import mdAbbr from 'markdown-it-abbr'
import mdSup from 'markdown-it-sup'
import mdSub from 'markdown-it-sub'
import mdMark from 'markdown-it-mark'