28 lines
699 B
Plaintext
28 lines
699 B
Plaintext
|
include _config
|
||
|
block config
|
||
|
|
||
|
- var getDate = function(){
|
||
|
- var d = new Date();
|
||
|
- return d.toLocaleDateString(lang, {day: "numeric", month: "long", year: "numeric"});
|
||
|
- }
|
||
|
- String.prototype.toTitleCase = function() {
|
||
|
- return this.replace(/\w\S*/g, function(txt) {
|
||
|
- return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
|
||
|
- });
|
||
|
- }
|
||
|
- String.prototype.toSentenceCase = function() {
|
||
|
- return this.charAt(0).toUpperCase() + this.substr(1).toLowerCase();
|
||
|
- }
|
||
|
- String.prototype.toContent = function() {
|
||
|
- return this.replace(/-/g, " ");
|
||
|
- }
|
||
|
|
||
|
|
||
|
html
|
||
|
head
|
||
|
|
||
|
title Pattern
|
||
|
|
||
|
body(data-assetpath= assetpath data-prismjs-copy-timeout="1500")
|
||
|
|
||
|
block content
|