Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

This repository contains the source code for the LTB project website. The site is hosted using GitHub Pages at `curent.github.io` and redirects to `ltb.curent.org` (see the `CNAME` file for details). The website is built using the Minimal Mistakes Jekyll theme.
This repository contains the source code for the LTB project website. The site is hosted using GitHub Pages at `ltb.curent.org`; the legacy `curent.github.io` address redirects there (see the `CNAME` file for details). The website is built using the Minimal Mistakes Jekyll theme.

## Changes We've Made Based on the Original Template

Expand Down
13 changes: 7 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ title_separator : "-"
subtitle : Large-scale Testbed # site tagline that appears below site title in masthead
name : "LTB"
description : ""
url : "https://curent.github.io" # the base hostname & protocol for your site e.g. "https://mmistakes.github.io"
url : "https://ltb.curent.org" # the canonical hostname and protocol for the site
baseurl : "" # the subpath of your site, e.g. "/blog"
repository : "CURENT/curent.github.io" # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes"
teaser : # path of fallback teaser image, e.g. "/assets/images/500x300.png"
Expand Down Expand Up @@ -105,7 +105,7 @@ social:

# Analytics
analytics:
provider : google # false (default), "google", "google-universal", "google-gtag", "custom"
provider : google-gtag # false (default), "google", "google-universal", "google-gtag", "custom"
google:
tracking_id : G-5R91XH96PB
anonymize_ip : # true, false (default)
Expand Down Expand Up @@ -238,8 +238,8 @@ timezone: # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones


# Pagination with jekyll-paginate
paginate: 5 # amount of posts to show
paginate_path: /page:num/
# The site uses the `showcase` collection rather than blog posts, so the
# inherited post pagination setting is intentionally disabled.

# Pagination with jekyll-paginate-v2
# See https://github.com/sverrirs/jekyll-paginate-v2/blob/master/README-GENERATOR.md#site-configuration
Expand Down Expand Up @@ -333,12 +333,13 @@ defaults:
# showcase
- scope:
path: ""
type: pets
type: showcase
values:
layout: single
author_profile: false
share: true
comment: true
comments: true
related: true

# Collections
collections:
Expand Down
1 change: 1 addition & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<meta charset="utf-8">

{% include seo.html %}
{% include analytics.html %}

{% unless site.atom_feed.hide %}
<link href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | relative_url }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
Expand Down
1 change: 0 additions & 1 deletion _includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
{%- endcase -%}
{% endif %}

{% include analytics.html %}
{% include /comments-providers/scripts.html %}

{% if site.after_footer_scripts %}
Expand Down
19 changes: 11 additions & 8 deletions _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,16 @@ <h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4
{% endif %}
</article>

{% comment %}<!-- only show related on a post page when `related: true` -->{% endcomment %}
{% if page.id and page.related and site.related_posts.size > 0 %}
{% include page__related.html posts=site.related_posts %}
{% comment %}<!-- otherwise show recent posts if no related when `related: true` -->{% endcomment %}
{% elsif page.id and page.related %}
{% include page__related.html posts=site.posts %}
{% comment %}<!-- show related content when `related: true` -->{% endcomment %}
{% if page.id and page.related %}
{% assign related_posts = site.related_posts %}
{% if related_posts.size == 0 and page.collection %}
{% assign related_posts = site[page.collection] %}
{% endif %}
{% if related_posts.size > 0 %}
{% include page__related.html posts=related_posts %}
{% elsif site.posts.size > 0 %}
{% include page__related.html posts=site.posts %}
{% endif %}
{% endif %}
</div>

{% include scripts.html %}
2 changes: 0 additions & 2 deletions _layouts/splash.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,3 @@
</section>
</article>
</div>

{% include scripts.html %}
Loading