Skip to content

Commit 5ced1d8

Browse files
CalaWPhysics-MorrisMorris Huanggeorge-gcaasboyer
authored
bump to al-folio upstream tag 0.12.0 (#22)
* Update README.md (#2493) Added Physics-Morris.github.io to the list of academics. Co-authored-by: Morris Huang <[email protected]> * Fixed issue with vega * Fix code blocks not changing to plots and others (#2497) For some unknown reason, all the `document.onreadystatechange = () => {` checks stopped working. Thankfully, replacing them with `document.addEventListener("readystatechange", () => {` fixed the issues. --------- Signed-off-by: George Araujo <[email protected]> * fix: remove 'index.html' in pagination (#2509) Currently, on the [blog](https://alshedivat.github.io/al-folio/blog/) page, clicking "older" and "newer" on the pagination at the bottom direct you forward to links like `/al-folio/blog/page/2/` and backward to `/al-folio/blog/`. However, if you click on the `1`, `2`.. etc buttons, there is a different behavior. The links now contain an `index.html`. For example, clicking `2` leads you to `/al-folio/blog/page/2/index.html`. It is the same content, just with a messier hyper link. Same with clicking `1`, you are brought to `/al-folio/blog/`. This fix creates a consistency among the hyper links in pagination. * Added SRaf.ir to README.md (#2510) Hi, I would be more than happy if I could add my personal website here. * Support pirsch.io for analytics (#2513) * Fixed external post symbol on search (#2515) Fixes #2471 Signed-off-by: George Araujo <[email protected]> * fix: blog highlighted in nav for child pages (#2516) Currently, in all blog posts, or any child page under /blog, the "blog" in nav is not highlighted. In all other child pages for a parent in nav, the parent is highlighted. For example, in a sub page of projects, projects in nav is highlighted. This fix creates a consistent behavior for nav and highlights the blog in nav if in a blog post. BEFORE: <img width="1427" alt="image" src="https://github.com/alshedivat/al-folio/assets/52665298/fc79727c-dc22-4af7-8c16-80efa216ecbc"> AFTER: <img width="1434" alt="image" src="https://github.com/alshedivat/al-folio/assets/52665298/6b32e7f9-e421-4b08-b86e-813b20ac058e"> * Support superscripts in bibtex author names (#2512) Implements #2511 * Added support for a newsletter (#2517) In reference to idea: alshedivat/al-folio#2097 In reference to request: alshedivat/al-folio#923 (comment) Added support to integrate a [loops.so](https://loops.so/) mailing list into the site. To use, you need to enable `newsletter` in `_config.yml`. You also must specify a loops endpoint (although I think any mailing list endpoint can work), which you can get when you set up a mailing list on loops. More documentation on loops: [here](https://loops.so/docs/forms/custom-form). Once that is enabled, the behavior is different depending on how you specified your footer to behave in `_config.yml`. If `footer_fixed: true`, then the sign up will appear at the bottom of the about page, as well as at the bottom of blog posts, if you enable `related_posts`. If `footer_fixed: false`, then the newsletter signup will be in the footer (on every page), like it is in on [my website](https://asboyer.com). I'm not attached to the placement of the signup, and you can choose to include it wherever you want with `{% include scripts/newsletter.liquid %}`. Also if you include positional variables into that, you can choose how you center the signup. So `{% include scripts/newsletter.liquid left=true %}` positions the signup bar to the left. Here are some screenshots below: ## Dark version ![image](https://github.com/alshedivat/al-folio/assets/52665298/af7fdb81-6e5f-47a9-958b-4cb93bba9e8f) ## Light version ![image](https://github.com/alshedivat/al-folio/assets/52665298/927f8bc5-b481-448b-ae5e-6f5b1c613243) I think the input field color should probably change to maybe be light for both themes? What do you think? I think the dark background looks cool, but I don't usually see that done like that on other sites. ## Footer fixed ![image](https://github.com/alshedivat/al-folio/assets/52665298/c52f3dc1-0e45-400e-8b71-eeb00d00cb01) ![image](https://github.com/alshedivat/al-folio/assets/52665298/678a2d45-88ab-4d9a-b8cc-9fc6db26d744) ## Footer not fixed ![image](https://github.com/alshedivat/al-folio/assets/52665298/fd2c0228-2bce-4335-ac3c-5cb20a3307e2) ![image](https://github.com/alshedivat/al-folio/assets/52665298/f594b4f2-67e0-4f2b-a3e8-febd579aaf19) To clarify, if footer isn't fixed, the email signup will appear on every page. --------- Co-authored-by: George <[email protected]> * Fixed docker-slim.yml issue * Add example use of annotation and superscripts in bibtex (#2520) ![image](https://github.com/alshedivat/al-folio/assets/33930674/e3018225-df99-4ebf-be18-5811f34fcf4b) ![image](https://github.com/alshedivat/al-folio/assets/33930674/afc6150e-0272-4180-bc5e-4ffbf5079239) ![image](https://github.com/alshedivat/al-folio/assets/33930674/40f88a17-4fba-4423-ab16-62fd37d7c574) ![image](https://github.com/alshedivat/al-folio/assets/33930674/c5cfe480-5df7-4f27-87c7-4883af1471ca) * Bib changes now trigger build action * Changes to docker-slim.yml now trigger action * Changes to deploy-image.yml now trigger action * Changes to deploy-docker-tag.yml now trigger action * Update CUSTOMIZE.md for Newsletter support (#2521) In reference to alshedivat/al-folio#2517 and alshedivat/al-folio#2517 (comment) * Fix Altmetric badge not correctly set when Altmetric id is provided (#2522) To reproduce the bug: ```bibtex @inproceedings{Vaswani2017AttentionIA, title = {Attention is All you Need}, author = {Ashish Vaswani and Noam M. Shazeer and Niki Parmar and Jakob Uszkoreit and Llion Jones and Aidan N. Gomez and Lukasz Kaiser and Illia Polosukhin}, booktitle = {Neural Information Processing Systems}, year = {2017}, doi = {10.48550/arXiv.1706.03762}, altmetric = {21021191} } ``` The bug is 1. It seems to be some weird property of the liquid template that [line 252-254](https://github.com/alshedivat/al-folio/blob/8d82670ff170f98e7d7ea5434428234a8216d460/_layouts/bib.liquid#L252-L254) doesn't work at all. According to [this post](https://stackoverflow.com/questions/59887447/liquid-how-to-assign-the-output-of-an-operator-to-a-variable) and [this issue](Shopify/liquid#236), liquid doesn't support assign the output of operator to a variable nor a ternary operator. So based on my console log, the value of `entry_has_altmetric_badge` is always a string value of `entry.altmetric` when altmetric is provided in bibtex. ```liquid {% assign entry_has_altmetric_badge = entry.altmetric or entry.doi or entry.eprint or entry.pmid or entry.isbn %} {% assign entry_has_dimensions_badge = entry.dimensions or entry.doi or entry.pmid %} {% assign entry_has_google_scholar_badge = entry.google_scholar_id %} {% if entry_has_altmetric_badge or entry_has_dimensions_badge or entry_has_google_scholar_badge %} <div class="badges"> {% if site.enable_publication_badges.altmetric and entry_has_altmetric_badge %} <span ... ``` Note that this could be problematic that a string in liquid is always evaluated as true as long as it is defined regardless if it is "" or "false". [reference](https://shopify.github.io/liquid/basics/truthy-and-falsy/) 2. when altmetric is defined in bibtex, now the order of set attribute to badge is eprint > doi > altmetric id > pmid > ISBN, and the badge doesn't work when an arxiv doi is provided. I think the expected behavior should be 1. as documented in CUSTOMIZE.md, only render the badge when the entry is set to either "true" or the altmetric id. (It could also implement to always render the badge whenever doi or other related attribute is set, and set altmetric to "false" to disable it) ```md - `altmetric`: Adds an [Altmetric](https://www.altmetric.com/) badge (Note: if DOI is provided just use `true`, otherwise only add the altmetric identifier here - the link is generated automatically) ``` 2. if the almetric id is set, use it first. * Fix repo card heigth for different repo descriptions (#2525) Hello! I had this minor issue on my website and I saw few other people using this template and having the same issue. **Brief** if two repo's in the same row has different number of lines for the descriptions, heights of the cards will not be the same if we don't force the number of lines to be displayed. **Solution** By looking at [This issue](anuraghazra/github-readme-stats#2900) I could see that they solved it by adding an new option, `description_lines_count`. This was used on the API request in order to fix the issue. --- ## Issue reproduced: ![before](https://github.com/alshedivat/al-folio/assets/15076325/238931f5-8a0e-45c5-a9bb-e9c6e4c0f04b) --- ## Issue fixed after the commit: ![after](https://github.com/alshedivat/al-folio/assets/15076325/a0e79cdf-fd6a-4765-b21f-279540ae88fe) * Update README.md * Add linux x86-64 to Gemfile.lock (#2549) Fixes #2544 Generated via: ``` bundle lock --add-platform x86_64-linux ``` --------- Signed-off-by: George Araujo <[email protected]> Co-authored-by: Morris Huang <[email protected]> Co-authored-by: Morris Huang <[email protected]> Co-authored-by: George <[email protected]> Co-authored-by: Andrew Boyer <[email protected]> Co-authored-by: saeedrafieyan <[email protected]> Co-authored-by: ariseus <[email protected]> Co-authored-by: Tiago Lobão <[email protected]> Co-authored-by: Maruan <[email protected]> Co-authored-by: Amir Pourmand <[email protected]>
1 parent f332490 commit 5ced1d8

33 files changed

+530
-77
lines changed

.github/workflows/deploy-docker-tag.yml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
tags:
66
- "v*"
77
paths:
8+
- ".github/workflows/deploy-docker-tag.yml"
9+
- ".github/workflows/deploy-image.yml"
810
- "bin/entry_point.sh"
911
- "Dockerfile"
1012
- "Gemfile"

.github/workflows/deploy-image.yml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- master
77
- main
88
paths:
9+
- ".github/workflows/deploy-image.yml"
910
- "bin/entry_point.sh"
1011
- "Dockerfile"
1112
- "Gemfile"

.github/workflows/deploy.yml

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- main
88
paths:
99
- "assets/**"
10+
- "**.bib"
1011
- "**.html"
1112
- "**.js"
1213
- "**.liquid"
@@ -33,6 +34,7 @@ on:
3334
- main
3435
paths:
3536
- "assets/**"
37+
- "**.bib"
3638
- "**.html"
3739
- "**.js"
3840
- "**.liquid"

.github/workflows/docker-slim.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Docker Slim
22

33
#Only trigger, when the build workflow succeeded
44
on:
5+
push:
6+
branches:
7+
- master
8+
- main
9+
paths:
10+
- ".github/workflows/docker-slim.yml"
511
workflow_run:
612
workflows: ["Docker Image CI"]
713
types:
@@ -15,7 +21,7 @@ on:
1521
jobs:
1622
build:
1723
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-based-on-the-conclusion-of-another-workflow
18-
if: ${{ github.event.workflow_run.conclusion == 'success' and github.repository_owner == 'alshedivat' }}
24+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository_owner == 'alshedivat' }}
1925
runs-on: ubuntu-latest
2026
defaults:
2127
run:

CUSTOMIZE.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ You can easily create your own collections, apps, short stories, courses, or wha
8080

8181
To add publications create a new entry in the [\_bibliography/papers.bib](_bibliography/papers.bib) file. You can find the BibTeX entry of a publication in Google Scholar by clicking on the quotation marks below the publication title, then clicking on "BibTeX", or also in the conference page itself. By default, the publications will be sorted by year and the most recent will be displayed first. You can change this behavior and more in the `Jekyll Scholar` section in [\_config.yml](_config.yml) file.
8282

83-
You can add extra information to a publication, like a PDF file in the `assets/pdfs/` directory and add the path to the PDF file in the BibTeX entry with the `pdf` field. Some of the supported fields are: `abstract`, `altmetric`, `arxiv`, `bibtex_show`, `blog`, `code`, `dimensions`, `doi`, `eprint`, `html`, `isbn`, `pdf`, `pmid`, `poster`, `slides`, `supp`, `video`, and `website`.
83+
You can add extra information to a publication, like a PDF file in the `assets/pdfs/` directory and add the path to the PDF file in the BibTeX entry with the `pdf` field. Some of the supported fields are: `abstract`, `altmetric`, `annotation`, `arxiv`, `bibtex_show`, `blog`, `code`, `dimensions`, `doi`, `eprint`, `html`, `isbn`, `pdf`, `pmid`, `poster`, `slides`, `supp`, `video`, and `website`.
8484

8585
### Author annotation
8686

@@ -124,6 +124,7 @@ There are several custom bibtex keywords that you can use to affect how the entr
124124
- `abbr`: Adds an abbreviation to the left of the entry. You can add links to these by creating a venue.yaml-file in the \_data folder and adding entries that match.
125125
- `abstract`: Adds an "Abs" button that expands a hidden text field when clicked to show the abstract text
126126
- `altmetric`: Adds an [Altmetric](https://www.altmetric.com/) badge (Note: if DOI is provided just use `true`, otherwise only add the altmetric identifier here - the link is generated automatically)
127+
- `annotation`: Adds a popover info message to the end of the author list that can potentially be used to clarify superscripts. HTML is allowed.
127128
- `arxiv`: Adds a link to the Arxiv website (Note: only add the arxiv identifier here - the link is generated automatically)
128129
- `bibtex_show`: Adds a "Bib" button that expands a hidden text field with the full bibliography entry
129130
- `blog`: Adds a "Blog" button redirecting to the specified link
@@ -145,3 +146,9 @@ A variety of beautiful theme colors have been selected for you to choose from. T
145146
## Adding social media information
146147

147148
You can add your social media links by adding the specified information at the `Social integration` section in the [\_config.yml](_config.yml) file. This information will appear at the bottom of the `About` page.
149+
150+
## Adding a newsletter
151+
152+
You can add a newsletter subscription form by adding the specified information at the `newsletter` section in the [\_config.yml](_config.yml) file. To set up a newsletter, you can use a service like [Loops.so](https://loops.so/), which is the current supported solution. Once you have set up your newsletter, you can add the form [endpoint](https://loops.so/docs/forms/custom-form) to the `endpoint` field in the `newsletter` section of the [\_config.yml](_config.yml) file.
153+
154+
Depending on your specified footer behavior, the sign up form either will appear at the bottom of the `About` page and at the bottom of blogposts if `related_posts` are enabled, or in the footer at the bottom of each page.

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ group :jekyll_plugins do
1111
gem 'jekyll-link-attributes'
1212
gem 'jekyll-minifier'
1313
gem 'jekyll-paginate-v2'
14+
gem 'jekyll-regex-replace'
1415
gem 'jekyll-scholar'
1516
gem 'jekyll-sitemap'
1617
gem 'jekyll-tabs'

Gemfile.lock

+42-19
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (7.1.3.2)
4+
activesupport (7.1.3.4)
55
base64
66
bigdecimal
77
concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -11,8 +11,8 @@ GEM
1111
minitest (>= 5.1)
1212
mutex_m
1313
tzinfo (~> 2.0)
14-
addressable (2.8.6)
15-
public_suffix (>= 2.0.2, < 6.0)
14+
addressable (2.8.7)
15+
public_suffix (>= 2.0.2, < 7.0)
1616
base64 (0.2.0)
1717
bibtex-ruby (6.1.0)
1818
latex-decode (~> 0.0)
@@ -50,12 +50,15 @@ GEM
5050
feedjira (3.2.3)
5151
loofah (>= 2.3.1, < 3)
5252
sax-machine (>= 1.0, < 2)
53-
ffi (1.17.0-x86_64-linux-gnu)
53+
ffi (1.17.0)
54+
ffi (1.17.0-arm64-darwin)
55+
ffi (1.17.0-x86_64-darwin)
5456
forwardable-extended (2.6.0)
5557
gemoji (4.1.0)
56-
google-protobuf (4.27.1-x86_64-linux)
57-
bigdecimal
58-
rake (>= 13)
58+
google-protobuf (3.25.3-aarch64-linux)
59+
google-protobuf (3.25.3-arm64-darwin)
60+
google-protobuf (3.25.3-x86_64-darwin)
61+
google-protobuf (3.25.3-x86_64-linux)
5962
html-pipeline (2.14.3)
6063
activesupport (>= 2)
6164
nokogiri (>= 1.4)
@@ -104,6 +107,7 @@ GEM
104107
uglifier (~> 4.1)
105108
jekyll-paginate-v2 (3.0.0)
106109
jekyll (>= 3.0, < 5.0)
110+
jekyll-regex-replace (1.1.0)
107111
jekyll-sass-converter (3.0.0)
108112
sass-embedded (~> 1.54)
109113
jekyll-scholar (7.1.3)
@@ -115,7 +119,7 @@ GEM
115119
jekyll (>= 3.7, < 5.0)
116120
jekyll-tabs (1.2.1)
117121
jekyll (>= 3.0, < 5.0)
118-
jekyll-toc (0.18.0)
122+
jekyll-toc (0.19.0)
119123
jekyll (>= 3.9)
120124
nokogiri (~> 1.12)
121125
jekyll-twitter-plugin (2.1.0)
@@ -133,6 +137,9 @@ GEM
133137
kramdown-parser-gfm (1.1.0)
134138
kramdown (~> 2.0)
135139
latex-decode (0.4.0)
140+
libv8-node (21.7.2.0-aarch64-linux)
141+
libv8-node (21.7.2.0-arm64-darwin)
142+
libv8-node (21.7.2.0-x86_64-darwin)
136143
libv8-node (21.7.2.0-x86_64-linux)
137144
liquid (4.0.4)
138145
listen (3.9.0)
@@ -146,28 +153,40 @@ GEM
146153
mini_mime (1.1.5)
147154
mini_racer (0.12.0)
148155
libv8-node (~> 21.7.2.0)
149-
minitest (5.22.3)
150-
multi_xml (0.7.1)
151-
bigdecimal (~> 3.1)
156+
minitest (5.24.1)
157+
multi_xml (0.6.0)
152158
mutex_m (0.2.0)
153159
namae (1.2.0)
154160
racc (~> 1.7)
155-
nokogiri (1.16.5-x86_64-linux)
161+
nokogiri (1.16.6-aarch64-linux)
162+
racc (~> 1.4)
163+
nokogiri (1.16.6-arm64-darwin)
164+
racc (~> 1.4)
165+
nokogiri (1.16.6-x86_64-darwin)
166+
racc (~> 1.4)
167+
nokogiri (1.16.6-x86_64-linux)
156168
racc (~> 1.4)
157169
pathutil (0.16.2)
158170
forwardable-extended (~> 2.6)
159-
public_suffix (5.1.1)
160-
racc (1.7.3)
171+
public_suffix (6.0.0)
172+
racc (1.8.0)
161173
rake (13.2.1)
162174
rb-fsevent (0.11.2)
163175
rb-inotify (0.11.1)
164176
ffi (~> 1.0)
165-
rexml (3.2.8)
177+
rexml (3.3.1)
178+
strscan
166179
rouge (4.3.0)
167180
safe_yaml (1.0.5)
168-
sass-embedded (1.77.5-x86_64-linux-gnu)
169-
google-protobuf (>= 3.25, < 5.0)
181+
sass-embedded (1.69.5)
182+
google-protobuf (~> 3.23)
183+
rake (>= 13.0.0)
184+
sass-embedded (1.69.5-arm64-darwin)
185+
google-protobuf (~> 3.23)
186+
sass-embedded (1.69.5-x86_64-darwin)
187+
google-protobuf (~> 3.23)
170188
sax-machine (1.3.2)
189+
strscan (3.1.0)
171190
terminal-table (3.0.2)
172191
unicode-display_width (>= 1.1.1, < 3)
173192
tzinfo (2.0.6)
@@ -179,7 +198,10 @@ GEM
179198
webrick (1.8.1)
180199

181200
PLATFORMS
182-
x86_64-linux-gnu
201+
aarch64-linux
202+
arm64-darwin
203+
x86_64-darwin
204+
x86_64-linux
183205

184206
DEPENDENCIES
185207
classifier-reborn
@@ -196,6 +218,7 @@ DEPENDENCIES
196218
jekyll-link-attributes
197219
jekyll-minifier
198220
jekyll-paginate-v2
221+
jekyll-regex-replace
199222
jekyll-scholar
200223
jekyll-sitemap
201224
jekyll-tabs
@@ -207,4 +230,4 @@ DEPENDENCIES
207230
webrick
208231

209232
BUNDLED WITH
210-
2.5.13
233+
2.5.7

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ Feel free to add your own page(s) by sending a PR.
140140
<a href="https://kishanved.tech/" target="_blank">★</a>
141141
<a href="https://abhilesh.github.io/" target="_blank">★</a>
142142
<a href="https://jackjburnett.github.io/" target="_blank">★</a>
143+
<a href="https://physics-morris.github.io/" target="_blank">★</a>
144+
<a href="https://sraf.ir" target="_blank">★</a>
145+
<a href="https://acad.garywei.dev/" target="_blank">★</a>
143146
</td>
144147
</tr>
145148
<tr>
@@ -179,7 +182,8 @@ Score Based Methods (NeurIPS: <a href="https://score-based-methods-workshop.gith
179182
Images2Symbols (CogSci: <a href="https://images2symbols.github.io/" target="_blank"> 2022</a>) <br>
180183
Medical Robotics Junior Faculty Forum (ISMR: <a href="https://junior-forum-ismr.github.io/" target="_blank"> 2023</a>)<br>
181184
Beyond Vision: Physics meets AI (ICIAP: <a href="https://physicsmeetsai.github.io/beyond-vision/" target="_blank">2023</a>) <br>
182-
Workshop on Diffusion Models (NeurIPS: <a href="https://diffusionworkshop.github.io/" target="_blank">2023</a>)
185+
Workshop on Diffusion Models (NeurIPS: <a href="https://diffusionworkshop.github.io/" target="_blank">2023</a>) <br>
186+
Workshop on Structured Probabilistic Inference & Generative Modeling (ICML: <a href="https://spigmworkshop.github.io/" target="_blank">2023</a>, <a href="https://spigmworkshop2024.github.io/" target="_blank">2024</a>)
183187
</td>
184188
</tr>
185189
</table>

_config.yml

+13
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ contact_note:
120120
# and follow the instructions for Google Sites. You will need to create a Google Analytics property and copy the Google tag ID.
121121
google_analytics: # your Google Analytics measurement ID (format: G-XXXXXXXXXX)
122122
cronitor_analytics: # cronitor RUM analytics site ID (format: XXXXXXXXX)
123+
pirsch_analytics: # your Pirsch analytics site ID (length 32 characters)
123124

124125
# For Google Search Console, see https://support.google.com/webmasters/answer/9008080?hl=en#meta_tag_verification&zippy=%2Chtml-tag
125126
google_site_verification: # your google-site-verification ID (Google Search Console)
@@ -172,6 +173,15 @@ external_sources:
172173
# - url: https://blog.google/technology/ai/google-gemini-update-flash-ai-assistant-io-2024/
173174
# published_date: 2024-05-14
174175

176+
# -----------------------------------------------------------------------------
177+
# Newsletter
178+
# -----------------------------------------------------------------------------
179+
180+
newsletter:
181+
enabled: false
182+
endpoint: # your loops endpoint (e.g., https://app.loops.so/api/newsletter-form/YOUR-ENDPOINT)
183+
# https://loops.so/docs/forms/custom-form
184+
175185
# -----------------------------------------------------------------------------
176186
# Collections
177187
# -----------------------------------------------------------------------------
@@ -253,6 +263,7 @@ plugins:
253263
- jekyll-link-attributes
254264
- jekyll-minifier
255265
- jekyll-paginate-v2
266+
- jekyll-regex-replace
256267
- jekyll/scholar
257268
- jekyll-sitemap
258269
- jekyll-tabs
@@ -339,6 +350,7 @@ filtered_bibtex_keywords:
339350
abstract,
340351
additional_info,
341352
altmetric,
353+
annotation,
342354
arxiv,
343355
award,
344356
award_name,
@@ -411,6 +423,7 @@ lazy_loading_images: true # enables lazy loading of images (recommended)
411423

412424
enable_google_analytics: false # enables google analytics
413425
enable_cronitor_analytics: false # enables cronitor RUM analytics
426+
enable_pirsch_analytics: false # enables Pirsch analytics (https://pirsch.io/)
414427
enable_google_verification: false # enables google site verification
415428
enable_bing_verification: false # enables bing site verification
416429
enable_masonry: true # enables automatic project cards arrangement

_data/repositories.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ github_users:
22
- torvalds
33
- alshedivat
44

5+
repo_description_lines_max: 2
6+
57
github_repos:
68
- alshedivat/al-folio
7-
- twbs/bootstrap
89
- jekyll/jekyll
10+
- twbs/bootstrap
911
- jquery/jquery
1012
- FortAwesome/Font-Awesome
11-
- jpswalsh/academicons
1213
- mathjax/MathJax
14+
- jpswalsh/academicons

_includes/footer.liquid

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
</footer>
1616
{% else %}
1717
<footer class="sticky-bottom mt-5" role="contentinfo">
18+
{% if site.newsletter.enabled %}
19+
{% include scripts/newsletter.liquid %}
20+
{% endif %}
21+
1822
<div class="container">
1923
&copy; Copyright {{ site.time | date: '%Y' }}
2024
{{ site.first_name }}

_includes/header.liquid

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
</div>
9797
</li>
9898
{% else %}
99-
<li class="nav-item {% if page.url contains p.permalink %}active{% endif %}">
99+
{% assign parent_link = p.permalink | remove: 'index.html' %}
100+
<li class="nav-item {% if page.url contains parent_link %}active{% endif %}">
100101
{% if p.permalink contains '/blog/' %}{% assign url = '/blog/' %} {% else %}{% assign url = p.url %}{% endif %}
101102
<a class="nav-link" href="{{ url | relative_url }}">
102103
{{- p.title }}

_includes/pagination.liquid

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% if paginator.page_trail %}
1010
{% for trail in paginator.page_trail %}
1111
<li class="page-item {% if page.url == trail.path %}active{% endif %}">
12-
<a class="page-link" href="{{ trail.path | relative_url }}" title="{{trail.title}}">{{ trail.num }}</a>
12+
<a class="page-link" href="{{ trail.path | relative_url | remove: 'index.html' }}" title="{{trail.title}}">{{ trail.num }}</a>
1313
</li>
1414
{% endfor %}
1515
{% endif %}

_includes/related_posts.liquid

+4
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@
1616
<a class="text-pink-700 underline font-semibold hover:text-pink-800" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
1717
</li>
1818
{% endfor %}
19+
{% if site.newsletter.enabled and site.footer_fixed %}
20+
<p class="mb-2" style="margin-top: 1.5rem !important">Subscribe to be notified of future articles:</p>
21+
{% include scripts/newsletter.liquid left=true %}
22+
{% endif %}

_includes/repository/repo.liquid

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,23 @@
55
{% assign show_owner = true %}
66
{% endif %}
77

8+
{% if site.data.repositories.repo_description_lines_max %}
9+
{% assign max_lines = site.data.repositories.repo_description_lines_max %}
10+
{% else %}
11+
{% assign max_lines = 2 %}
12+
{% endif %}
13+
814
<div class="repo p-2 text-center">
915
<a href="https://github.com/{{ include.repository }}">
1016
<img
1117
class="repo-img-light w-100"
1218
alt="{{ include.repository }}"
13-
src="https://github-readme-stats.vercel.app/api/pin/?username={{ repo_url[0] }}&repo={{ repo_url[1] }}&theme={{ site.repo_theme_light }}&show_owner={{ show_owner }}"
19+
src="https://github-readme-stats.vercel.app/api/pin/?username={{ repo_url[0] }}&repo={{ repo_url[1] }}&theme={{ site.repo_theme_light }}&show_owner={{ show_owner }}&description_lines_count={{ max_lines }}"
1420
>
1521
<img
1622
class="repo-img-dark w-100"
1723
alt="{{ include.repository }}"
18-
src="https://github-readme-stats.vercel.app/api/pin/?username={{ repo_url[0] }}&repo={{ repo_url[1] }}&theme={{ site.repo_theme_dark }}&show_owner={{ show_owner }}"
24+
src="https://github-readme-stats.vercel.app/api/pin/?username={{ repo_url[0] }}&repo={{ repo_url[1] }}&theme={{ site.repo_theme_dark }}&show_owner={{ show_owner }}&description_lines_count={{ max_lines }}"
1925
>
2026
</a>
2127
</div>

_includes/scripts/analytics.liquid

+8
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,11 @@
2222
cronitor('config', { clientKey: '{{site.cronitor_analytics}}' });
2323
</script>
2424
{% endif %}
25+
{% if site.enable_pirsch_analytics %}
26+
<script
27+
defer
28+
src="https://api.pirsch.io/pa.js"
29+
id="pianjs"
30+
data-code="{{ site.pirsch_analytics }}"
31+
></script>
32+
{% endif %}

0 commit comments

Comments
 (0)