Initial Commit
This commit is contained in:
28
src/pg/_master-pattern.pug
Normal file
28
src/pg/_master-pattern.pug
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
Reference in New Issue
Block a user