mirror of
https://github.com/danog/sass-site.git
synced 2025-01-22 13:51:46 +01:00
Basic 11ty layout/include.
This commit is contained in:
parent
5071228ace
commit
7e2f28ad2e
@ -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
1
.gitignore
vendored
@ -19,6 +19,7 @@ Thumbs.db
|
||||
/.yardoc
|
||||
/vendor/bundle/
|
||||
/source/documentation/js-api
|
||||
/_site/
|
||||
|
||||
# NPM/Yarn
|
||||
node_modules/
|
||||
|
@ -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": {
|
||||
|
49
source/_includes/footer.liquid
Normal file
49
source/_includes/footer.liquid
Normal 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 © 2006–{{ '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 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>
|
63
source/_layouts/base.liquid
Normal file
63
source/_layouts/base.liquid
Normal 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
6
source/index.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Test Title
|
||||
layout: base
|
||||
---
|
||||
|
||||
🚧 👷 🚧
|
Loading…
x
Reference in New Issue
Block a user