Skip to content

Commit 23c999f

Browse files
committed
Normalize formatting and Liquid fixes
Reflow social link tags for readability, escape _config.yml in docs, replace nil checks with null in layouts, and apply whitespace/SCSS cleanup plus a minor quote change for project date formatting
1 parent 014c9c2 commit 23c999f

10 files changed

Lines changed: 35 additions & 16 deletions

File tree

CUSTOMIZE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Here we will give you some tips on how to customize the website. One important t
6262
- [How it works](#how-it-works)
6363
- [Configuration](#configuration-1)
6464
- [Disable related posts for a specific post](#disable-related-posts-for-a-specific-post)
65-
- [Additional configuration in _config.yml](#additional-configuration-in-_configyml)
65+
- [Additional configuration in \_config.yml](#additional-configuration-in-_configyml)
6666
- [Managing publication display](#managing-publication-display)
6767
- [Adding a Google Calendar](#adding-a-google-calendar)
6868
- [Basic usage](#basic-usage)

_includes/header.liquid

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,32 @@
2727
<a href="mailto:{{ site.data.socials.email | encode_email }}" title="email"><i class="fa-solid fa-envelope"></i></a>
2828
{% endif %}
2929
{% if site.data.socials.github_username %}
30-
<a href="https://github.com/{{ site.data.socials.github_username }}" title="GitHub" rel="external nofollow noopener" target="_blank"><i class="fa-brands fa-github"></i></a>
30+
<a href="https://github.com/{{ site.data.socials.github_username }}" title="GitHub" rel="external nofollow noopener" target="_blank"
31+
><i class="fa-brands fa-github"></i
32+
></a>
3133
{% endif %}
3234
{% if site.data.socials.scholar_userid %}
33-
<a href="https://scholar.google.com/citations?user={{ site.data.socials.scholar_userid }}" title="Google Scholar" rel="external nofollow noopener" target="_blank"><i class="ai ai-google-scholar"></i></a>
35+
<a
36+
href="https://scholar.google.com/citations?user={{ site.data.socials.scholar_userid }}"
37+
title="Google Scholar"
38+
rel="external nofollow noopener"
39+
target="_blank"
40+
><i class="ai ai-google-scholar"></i
41+
></a>
3442
{% endif %}
3543
{% if site.data.socials.linkedin_username %}
36-
<a href="https://www.linkedin.com/in/{{ site.data.socials.linkedin_username }}" title="LinkedIn" rel="external nofollow noopener" target="_blank"><i class="fa-brands fa-linkedin"></i></a>
44+
<a
45+
href="https://www.linkedin.com/in/{{ site.data.socials.linkedin_username }}"
46+
title="LinkedIn"
47+
rel="external nofollow noopener"
48+
target="_blank"
49+
><i class="fa-brands fa-linkedin"></i
50+
></a>
3751
{% endif %}
3852
{% if site.data.socials.x_username %}
39-
<a href="https://twitter.com/{{ site.data.socials.x_username }}" title="X" rel="external nofollow noopener" target="_blank"><i class="fa-brands fa-x-twitter"></i></a>
53+
<a href="https://twitter.com/{{ site.data.socials.x_username }}" title="X" rel="external nofollow noopener" target="_blank"
54+
><i class="fa-brands fa-x-twitter"></i
55+
></a>
4056
{% endif %}
4157
</div>
4258
{% endif %}

_includes/projects.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<a href="{% if project.redirect %}{{ project.redirect }}{% else %}{{ project.url | relative_url }}{% endif %}">
1616
<strong>{{ project.title }}</strong>
1717
</a>
18-
{% if project.date %} ({{ project.date | date: "%Y" }}){% endif %}
18+
{% if project.date %} ({{ project.date | date: '%Y' }}){% endif %}
1919
{% if project.description %} — {{ project.description }}{% endif %}
2020
{% if project.github %}
2121
[<a href="{{ project.github }}">code</a>]

_layouts/about.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ layout: default
4242

4343
<!-- Latest posts -->
4444
{% if site.latest_posts.enabled %}
45-
<br>
45+
<br>
4646
<h2>
4747
<a href="{{ '/blog/' | relative_url }}" style="color: inherit">latest posts</a>
4848
</h2>
@@ -51,7 +51,7 @@ layout: default
5151

5252
<!-- Selected papers -->
5353
{% if page.selected_papers %}
54-
<br>
54+
<br>
5555
<h2>
5656
<a href="{{ '/publications/' | relative_url }}" style="color: inherit">selected publications</a>
5757
</h2>

_layouts/page.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ layout: default
1515
</header>
1616

1717
<article>
18-
{% if page.toc and page.toc.beginning and page.toc.sidebar == nil %}
18+
{% if page.toc and page.toc.beginning and page.toc.sidebar == null %}
1919
<div id="table-of-contents">
2020
{% toc %}
2121
</div>

_layouts/post.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ layout: default
6262
</header>
6363

6464
<article class="post-content">
65-
{% if page.toc and page.toc.beginning and page.toc.sidebar == nil %}
65+
{% if page.toc and page.toc.beginning and page.toc.sidebar == null %}
6666
<div id="table-of-contents">
6767
{% toc %}
6868
</div>

_pages/blog.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ pagination:
8888
</p>
8989
</li>
9090
{% endfor %}
91+
9192
</ul>
9293

93-
{% if page.pagination.enabled %}
94-
{% include pagination.liquid %}
95-
{% endif %}
94+
{% if page.pagination.enabled %}
95+
{% include pagination.liquid %}
96+
{% endif %}
97+
9698
</div>

_pages/projects.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ display_categories: [work, fun]
2626

2727
{% else %}
2828
{% assign sorted_projects = site.projects | sort: "importance" %}
29+
2930
<ul>
3031
{% for project in sorted_projects %}
3132
{% include projects.liquid %}

_sass/_blog.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
margin-bottom: 2rem;
77
border-bottom: 1px solid var(--global-divider-color);
88
padding-bottom: 1rem;
9-
9+
1010
.post-title {
1111
font-size: 2rem;
1212
margin-bottom: 0.5rem;
1313
color: var(--global-text-color);
1414
}
15-
15+
1616
.post-meta {
1717
color: var(--global-text-color-light);
1818
font-size: 1rem;

_sass/_distill.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ d-article {
203203
grid-column-start: 3;
204204
grid-column-end: -3;
205205
}
206-
table tr td{
206+
table tr td {
207207
grid-column-start: 3;
208208
grid-column-end: -3;
209209
}

0 commit comments

Comments
 (0)