Basic 11ty layout/include.

This commit is contained in:
Jonny Gerig Meyer 2023-01-06 15:35:17 -05:00
parent 5071228ace
commit 7e2f28ad2e
No known key found for this signature in database
GPG Key ID: FB602F738A872F7F
6 changed files with 126 additions and 2 deletions

View File

@ -1,10 +1,13 @@
'use strict';
/** @param {import("@11ty/eleventy").UserConfig} eleventyConfig */
module.exports = (eleventyConfig) => {
// settings
return {
dir: {
input: 'source',
includes: '_includes',
layouts: '_layouts'
},
};
};

1
.gitignore vendored
View File

@ -19,6 +19,7 @@ Thumbs.db
/.yardoc
/vendor/bundle/
/source/documentation/js-api
/_site/
# NPM/Yarn
node_modules/

View File

@ -11,12 +11,14 @@
"private": true,
"license": "MIT",
"engines": {
"node": "16.x"
"node": "^16",
"yarn": "^3"
},
"type": "module",
"packageManager": "yarn@3.3.0",
"scripts": {
"build": "yarn eleventy --config=.eleventy.cjs",
"build": "eleventy --config=.eleventy.cjs",
"serve": "eleventy --config=.eleventy.cjs --serve",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {

View File

@ -0,0 +1,49 @@
<footer
class="site-footer contentinfo"
itemtype="http://schema.org/WPFooter"
itemscope="itemscope"
role="contentinfo">
<div class="sl-l-container sl-l-section">
<div class="sl-l-grid sl-l-grid--full sl-l-large-grid--fit sl-l-large-grid--center sl-l-large-grid--gutters">
<div class="sl-l-grid__column">
Sass &copy; 2006&ndash;{{ 'now' | date: '%Y' }} the Sass team, and numerous contributors.
It is available for use and modification under the <a href="https://github.com/sass/dart-sass/blob/master/LICENSE">MIT&nbsp;License</a>.
<nav class="sl-c-list-horizontal-wrapper">
<ul>
<li><a href="https://github.com/sass">Sass on GitHub</a></li>
<li><a href="https://github.com/sass/sass-site">Website Source Code</a></li>
<li><a href="/styleguide">Style Guide</a></li>
<li><a href="/community-guidelines">Community Guidelines</a></li>
</ul>
</nav>
</div>
<div class="sl-l-grid__column sl-l-large-grid__column--auto-size sl-l-large-grid--justify-right">
<a
class="twitter-follow-button"
href="https://twitter.com/SassCSS"
data-show-count="false"
data-size="large">Follow @SassCSS</a>
<a href="https://www.macstadium.com/"><img
alt="Powered by MacStadium"
class="mac-stadium-icon"
src="https://uploads-ssl.webflow.com/5ac3c046c82724970fc60918/5c019d917bba312af7553b49_MacStadium-developerlogo.png"></a>
<script>
!function(d, s, id) {
var js,
fjs = d.getElementsByTagName(s)[0],
p = /^http:/.test(d.location)
? 'http'
: 'https';
if (! d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = p + '://platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore(js, fjs);
}
}(document, 'script', 'twitter-wjs');
</script>
</div>
</div>
</div>
</footer>

View File

@ -0,0 +1,63 @@
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="Syntactically Awesome Style Sheets" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sass: {{ page.data.title or 'Syntactically Awesome Style Sheets' }}</title>
<link
rel="alternate"
type="application/atom+xml"
href="/feed.xml" />
<link
href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Source+Sans+Pro:300,400,600|Source+Serif+Pro"
media="screen"
rel="stylesheet" />
<link
href="https://cdn.jsdelivr.net/npm/@docsearch/css@alpha"
media="screen"
rel="stylesheet" />
<link
href="/assets/css/sass.css"
media="screen"
rel="stylesheet" />
<noscript>
<link
href="/assets/css/noscript.css"
media="screen"
rel="stylesheet" />
</noscript>
</head>
<body data-layout="body">
{{ content }}
{% include "footer" %}
<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@alpha"></script>
<script>
docsearch({
container: '#docsearch',
appId: 'Q9MULQONSV',
indexName: 'sass-lang',
apiKey: '2ebc7881b79986f58dc2f424769bf3fc',
transformItems: function(hits) {
var domain = window.location.origin + "/";
hits.forEach(function(hit) {
if (! hit.url.startsWith(domain)) {
hit.url = hit.url.replace(/^https?:\/\/[^\/]+\//, domain);
}
});
return hits;
}
});
</script>
<script src="/assets/js/sass.js"></script>
<!-- Current page: {{ page.url }} -->
</body>
</html>

6
source/index.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Test Title
layout: base
---
🚧 👷 🚧