Skip to content

Commit

Permalink
Merge branch 'master' of github.com:daviddarnes/alembic
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddarnes committed Mar 14, 2019
2 parents 15836b6 + f6cb8cf commit af1a874
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ There are a number of optional settings for you to configure. Use the example [`

### Site settings

You'll need to change the `description`, `title` and `url` to match with the project. You'll also need to replace the `/assets/logo.svg` and `/assets/default-social-image.png` with the project logo and default social image. 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.
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'`

Expand Down
16 changes: 12 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# 5. Collections
# 6. Jekyll collections settings
# 7. Site settings
# 8. Site navigation
# 8. Site favicons & manifest icons
# 9. Site navigation

# 1. Files excluded from Jekyll builds
exclude:
Expand Down Expand Up @@ -83,19 +84,26 @@ defaults:
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/logo.svg" # Site logo, 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
avatarurl: "https://www.gravatar.com/avatar/6c0377abcf4da91cdd35dea4554b2a4c" # Uses avatars for favicons to get multple sites, eg Gravatar, Twitter, GitHub
# google_analytics: ''
# service_worker: false # Will turn off the service worker if set to false
css_inline: true # Will insert all styles into a single <style> block in the <head> element and remove the style <link> reference

# 8. Site navigation
# 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]'
512: '/assets/logos/[email protected]'
1024: '/assets/logos/[email protected]'

# 9. Site navigation
navigation_header:
Home: /
Elements: /elements/
Expand Down
10 changes: 6 additions & 4 deletions _includes/site-favicons.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<link rel="icon" type="image/png" href="{{ site.avatarurl }}?s=16" sizes="16x16">
<link rel="icon" type="image/png" href="{{ site.avatarurl }}?s=32" sizes="32x32">
<link rel="icon" type="image/png" href="{{ site.avatarurl }}?s=96" sizes="96x96">
<link rel="shortcut icon" href="{{ site.avatarurl }}">
{% if site.favicons %}
{% for icon in site.favicons %}
<link rel="icon" type="image/png" href="{{ icon[1] }}" sizes="{{ icon[0] }}x{{ icon[0] }}">
{% endfor %}
{% endif %}
<link rel="shortcut icon" href="{{ site.avatarurl + '?s=32' | default: site.logo }}">
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<link rel="stylesheet" href="{{ "/assets/styles.css" | relative_url }}">
{% endif %}

{% if site.avatarurl %}{% include site-favicons.html %}{% endif %}
{% if site.favicons or site.avatarurl %}{% include site-favicons.html %}{% endif %}

{% if site.google_analytics %}{% include site-analytics.html %}{% endif %}

Expand Down
Empty file modified _sass/_flex.scss
100755 → 100644
Empty file.
Empty file modified _sass/_sassline-base.scss
100755 → 100644
Empty file.
Empty file modified _sass/sassline-base/_mixins.scss
100755 → 100644
Empty file.
Empty file modified _sass/sassline-base/_modular-scale.scss
100755 → 100644
Empty file.
Empty file modified _sass/sassline-base/_reset.scss
100755 → 100644
Empty file.
Empty file modified _sass/sassline-base/_typography.scss
100755 → 100644
Empty file.
Empty file modified _sass/sassline-base/_variables.scss
100755 → 100644
Empty file.
File renamed without changes
Binary file added assets/logos/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logos/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logos/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logos/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logos/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 10 additions & 6 deletions assets/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ layout: none
"short_name": "{{ site.title | replace: ' ', '' }}",
"theme_color": "{{ site.manifest.theme_color | default: '#24292e' }}",
"background_color": "{{ site.manifest.background_color | default: '#ffffff' }}",
"icons": [
{
"src": "{{ site.logo }}",
"sizes": "512x512"
}
],
{% if site.favicons %}
"icons": [
{% for icon in site.favicons %}
{
"src": "{{ icon[1] }}",
"sizes": "{{ icon[0] }}x{{ icon[0] }}"
}{% if forloop.last != true %},{% endif %}
{% endfor %}
],
{%- endif -%}
"start_url": "/",
"display": "standalone"
}

0 comments on commit af1a874

Please sign in to comment.