✪ ---
Jekyll Header

Script key: Jekyll Header

Posted by jreed91

Install

Details

Label ✪ ---
Voice Over Jekyll Header
Script
var meta = '---'
var now = new Date();
var dd = now.getDate();
var mm = now.getMonth()+1;
var yyyy = now.getFullYear();

if(dd<10) {
    dd='0'+dd
} 

if(mm<10) {
    mm='0'+mm
} 

var today = yyyy+'-'+mm+'-'+dd+' ';
var selRange = getSelectedRange();


setSelectedText(meta + '\n' + 'layout: post' + '\n' + 'title:' + '\n' + 'date: ' + today + '\n' + meta);



setSelectedRange(selRange[0]+11,0);

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus