Change theme

master
Marvin Johanning 2022-07-13 16:41:02 +02:00
parent aa9dfa7e1f
commit ecddd4e029
225 changed files with 10515 additions and 6426 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -1,7 +0,0 @@
---
layout: page
title: "404"
permalink: /404
---
<p>There doesn't appear to be anything here. Sorry about that.</p>
<p>If you've followed a link expecting something to be here, you can <a href="mailto:{{ site.email }}?subject=Page%20not%20found">contact me</a>.</p>

13
404.md Normal file
View File

@ -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 %}

1
CNAME Normal file
View File

@ -0,0 +1 @@
alembic.darn.es

13
Gemfile
View File

@ -1,10 +1,5 @@
source 'http://rubygems.org'
source "https://rubygems.org"
gem 'github-pages'
gem 'rouge'
gem 'jekyll'
gem 'jekyll-mentions'
gem 'jekyll-feed'
gem 'jekyll-sitemap'
gem 'jekyll-gist'
gem 'webrick'
gemspec
gem "webrick", "~> 1.7"

View File

@ -1,223 +1,85 @@
GEM
remote: http://rubygems.org/
PATH
remote: .
specs:
activesupport (6.0.4.6)
alembic-jekyll-theme (4.1.0)
jekyll (~> 4.1)
jekyll-commonmark (~> 1.3.1)
jekyll-feed (~> 0.15)
jekyll-include-cache (~> 0.2)
jekyll-mentions (~> 1.6.0)
jekyll-paginate (~> 1.1.0)
jekyll-redirect-from (~> 0.16)
jekyll-seo-tag (~> 2.7.1)
jekyll-sitemap (~> 1.4.0)
jemoji (~> 0.12)
GEM
remote: https://rubygems.org/
specs:
activesupport (7.0.3.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.11.1)
colorator (1.1.0)
commonmarker (0.17.13)
ruby-enum (~> 0.5)
concurrent-ruby (1.1.9)
dnsruby (1.61.9)
simpleidn (~> 0.1)
commonmarker (0.23.5)
concurrent-ruby (1.1.10)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
ethon (0.15.0)
ffi (>= 1.15.0)
eventmachine (1.2.7)
execjs (2.8.1)
faraday (1.10.0)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.3)
multipart-post (>= 1.2, < 3)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
ffi (1.15.5)
forwardable-extended (2.6.0)
gemoji (3.0.1)
github-pages (223)
github-pages-health-check (= 1.17.9)
jekyll (= 3.9.0)
jekyll-avatar (= 0.7.0)
jekyll-coffeescript (= 1.1.1)
jekyll-commonmark-ghpages (= 0.1.6)
jekyll-default-layout (= 0.1.4)
jekyll-feed (= 0.15.1)
jekyll-gist (= 1.5.0)
jekyll-github-metadata (= 2.13.0)
jekyll-include-cache (= 0.2.1)
jekyll-mentions (= 1.6.0)
jekyll-optional-front-matter (= 0.3.2)
jekyll-paginate (= 1.1.0)
jekyll-readme-index (= 0.3.0)
jekyll-redirect-from (= 0.16.0)
jekyll-relative-links (= 0.6.1)
jekyll-remote-theme (= 0.4.3)
jekyll-sass-converter (= 1.5.2)
jekyll-seo-tag (= 2.7.1)
jekyll-sitemap (= 1.4.0)
jekyll-swiss (= 1.0.0)
jekyll-theme-architect (= 0.2.0)
jekyll-theme-cayman (= 0.2.0)
jekyll-theme-dinky (= 0.2.0)
jekyll-theme-hacker (= 0.2.0)
jekyll-theme-leap-day (= 0.2.0)
jekyll-theme-merlot (= 0.2.0)
jekyll-theme-midnight (= 0.2.0)
jekyll-theme-minimal (= 0.2.0)
jekyll-theme-modernist (= 0.2.0)
jekyll-theme-primer (= 0.6.0)
jekyll-theme-slate (= 0.2.0)
jekyll-theme-tactile (= 0.2.0)
jekyll-theme-time-machine (= 0.2.0)
jekyll-titles-from-headings (= 0.5.3)
jemoji (= 0.12.0)
kramdown (= 2.3.1)
kramdown-parser-gfm (= 1.1.0)
liquid (= 4.0.3)
mercenary (~> 0.3)
minima (= 2.5.1)
nokogiri (>= 1.12.5, < 2.0)
rouge (= 3.26.0)
terminal-table (~> 1.4)
github-pages-health-check (1.17.9)
addressable (~> 2.3)
dnsruby (~> 1.60)
octokit (~> 4.0)
public_suffix (>= 3.0, < 5.0)
typhoeus (~> 1.3)
html-pipeline (2.14.0)
html-pipeline (2.14.2)
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.8.0)
i18n (0.9.5)
i18n (1.11.0)
concurrent-ruby (~> 1.0)
jekyll (3.9.0)
jekyll (4.2.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (>= 1.17, < 3)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.3.3)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
rouge (~> 3.0)
safe_yaml (~> 1.0)
jekyll-avatar (0.7.0)
jekyll (>= 3.0, < 5.0)
jekyll-coffeescript (1.1.1)
coffee-script (~> 2.2)
coffee-script-source (~> 1.11.1)
terminal-table (~> 2.0)
jekyll-commonmark (1.3.1)
commonmarker (~> 0.14)
jekyll (>= 3.7, < 5.0)
jekyll-commonmark-ghpages (0.1.6)
commonmarker (~> 0.17.6)
jekyll-commonmark (~> 1.2)
rouge (>= 2.0, < 4.0)
jekyll-default-layout (0.1.4)
jekyll (~> 3.0)
jekyll-feed (0.15.1)
jekyll-feed (0.16.0)
jekyll (>= 3.7, < 5.0)
jekyll-gist (1.5.0)
octokit (~> 4.2)
jekyll-github-metadata (2.13.0)
jekyll (>= 3.4, < 5.0)
octokit (~> 4.0, != 4.4.0)
jekyll-include-cache (0.2.1)
jekyll (>= 3.7, < 5.0)
jekyll-mentions (1.6.0)
html-pipeline (~> 2.3)
jekyll (>= 3.7, < 5.0)
jekyll-optional-front-matter (0.3.2)
jekyll (>= 3.0, < 5.0)
jekyll-paginate (1.1.0)
jekyll-readme-index (0.3.0)
jekyll (>= 3.0, < 5.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-relative-links (0.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-remote-theme (0.4.3)
addressable (~> 2.0)
jekyll (>= 3.5, < 5.0)
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
rubyzip (>= 1.3.0, < 3.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0)
jekyll-seo-tag (2.7.1)
jekyll (>= 3.8, < 5.0)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-swiss (1.0.0)
jekyll-theme-architect (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-cayman (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-dinky (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-hacker (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-leap-day (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-merlot (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-midnight (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-minimal (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-modernist (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-primer (0.6.0)
jekyll (> 3.5, < 5.0)
jekyll-github-metadata (~> 2.9)
jekyll-seo-tag (~> 2.0)
jekyll-theme-slate (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-tactile (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-time-machine (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-titles-from-headings (0.5.3)
jekyll (>= 3.3, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
jemoji (0.12.0)
gemoji (~> 3.0)
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
kramdown (2.3.1)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
@ -225,68 +87,35 @@ GEM
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.15.0)
multipart-post (2.1.1)
nokogiri (1.13.1-arm64-darwin)
mercenary (0.4.0)
minitest (5.16.2)
nokogiri (1.13.7-arm64-darwin)
racc (~> 1.4)
octokit (4.22.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
public_suffix (4.0.7)
racc (1.6.0)
rb-fsevent (0.11.1)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.26.0)
ruby-enum (0.9.0)
i18n
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
rouge (3.29.0)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sawyer (0.8.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
simpleidn (0.2.1)
unf (~> 0.1.4)
terminal-table (1.8.0)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (1.2.9)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.8)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
unicode-display_width (1.8.0)
webrick (1.7.0)
zeitwerk (2.5.4)
PLATFORMS
arm64-darwin-21
DEPENDENCIES
github-pages
jekyll
jekyll-feed
jekyll-gist
jekyll-mentions
jekyll-sitemap
rouge
webrick
alembic-jekyll-theme!
webrick (~> 1.7)
BUNDLED WITH
2.2.32

View File

@ -1,6 +1,6 @@
The MIT License (MIT)
MIT License
Copyright (c) 2016 Taylan Tatlı
Copyright (c) 2017 David Darnes
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

292
README.md
View File

@ -1,20 +1,286 @@
# Ramme Jekyll Theme
######(If you like this theme or using it, please give a :star: for motivation.)
# [Alembic](https://alembic.darn.es/)
[![Gem Version](https://badge.fury.io/rb/alembic-jekyll-theme.svg)](https://badge.fury.io/rb/alembic-jekyll-theme)
**[Ramme](http://taylantatli.github.io/Ramme)** is a simple jekyll theme.
⚗ A Jekyll boilerplate theme designed to be a starting point for any Jekyll website.
I made this theme after seeing this [screenshot](http://spoonm.org/share/rice/01.png). I took some parts from @mmistakes, like TOC, sample posts. I never tought making a theme from scratch would be this hard. And it's still WIP.
I'm not a designer or something, so I'm sure there is a better way to make this theme. But it's working and looks acceptable for different screen sizes. If something looks extremely ugly and you can't resist to fix it, just send me a PR. I will be grateful.
![Screenshot](https://raw.githubusercontent.com/daviddarnes/alembic/master/screenshot.png)
## Preview
[<img src="https://cdn.buymeacoffee.com/buttons/default-yellow.png" width="217"/>](https://buymeacoffee.com/daviddarnes#support)
![screenshot of Ramme](/assets/img/screenshot-home.png)
![screenshot of Ramme](/assets/img/screenshot-post.png)
## Contents
- [About](#about)
- [Features](#features)
- [Examples](#examples)
- [Installation](#installation)
- [Customising](#customising)
- [Configuration](#configuration)
- [Gem dependency settings](#gem-dependency-settings)
- [Site settings](#site-settings)
- [Site performance settings](#site-performance-settings)
- [Site navigation](#site-navigation)
- [Custom fonts](#custom-fonts)
- [Using includes](#using-includes)
- [Page layouts](#page-layouts)
- [Page and Post options](#page-and-post-options)
- [Credits](#credits)
See a [live version of Ramme](http://taylantatli.github.io/Ramme) hosted on GitHub.
## About
## Getting Started
**Alembic is a starting point for [Jekyll](https://jekyllrb.com/) projects. Rather than starting from scratch, this boilerplate theme is designed to get rolling immediately. Install it, configure it, tweak it, push it.**
To learn how to install and use this theme check out the [Setup Guide](http://taylantatli.me/Ramme/ramme-theme/) for more information.
## Features
- Available as a **theme gem** and **GitHub Pages** theme
- Clear and elegant design that can be used out of the box or as solid starting point
- Tested in all major browsers, including **IE and Edge**
- Built in **Service Worker** so it can work offline and on slow connections
- **Configurable colours** and typography in a single settings file
- Extensive set of **shortcodes** to include various elements; such as buttons, icons, figure images and more
- Solid **typographic framework** from [Sassline](https://sassline.com/)
- Configurable navigation via a single file
- Modular Jekyll components
- Post category support in the form of a single post index page grouped by category
- Built in live search using JavaScript
- **Contact form** built in using [Formspree](https://formspree.io/) or [Netlify Forms](https://www.netlify.com/features/#forms)
- Designed with **[Siteleaf](http://www.siteleaf.com/)** in mind
- Has 9 of the most popular networks as performant sharing buttons
- Has documentation
## Examples
Here are a few examples of Alembic out in the wild being used in a variety of ways:
- [billmei.net](https://billmei.net/)
- [bawejakunal.github.io](https://bawejakunal.github.io/)
- [case2111.github.io](https://case2111.github.io/)
- [karateca.org](https://www.karateca.org/)
## Installation
### Quick setup
To give you a running start I've put together some starter kits that you can download, fork or even deploy immediately:
- Vanilla Jekyll starter kit:
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/daviddarnes/alembic-kit)
- Forestry starter kit:
[![Deploy to Forestry](https://assets.forestry.io/import-to-forestry.svg)](https://app.forestry.io/quick-start?repo=daviddarnes/alembic-forestry-kit&engine=jekyll)
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/daviddarnes/alembic-forestry-kit)
- Netlify CMS starter kit:
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/daviddarnes/alembic-netlifycms-kit&stack=cms)
- GitHub Pages with remote theme kit - **[Download kit](https://github.com/daviddarnes/alembic-kit/archive/remote-theme.zip)**
- Stackbit starter kit:
[![Create with Stackbit](https://assets.stackbit.com/badge/create-with-stackbit.svg)](https://app.stackbit.com/create?theme=https://github.com/daviddarnes/alembic-stackbit-kit)
### As a Jekyll theme
1. Add `gem "alembic-jekyll-theme"` to your `Gemfile` to add the theme as a dependancy
2. Run the command `bundle install` in the root of project to install the theme and its dependancies
3. Add `theme: alembic-jekyll-theme` to your `_config.yml` file to set the site theme
4. Run `bundle exec jekyll serve` to build and serve your site
5. Done! Use the [configuration](#configuration) documentation and the example [`_config.yml`](https://github.com/daviddarnes/alembic/blob/master/_config.yml) file to set things like the navigation, contact form and social sharing buttons
### As a GitHub Pages remote theme
1. Add `gem "jekyll-remote-theme"` to your `Gemfile` to add the theme as a dependancy
2. Run the command `bundle install` in the root of project to install the jekyll remote theme gem as a dependancy
3. Add `jekyll-remote-theme` to the list of `plugins` in your `_config.yml` file
4. Add `remote_theme: daviddarnes/alembic@main` to your `_config.yml` file to set the site theme
5. Run `bundle exec jekyll serve` to build and serve your site
6. Done! Use the [configuration](#configuration) documentation and the example [`_config.yml`](https://github.com/daviddarnes/alembic/blob/master/_config.yml) file to set things like the navigation, contact form and social sharing buttons
### As a Boilerplate / Fork
_(deprecated, not recommended)_
1. [Fork the repo](https://github.com/daviddarnes/alembic#fork-destination-box)
2. Replace the `Gemfile` with one stating all the gems used in your project
3. Delete the following unnecessary files/folders: `.github`, `LICENSE`, `screenshot.png`, `CNAME` and `alembic-jekyll-theme.gemspec`
4. Run the command `bundle install` in the root of project to install the jekyll remote theme gem as a dependancy
5. Run `bundle exec jekyll serve` to build and serve your site
6. Done! Use the [configuration](#configuration) documentation and the example [`_config.yml`](https://github.com/daviddarnes/alembic/blob/master/_config.yml) file to set things like the navigation, contact form and social sharing buttons
## Customising
When using Alembic as a theme means you can take advantage of the file overriding method. This allows you to overwrite any file in this theme with your own custom file, by matching the file name and path. The most common example of this would be if you want to add your own styles or change the core style settings.
To add your own styles copy the [`styles.scss`](https://github.com/daviddarnes/alembic/blob/master/assets/styles.scss) into your own project with the same file path (`assets/styles.scss`). From there you can add your own styles, you can even optionally ignore the theme styles by removing the `@import "alembic";` line.
If you're looking to set your own colours and fonts you can overwrite them by matching the variable names from the [`_settings.scss`](https://github.com/daviddarnes/alembic/blob/master/_sass/_settings.scss) file in your own `styles.scss`, make sure to state them before the `@import "alembic";` line so they take effect. The settings are a mixture of custom variables and settings from [Sassline](https://medium.com/@jakegiltsoff/sassline-v2-0-e424b2881e7e) - follow the link to find out how to configure the typographic settings.
## Configuration
There are a number of optional settings for you to configure. Use the example [`_config.yml`](https://github.com/daviddarnes/alembic/blob/master/_config.yml) file in the repo and use the documentation below to configure your site:
### Gem dependency settings
`twitter`, `author` and `social` values will need to be changed to the projects' social information or removed. Look for the `Gem settings` comment within the `/_config.yml` file. These values are for the [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag) - follow the link to find out more.
### Site settings
You'll need to change the `description`, `title` and `url` to match with the project. You'll also need to replace the logos, default social and default offline images in the `/assets/` directory with your own graphics. Setting the site language can be done with `lang`, the theme will default to `en-US`. The `email` needs to be changed to the email you want to receive contact form enquires with. The `disqus` value can be changed to your project username on [Disqus](https://disqus.com), remove this from the `/_config.yml` file if you don't want comments enabled. Look for the `Site settings` comment within the `/_config.yml` file. The `repo` setting is optional, for now, and can be removed entirely, if you wish.
Google Analytics can be enabled via the site configuration too. Add your tracking ID to the `/_config.yml` file in the following method: `google_analytics: 'UA-XXXXXXXX-1'`. By default all IPs of site visitors are anonymous to maintain a level of privacy for the audience. If you wish to turn this off set the `google_analytics_anonymize_ip` key to `false`.
Date format can be customised in the `/_config.yml` with the option `date_format` (please refer to Liquid date filters documentation for learning about formatting possibilities). Only placeholder formatting is supported, do not try to use ordinal dates introduced in Jekyll 3.8.
The `short_name` option within `/_config.yml` is to add a custom name to the site's web application counterpart. When the website is added to a device this name will appear alonside the app icon. The short name will default to the site title if this isn't set.
### Site performance settings
Alembic comes with a couple of options to enhance the speed and overall performance of the site you build upon it.
By default the built in Service Worker is enabled, and will work on a 'network first' method. Meaning if there's no internet connection the content the Service Worker has cached will be used until the connection comes back. It will always look for a live version of the code first. To disable the Service Worker add an option called `service_worker` with a value of `false` in the `/_config.yml` file.
Another option to speed up Alembic is to enable inline CSS, which is off by default. You can enable this by setting `css_inline: true` inside your `/_config.yml` file. By switching to inline styles you bypass the use `/assets/styles.scss`, any custom styles will need to be added in `/_includes/site-styles.html` or in a new custom file.
Please note that these options aren't a "silver bullet" for making your site faster, make sure to audit and debug your site to get the best performance for your situation.
### Site navigation
There are a total of 4 different navigation types:
- `navigation_header`: The links shown in the header (it is also used on the 404 page)
- `navigation_footer`: The links shown in the footer
- `social_links`: The social icon links that are shown in the sidebar
- `sharing_links`: The social sharing buttons that are shown at the bottom of blog posts
All navigations can be edited using the `_config.yml` file. To see example usage either look for the `Site navigation` comment within the `/_config.yml` file or see [the nav-share.html include](#nav-sharehtml).
If there are no items for the `navigation_header` or `navigation_footer`, they will fallback to a list of pages within the site. The `social_navigation` properties should either be one that is already in the list (so `Twitter` or `Facebook`) or a regular `link`, this is so an icon can be set for the link.
### Custom fonts
Alembic comes with custom fonts served from Google fonts. By default it requests Merriweather but this can be any font from any provider assuming it supports requesting fonts in the same manner and does not require javascript.
This can be configured under the `custom_fonts` key.
- `urls`: The urls supplied to you from your font provider (eg https://fonts.googleapis.com/css2?family=Merriweather). For best performance try to use as few urls as possible
- `preconnect`: (optional) If your font provider serves the font files from another domain it can be useful to make a connection to that domain in advance. For example google load the font files from fonts.gstatic.com. This can be omitted if not required
If you want to customise this further you can find the include for custom fonts in `_includes/site-custom-fonts.html`.
## Using includes
There are 2 main types of includes: ones designed for the site and ones that are designed as shortcodes. Here are a list of the shortcode includes:
### `button.html`
A button that can link to a page of any kind.
Example usage: `{% include button.html text="I'm a button" link="https://david.darn.es" %}`
Available options:
- `text`: The text of the button _required_
- `link`: The link that the button goes to _required_
- `icon`: The icon that is added to the end of the button text
- `color`: The colour of the button
### `figure.html`
An image with optional caption.
Example usage: `{% include figure.html image="/uploads/feature-image.jpg" caption="Check out my photo" %}`
Available options:
- `image`: The image shown _required_
- `caption`: A caption to explain the image
- `position`: The position of the image; `left`, `right` or `center`
- `width` & `height`: Optional width and height attributes of the containing image
### `icon.html`
An icon.
Example usage: `{% include icon.html id="twitter" %}`
Available options:
- `id`: The reference for the icon _required_
- `title`: The accessible label for the icon
- `color`: The desired colour of the icon
- `width` & `height`: Width and height attributes for the icon, default is `16`
### `nav-share.html`
A set of buttons that share the current page to various social networks, which is controlled within the `_config.yml` file under the `sharing_links` keyword.
Example usage: `{% include nav-share.html %}`
Available options:
``` yml
Twitter: "#1DA1F2"
facebook: "#3B5998"
Pinterest: "#BD081C"
LinkedIn: "#0077B5"
tumblr: "#36465D"
Reddit: "#FF4500"
HackerNews: "#ff6600"
DesignerNews: "#2D72D9"
Email: true
```
_The first item is the name of the network (must be one of the ones stated above) and the second is the colour of the button. To remove a button remove the line of the same name._
### `video.html`
A YouTube video.
Example usage: `{% include video.html id="zrkcGL5H3MU" %}`
Available options:
- `id`: The YouTube ID for the video _required_
### `map.html`
A Google map. _See Google [My Maps](https://www.google.com/mymaps)_
Example usage: `{% include map.html id="1UT-2Z-Vg_MG_TrS5X2p8SthsJhc" %}`
Available options:
- `id`: The map ID for the video _required_
### `site-form.html`
Adds a contact form to the page. This can be used with [Formspree](https://formspree.io/) or [Netlify Forms](https://www.netlify.com/docs/form-handling/) depending on your setup.
Example usage: `{% include site-form.html %}`
Available options:
- `netlify_form=true`: Set whether you would like to use Netlify Forms, otherwise the form will default to Formspree
- `name`: Give the form a name, by default the form is called "Contact". The name will be reflected when form submissions come through in Netlify or in your email client. The name is also used in the label and input elements for accessibility
Use the `email` option in the `/_config.yml` to change to the desired email.
### `site-search.html`
Adds a search form to the page.
Example usage: `{% include site-search.html %}`
This include has no options. This include will add a block of javascript to the page and javascript reference in order for the search field to work correctly.
### `site-before-start.html` & `site-before-end.html`
Optional html includes for adding scripts, css, js or any embed code you wish to add to every page without the need to overwrite the entire `default.html` template.
**Example usage:** These are different to other includes as they are designed to be overwritten. If you create a `site-before-start.html` file in the `_includes/` the contents of the file will be included immediately before the closing `</head>` tag. If you create a `site-before-end.html` file the contents of the file will be included immediately before the closing `</body>` tag.
## Page layouts
As well as `page`, `post`, `blog`, there are a few alternative layouts that can be used on pages:
- `categories`: Shows all posts grouped by category, with an index of categories in a left hand sidebar
- `search`: Adds a search field to the page as well as a simplified version of the sidebar to allow more focus on the search results
## Page and Post options
There are some more specific options you can apply when creating a page or a post:
- `aside: true`: Adds a sidebar to the page or post, this is false by default and will not appear
- `comments: false`: Turns off comments for that post
- `feature_image: "/uploads/feature-image.jpg"`: Adds a full width feature image at the top of the page
- `feature_text: "Example text"`: Adds text to the top of the page as a full width feature with solid colour; supports markdown. This can be used in conjunction with the `feature_image` option to create a feature image with text over it
- `indexing: false`: Adds a `noindex` meta element to the `<head>` to stop crawler bots from indexing the page, used on the 404 page
> **Note:** The Post List Page options are actually in the collection data within the `_config.yml` file.
## Credits
- Thanks to [Simple Icons](https://simpleicons.org/) for providing the brand icons, by [Dan Leech](https://twitter.com/bathtype)
- Thanks to [Sassline](https://sassline.com/) for the typographic basis, by [Jake Giltsoff](https://twitter.com/jakegiltsoff)
- Thanks to [Flexbox mixin](https://github.com/mastastealth/sass-flex-mixin) by [Brian Franco](https://twitter.com/brianfranco)
- Thanks to [Normalize](https://necolas.github.io/normalize.css/) by [Nicolas Gallagher](https://twitter.com/necolas) and [Jonathan Neal](https://twitter.com/jon_neal).
- Thanks to [pygments-css](http://richleland.github.io/pygments-css/) for the autumn syntax highlighting, by [Rich Leland](https://twitter.com/richleland)

View File

@ -1,69 +1,152 @@
# Site
title: Marvin Johanning
bio: 'Welcome to my website'
description: "Marvin Johannings personal website"
picture: 'assets/img/portrait.jpeg'
locale: en_UK
url: https://marvinjohanning.de
# 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
# Jekyll
permalink: /:title/
markdown: kramdown
highlighter: rouge
kramdown:
auto_ids: true
footnote_nr: 1
entity_output: as_char
toc_levels: 1..6
enable_coderay: false
# 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: Marvinjohanning # jekyll-seo-tag > Owners twitter username
author: MarvinJohanning # 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/MarvinJohanning
- https://YouTube.com/c/MarvinJohanning
# 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:
sass_dir: _sass
style: compressed
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
# Social
# if you don't have any of social below, comment the line.
email: email@marvinjohanning.de
#twitter: username
#facebook: username
#google:
#plus: #username
#analytics:
#verify:
#ad-client:
#ad-slot:
#bing-verify:
github: mjohanning99
#stackoverflow: #123456/username from a "http://stackoverflow.com/users/123456/username" link
#linkedin: username
#xing: username
#instagram: username
#lastfm: username
#tumblr: username
#pinterest: username
#foursquare: username
#steam: username
#dribbble: username
#youtube: username
#soundcloud: username
#weibo: username
#flickr: username
#codepen: username
# 5. Collections
collections:
posts:
title: Posts # Needed for Siteleaf
output: true
description: "My thoughts and ideas" # The post list page content
feature_image: "/assets/images/books.jpg"
# Paginate
# if you don't need pagination, comment the *paginate* configs below
# paginate: 5
# paginate_path: "blog/:num/"
# 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
# Gems
gems:
- jekyll-mentions
- jekyll-feed
- jekyll-sitemap
- jekyll-gist
- jekyll-paginate
# 7. Site settings
encoding: utf-8 # Make sure the encoding is right
lang: en-GB # Set the site language
title: "MarvinJohanning.de" # Site name or title, also used in jekyll-seo-tag
logo: "/assets/logos/logo.png" # 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: "info@marvinjohanning.de"
# 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
jekyll-mentions:
base_url: https://github.com
# 8. Site favicons & manifest icons
favicons: # Favicons are also used in the manifest file. Syntax is 'size: path'
16: '/assets/logos/logo@16px.png'
32: '/assets/logos/logo@32px.png'
96: '/assets/logos/logo@96px.png'
120: '/assets/logos/logo@120px.png'
144: '/assets/logos/logo@144px.png'
180: '/assets/logos/logo@180px.png'
512: '/assets/logos/logo@512px.png'
1024: '/assets/logos/logo@1024px.png'
# Exclude list
exclude: [README.md, Gemfile, Gemfile.lock, node_modules, gulpfile.js, package.json, _site, src, vendor, CNAME, LICENSE, Rakefile]
# 9. Site navigation
navigation_header:
- title: Home
url: /
- title: About
url: /about/
- title: Blog
url: /blog/
- title: Birding
url: /birding/
- title: Books
url: /categories/#Books
navigation_footer:
- title: Marvin Johanning
url: https://marvinjohanning.de
social_links: # Appears in sidebar. Set the urls then uncomment and comment out as desired
Twitter: https://twitter.com/MarvinJohanning
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

View File

@ -1,16 +0,0 @@
# Site navigation links
- title: 🏠Home
url: /
- title: 📚Books
url: /books/
- title: 🪐Projects
url: /projects/
- title: 🌾About
url: /about/
- title: 💻Blog
url: /blog/

1
_includes/button.html Normal file
View File

@ -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 %}&nbsp; {% include icon.html id=include.icon title=include.icon %}{% endif %}</a>

View File

@ -1,6 +0,0 @@
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="{{ site.url }}/assets/img/favicon/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ site.url }}/assets/img/favicon/apple-touch-icon-114x114.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ site.url }}/assets/img/favicon/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.url }}/assets/img/favicon/apple-touch-icon-144x144.png" />
<link rel="icon" type="image/png" href="{{ site.url }}/assets/img/favicon/favicon.png" />
<link rel="shortcut icon" href="{{ site.url }}/assets/img/favicon/favicon.ico" />

4
_includes/figure.html Normal file
View File

@ -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>

View File

@ -1,3 +0,0 @@
<footer class="home-footer">
{{ site.title }} © {{ site.time | date: '%Y' }} <a href="{{ site.url }}/feed.xml" target="_blank"><i class="fa fa-fw fa-feed"></i></a>
</footer>

View File

@ -1,3 +0,0 @@
<div class="footer">
{{ site.title }} © {{ site.time | date: '%Y' }} <a href="{{ site.url }}/feed.xml" target="_blank"><i class="fa fa-fw fa-feed"></i></a>
</div>

View File

@ -1,30 +0,0 @@
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>{{ site.title }}</title>
<meta name="description" content="{{ site.description }}">
<meta name="keywords" content="{{ page.tags | join: ', ' }}">
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
{% include open-graph.html %}
{% if site.google.verify %}
<!-- Webmaster Tools verfication -->
<meta name="google-site-verification" content="{{ site.google.verify }}">{% endif %}
{% if site.bing-verify %}<meta name="msvalidate.01" content="{{ site.bing-verify }}">{% endif %}
<!-- Handheld -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Favicons -->
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="{{ site.url }}/assets/img/favicon/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ site.url }}/assets/img/favicon/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ site.url }}/assets/img/favicon/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.url }}/assets/img/favicon/apple-touch-icon-144x144.png">
<link rel="icon" type="image/png" href="{{ site.url }}/assets/img/favicon/favicon.png">
<link rel="shortcut icon" href="{{ site.url }}/assets/img/favicon/favicon.ico">
<!-- Feed -->
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ site.url }}{{ "/feed.xml" }}" />
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="{{ site.url }}/assets/css/main.css">
</head>

View File

@ -1,30 +0,0 @@
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }} &#8211; {% endif %}{{ site.title }}</title>
{% if page.excerpt %}<meta name="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% else %}<meta name="description" content="{{ site.description }}">{% endif %}
<meta name="keywords" content="{{ page.tags | join: ', ' }}">
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
{% include open-graph.html %}
{% if site.google.verify %}
<!-- Webmaster Tools verfication -->
<meta name="google-site-verification" content="{{ site.google.verify }}">{% endif %}
{% if site.bing-verify %}<meta name="msvalidate.01" content="{{ site.bing-verify }}">{% endif %}
<!-- Handheld -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Favicons -->
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="{{ site.url }}/assets/img/favicon/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ site.url }}/assets/img/favicon/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ site.url }}/assets/img/favicon/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.url }}/assets/img/favicon/apple-touch-icon-144x144.png">
<link rel="icon" type="image/png" href="{{ site.url }}/assets/img/favicon/favicon.png">
<link rel="shortcut icon" href="{{ site.url }}/assets/img/favicon/favicon.ico">
<!-- Feed -->
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ site.url }}{{ "/feed.xml" }}" />
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="{{ site.url }}/assets/css/main.css">
</head>

1
_includes/icon.html Normal file
View File

@ -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>

After

Width:  |  Height:  |  Size: 385 B

1
_includes/map.html Normal file
View File

@ -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>

View File

@ -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>

View File

@ -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>

20
_includes/nav-footer.html Normal file
View File

@ -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 %}

54
_includes/nav-header.html Normal file
View File

@ -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>

View File

@ -1,12 +0,0 @@
<nav class="nav-home">
<ul class="list">
{% for link in site.data.navigation %}
{% if link.url contains 'http' %}
{% assign domain = '' %}
{% else %}
{% assign domain = site.url %}
{% endif %}
<li class="item"><a class="link" href="{{ domain }}{{ link.url }}" {% if link.url contains 'http' %}target="_blank"{% endif %}>{{ link.title }}</a></li>
{% endfor %}
</ul>
</nav>

24
_includes/nav-share.html Normal file
View File

@ -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>

10
_includes/nav-social.html Normal file
View File

@ -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>

View File

@ -1,12 +0,0 @@
<nav class="nav">
<ul class="list">
{% for link in site.data.navigation %}
{% if link.url contains 'http' %}
{% assign domain = '' %}
{% else %}
{% assign domain = site.url %}
{% endif %}
<li class="item"><a class="link" href="{{ domain }}{{ link.url }}" {% if link.url contains 'http' %}target="_blank"{% endif %}>{{ link.title }}</a></li>
{% endfor %}
</ul>
</nav>

View File

@ -1,15 +0,0 @@
<!-- Twitter Cards -->
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
{% if page.excerpt %}<meta name="twitter:description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
{% if site.twitter %}<meta name="twitter:site" content="@{{ site.twitter }}">
<meta name="twitter:creator" content="@{{ site.twitter }}">{% endif %}
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="{{ site.url }}/{{ site.picture }}">
<!-- Open Graph -->
<meta property="og:locale" content="{{ site.locale }}">
<meta property="og:type" content="article">
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
{% if page.excerpt %}<meta property="og:description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.url }}">
<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:image" content="{{ site.url }}/{{ site.picture }}">

View File

@ -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 %}

View File

@ -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 %}

34
_includes/post-list.html Normal file
View File

@ -0,0 +1,34 @@
{% if paginator.posts %}
<section class="section typeset">
<ul class="list list--posts">
{% for page in paginator.posts %}
<li class="item item--post">
<article class="article article--post">
<h2><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a></h2>
{% include post-meta.html %}
{{ page.excerpt | markdownify | truncatewords: 60 }}
</article>
</li>
{% endfor %}
</ul>
{% include post-pagination.html %}
</section>
{% else %}
<section class="section typeset">
<ul class="list list--posts">
{% for page in site.posts %}
<li class="item item--post">
<article class="article article--post">
<h2><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a></h2>
{% include post-meta.html %}
{{ page.excerpt | markdownify | truncatewords: 60 }}
</article>
</li>
{% endfor %}
</ul>
</section>
{% endif %}

16
_includes/post-meta.html Normal file
View File

@ -0,0 +1,16 @@
{% if page.categories %}
{% capture categories %}
{% for category in page.categories %}
<span class="label label--category"><a href="{{ site.baseurl }}/categories/#{{ category | downcase | slugify }}">{{ category }}</a></span>{% if forloop.last == false %},{% endif %}
{% endfor %}
{% endcapture %}
{% elsif page.category %}
{% capture categories %}
<span class="label label--category"><a href="{{ site.baseurl }}/categories/#{{ page.category | downcase | slugify }}">{{ page.category }}</a></span>
{% endcapture %}
{% endif %}
<small class="small post-meta">
{% assign date_format = site.date_format | default: "%d %b %Y" %}
{{ categories | append: "&nbsp;&middot;&nbsp;" }}<time datetime="{{ page.date | date_to_xmlschema }}" class="time">{{ page.date | date: date_format }}</time>
</small>

View File

@ -0,0 +1,17 @@
<nav class="nav nav--paginator">
{% if paginator.previous_page %}
<a href="{{ site.baseurl }}{{ paginator.previous_page_path }}" class="pagination pagination--previous">&larr; Newer</a>
{% else %}
<span class="pagination pagination--previous">&larr; Newer</span>
{% endif %}
<span class="pagination pagination--counter">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ site.baseurl }}{{ paginator.next_page_path }}" class="pagination pagination--next">Older &rarr;</a>
{% else %}
<span class="pagination pagination--next">Older &rarr;</span>
{% endif %}
</nav>

View File

@ -0,0 +1,19 @@
<h3>Related posts</h3>
<ul class="list list--posts">
{% for page in site.related_posts limit: 3 %}
{% assign has_related = true %}
<li class="item item--post">
<article class="article article--post typeset">
<h4><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a></h4>
{% include post-meta.html %}
{{ page.excerpt | markdownify | truncatewords: 20 }}
</article>
</li>
{% endfor %}
{% if has_related != true %}
<p>There are no related posts</p>
{% endif %}
</ul>

View File

@ -1,31 +0,0 @@
<script src="{{ site.url }}/assets/js/jquery-1.12.2.min.js"></script>
<script src="{{ site.url }}/assets/js/jquery.goup.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.goup({
trigger: 500,
bottomOffset: 10,
locationOffset: 20,
containerRadius: 0,
containerColor: '#fff',
arrowColor: '#000',
goupSpeed: 'normal'
});
});
</script>
{% if site.google.analytics %}
<!-- Asynchronous Google Analytics snippet -->
<script>
var _gaq = _gaq || [];
var pluginUrl =
'//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', '{{ site.google.analytics }}']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
{% endif %}

View File

@ -0,0 +1,12 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ site.google_analytics }}');
gtag('config', '{{ site.google_analytics }}', {
'anonymize_ip': {{ site.google_analytics_anonymize_ip | default: "true" }}
});
</script>

View File

@ -0,0 +1,30 @@
<aside class="aside typeset aside--{{ include.align | default: 'right' }}">
{% if page.layout == "post" %}
<section class="section section--related-posts">
{% include post-related.html %}
</section>
{% elsif page.layout == "about^" %}
<section class="section section--description">
<h3>About this site</h3>
<p>{{ site.description }}</p>
{% include nav-social.html %}
</section>
{% elsif page.layout == "page" or page.layout == "home" or page.layout == "blog" %}
<section class="section section--description">
<h3>About this site</h3>
<p>{{ site.description }}</p>
{% include nav-social.html %}
</section>
{% elsif page.layout == "categories" %}
<section class="section section--category-index">
<h3>Index</h3>
{% include nav-categories.html %}
</section>
{% endif %}
</aside>

35
_includes/site-aside.html Normal file
View File

@ -0,0 +1,35 @@
<aside class="aside typeset aside--{{ include.align | default: 'right' }}">
{% if page.layout == "post" %}
<section class="section section--related-posts">
{% include post-related.html %}
</section>
{% elsif page.layout == "about" %}
<section class="section section--description">
<h3>About Me</h3>
<img src="/assets/images/me.jpg">
</section>
{% elsif page.layout == "birding" %}
<section class="section section--description">
<h3>Birds!</h3>
<img src="/assets/images/birding_collage.jpg">
</section>
{% elsif page.layout == "page" or page.layout == "home" or page.layout == "blog" %}
<section class="section section--description">
<h3>About this site</h3>
<p>{{ site.description }}</p>
{% include nav-social.html %}
</section>
{% elsif page.layout == "categories" %}
<section class="section section--category-index">
<h3>Index</h3>
{% include nav-categories.html %}
</section>
{% endif %}
</aside>

View File

@ -0,0 +1 @@
<!-- Overwrite this file with code you want before the closing body tag -->

View File

@ -0,0 +1 @@
<!-- Overwrite this file with code you want before the closing head tag -->

View File

@ -0,0 +1,7 @@
{% if site.favicons %}
{% for icon in site.favicons %}
<link rel="icon" type="image/png" href="{{ icon[1] | relative_url }}" sizes="{{ icon[0] }}x{{ icon[0] }}">
<link rel="apple-touch-icon" sizes="{{ icon[0] }}x{{ icon[0] }}" href="{{ icon[1] | relative_url }}">
{% endfor %}
{% endif %}
<link rel="shortcut icon" href="{{ site.avatarurl + '?s=32' | default: site.logo | relative_url }}">

15