(hello-world.md) This file should show the rendered HTML data from head.pug, but it only shows the content from head.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Build with layouts() BEFORE include() | |
const fs = require( 'fs' ) | |
const path = require( 'path' ) | |
// Metalsmith stuff | |
const Metalsmith = require( 'metalsmith' ) | |
const markdown = require( 'metalsmith-markdownit' ) | |
const layouts = require( 'metalsmith-layouts' ) | |
const include = require( 'metalsmith-include') | |
const inplace = require( 'metalsmith-in-place' ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Build with layouts() AFTER include() | |
const fs = require( 'fs' ) | |
const path = require( 'path' ) | |
// Metalsmith stuff | |
const Metalsmith = require( 'metalsmith' ) | |
const markdown = require( 'metalsmith-markdownit' ) | |
const layouts = require( 'metalsmith-layouts' ) | |
const include = require( 'metalsmith-include') | |
const inplace = require( 'metalsmith-in-place' ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Build with layouts() BEFORE & AFTER include() | |
const fs = require( 'fs' ) | |
const path = require( 'path' ) | |
// Metalsmith stuff | |
const Metalsmith = require( 'metalsmith' ) | |
const markdown = require( 'metalsmith-markdownit' ) | |
const layouts = require( 'metalsmith-layouts' ) | |
const include = require( 'metalsmith-include') | |
const inplace = require( 'metalsmith-in-place' ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//-------------------------------- | |
//- File: templates/hello-world.pug | |
// Begin: hello-world.pug | |
//- I would expect this to show the rendered head.md file, including the head.pug data, but it only shows the "content" from head.md | |
!= head | |
!=contents | |
p (File: hello-world.pug) This page includes the content from head.md, but not the rendered data from head.pug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Begin: hello-world.pug --> | |
<!-- Begin: head.pug --><p>(File: <a href="http://head.md">head.md</a>) When viewing hello-world.html, you’ll see this sentence, but no rendered data from head.pug</p> | |
<p>(File: head.pug) This is the content that doesn't get rendered when this file is included</p> | |
<!-- End: head.pug --> | |
<!-- End: hello-world.pug --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mixin prefixed_title(caption) | |
- | |
var headerSegments = [ webconfigs.general.title_prefix ] | |
if ( typeof caption === 'string' && caption.trim().length > 0 ){ | |
headerSegments.push( caption.trim() ) | |
} | |
var headerTxt = headerSegments.join( ' - ' ) | |
!=headerTxt | |
//- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// While you can edit this file, it's best to put your changes in | |
// "User/Preferences.sublime-settings", which overrides the settings in here. | |
// | |
// Settings may also be placed in file type specific options files, for | |
// example, in Packages/Python/Python.sublime-settings for python files. | |
{ | |
// Sets the colors used within the text area | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
// Note that the font_face and font_size are overriden in the platform |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"codeformatter_js_options": | |
{ | |
"brace_style": "collapse", | |
"break_chained_methods": false, | |
"comma_first": false, | |
"e4x": false, | |
"end_with_newline": false, | |
"eol": "\n", | |
"eval_code": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctype html | |
html.no-js.no-touch(lang='en') | |
head | |
meta(charset='utf-8') | |
meta(name='viewport', content='width=device-width, initial-scale=1.0') | |
meta(http-equiv='X-UA-Compatible', content='IE=edge') | |
meta(name='msapplication-TileImage', content='content/live/thumbs/favicon-270x270.png') | |
link(rel='icon', href='content/live/thumbs/favicon-32x32.png', sizes='32x32') | |
link(rel='icon', href='content/live/thumbs/favicon-192x192.png', sizes='192x192') | |
link(rel='apple-touch-icon-precomposed', href='content/live/thumbs/favicon-180x180.png') |