summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2021-10-03 00:35:46 -0500
committerKarl Hallsby <karl@hallsby.com>2021-10-03 02:16:55 -0500
commite2c06d2681e18946ab6c3e3e6075aed92a4d13be (patch)
treeb30dce94387f4717394277932f691519e0281c44 /_includes
parenta10ad0a99ba6e44a35253c3bcaff80c90e99348e (diff)
Change to al-folio theme
Theme at: https://github.com/alshedivat/al-folio
Diffstat (limited to '_includes')
-rw-r--r--_includes/footer.html27
-rw-r--r--_includes/head.html74
-rw-r--r--_includes/header.html92
-rw-r--r--_includes/news.html24
-rw-r--r--_includes/pagination.html17
-rw-r--r--_includes/projects.html32
-rw-r--r--_includes/projects_horizontal.html40
-rw-r--r--_includes/scripts/bootstrap.html4
-rw-r--r--_includes/scripts/jquery.html2
-rw-r--r--_includes/scripts/mansory.html6
-rw-r--r--_includes/scripts/mathjax.html12
-rw-r--r--_includes/scripts/misc.html15
-rw-r--r--_includes/selected_papers.html4
-rw-r--r--_includes/social.html17
14 files changed, 366 insertions, 0 deletions
diff --git a/_includes/footer.html b/_includes/footer.html
new file mode 100644
index 0000000..2e34521
--- /dev/null
+++ b/_includes/footer.html
@@ -0,0 +1,27 @@
+{% if site.footer_fixed %}
+<footer class="fixed-bottom">
+ <div class="container mt-0">
+ &copy; Copyright {{ site.time | date: '%Y' }} {{ site.first_name }} {{ site.middle_name }} {{ site.last_name }}.
+ {{ site.footer_text }}
+ {% if site.impressum_path %}
+ <a href="{{ site.url }}{{ site.baseurl }}{{ site.impressum_path }}">Impressum</a>.
+ {% endif %}
+ {% if site.last_updated %}
+ Last updated: {{ "now" | date: '%B %d, %Y' }}.
+ {% endif %}
+ </div>
+</footer>
+{% else %}
+<footer class="sticky-bottom mt-5">
+ <div class="container">
+ &copy; Copyright {{ site.time | date: '%Y' }} {{ site.first_name }} {{ site.middle_name }} {{ site.last_name }}.
+ {{ site.footer_text }}
+ {% if site.impressum_path %}
+ <a href="{{ site.url }}{{ site.baseurl }}{{ site.impressum_path }}">Impressum</a>.
+ {% endif %}
+ {% if site.last_updated %}
+ Last updated: {{ "now" | date: '%B %d, %Y' }}.
+ {% endif %}
+ </div>
+</footer>
+{% endif %}
diff --git a/_includes/head.html b/_includes/head.html
new file mode 100644
index 0000000..c629888
--- /dev/null
+++ b/_includes/head.html
@@ -0,0 +1,74 @@
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+
+<title>
+{% if site.title == "blank" %}
+ {{ site.first_name }} {{ site.middle_name }} {{ site.last_name }}
+{% else %}
+ {{ site.title }}
+{% endif %}
+{% if page.title != "blank" and page.url != "/" %}
+ | {{ page.title }}
+{% endif %}
+</title>
+<meta name="description" content="{{ site.description }}">
+
+<!-- Open Graph -->
+{% if site.serve_og_meta %}
+<meta property="og:site_name" content="{{ site.description }}" />
+<meta property="og:type" content="object" />
+<meta property="og:title" content="{{ site.name }}" />
+<meta property="og:url" content="{{ page.url | prepend: site.baseurl | prepend: site.url }}" />
+<meta property="og:description" content="{{ page.title }}" />
+<meta property="og:image" content="{%- if page.og_image -%}{{ page.og_image }}{%- else -%}{{ site.og_image }}{%- endif -%}" />
+{% endif %}
+
+<!-- Bootstrap & MDB -->
+<link href="https://stackpath.bootstrapcdn.com/bootstrap/{{ site.bootstrap.version }}/css/bootstrap.min.css" rel="stylesheet" integrity="{{ site.bootstrap.integrity.css }}" crossorigin="anonymous">
+<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/{{ site.mdb.version }}/css/mdb.min.css" integrity="{{ site.mdb.integrity.css }}" crossorigin="anonymous" />
+
+<!-- Fonts & Icons -->
+<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/{{ site.fontawesome.version }}/css/all.min.css" integrity="{{ site.fontawesome.integrity }}" crossorigin="anonymous">
+<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/academicons/{{ site.academicons.version }}/css/academicons.min.css" integrity="{{ site.academicons.integrity }}" crossorigin="anonymous">
+<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:100,300,400,500,700|Material+Icons">
+
+<!-- Code Syntax Highlighting -->
+<link rel="stylesheet" href="https://gitcdn.xyz/repo/jwarby/jekyll-pygments-themes/master/{{ site.highlight_theme }}.css" />
+
+<!-- Styles -->
+{% if site.icon != empty %}
+<link rel="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>">
+{% endif %}
+<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
+<link rel="canonical" href="{{ page.url | replace:'index.html','' | relative_url }}">
+
+<!-- JQuery -->
+{% include scripts/jquery.html %}
+
+<!-- Theming-->
+{% if site.enable_darkmode %}
+<script src="{{ '/assets/js/theme.js' | relative_url }}"></script>
+<script src="{{ '/assets/js/dark_mode.js' | relative_url }}"></script>
+{% endif %}
+
+{% if site.enable_google_analytics %}
+<!-- Global site tag (gtag.js) - Google Analytics -->
+<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
+<script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag() { dataLayer.push(arguments); }
+ gtag('js', new Date());
+
+ gtag('config', '{{ site.google_analytics }}');
+</script>
+{% endif %}
+
+{% if site.enable_panelbear_analytics %}
+<!-- Panelbear Analytics - We respect your privacy -->
+<script async src="https://cdn.panelbear.com/analytics.js?site={{site.panelbear_analytics}}"></script>
+<script>
+ window.panelbear = window.panelbear || function() { (window.panelbear.q = window.panelbear.q || []).push(arguments); };
+ panelbear('config', { site: '{{site.panelbear_analytics}}' });
+</script>
+{% endif %}
diff --git a/_includes/header.html b/_includes/header.html
new file mode 100644
index 0000000..31e1fd2
--- /dev/null
+++ b/_includes/header.html
@@ -0,0 +1,92 @@
+<header>
+
+ <!-- Nav Bar -->
+ <nav id="navbar" class="navbar navbar-light navbar-expand-sm {% if site.navbar_fixed %}fixed-top{% else %}sticky-top{% endif %}">
+ <div class="container">
+ {% if page.title != "about" %}
+ <a class="navbar-brand title font-weight-lighter" href="{{ site.baseurl | prepend: site.url }}/">
+ {% if site.title == "blank" %}<span class="font-weight-bold">{{ site.first_name }}</span> {{ site.middle_name }} {{ site.last_name }}{% else %}{{ site.title }}{% endif %}
+ </a>
+ {% elsif site.enable_navbar_social %}
+ <!-- Social Icons -->
+ <div class="navbar-brand social">
+ {% include social.html %}
+ </div>
+ {% endif %}
+ <!-- Navbar Toggle -->
+ <button class="navbar-toggler collapsed ml-auto" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar top-bar"></span>
+ <span class="icon-bar middle-bar"></span>
+ <span class="icon-bar bottom-bar"></span>
+ </button>
+ <div class="collapse navbar-collapse text-right" id="navbarNav">
+ <ul class="navbar-nav ml-auto flex-nowrap">
+ <!-- About -->
+ <li class="nav-item {% if page.title == 'about' %}active{% endif %}">
+ <a class="nav-link" href="{{ '/' | relative_url }}">
+ about
+ {% if page.title == "about" %}
+ <span class="sr-only">(current)</span>
+ {% endif %}
+ </a>
+ </li>
+ {% if site.blog_name %}
+ <!-- Blog -->
+ <li class="nav-item {% if page.url contains 'blog' %}active{% endif %}">
+ <a class="nav-link" href="{{ '/blog/' | relative_url }}">
+ blog
+ {% if page.title == "blog" %}
+ <span class="sr-only">(current)</span>
+ {% endif %}
+ </a>
+ </li>
+ {% endif %}
+ <!-- Other pages -->
+ {% assign sorted_pages = site.pages | sort: "title" %}
+ {% for p in sorted_pages %}
+ {% if p.nav and p.autogen == nil %}
+ {% if p.dropdown %}
+ <li class="nav-item dropdown {% if page.title == p.title %}active{% endif %}">
+ <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+ {{ p.title }}
+ {% if page.title == p.title %}
+ <span class="sr-only">(current)</span>
+ {% endif %}
+ </a>
+ <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
+ {% for child in p.children %}
+ {% if child.title == 'divider' %}
+ <div class="dropdown-divider"></div>
+ {% else %}
+ <a class="dropdown-item" href="{{ child.permalink | relative_url }}">{{ child.title }}</a>
+ {% endif %}
+ {% endfor %}
+ </div>
+ </li>
+ {% else %}
+ <li class="nav-item {% if page.title == p.title %}active{% endif %}">
+ <a class="nav-link" href="{{ p.url | relative_url }}">
+ {{ p.title }}
+ {% if page.title == p.title %}
+ <span class="sr-only">(current)</span>
+ {% endif %}
+ </a>
+ </li>
+ {% endif %}
+ {% endif %}
+ {% endfor %}
+ {% if site.enable_darkmode %}
+ <div class = "toggle-container">
+ <a id = "light-toggle">
+ <i class="fas fa-moon"></i>
+ <i class="fas fa-sun"></i>
+ </a>
+ </div>
+ {% endif %}
+ </ul>
+ </div>
+ </div>
+ </nav>
+
+</header>
diff --git a/_includes/news.html b/_includes/news.html
new file mode 100644
index 0000000..e1fc80b
--- /dev/null
+++ b/_includes/news.html
@@ -0,0 +1,24 @@
+<div class="news">
+ <h2>news</h2>
+ {% if site.news %}
+ <div class="table-responsive">
+ <table class="table table-sm table-borderless">
+ {% assign news = site.news | reverse %}
+ {% for item in news limit: site.news_limit %}
+ <tr>
+ <th scope="row">{{ item.date | date: "%b %-d, %Y" }}</th>
+ <td>
+ {% if item.inline %}
+ {{ item.content | remove: '<p>' | remove: '</p>' | emojify }}
+ {% else %}
+ <a class="news-title" href="{{ item.url | relative_url }}">{{ item.title }}</a>
+ {% endif %}
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ </div>
+ {% else %}
+ <p>No news so far...</p>
+ {% endif %}
+</div>
diff --git a/_includes/pagination.html b/_includes/pagination.html
new file mode 100644
index 0000000..6761017
--- /dev/null
+++ b/_includes/pagination.html
@@ -0,0 +1,17 @@
+{% if paginator.total_pages > 1 %}
+<nav aria-label="Blog page naviation">
+ <ul class="pagination pagination-lg justify-content-center">
+ <li class="page-item {% unless paginator.previous_page %}disabled{% endunless %}">
+ <a class="page-link" href="{{ paginator.previous_page_path | relative_url }}" tabindex="-1" aria-disabled="{{ paginator.previous_page }}">Newer</a>
+ </li>
+ {% if paginator.page_trail %}
+ {% for trail in paginator.page_trail %}
+ <li class="page-item {% if page.url == trail.path %}active{% endif %}"><a class="page-link" href="{{ trail.path | relative_url }}" title="{{trail.title}}">{{ trail.num }}</a></li>
+ {% endfor %}
+ {% endif %}
+ <li class="page-item {% unless paginator.next_page %}disabled{% endunless %}">
+ <a class="page-link" href="{{ paginator.next_page_path | relative_url }}">Older</a>
+ </li>
+ </ul>
+</nav>
+{% endif %}
diff --git a/_includes/projects.html b/_includes/projects.html
new file mode 100644
index 0000000..55a1461
--- /dev/null
+++ b/_includes/projects.html
@@ -0,0 +1,32 @@
+<div class="grid-item">
+ {% if project.redirect %}
+ <a href="{{ project.redirect }}" target="_blank">
+ {% else %}
+ <a href="{{ project.url | relative_url }}">
+ {% endif %}
+ <div class="card hoverable">
+ {% if project.img %}
+ <img src="{{ project.img | relative_url }}" alt="project thumbnail">
+ {% endif %}
+ <div class="card-body">
+ <h2 class="card-title text-lowercase">{{ project.title }}</h2>
+ <p class="card-text">{{ project.description }}</p>
+ <div class="row ml-1 mr-1 p-0">
+ {% if project.github %}
+ <div class="github-icon">
+ <div class="icon" data-toggle="tooltip" title="Code Repository">
+ <a href="{{ project.github }}" target="_blank"><i class="fab fa-github gh-icon"></i></a>
+ </div>
+ {% if project.github_stars %}
+ <span class="stars" data-toggle="tooltip" title="GitHub Stars">
+ <i class="fas fa-star"></i>
+ <span id="{{ project.github_stars }}-stars"></span>
+ </span>
+ {% endif %}
+ </div>
+ {% endif %}
+ </div>
+ </div>
+ </div>
+ </a>
+</div>
diff --git a/_includes/projects_horizontal.html b/_includes/projects_horizontal.html
new file mode 100644
index 0000000..edecb9b
--- /dev/null
+++ b/_includes/projects_horizontal.html
@@ -0,0 +1,40 @@
+<div class="card-item col">
+ {% if project.redirect %}
+ <a href="{{ project.redirect }}" target="_blank">
+ {% else %}
+ <a href="{{ project.url | relative_url }}">
+ {% endif %}
+ <div class="card hoverable">
+ <div class="row g-0">
+ {% if project.img %}
+ <div class="card-img col-md-6">
+ <img src="{{ project.img | relative_url }}" alt="project thumbnail">
+ </div>
+ <div class="col-md-6">
+ {% else %}
+ <div class="col-md-12">
+ {% endif %}
+ <div class="card-body">
+ <h3 class="card-title text-lowercase">{{ project.title }}</h3>
+ <p class="card-text">{{ project.description }}</p>
+ <div class="row ml-1 mr-1 p-0">
+ {% if project.github %}
+ <div class="github-icon">
+ <div class="icon" data-toggle="tooltip" title="Code Repository">
+ <a href="{{ project.github }}" target="_blank"><i class="fab fa-github gh-icon"></i></a>
+ </div>
+ {% if project.github_stars %}
+ <span class="stars" data-toggle="tooltip" title="GitHub Stars">
+ <i class="fas fa-star"></i>
+ <span id="{{ project.github_stars }}-stars"></span>
+ </span>
+ {% endif %}
+ </div>
+ {% endif %}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+</div>
diff --git a/_includes/scripts/bootstrap.html b/_includes/scripts/bootstrap.html
new file mode 100644
index 0000000..2c5d4ee
--- /dev/null
+++ b/_includes/scripts/bootstrap.html
@@ -0,0 +1,4 @@
+<!-- Bootsrap & MDB scripts -->
+<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/{{ site.popper.version }}/umd/popper.min.js" integrity="{{ site.popper.integrity }}" crossorigin="anonymous"></script>
+<script src="https://stackpath.bootstrapcdn.com/bootstrap/{{ site.bootstrap.version }}/js/bootstrap.min.js" integrity="{{ site.bootstrap.integrity.js }}" crossorigin="anonymous"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/{{ site.mdb.version }}/js/mdb.min.js" integrity="{{ site.mdb.integrity.js }}" crossorigin="anonymous"></script>
diff --git a/_includes/scripts/jquery.html b/_includes/scripts/jquery.html
new file mode 100644
index 0000000..8de7788
--- /dev/null
+++ b/_includes/scripts/jquery.html
@@ -0,0 +1,2 @@
+<!-- jQuery -->
+<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/{{ site.jquery.version }}/jquery.min.js" integrity="{{ site.jquery.integrity }}" crossorigin="anonymous"></script>
diff --git a/_includes/scripts/mansory.html b/_includes/scripts/mansory.html
new file mode 100644
index 0000000..5a93a9e
--- /dev/null
+++ b/_includes/scripts/mansory.html
@@ -0,0 +1,6 @@
+{% if site.enable_mansory %}
+<!-- Mansory & imagesLoaded -->
+<script defer src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
+<script defer src="https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js"></script>
+<script defer src="{{ '/assets/js/mansory.js' | relative_url }}" type="text/javascript"></script>
+{% endif %}
diff --git a/_includes/scripts/mathjax.html b/_includes/scripts/mathjax.html
new file mode 100644
index 0000000..53db9e0
--- /dev/null
+++ b/_includes/scripts/mathjax.html
@@ -0,0 +1,12 @@
+{% if site.enable_math %}
+<!-- MathJax -->
+<script type="text/javascript">
+ window.MathJax = {
+ tex: {
+ tags: 'ams'
+ }
+ };
+</script>
+<script defer type="text/javascript" id="MathJax-script" src="https://cdn.jsdelivr.net/npm/mathjax@{{ site.mathjax.version }}/es5/tex-mml-chtml.js"></script>
+<script defer src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
+{% endif %}
diff --git a/_includes/scripts/misc.html b/_includes/scripts/misc.html
new file mode 100644
index 0000000..260ce1b
--- /dev/null
+++ b/_includes/scripts/misc.html
@@ -0,0 +1,15 @@
+{% if site.enable_tooltips %}
+<!-- Enable Tooltips -->
+<script type="text/javascript">
+$(function () {$('[data-toggle="tooltip"]').tooltip()})
+</script>
+{% endif %}
+
+{% if site.enable_medium_zoom %}
+<!-- Medium Zoom JS -->
+<script src="https://cdn.jsdelivr.net/npm/medium-zoom@{{ site.medium_zoom.version }}/dist/medium-zoom.min.js" integrity="{{ site.medium_zoom.integrity }}" crossorigin="anonymous"></script>
+<script src="{{ '/assets/js/zoom.js' | relative_url }}"></script>
+{% endif %}
+
+<!-- Load Common JS -->
+<script src="{{ '/assets/js/common.js' | relative_url }}"></script>
diff --git a/_includes/selected_papers.html b/_includes/selected_papers.html
new file mode 100644
index 0000000..0093c87
--- /dev/null
+++ b/_includes/selected_papers.html
@@ -0,0 +1,4 @@
+<div class="publications">
+ <h2>selected publications</h2>
+ {% bibliography -f papers -q @*[selected=true]* %}
+</div>
diff --git a/_includes/social.html b/_includes/social.html
new file mode 100644
index 0000000..c783058
--- /dev/null
+++ b/_includes/social.html
@@ -0,0 +1,17 @@
+{% if site.email %}<a href="mailto:{{ site.email | encode_email }}"><i class="fas fa-envelope"></i></a>{% endif %}
+{% if site.orcid_id %}<a href="https://orcid.org/{{ site.orcid_id }}" target="_blank" title="ORCID"><i class="ai ai-orcid"></i></a>{% endif %}
+{% if site.scholar_userid %}<a href="https://scholar.google.com/citations?user={{ site.scholar_userid }}" target="_blank" title="Google Scholar"><i class="ai ai-google-scholar"></i></a>{% endif %}
+{% if site.publons_id %}<a href="https://publons.com/a/{{ site.publons_id }}/" target="_blank" title="Publons"><i class="ai ai-publons"></i></a>{% endif %}
+{% if site.research_gate_profile %}<a href="https://www.researchgate.net/profile/{{site.research_gate_profile}}/" target="_blank" title="ResearchGate"><i class="ai ai-researchgate"></i></a>{% endif %}
+{% if site.github_username %}<a href="https://github.com/{{ site.github_username }}" target="_blank" title="GitHub"><i class="fab fa-github"></i></a>{% endif %}
+{% if site.linkedin_username %}<a href="https://www.linkedin.com/in/{{ site.linkedin_username }}" target="_blank" title="LinkedIn"><i class="fab fa-linkedin"></i></a>{% endif %}
+{% if site.twitter_username %}<a href="https://twitter.com/{{ site.twitter_username }}" target="_blank" title="Twitter"><i class="fab fa-twitter"></i></a>{% endif %}
+{% if site.medium_username %}<a href="https://medium.com/@{{ site.medium_username }}" target="_blank" title="Medium"><i class="fab fa-medium"></i></a>{% endif %}
+{% if site.quora_username %}<a href="https://www.quora.com/profile/{{ site.quora_username }}" target="_blank" title="Quora"><i class="fab fa-quora"></i></a>{% endif %}
+{% if site.blogger_url %}<a href="{{ site.blogger_url }}" target="_blank" title="Blogger"><i class="fab fa-blogger-b"></i></a>{% endif %}
+{% if site.work_url %}<a href="{{ site.work_url }}" target="_blank" title="Work"><i class="fas fa-briefcase"></i></a>{% endif %}
+{% if site.wikidata_id %}<a href="https://www.wikidata.org/wiki/{{ site.wikidata_id }}" target="_blank" title="Wikidata"><i class="fas fa-barcode"></i></a>{% endif %}
+{% if site.strava_userid %}<a href="https://www.strava.com/athletes/{{ site.strava_userid }}" target="_blank" title="Strava"><i class="fab fa-strava"></i></a>{% endif %}
+{% if site.keybase_username %}<a href="https://keybase.io/{{ site.keybase_username }}" target="_blank" title="Keybase"><i class="fab fa-keybase"></i></a>{% endif %}
+{% if site.gitlab_username %}<a href="https://gitlab.com/{{ site.gitlab_username }}" target="_blank" title="GitLab"><i class="fab fa-gitlab"></i></a>{% endif %}
+{% if site.dblp_url %}<a href="{{ site.dblp_url }}" target="_blank" title="DBLP"><i class="ai ai-dblp"></i></a>{% endif %}