Adding Skeleventy-based site sources.
This commit is contained in:
parent
ac7f2e6002
commit
28a89401ff
79 changed files with 2183 additions and 0 deletions
11
sources/site/includes/components/footer.njk
Normal file
11
sources/site/includes/components/footer.njk
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
<footer id="footer" class="footer bg-white">
|
||||
|
||||
<div class="footer-inner inner box-flex pt-600 pb-600">
|
||||
|
||||
<p class="color-primary text-400"><a href="https://bashelton.com/">bashelton.com</a>; revised November 2022</p>
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
10
sources/site/includes/components/header.njk
Normal file
10
sources/site/includes/components/header.njk
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
<header id="header" class="header bg-grey">
|
||||
|
||||
<div class="header-inner inner pt-600 pb-600 mobileL:box-flex">
|
||||
{% include "components/logo.njk" %}
|
||||
{% include "components/nav.njk" %}
|
||||
</div>
|
||||
|
||||
</header>
|
||||
|
||||
1
sources/site/includes/components/logo.njk
Normal file
1
sources/site/includes/components/logo.njk
Normal file
|
|
@ -0,0 +1 @@
|
|||
<a class="logo box-block color-white weight-bold" href="{{ '/' | url }}" title="Sunday School Notes for "Just Us"">"Just Us" Class Notes</a>
|
||||
32
sources/site/includes/components/mobile-nav.njk
Normal file
32
sources/site/includes/components/mobile-nav.njk
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<nav id="mobile-nav" class="mobile-nav width-full height-screen box-flex bg-primary pl-700 pr-700 pt-800 z-20 mobileXL:box-hidden" aria-label="Mobile">
|
||||
|
||||
{% set navigation = collections.all | eleventyNavigation %}
|
||||
|
||||
<ul class="width-full">
|
||||
|
||||
{%- for item in navigation %}
|
||||
|
||||
<li class="item">
|
||||
|
||||
<a href="{{ item.url | url }}" class="link box-block color-white text-600 {{ 'active' if item.url === page.url }}" {{ 'aria-current=page' if item.url === page.url }}>{{ item.title }}</a>
|
||||
|
||||
</li>
|
||||
|
||||
{%- endfor %}
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
|
||||
<button id="mobile-nav-toggle" class="mobile-nav-toggle box-flex width-full bg-secondary z-20 mobileXL:box-hidden" aria-label="Mobile Navigation Toggle" aria-expanded="false" aria-controls="mobile-nav">
|
||||
|
||||
<span class="mobile-nav-label text-400">Menu</span>
|
||||
|
||||
<span class="mobile-nav-icon box-flex ml-300" aria-hidden="true">
|
||||
<span class="icon-line box-block bg-primary"></span>
|
||||
<span class="icon-line box-block bg-primary"></span>
|
||||
<span class="icon-line box-block bg-primary"></span>
|
||||
</span>
|
||||
|
||||
</button>
|
||||
|
||||
22
sources/site/includes/components/nav.njk
Normal file
22
sources/site/includes/components/nav.njk
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
<nav id="nav" class="nav box-hidden mobileXL:box-block" aria-label="Primary">
|
||||
|
||||
{% set navigation = collections.all | eleventyNavigation %}
|
||||
|
||||
<ul class="menu mobileXL:box-flex">
|
||||
|
||||
{%- for item in navigation %}
|
||||
|
||||
<li class="item">
|
||||
|
||||
<a href="{{ item.url | url }}" class="link box-block color-white text-400 weight-bold pl-300 pr-300 {{ 'active' if item.url === page.url }}" {{ 'aria-current=page' if item.url === page.url }}>{{ item.title }}</a>
|
||||
|
||||
</li>
|
||||
|
||||
{%- endfor %}
|
||||
|
||||
<!--<li class="item"><a href="https://bashelton.com" class="link box-block color-white text-400 pl-300">bashelton.com</a></li>-->
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
23
sources/site/includes/components/social-icons.njk
Normal file
23
sources/site/includes/components/social-icons.njk
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
<ul class="social-icons box-flex">
|
||||
|
||||
{% for icon, link in site.social_links %}
|
||||
|
||||
<li class="ml-400">
|
||||
|
||||
<a href="{{ link | safe }}" class="icon-link box-block color-primary" target="_blank" rel="noreferrer noopener">
|
||||
|
||||
<span class="sr-only">Find me on {{ icon }}</span>
|
||||
|
||||
<svg class="icon box-block" fill="currentColor" aria-hidden="true">
|
||||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/images/icons/icon-library.svg#icon-{{ icon }}"></use>
|
||||
</svg>
|
||||
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</ul>
|
||||
|
||||
17
sources/site/includes/components/social-meta.njk
Normal file
17
sources/site/includes/components/social-meta.njk
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
{# Twitter #}
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{{ meta_title if meta_title else title }} | {{ site.name }}">
|
||||
<meta name="twitter:description" content="{{ meta_description | truncate(140) if meta_description else content | striptags | truncate(140) }}">
|
||||
<meta name="twitter:site" content="{{ site.author.handle }}">
|
||||
<meta name="twitter:creator" content="{{ site.author.handle }}">
|
||||
<meta name="twitter:image:src" content="{{ site.url }}{{ site.images.twitter }}">
|
||||
|
||||
{# Open Graph #}
|
||||
<meta name="og:title" content="{{ meta_title if meta_title else title }} | {{ site.name }}">
|
||||
<meta name="og:description" content="{{ meta_description | truncate(140) if meta_description else content | striptags | truncate(140) }}">
|
||||
<meta name="og:image" content="{{ site.url }}{{ site.images.og }}">
|
||||
<meta name="og:url" content="{{ site.url }}{{ page.url }}">
|
||||
<meta name="og:site_name" content="{{ site.name }}">
|
||||
<meta name="og:locale" content="en_GB">
|
||||
<meta name="og:type" content="website">
|
||||
Loading…
Reference in a new issue