-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
84 changed files
with
4,473 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
_site/ | ||
.sass-cache/ | ||
.jekyll-cache/ | ||
.jekyll-metadata | ||
alembic-jekyll-theme-*.gem | ||
Gemfile.lock | ||
**/Gemfile.lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: "404" | ||
excerpt: "Page Not Found" | ||
permalink: 404.html | ||
indexing: false | ||
sitemap: false | ||
--- | ||
|
||
Sorry, but the page could not be found. | ||
|
||
Are you looking for: | ||
|
||
{% include nav-default.html %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alembic.darn.es |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source "https://rubygems.org" | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
# Site configuration | ||
# 1. Files excluded from Jekyll builds | ||
# 2. Installed Gems | ||
# 3. Gem settings | ||
# 4. Jekyll settings | ||
# 5. Collections | ||
# 6. Jekyll collections settings | ||
# 7. Site settings | ||
# 8. Site favicons & manifest icons | ||
# 9. Site navigation | ||
|
||
# 1. Files excluded from Jekyll builds | ||
exclude: | ||
- README.md | ||
- CODE_OF_CONDUCT.md | ||
- CONTRIBUTING.md | ||
- screenshot.png | ||
- LICENSE | ||
- CNAME | ||
- Gemfile | ||
- Gemfile.lock | ||
- alembic-jekyll-theme.gemspec | ||
- .jekyll-cache | ||
|
||
# 2. Installed Gems | ||
plugins: | ||
- jekyll-sitemap | ||
- jekyll-mentions | ||
- jekyll-paginate | ||
- jekyll-seo-tag | ||
- jekyll-redirect-from | ||
- jekyll-feed | ||
- jekyll-commonmark | ||
- jekyll-include-cache | ||
- jemoji | ||
|
||
# 3. Gem settings | ||
paginate: 2 # jekyll-paginate > items per page | ||
paginate_path: blog/page:num # jekyll-paginate > blog page | ||
jekyll-mentions: https://twitter.com # jekyll-mentions > service used when @replying | ||
twitter: | ||
username: DavidDarnes # jekyll-seo-tag > Owners twitter username | ||
author: DavidDarnes # jekyll-seo-tag > default author | ||
social: # jekyll-seo-tag > social overrides | ||
name: David Darnes # jekyll-seo-tag > real name | ||
links: # jekyll-seo-tag > social aliases (sameAs) | ||
- https://twitter.com/DavidDarnes | ||
- https://www.facebook.com/daviddarnes | ||
- https://www.linkedin.com/in/daviddarnes | ||
- https://github.com/daviddarnes | ||
# markdown: CommonMark # Markdown parse settings, CommonMark performs slightly better an others in build time | ||
# commonmark: | ||
# options: ["SMART", "FOOTNOTES"] | ||
# extensions: ["strikethrough", "autolink", "table"] | ||
|
||
# 4. Jekyll settings | ||
sass: | ||
style: compressed # Style compression | ||
permalink: pretty # Permalink style (/YYYY/MM/DD/page-name/) | ||
excerpt_separator: <!-- more --> # Marks end of excerpt in posts | ||
timezone: Europe/London # Timezone for blog posts and alike | ||
|
||
# 5. Collections | ||
collections: | ||
posts: | ||
title: Posts # Needed for Siteleaf | ||
output: true | ||
description: "My thoughts and ideas" # The post list page content | ||
feature_text: | | ||
Welcome to the blog | ||
feature_image: "https://picsum.photos/2560/600?image=866" | ||
|
||
# 6. Jekyll collections settings | ||
defaults: | ||
- | ||
scope: | ||
path: "" | ||
values: | ||
image: "/assets/default-social-image.png" # Default image for sharing | ||
- | ||
scope: | ||
path: "" | ||
type: "posts" | ||
values: | ||
layout: post # Set the default layout for posts | ||
- | ||
scope: | ||
path: "" | ||
type: "pages" | ||
values: | ||
layout: page # Set the default layout for pages | ||
|
||
# 7. Site settings | ||
encoding: utf-8 # Make sure the encoding is right | ||
lang: en-GB # Set the site language | ||
title: "Alembic" # Site name or title, also used in jekyll-seo-tag | ||
logo: "/assets/logos/logo.svg" # Site logo, also used in jekyll-seo-tag | ||
description: "Alembic is a starting point for Jekyll projects. Rather than starting from scratch, this boilerplate is designed to get the ball rolling immediately" # Site description and default description, also used in jekyll-seo-tag | ||
url: "https://alembic.darn.es" # Site url, also used in jekyll-seo-tag | ||
baseurl: "" | ||
repo: "https://github.com/daviddarnes/alembic" | ||
email: "[email protected]" | ||
# disqus: "alembic-1" # Blog post comments, uncomment the option and set the site ID from your Disqus account | ||
# date_format: "%-d %B %Y" # Blog post date formatting using placeholder formatting | ||
# google_analytics: "" | ||
# google_analytics_anonymize_ip: "" | ||
# service_worker: false # Will turn off the service worker if set to false | ||
# short_name: "Al" # The web application short name, defaults to the site title | ||
css_inline: true # Will insert all styles into a single <style> block in the <head> element and remove the style <link> reference | ||
|
||
# 8. Site favicons & manifest icons | ||
favicons: # Favicons are also used in the manifest file. Syntax is 'size: path' | ||
16: '/assets/logos/[email protected]' | ||
32: '/assets/logos/[email protected]' | ||
96: '/assets/logos/[email protected]' | ||
120: '/assets/logos/[email protected]' | ||
144: '/assets/logos/[email protected]' | ||
180: '/assets/logos/[email protected]' | ||
512: '/assets/logos/[email protected]' | ||
1024: '/assets/logos/[email protected]' | ||
|
||
# 9. Site navigation | ||
navigation_header: | ||
- title: Home | ||
url: / | ||
- title: Elements | ||
url: /elements/ | ||
- title: Blog | ||
url: /blog/ | ||
- title: Categories | ||
url: /categories/ | ||
- title: Search | ||
url: /search/ | ||
- title: Fork Alembic | ||
url: https://github.com/daviddarnes/alembic | ||
|
||
navigation_footer: | ||
- title: Created by David Darnes | ||
url: https://darn.es | ||
|
||
social_links: # Appears in sidebar. Set the urls then uncomment and comment out as desired | ||
Twitter: https://twitter.com/DavidDarnes | ||
LinkedIn: https://www.linkedin.com/in/daviddarnes | ||
GitHub: https://github.com/daviddarnes | ||
link: https://darn.es | ||
RSS: /feed.xml | ||
|
||
sharing_links: # Appear at the bottom of single blog posts, add as desired. The value can be 'true' or the desired button colour | ||
Twitter: "#0d94e7" | ||
facebook: "#3B5998" | ||
Email: true | ||
|
||
# Load custom fonts from fonts.google.com etc | ||
# | ||
# TIP: Try to keep the number of urls as low to reduce the performance cost | ||
# If multiple fonts can be requested in a single url opt for this | ||
fonts: | ||
preconnect_urls: | ||
- https://fonts.gstatic.com | ||
font_urls: | ||
- https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<a class="button" href="{{ include.link | default: '#' }}"{% if include.color %} style="background: {{ include.color }}"{% endif %}>{{ include.text | default: "Button" }}{% if include.icon %} {% include icon.html id=include.icon title=include.icon %}{% endif %}</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<figure class="figure figure--{{ include.position | default: 'center' }}"> | ||
<img class="image" src="{{ include.image }}" alt="{{ include.alt | default: include.caption }}" {{ include.width ? include.width | prepend: 'width="' | append: '"' }} {{ include.height ? include.height | prepend: 'height="' | append: '"' }}> | ||
{% if include.caption %}<figcaption class="caption">{{ include.caption }}</figcaption>{% endif %} | ||
</figure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<svg width="{{ include.width | default: "16" }}" height="{{ include.height | default: "16" }}" class="icon icon--{{ include.id | default: "link" }}" role="img" alt="{{ include.title | default: include.id }}"><title>{{ include.title | default: include.id }}</title><use xlink:href="#{{ include.id | default: "link" }}" fill="{{ include.color | default: 'CurrentColor' }}"></use></svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="map"><iframe src="https://www.google.com/maps/d/u/0/embed?mid={{ include.id }}" title="{{ include.title | default: 'Map' }}"></iframe></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<nav class="nav nav--categories"> | ||
<ul class="list list--categories"> | ||
{% for item in site.categories %} | ||
<li class="item item--category"> | ||
<a href="#{{ item | first | slugify }}">{{ item | first }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<nav class="nav"> | ||
<ul class="list list--nav"> | ||
{% for item in site.html_pages %} | ||
{% unless item.title == false or item.url contains "/page" or item.url contains "/404.html" %} | ||
<li class="item item--nav{% if item.url == page.url %} item--current{% endif %}"> | ||
|
||
{% if item.url contains '://' %} | ||
{% assign url = item.url %} | ||
{% else %} | ||
{% assign url = item.url | relative_url %} | ||
{% endif %} | ||
|
||
{% if item.collectionpage %} | ||
{% assign collectiondata = site.collections | where: "label", item.collectionpage | first %} | ||
<a href="{{ url }}">{{ collectiondata.title }}</a> | ||
{% else %} | ||
<a href="{{ url }}">{{ item.title }}</a> | ||
{% endif %} | ||
</li> | ||
{% endunless %} | ||
{% endfor %} | ||
</ul> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% if site.navigation_footer %} | ||
<nav class="nav nav--footer"> | ||
<ul class="list list--nav"> | ||
{% for item in site.navigation_footer %} | ||
|
||
{% if item.url contains '://' %} | ||
{% assign url = item.url %} | ||
{% else %} | ||
{% assign url = item.url | relative_url %} | ||
{% endif %} | ||
|
||
<li class="item item--nav{% if item.url == page.url %} item--current{% endif %}"> | ||
<a href="{{ url }}">{{ item.title }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</nav> | ||
{% else %} | ||
{% include nav-default.html %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{% if site.navigation_header %} | ||
<nav class="nav nav--header"> | ||
<ul class="list list--nav"> | ||
{% for item in site.navigation_header %} | ||
|
||
{% if item.url contains '://' %} | ||
{% assign url = item.url %} | ||
{% else %} | ||
{% assign url = item.url | relative_url %} | ||
{% endif %} | ||
|
||
<li class="item item--nav{% if item.url == page.url %} item--current{% endif %}"> | ||
<a href="{{ url }}">{{ item.title }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<button class="button button--nav" aria-label="Menu toggle"> | ||
{% include icon.html id="nav" title="Menu" %} | ||
</button> | ||
</nav> | ||
{% else %} | ||
{% include nav-default.html %} | ||
{% endif %} | ||
|
||
<script type="text/javascript"> | ||
// Get list and button | ||
const navList = document.querySelector('.header .list--nav') | ||
const button = document.querySelector('.header .button--nav') | ||
|
||
// Hide nav and apply toggle | ||
const collapseNav = () => { | ||
if (document.body.clientWidth < 640) { | ||
navList.style.setProperty('--listHeight', `-${navList.offsetHeight}px`) | ||
} else { | ||
navList.removeAttribute('style') | ||
} | ||
|
||
button.onclick = () => { | ||
navList.style.setProperty('transition', `margin .1s`) | ||
if (navList.style.getPropertyValue('--listHeight')) { | ||
navList.style.removeProperty('--listHeight') | ||
} else { | ||
navList.style.setProperty('--listHeight', `-${navList.offsetHeight}px`) | ||
} | ||
} | ||
} | ||
|
||
collapseNav() | ||
|
||
// Check on resize if to collapse nav | ||
window.addEventListener('resize', () => { | ||
collapseNav() | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<div class="share"> | ||
{% for network in site.sharing_links %} | ||
{% if network[1] != blank %} | ||
{% assign name = network[0] %} | ||
{% assign id = network[0] | downcase | remove: " " %} | ||
{% assign url = site.url | append: site.baseurl | append: page.url %} | ||
{% assign color = network[1] %} | ||
|
||
{% capture share_link %} | ||
{%- if id contains "twitter" %}https://twitter.com/intent/tweet/?url={{ url }}&text={{ page.title | uri_escape }}{% if site.twitter.username %}&via={{ site.twitter.username }}{% endif %}{% endif -%} | ||
{%- if id contains "facebook" %}https://facebook.com/sharer/sharer.php?u={{ url }}{% endif -%} | ||
{%- if id contains "pinterest" %}https://pinterest.com/pin/create/button/?url={{ url }}&description={{ page.title }}&media={{ page.image }}{% endif -%} | ||
{%- if id contains "linkedin" %}https://www.linkedin.com/shareArticle?url={{ url }}&title={{ page.title }}&source={{ site.title }}&mini=true{% endif -%} | ||
{%- if id contains "tumblr" %}https://tumblr.com/widgets/share/tool?canonicalUrl={{ url }}&tags={{ page.category }}&caption={{ page.title }}{% endif -%} | ||
{%- if id contains "reddit" %}https://reddit.com/submit?url={{ url }}&title={{ page.title }}&resubmit=true{% endif -%} | ||
{%- if id contains "hackernews" %}https://news.ycombinator.com/submitlink?u={{ url }}&t={{ page.title }}{% endif -%} | ||
{%- if id contains "designernews" %}https://www.designernews.co/submit?url={{ url }}&title={{ page.title }}{% endif -%} | ||
{%- if id contains "email" %}mailto:?subject={{ page.title }}&body={{ url | prepend: "Hey, check out this: "}}{% endif -%} | ||
{% endcapture %} | ||
|
||
{% include button.html text=name icon=id link=share_link color=color %} | ||
{% endif %} | ||
{% endfor %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<nav class="nav nav--social"> | ||
{% for link in site.social_links %} | ||
{% if link[1] != blank %} | ||
{% assign id = link[0] | downcase %} | ||
<a href="{{ link[1] }}"> | ||
{% include icon.html id=id title=id %} | ||
</a> | ||
{% endif %} | ||
{% endfor %} | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% for category in site.categories %} | ||
{% assign category_name = category | first %} | ||
<section class="section typeset"> | ||
<h2 id="{{ category_name | slugify }}">{{ category_name }}</h2> | ||
<ul class="list list--posts"> | ||
{% for page in site.categories[category_name] %} | ||
{% assign has_categories = true %} | ||
<li class="item item--post"> | ||
<article class="article article--post typeset"> | ||
<h3><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a></h3> | ||
{% include post-meta.html %} | ||
{{ page.excerpt | truncatewords: 60 | markdownify }} | ||
</article> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% unless forloop.last %}<hr/>{% endunless %} | ||
</section> | ||
{% endfor %} | ||
|
||
{% if has_categories != true %} | ||
<section class="section typeset"> | ||
<p>There are no categorised posts</p> | ||
</section> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% if site.disqus and page.comments != false %} | ||
<div id="disqus_thread"></div> | ||
<script> | ||
var disqus_config = function () { | ||
this.page.url = "{{ site.url }}{{ site.baseurl }}{{ page.url }}"; | ||
this.page.identifier = "{{ site.baseurl }}{{ page.url }}"; | ||
}; | ||
|
||
(function() { | ||
var d = document, s = d.createElement('script'); | ||
s.src = '//{{ site.disqus }}.disqus.com/embed.js'; | ||
s.setAttribute('data-timestamp', +new Date()); | ||
(d.head || d.body).appendChild(s); | ||
})(); | ||
</script> | ||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> | ||
{% endif %} |
Oops, something went wrong.