sass-site/source/_layouts/base.liquid

137 lines
4.8 KiB
Plaintext
Raw Normal View History

2023-01-06 21:35:17 +01:00
<!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" />
2023-01-24 23:51:07 +01:00
<title>Sass: {{ title | default: 'Syntactically Awesome Style Sheets' }}</title>
2023-01-06 21:35:17 +01:00
<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
2023-01-06 22:40:29 +01:00
href="/assets/dist/css/sass.css"
2023-01-06 21:35:17 +01:00
media="screen"
rel="stylesheet" />
<noscript>
<link
2023-01-06 22:40:29 +01:00
href="/assets/dist/css/noscript.css"
2023-01-06 21:35:17 +01:00
media="screen"
rel="stylesheet" />
</noscript>
2023-01-06 22:40:29 +01:00
2023-01-24 23:51:07 +01:00
<!-- Google Analytics (https://developers.google.com/analytics/devguides/collection/gtagjs). -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-535380-14"></script>
2023-01-06 22:40:29 +01:00
<script>
2023-01-24 23:51:07 +01:00
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
2023-01-06 22:40:29 +01:00
2023-01-24 23:51:07 +01:00
gtag('config', 'UA-535380-14');
2023-01-06 22:40:29 +01:00
</script>
2023-01-06 21:35:17 +01:00
</head>
<body data-layout="body">
2023-01-24 23:51:07 +01:00
<!--[if lt IE 9]>
<p class="browserupgrade">
You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.
</p>
<![endif]-->
{% typogr %}{% render 'header', alerts: alerts %}{% endtypogr %}
2023-01-24 23:51:07 +01:00
<main class="content" id="main-content" itemprop="mainContentOfPage" role="main">
{% unless page | isTypedoc %}
<h1 class="sl-l-container">
{%- if h1 -%}
{{ h1 | typogr }}
{%- elsif title -%}
{{ title | typogr }}
{%- endif -%}
</h1>
{% endunless %}
<div class="sl-l-container sl-background--white{% unless is_home %} sl-l-section{% endunless %}">
{{ content | typogr }}
2023-01-24 23:51:07 +01:00
</div>
<div class="sl-c-alert">
<div class="sl-l-container sl-c-list-horizontal-wrapper" aria-labelledby="release-nav">
<ul class="sl-l-grid--justify-center">
<li id="release-nav">Current Releases:</li>
2023-02-02 16:44:29 +01:00
<li><span class="release-name"><a href="/dart-sass">Dart Sass</a> <a href="{{ releases['dart-sass'].url }}">{{ releases['dart-sass'].version }}</a></span></li>
<li><span class="release-name"><a href="/libsass">LibSass</a> <a href="{{ releases['libsass'].url }}">{{ releases['libsass'].version }}</a></span></li>
2023-01-24 23:51:07 +01:00
<li><span class="release-name"><a href="/ruby-sass">Ruby Sass</a> <span aria-label="coffin" role="presentation">⚰</span></span></li>
<li class="sl-l-grid__column sl-l-large-grid__column--auto-size"><a href="/implementation">Implementation Guide</a></li>
</ul>
</div>
</div>
{% if section_bottom %}
<section class="sl-background--white sl-l-container">
<ul class="sl-l-grid sl-l-grid--full sl-l-medium-grid--gutters-large sl-l-medium-grid--divide-by-2 sl-l-large-grid--divide-by-3 sl-l-section">
{% for item in section_bottom %}
<li class="sl-l-grid__column">
<h2>{{ item.header | typogr }}</h2>
2023-02-01 23:42:31 +01:00
{{ item.body | markdown | typogr }}
2023-01-24 23:51:07 +01:00
</li>
{% endfor %}
</ul>
</section>
{% endif %}
</main>
2023-01-06 21:35:17 +01:00
{% typogr %}{% render 'footer' %}{% endtypogr %}
2023-01-06 21:35:17 +01:00
<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>
!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>
2023-01-06 23:35:10 +01:00
<script src="/assets/dist/js/sass.js"></script>
2023-01-06 21:35:17 +01:00
<!-- Current page: {{ page.url }} -->
</body>
</html>