Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upstream merge template repository #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 1 addition & 2 deletions .github/workflows/lighthouse-badger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ name: "Lighthouse Badger"
# INPUTS as Secrets (env) for not manually triggered workflows
env:
URLS: https://alshedivat.github.io/al-folio/
TOKEN_NAME: ${{ secrets.LIGHTHOUSE_BADGER_TOKEN }}
# If any of the following env is blank, a default value is used instead
REPO_BRANCH: "${{ github.repository }} master" # target repository & branch e.g. 'dummy/mytargetrepo main'
MOBILE_LIGHTHOUSE_PARAMS: "--only-categories=performance,accessibility,best-practices,seo --throttling.cpuSlowdownMultiplier=2"
Expand Down Expand Up @@ -50,7 +49,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: ${{ env.REPOSITORY }}
token: ${{ secrets[github.event.inputs.token_name] || secrets[env.TOKEN_NAME] }}
token: ${{ secrets.LIGHTHOUSE_BADGER_TOKEN }}
ref: ${{ env.BRANCH }}
- uses: actions/checkout@v4
with:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ Feel free to add your own page(s) by sending a PR.
<a href="https://thefermi0n.github.io/" target="_blank">★</a>
<a href="https://mingsun-kaust.github.io/" target="_blank">★</a>
<a href="https://hdocmsu.github.io/" target="_blank">★</a>
<a href="https://trandangtrungduc.github.io/" target="_blank">★</a>
</td>
</tr>
<tr>
Expand Down
6 changes: 4 additions & 2 deletions _bibliography/papers.bib
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ @article{einstein1950meaning
@article{PhysRev.47.777,
abbr={PhysRev},
title={Can Quantum-Mechanical Description of Physical Reality Be Considered Complete?},
author={Einstein, A. and Podolsky, B. and Rosen, N.},
author={Einstein*†, A. and Podolsky*, B. and Rosen*, N.},
abstract={In a complete theory there is an element corresponding to each element of reality. A sufficient condition for the reality of a physical quantity is the possibility of predicting it with certainty, without disturbing the system. In quantum mechanics in the case of two physical quantities described by non-commuting operators, the knowledge of one precludes the knowledge of the other. Then either (1) the description of reality given by the wave function in quantum mechanics is not complete or (2) these two quantities cannot have simultaneous reality. Consideration of the problem of making predictions concerning a system on the basis of measurements made on another system that had previously interacted with it leads to the result that if (1) is false then (2) is also false. One is thus led to conclude that the description of reality as given by a wave function is not complete.},
journal={Phys. Rev.},
location={New Jersey},
Expand All @@ -56,7 +56,9 @@ @article{PhysRev.47.777
google_scholar_id={qyhmnyLat1gC},
video={https://www.youtube-nocookie.com/embed/aqz-KE-bpKQ},
additional_info={. *More Information* can be [found here](https://github.com/alshedivat/al-folio/)},
selected={true}
annotation={* Example use of superscripts<br>† Albert Einstein},
selected={true},
inspirehep_id = {3255}
}

@article{einstein1905molekularkinetischen,
Expand Down
16 changes: 8 additions & 8 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# Site settings
# -----------------------------------------------------------------------------

title: Kids adventures # the website title (if blank, full name will be used instead)
first_name: Kidhar
middle_name:
last_name: Bachan
title: blank # the website title (if blank, full name will be used instead)
first_name: You
middle_name: R.
last_name: Name
email: [email protected]
description: > # the ">" symbol means to ignore newlines until "footer_text:"
A simple, whitespace theme for academics. Based on [*folio](https://github.com/bogoli/-folio) design.
Expand All @@ -17,9 +17,9 @@ keywords: jekyll, jekyll-theme, academic-website, portfolio-website # add your o
lang: en # the language of your site (for example: en, fr, cn, ru, etc.)
icon: ⚛️ # the emoji used as the favicon (alternatively, provide image name in /assets/img/)

url: https://kidharb.github.io # the base hostname & protocol for your site
baseurl:
last_updated: true # set to true if you want to display last updated in the footer
url: https://alshedivat.github.io # the base hostname & protocol for your site
baseurl: /al-folio # the subpath of your site, e.g. /blog/. Leave blank for root
last_updated: false # set to true if you want to display last updated in the footer
impressum_path: # set to path to include impressum link in the footer, use the same path as permalink in a page, helps to conform with EU GDPR
back_to_top: true # set to false to disable the back to top button

Expand Down Expand Up @@ -78,7 +78,7 @@ dblp_url: # your DBLP profile url
discord_id: # your discord id (18-digit unique numerical identifier)
facebook_id: # your facebook id
flickr_id: # your flickr id
github_username: kidharb # your GitHub user name
github_username: # your GitHub user name
gitlab_username: # your GitLab user name
ieee_id: # your ieeexplore.ieee.org/author/id
inspirehep_id: 1010907 # Inspire HEP author ID
Expand Down
12 changes: 6 additions & 6 deletions _data/cv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
type: map
contents:
- name: Full Name
value: Kidhar Bachan
value: Albert Einstein
- name: Date of Birth
value: Circa Mid 80s
value: 14th March 1879
- name: Languages
value: English
value: English, German

- title: Education
type: time_table
contents:
- title: MSc
institution: University of Witwatersrand, Johannesburg, South Africa
year: 2023
- title: PhD
institution: University of Zurich, Zurich, Switzerland
year: 1905
description:
- Description 1.
- Description 2.
Expand Down
12 changes: 9 additions & 3 deletions _data/repositories.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
github_users:
- kidharb
- torvalds
- alshedivat

repo_description_lines_max: 2

github_repos:
- kidharb/eduos
- f3d-app/f3d
- alshedivat/al-folio
- jekyll/jekyll
- twbs/bootstrap
- jquery/jquery
- FortAwesome/Font-Awesome
- mathjax/MathJax
- jpswalsh/academicons
4 changes: 2 additions & 2 deletions _news/announcement_1.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
layout: post
date: 2024-05-06 18:46:00+0200
date: 2015-10-22 15:59:00-0400
inline: true
related_posts: false
---

No news at the moment, check back in a while
A simple inline announcement.
33 changes: 33 additions & 0 deletions _news/announcement_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
layout: post
title: A long announcement with details
date: 2015-11-07 16:11:00-0400
inline: false
related_posts: false
---

Announcements and news can be much longer than just quick inline posts. In fact, they can have all the features available for the standard blog posts. See below.

---

Jean shorts raw denim Vice normcore, art party High Life PBR skateboard stumptown vinyl kitsch. Four loko meh 8-bit, tousled banh mi tilde forage Schlitz dreamcatcher twee 3 wolf moon. Chambray asymmetrical paleo salvia, sartorial umami four loko master cleanse drinking vinegar brunch. <a href="https://www.pinterest.com">Pinterest</a> DIY authentic Schlitz, hoodie Intelligentsia butcher trust fund brunch shabby chic Kickstarter forage flexitarian. Direct trade <a href="https://en.wikipedia.org/wiki/Cold-pressed_juice">cold-pressed</a> meggings stumptown plaid, pop-up taxidermy. Hoodie XOXO fingerstache scenester Echo Park. Plaid ugh Wes Anderson, freegan pug selvage fanny pack leggings pickled food truck DIY irony Banksy.

#### Hipster list

<ul>
<li>brunch</li>
<li>fixie</li>
<li>raybans</li>
<li>messenger bag</li>
</ul>

Hoodie Thundercats retro, tote bag 8-bit Godard craft beer gastropub. Truffaut Tumblr taxidermy, raw denim Kickstarter sartorial dreamcatcher. Quinoa chambray slow-carb salvia readymade, bicycle rights 90's yr typewriter selfies letterpress cardigan vegan.

---

Pug heirloom High Life vinyl swag, single-origin coffee four dollar toast taxidermy reprehenderit fap distillery master cleanse locavore. Est anim sapiente leggings Brooklyn ea. Thundercats locavore excepteur veniam eiusmod. Raw denim Truffaut Schlitz, migas sapiente Portland VHS twee Bushwick Marfa typewriter retro id keytar.

> We do not grow absolutely, chronologically. We grow sometimes in one dimension, and not in another, unevenly. We grow partially. We are relative. We are mature in one realm, childish in another.
> —Anais Nin

Fap aliqua qui, scenester pug Echo Park polaroid irony shabby chic ex cardigan church-key Odd Future accusamus. Blog stumptown sartorial squid, gastropub duis aesthetic Truffaut vero. Pinterest tilde twee, odio mumblecore jean shorts lumbersexual.
8 changes: 8 additions & 0 deletions _news/announcement_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: post
date: 2016-01-15 07:59:00-0400
inline: true
related_posts: false
---

A simple inline announcement with Markdown emoji! :sparkles: :smile:
18 changes: 11 additions & 7 deletions _pages/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@
layout: about
title: about
permalink: /
subtitle: About me
subtitle: <a href='#'>Affiliations</a>. Address. Contacts. Moto. Etc.

profile:
align: right
image: prof_pic.jpg
image_circular: false # crops the image to make it circular
# more_info: >
# <p>555 your office number</p>
# <p>123 your address street</p>
# <p>Your City, State 12345</p>
more_info: >
<p>555 your office number</p>
<p>123 your address street</p>
<p>Your City, State 12345</p>

news: true # includes a list of news items
selected_papers: true # includes a list of papers marked as "selected={true}"
#social: true # includes social icons at the bottom of the page
social: true # includes social icons at the bottom of the page
---

I was born around the time the [Intel 80286](https://en.wikipedia.org/wiki/Intel_80286) was introduced. About 10 years later I was introduced to Windows 3.1. My first computer was a Pentium 1 75Mhz, 8Mb RAM and 540Mb HDD and our household finally connected to the internet with a 28.8K US Robotics Modem. I learn't about the importance of a MBR (Master Boot Record) after I erased the Windows 95 partition while trying to resize the current partition to make space for Slackware 3.1. In the early part of the century I built a Core 2 Duo PC, with the sole purpose of overclocking it. I am not sure if Engineering chose me or I chose Engineering, either way I ended up completing my Electronic Engineering degree in the mid 2000s. My first job was as an embedded developer for a set top box company. The platform was built with a [NEC EMMA2](https://www.electronicsweb.com/doc/nec-electronics-introduces-new-emma-chips-0001) MIPS chipset running [uCos](https://en.wikipedia.org/wiki/Micro-Controller_Operating_Systems). I loved it. I would stay in the embedded world and PayTV for another 12 years until joining IT in the financial services sector. My hobbies include squash, amateur telescope making, astronomy, open source, embedded systems and Linux.
Write your biography here. Tell the world about yourself. Link to your favorite [subreddit](http://reddit.com). You can put a picture in, too. The code is already in, just name your picture `prof_pic.jpg` and put it in the `img/` folder.

Put your address / P.O. box / other info right below your picture. You can also disable any of these elements by editing `profile` property of the YAML header of your `_pages/about.md`. Edit `_bibliography/papers.bib` and Jekyll will render your [publications page](/al-folio/publications/) automatically.

Link to your social media connections, too. This theme is set up to use [Font Awesome icons](https://fontawesome.com/) and [Academicons](https://jpswalsh.github.io/academicons/), like the ones below. Add your Facebook, Twitter, LinkedIn, Google Scholar, or just disable all of them.
4 changes: 2 additions & 2 deletions _pages/cv.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ permalink: /cv/
title: cv
nav: true
nav_order: 5
cv_pdf: kidharbachan_pdf.pdf
description: My experience.
cv_pdf: example_pdf.pdf
description: This is a description of the page. You can modify it in '_pages/cv.md'. You can also change or remove the top pdf download button.
toc:
sidebar: left
---
16 changes: 16 additions & 0 deletions _pages/dropdown.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
layout: page
title: submenus
nav: true
nav_order: 8
dropdown: true
children:
- title: publications
permalink: /publications/
- title: divider
- title: projects
permalink: /projects/
- title: divider
- title: blog
permalink: /blog/
---
28 changes: 28 additions & 0 deletions _pages/profiles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
layout: profiles
permalink: /people/
title: people
description: members of the lab or group
nav: true
nav_order: 7

profiles:
# if you want to include more than one profile, just replicate the following block
# and create one content file for each profile inside _pages/
- align: right
image: prof_pic.jpg
content: about_einstein.md
image_circular: false # crops the image to make it circular
more_info: >
<p>555 your office number</p>
<p>123 your address street</p>
<p>Your City, State 12345</p>
- align: left
image: prof_pic.jpg
content: about_einstein.md
image_circular: false # crops the image to make it circular
more_info: >
<p>555 your office number</p>
<p>123 your address street</p>
<p>Your City, State 12345</p>
---
20 changes: 20 additions & 0 deletions _pages/publications.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
layout: page
permalink: /publications/
title: publications
description: publications by categories in reversed chronological order. generated by jekyll-scholar.
nav: true
nav_order: 2
---

<!-- _pages/publications.md -->

<!-- Bibsearch Feature -->

{% include bib_search.liquid %}

<div class="publications">

{% bibliography %}

</div>
2 changes: 1 addition & 1 deletion _pages/repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: page
permalink: /repositories/
title: repositories
description: Summary of Github stats
description: Edit the `_data/repositories.yml` and change the `github_users` and `github_repos` lists to include your own GitHub profile and repositories.
nav: true
nav_order: 4
---
Expand Down
12 changes: 12 additions & 0 deletions _pages/teaching.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: page
permalink: /teaching/
title: teaching
description: Materials for courses you taught. Replace this text with your description.
nav: true
nav_order: 6
---

For now, this page is assumed to be a static description of your courses. You can convert it to a collection similar to `_projects/` so that you can have a dedicated page for each course.

Organize your courses by years, topics, or universities, however you like!
13 changes: 11 additions & 2 deletions _plugins/external-posts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ def process_entries(site, src, entries)
end

def create_document(site, source_name, url, content)
slug = content[:title].downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')
# check if title is composed only of whitespace or foreign characters
if content[:title].gsub(/[^\w]/, '').strip.empty?
# use the source name and last url segment as fallback
slug = "#{source_name.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')}-#{url.split('/').last}"
else
# parse title from the post or use the source name and last url segment as fallback
slug = content[:title].downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')
slug = "#{source_name.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')}-#{url.split('/').last}" if slug.empty?
end

path = site.in_source_dir("_posts/#{slug}.md")
doc = Jekyll::Document.new(
path, { :site => site, :collection => site.collections['posts'] }
Expand Down Expand Up @@ -80,7 +89,7 @@ def fetch_content_from_url(url)
html = HTTParty.get(url).body
parsed_html = Nokogiri::HTML(html)

title = parsed_html.at('head title')&.text || ''
title = parsed_html.at('head title')&.text.strip || ''
description = parsed_html.at('head meta[name="description"]')&.attr('content') || ''
body_content = parsed_html.at('body')&.inner_html || ''

Expand Down
36 changes: 36 additions & 0 deletions _posts/2015-03-15-formatting-and-links.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
layout: post
title: a post with formatting and links
date: 2015-03-15 16:40:16
description: march & april, looking forward to summer
tags: formatting links
categories: sample-posts
---

Jean shorts raw denim Vice normcore, art party High Life PBR skateboard stumptown vinyl kitsch. Four loko meh 8-bit, tousled banh mi tilde forage Schlitz dreamcatcher twee 3 wolf moon. Chambray asymmetrical paleo salvia, sartorial umami four loko master cleanse drinking vinegar brunch. [Pinterest](https://www.pinterest.com) DIY authentic Schlitz, hoodie Intelligentsia butcher trust fund brunch shabby chic Kickstarter forage flexitarian. Direct trade <a href="https://en.wikipedia.org/wiki/Cold-pressed_juice">cold-pressed</a> meggings stumptown plaid, pop-up taxidermy. Hoodie XOXO fingerstache scenester Echo Park. Plaid ugh Wes Anderson, freegan pug selvage fanny pack leggings pickled food truck DIY irony Banksy.

#### Hipster list

- brunch
- fixie
- raybans
- messenger bag

#### Check List

- [x] Brush Teeth
- [ ] Put on socks
- [x] Put on left sock
- [ ] Put on right sock
- [x] Go to school

Hoodie Thundercats retro, tote bag 8-bit Godard craft beer gastropub. Truffaut Tumblr taxidermy, raw denim Kickstarter sartorial dreamcatcher. Quinoa chambray slow-carb salvia readymade, bicycle rights 90's yr typewriter selfies letterpress cardigan vegan.

<hr>

Pug heirloom High Life vinyl swag, single-origin coffee four dollar toast taxidermy reprehenderit fap distillery master cleanse locavore. Est anim sapiente leggings Brooklyn ea. Thundercats locavore excepteur veniam eiusmod. Raw denim Truffaut Schlitz, migas sapiente Portland VHS twee Bushwick Marfa typewriter retro id keytar.

> We do not grow absolutely, chronologically. We grow sometimes in one dimension, and not in another, unevenly. We grow partially. We are relative. We are mature in one realm, childish in another.
> —Anais Nin

Fap aliqua qui, scenester pug Echo Park polaroid irony shabby chic ex cardigan church-key Odd Future accusamus. Blog stumptown sartorial squid, gastropub duis aesthetic Truffaut vero. Pinterest tilde twee, odio mumblecore jean shorts lumbersexual.
Loading