Standard Framework 11ty Plugin

Complete integration of the Standard Framework CSS system with Eleventy. Includes automatic asset management, enhanced markdown, template filters, backlinks, content encryption, and zero-configuration setup.

Quick Start

1. Install

npm install @zefish/standard

2. Add to eleventy.config.js

import Standard from "@zefish/standard";

export default function (eleventyConfig) {
  eleventyConfig.addPlugin(Standard);
  return {
    dir: { input: "content", output: "_site" }
  };
}

3. Use in Templates

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  {% standardAssets %}
</head>
<body>
  {{ content | safe }}
</body>
</html>

4. Build

npx @11ty/eleventy

Done! Your 11ty site now has Standard Framework styling.

What’s Included

🎨 CSS Framework

See CSS Framework documentation

πŸ“ Markdown Enhancements

See Markdown Guide

πŸ”§ Template Filters

See Filters Guide

πŸ”— Wiki Features

See Backlinks Guide

πŸ” Encryption

See Encryption Guide

🎯 Shortcodes

See Shortcodes Reference

Configuration Options

eleventyConfig.addPlugin(Standard, {
  // Directory where CSS/JS files are copied to
  outputDir: "assets/standard",

  // Copy files from node_modules to output directory
  copyFiles: true,

  // Use CDN instead of local files (faster for production)
  useCDN: false,

  // Languages to escape in code blocks
  escapeCodeBlocks: []
});

Asset Inclusion

Local Files (Default)

{% standardAssets %}

Outputs:

<link rel="stylesheet" href="/assets/standard/standard.min.css">
<script src="/assets/standard/standard.min.js" type="module"></script>

From CDN

eleventyConfig.addPlugin(Standard, {
  useCDN: true
});

Then {% standardAssets %} uses unpkg CDN:

<link href="https://unpkg.com/@zefish/standard" rel="stylesheet">
<script src="https://unpkg.com/@zefish/standard/js" type="module"></script>

Experimental Lab

{% standardLab %}

Includes experimental JavaScript features.

Global Data

Access framework data in templates:

{{ standard.layout.meta }}

Learning Path

Beginner

  1. Getting Started – Set up and basics
  2. CSS Framework – Style your content
  3. Markdown – Write with enhancements

Intermediate

  1. Filters – Transform content
  2. Backlinks – Connect pages
  3. Layouts – Page templates

Advanced

  1. Encryption – Protect content
  2. Advanced Features – Power user tips
  3. Performance – Optimization

Common Use Cases

Blog with Standard Styling

---

title: My Blog Post
---

# {{ title }}

Your blog post content with beautiful Standard Framework styling.

Documentation Site

---

eleventyNavigation:
  key: Documentation
  title: Documentation
---

# Documentation

Automatically get wiki-style backlinks and beautiful typography.

Portfolio

---

---

<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
  <!-- Your portfolio items -->
</div>

Knowledge Base

---

---

# Topic

Your knowledge base entry with automatic backlinks to related pages.

File Structure

Recommended project structure:

my-site/
β”œβ”€β”€ eleventy.config.js
β”œβ”€β”€ package.json
β”œβ”€β”€ content/
β”‚   β”œβ”€β”€ index.md
β”‚   β”œβ”€ posts/
β”‚   β”‚  β”œβ”€ post-1.md
β”‚   β”‚  └─ post-2.md
β”‚   └─ docs/
β”‚      β”œβ”€ guide-1.md
β”‚      └─ guide-2.md
β”œβ”€β”€ _includes/
β”‚   └─ layouts/
β”‚      β”œβ”€ base.njk
β”‚      └─ article.njk
└── _site/
    β”œβ”€ index.html
    β”œβ”€ posts/
    β”œβ”€ docs/
    └─ assets/standard/
       β”œβ”€ standard.min.css
       β”œβ”€ standard.min.js
       └─ standard.lab.js

Features by Category

Content Creation

Styling

Functionality

Performance

Comparison with Similar Tools

Feature Standard Eleventy Jekyll
CSS Framework βœ… Included ❌ Not included ❌ Minimal
Markdown Enhancement βœ… Full ⚠️ Limited ⚠️ Limited
Backlinks βœ… Automatic ❌ No ❌ No
Dark Mode βœ… Built-in ❌ No ❌ No
Encryption βœ… Included ❌ No ❌ No
Performance βœ… Excellent βœ… Excellent βœ… Good

API Reference

Getting Help

Next Steps

Ready to build? Start here:

  1. Getting Started – Installation and setup
  2. CSS Framework – Learn the styling system
  3. Markdown – Master markdown features
  4. Filters – Transform your content
  5. Backlinks – Connect your pages

Version 0.10.52 | Eleventy | MIT License