mirror of
https://github.com/seigler/dashdev-website
synced 2025-07-26 22:36:09 +00:00
129 lines
No EOL
3 KiB
HTML
129 lines
No EOL
3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Custom plugins - dashdevs-suite</title>
|
|
<meta name="description" content="The custom plugins used to create this website." />
|
|
|
|
<meta name="HandheldFriendly" content="true">
|
|
<meta name="MobileOptimized" content="320">
|
|
<meta name="viewport" content="width=device-width,shrink-to-fit=no,user-scalable=no,initial-scale=1,minimum-scale=1,minimal-ui">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
|
|
<link rel="stylesheet" media="all" href="../../css/styles.css" />
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<div class="content">
|
|
|
|
<p class="logo"><a href="../../">dashdevs-suite</a></p>
|
|
<!-- main navigation -->
|
|
<nav class="nav main">
|
|
<ul>
|
|
<li>
|
|
<a href="../../">Home</a>
|
|
</li>
|
|
<li>
|
|
<a href="../../docs/" class="active">docs</a>
|
|
</li>
|
|
<li>
|
|
<a href="../../article/">Articles</a>
|
|
</li>
|
|
<li>
|
|
<a href="../../tutorials/">tutorials</a>
|
|
</li>
|
|
<li>
|
|
<a href="../../boxes/">boxes</a>
|
|
</li>
|
|
<li>
|
|
<a href="../../contact/">Contact</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<main class="subpages" >
|
|
|
|
<div class="content">
|
|
|
|
|
|
<!-- sub navigation -->
|
|
<nav class="nav sub">
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="../../docs/installation/">Installation</a>
|
|
</li>
|
|
<li>
|
|
<a href="../../docs/build/">Build</a>
|
|
</li>
|
|
<li>
|
|
<a href="../../docs/site-files/">Site files</a>
|
|
</li>
|
|
<li>
|
|
<a href="../../docs/page-definitions/">Page definitions</a>
|
|
</li>
|
|
<li>
|
|
<a href="../../docs/plugins/">Custom plugins</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</nav>
|
|
|
|
|
|
<article>
|
|
|
|
<h1>Custom plugins</h1>
|
|
|
|
|
|
<p class="articleinfo">Published 2 March 2020, 77 words, 1-minute read</p>
|
|
|
|
|
|
<p>The <code>build.js</code> file defines how the site is built using Metalsmith and various plugins.</p>
|
|
<p>Several custom plugins have been created specifically for this site:</p>
|
|
<ul>
|
|
<li><code>lib/metalsmith-debug.js</code>: output debugging information to the console.</li>
|
|
<li><code>lib/metalsmith-setdate.js</code>: ensure each page has a date. If a <code>date</code> is not defined in the page's front-matter, it is presumed to be the publish or file creation date.</li>
|
|
<li><code>lib/metalsmith-moremeta.js</code>: applies further metadata to each page including the root folder, a default layout, primary and secondary navigation.</li>
|
|
</ul>
|
|
|
|
|
|
|
|
<nav class="nav page">
|
|
<ul>
|
|
|
|
<li><a href="../../docs/page-definitions/" class="back">« back: Page definitions</a></li>
|
|
</p>
|
|
|
|
|
|
</ul>
|
|
</nav>
|
|
|
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<footer>
|
|
|
|
|
|
<p>Help make this page better. <a href="https://github.com/dashdev-suite/dashdev-website/tree/master/src">Edit here >></a></p>
|
|
|
|
|
|
|
|
|
|
</footer>
|
|
</body>
|
|
|
|
</html> |