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 #1

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0ed57b1
Updated the template
smeznar Aug 21, 2022
2a5019f
f
smeznar Aug 21, 2022
2eac8c5
Fixed README.md
smeznar Aug 21, 2022
56ad0a5
Small QOL changes
smeznar Aug 23, 2022
565f558
Merge remote-tracking branch
smeznar Oct 13, 2022
edee017
Double ig reversed
smeznar Oct 13, 2022
28fcb6a
Added a new paper
smeznar Dec 1, 2022
d4f608f
updated the website
smeznar Dec 1, 2022
e0d7dbf
Refreshed CV
smeznar Dec 21, 2022
391df0b
Added a publication
smeznar Feb 22, 2023
575cb97
Merge remote-tracking branch 'upstream/master'
smeznar Feb 22, 2023
cb279d1
Small fixes
smeznar Feb 22, 2023
a104091
nekej
smeznar Feb 22, 2023
82ec245
changed the config
smeznar Feb 22, 2023
a5c7029
Create sync_template.yml
smeznar Apr 27, 2023
6fc01b5
feat: add wikipedia social (#1097)
ChildishGiant Feb 25, 2023
eb07576
OSF social link (#1217)
buerviper Feb 26, 2023
ca4df51
Added github 🏆 section in repositories (#1229)
george-gca Mar 18, 2023
7477e8a
Replace bin/deploy with GitHub Action (#1234)
scottleechua Mar 19, 2023
ce4d7d9
Avoiding specific warning on Google Chrome (#1268)
george-gca Mar 19, 2023
b6783de
Added related_posts false to the announcements front matter (#1266)
george-gca Mar 19, 2023
c4966fe
Implemented copy code button feature (#1267)
george-gca Mar 19, 2023
52b61a8
Added more options to altmetric badge, changed to arxiv code first (#…
george-gca Mar 19, 2023
71ffd30
Updated the template
smeznar Aug 21, 2022
51bcf8c
Small QOL changes
smeznar Aug 23, 2022
865effd
Added a new paper
smeznar Dec 1, 2022
72c2bdf
Added a publication
smeznar Feb 22, 2023
747902c
Quick fix
smeznar Apr 27, 2023
2cb53ce
Other small changes
smeznar Apr 27, 2023
dd0a68e
chore(template): merge template changes :up:
May 1, 2023
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
12 changes: 11 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@
"contributions": [
"code"
]
},
{
"login": "george-gca",
"name": "George",
"avatar_url": "https://avatars.githubusercontent.com/u/31376482?v=4",
"profile": "https://george-gca.github.io/",
"contributions": [
"code"
]
}
]
],
"commitConvention": "angular"
}
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docker-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Buildx
uses: docker/setup-buildx-action@v1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Buildx
uses: docker/setup-buildx-action@v1

Expand Down
33 changes: 14 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,29 @@ on:
branches:
- master
- main
workflow_dispatch:

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.2'
ruby-version: '3.2.1'
bundler-cache: true
- name: Install deps
- name: Install and Build 🔧
run: |
npm install -g mermaid.cli
- name: Setup deploy options
id: setup
run: |
git config --global user.name "GitHub Action"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
if [[ ${GITHUB_REF} = refs/pull/*/merge ]]; then # pull request
echo "SRC_BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_OUTPUT
echo "NO_PUSH=--no-push" >> $GITHUB_OUTPUT
elif [[ ${GITHUB_REF} = refs/heads/* ]]; then # branch, e.g. master, source etc
echo "SRC_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
fi
echo "DEPLOY_BRANCH=gh-pages" >> $GITHUB_OUTPUT
- name: Deploy website
run: yes | bash bin/deploy --verbose ${{ steps.setup.outputs.NO_PUSH }}
--src ${{ steps.setup.outputs.SRC_BRANCH }}
--deploy ${{ steps.setup.outputs.DEPLOY_BRANCH }}
bundle exec jekyll build
- name: Deploy 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _site

20 changes: 20 additions & 0 deletions .github/workflows/sync_template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync from template
on:
# cronjob trigger
schedule:
- cron: "0 0 1 * *"
# manual trigger
workflow_dispatch:
jobs:
repo-sync:
runs-on: ubuntu-latest
steps:
# To use this repository's private action, you must check out the repository
- name: Checkout
uses: actions/checkout@v3
- name: actions-template-sync
uses: AndreasAugustin/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_repo_path: alshedivat/al-folio
upstream_branch: master
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ group :jekyll_plugins do
gem 'jekyll-paginate-v2'
gem 'jekyll-scholar'
gem 'jekyll-sitemap'
gem 'jekyll-toc'
gem 'jekyll-twitter-plugin'
gem 'jemoji'
gem 'mini_racer'
Expand Down
165 changes: 118 additions & 47 deletions README.md

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions _bibliography/papers.bib
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ @book{einstein1956investigations
title={Investigations on the Theory of the Brownian Movement},
author={Einstein, Albert},
year={1956},
publisher={Courier Corporation,},
publisher={Courier Corporation},
preview={brownian-motion.gif}
}

Expand All @@ -17,20 +17,20 @@ @article{einstein1950meaning
bibtex_show={true},
title={The meaning of relativity},
author={Einstein, Albert and Taub, AH},
journal={American Journal of Physics,},
journal={American Journal of Physics},
volume={18},
number={6},
pages={403--404},
year={1950},
publisher={American Association of Physics Teachers,}
publisher={American Association of Physics Teachers}
}

@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.},
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.,},
journal={Phys. Rev.},
volume={47},
issue={10},
pages={777--780},
Expand All @@ -50,7 +50,7 @@ @article{PhysRev.47.777
@article{einstein1905molekularkinetischen,
title={{\"U}ber die von der molekularkinetischen Theorie der W{\"a}rme geforderte Bewegung von in ruhenden Fl{\"u}ssigkeiten suspendierten Teilchen},
author={Einstein, A.},
journal={Annalen der physik,},
journal={Annalen der physik},
volume={322},
number={8},
pages={549--560},
Expand All @@ -62,7 +62,7 @@ @article{einstein1905movement
abbr={Ann. Phys.},
title={Un the movement of small particles suspended in statiunary liquids required by the molecular-kinetic theory 0f heat},
author={Einstein, A.},
journal={Ann. Phys.,},
journal={Ann. Phys.},
volume={17},
pages={549--560},
year={1905}
Expand Down
30 changes: 22 additions & 8 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ highlight_theme_dark: native # https://github.com/jwarby/jekyll-pygments-them
# repo color theme
repo_theme_light: default # https://github.com/anuraghazra/github-readme-stats/blob/master/themes/README.md
repo_theme_dark: dark # https://github.com/anuraghazra/github-readme-stats/blob/master/themes/README.md
repo_trophies:
enabled: true
theme_light: flat # https://github.com/ryo-ma/github-profile-trophy
theme_dark: gitdimmed # https://github.com/ryo-ma/github-profile-trophy

# -----------------------------------------------------------------------------
# RSS Feed
Expand Down Expand Up @@ -82,10 +86,12 @@ quora_username: # your Quora username
publons_id: # your ID on Publons
osf_id: # your OSF ID
research_gate_profile: # your profile on ResearchGate
scopus_id: # your profile on Scopus
blogger_url: # your blogger URL
work_url: # work page URL
keybase_username: # your keybase user name
wikidata_id: # your wikidata id
wikipedia_id: # your wikipedia id (Case sensitive)
dblp_url: # your DBLP profile url
stackoverflow_id: # your stackoverflow id
kaggle_id: # your kaggle id
Expand Down Expand Up @@ -149,7 +155,7 @@ disqus_shortname: al-folio # put your disqus shortname
# https://help.disqus.com/en/articles/1717111-what-s-a-shortname

# External sources.
# If you have blog posts published on medium.com or other exteranl sources,
# If you have blog posts published on medium.com or other external sources,
# you can display them in your blog by adding a link to the RSS feed.
external_sources:
- name: medium.com
Expand All @@ -169,8 +175,15 @@ collections:
output: true
permalink: /projects/:path/

news_scrollable: true # adds a vertical scroll bar if there are more than 3 news items
news_limit: 5 # leave blank to include all the news in the `_news` folder
announcements:
enabled: true
scrollable: true # adds a vertical scroll bar if there are more than 3 news items
limit: 5 # leave blank to include all the news in the `_news` folder

latest_posts:
enabled: true
scrollable: true # adds a vertical scroll bar if there are more than 3 new posts items
limit: 3 # leave blank to include all the blog posts

# -----------------------------------------------------------------------------
# Jekyll settings
Expand Down Expand Up @@ -208,18 +221,19 @@ plugins:
- jekyll-email-protect
- jekyll-feed
- jekyll-imagemagick
- jekyll-link-attributes
- jekyll-minifier
- jekyll-paginate-v2
- jekyll/scholar
- jekyll-sitemap
- jekyll-link-attributes
- jekyll-toc
- jekyll-twitter-plugin
- jemoji

# Sitemap settings
defaults:
- scope:
path: "assets/**/*.*"
path: "assets"
values:
sitemap: false

Expand Down Expand Up @@ -278,7 +292,7 @@ scholar:

query: "@*"

badges: # Display different badges for your pulications
badges: # Display different badges for your publications
altmetric_badge: true # Altmetric badge (https://www.altmetric.com/products/altmetric-badges/)
dimensions_badge: true # Dimensions badge (https://badge.dimensions.ai/)

Expand Down Expand Up @@ -307,7 +321,7 @@ external_links:
# -----------------------------------------------------------------------------

imagemagick:
enabled: true # enables responsive images for your site (recomended, see https://github.com/alshedivat/al-folio/issues/537)
enabled: true # enables responsive images for your site (recommended, see https://github.com/alshedivat/al-folio/issues/537)
widths:
- 480
- 800
Expand Down Expand Up @@ -339,7 +353,7 @@ enable_google_analytics: false # enables google analytics
enable_panelbear_analytics: false # enables panelbear analytics
enable_google_verification: false # enables google site verification
enable_bing_verification: false # enables bing site verification
enable_masonry: true # enables automatic project cards arangement
enable_masonry: true # enables automatic project cards arrangement
enable_math: true # enables math typesetting (uses MathJax)
enable_tooltips: false # enables automatic tooltip links generated
# for each section titles on pages and posts
Expand Down
7 changes: 6 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
<!-- Code Syntax Highlighting -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jwarby/jekyll-pygments-themes@master/{{ site.highlight_theme_light | append: '.css' }}" media="" id="highlight_theme_light" />

{% if page.toc and page.toc.sidebar %}
<!-- Sidebar Table of Contents -->
<link href="https://cdn.rawgit.com/afeld/bootstrap-toc/v1.0.1/dist/bootstrap-toc.min.css" rel="stylesheet" />
{% endif %}

<!-- Styles -->
{% if site.icon.size <= 4 %}
<link rel="shortcut icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>{{ site.icon }}</text></svg>">
Expand All @@ -21,7 +26,7 @@
{% endif %}
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">

<!-- Dark Mode -->
{% if site.enable_darkmode %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jwarby/jekyll-pygments-themes@master/{{ site.highlight_theme_dark | append: '.css' }}" media="none" id="highlight_theme_dark" />
Expand Down
26 changes: 26 additions & 0 deletions _includes/latest_posts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

<div class="news">
{% if site.latest_posts != blank -%}
{%- assign latest_posts_size = site.posts | size -%}
<div class="table-responsive" {% if site.latest_posts.scrollable and latest_posts_size > 3 %}style="max-height: 60vw"{% endif %}>
<table class="table table-sm table-borderless">
{%- assign latest_posts = site.posts -%}
{% if site.latest_posts.limit %}
{% assign latest_posts_limit = site.latest_posts.limit %}
{% else %}
{% assign latest_posts_limit = latest_posts_size %}
{% endif %}
{% for item in latest_posts limit: latest_posts_limit %}
<tr>
<th scope="row">{{ item.date | date: "%b %-d, %Y" }}</th>
<td>
<a class="news-title" href="{{ item.url | relative_url }}">{{ item.title }}</a>
</td>
</tr>
{%- endfor %}
</table>
</div>
{%- else -%}
<p>No posts so far...</p>
{%- endif %}
</div>
13 changes: 13 additions & 0 deletions _includes/metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
{% if site.enable_bing_verification -%}
<meta name="msvalidate.01" content="{{ site.bing_site_verification }}" />
{%- endif -%}
<!-- Avoid warning on Google Chrome
Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.
see https://stackoverflow.com/a/75119417
-->
<meta http-equiv="Permissions-Policy" content="interest-cohort=()" />
{%- endif %}

<!-- Standard metadata -->
Expand Down Expand Up @@ -87,6 +92,10 @@
{%- capture link -%}https://www.researchgate.net/profile/{{site.research_gate_profile}}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.scopus_id -%}
{%- capture link -%}https://www.scopus.com/authid/detail.uri?authorId={{site.scopus_id}}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.github_username -%}
{%- capture link -%}https://github.com/{{ site.github_username }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
Expand Down Expand Up @@ -123,6 +132,10 @@
{%- capture link -%}https://www.wikidata.org/wiki/{{ site.wikidata_id }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.wikipedia_id -%}
{%- capture link -%}https://wikipedia.org/wiki/User:{{ site.wikipedia_id }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.strava_userid -%}
{%- capture link -%}https://www.strava.com/athletes/{{ site.strava_userid }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
Expand Down
25 changes: 12 additions & 13 deletions _includes/news.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@

<div class="news">
{% if site.news != blank -%}
{% if site.news != blank -%}
{%- assign news_size = site.news | size -%}
<div class="table-responsive" {% if site.news_scrollable and news_size > 3 %}style="max-height: 10vw"{% endif %}>
<div class="table-responsive" {% if include.limit and site.announcements.scrollable and news_size > 3 %}style="max-height: 60vw"{% endif %}>
<table class="table table-sm table-borderless">
{%- assign news = site.news | reverse -%}
{% if site.news_limit %}
{% assign news_limit = site.news_limit %}
{% if include.limit and site.announcements.limit %}
{% assign news_limit = site.announcements.limit %}
{% else %}
{% assign news_limit = news_size %}
{% endif %}
{% for item in news limit: news_limit %}
{% for item in news limit: news_limit %}
<tr>
<th scope="row">{{ item.date | date: "%b %-d, %Y" }}</th>
<td>
{% if item.inline -%}
{% if item.inline -%}
{{ item.content | remove: '<p>' | remove: '</p>' | emojify }}
{%- else -%}
{%- else -%}
<a class="news-title" href="{{ item.url | relative_url }}">{{ item.title }}</a>
{%- endif %}
{%- endif %}
</td>
</tr>
{%- endfor %}
{%- endfor %}
</table>
</div>
{%- else -%}
{%- else -%}
<p>No news so far...</p>
{%- endif %}
</div>
{%- endif %}
</div>
6 changes: 6 additions & 0 deletions _includes/repository/repo_trophies.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="repo p-2 text-center">
<a href="https://github.com/ryo-ma/github-profile-trophy">
<img class="repo-img-light w-200" alt="{{ include.username }}" src="https://github-profile-trophy.vercel.app/?username={{ include.username }}&theme={{ site.repo_trophies.theme_light }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C">
<img class="repo-img-dark w-200" alt="{{ include.username }}" src="https://github-profile-trophy.vercel.app/?username={{ include.username }}&theme={{ site.repo_trophies.theme_dark }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C">
</a>
</div>
Loading