summaryrefslogtreecommitdiff
path: root/_layouts
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 /_layouts
parenta10ad0a99ba6e44a35253c3bcaff80c90e99348e (diff)
Change to al-folio theme
Theme at: https://github.com/alshedivat/al-folio
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/about.html50
-rw-r--r--_layouts/bib.html148
-rw-r--r--_layouts/default.html31
-rw-r--r--_layouts/distill.html89
-rw-r--r--_layouts/none.html1
-rw-r--r--_layouts/page.html15
-rw-r--r--_layouts/post.html37
7 files changed, 371 insertions, 0 deletions
diff --git a/_layouts/about.html b/_layouts/about.html
new file mode 100644
index 0000000..bb3b6b1
--- /dev/null
+++ b/_layouts/about.html
@@ -0,0 +1,50 @@
+---
+layout: default
+---
+
+<div class="post">
+
+ <header class="post-header">
+ <h1 class="post-title">
+ {% if site.title == "blank" %}<span class="font-weight-bold">{{ site.first_name }}</span> {{ site.middle_name }} {{ site.last_name }}{% else %}{{ site.title }}{% endif %}
+ </h1>
+ <p class="desc">{{ page.description }}</p>
+ </header>
+
+ <article>
+ {% if page.profile %}
+ <div class="profile float-{% if page.profile.align == 'left' %}left{% else %}right{% endif %}">
+ {% if page.profile.image %}
+ <img class="img-fluid z-depth-1 rounded" src="{{ page.profile.image | prepend: '/assets/img/' | relative_url }}">
+ {% endif %}
+ {% if page.profile.address %}
+ <div class="address">
+ {{ page.profile.address }}
+ </div>
+ {% endif %}
+ </div>
+ {% endif %}
+
+ <div class="clearfix">
+ {{ content }}
+ </div>
+
+ {% if page.news %}
+ {% include news.html %}
+ {% endif %}
+
+ {% if page.selected_papers %}
+ {% include selected_papers.html %}
+ {% endif %}
+
+ {% if page.social %}
+ <div class="social">
+ <div class="contact-icons">
+ {% include social.html %}
+ </div>
+ <div class="contact-note">{{ site.contact_note }}</div>
+ </div>
+ {% endif %}
+ </article>
+
+</div>
diff --git a/_layouts/bib.html b/_layouts/bib.html
new file mode 100644
index 0000000..2d00989
--- /dev/null
+++ b/_layouts/bib.html
@@ -0,0 +1,148 @@
+---
+---
+
+<div class="row">
+ <div class="col-sm-2 abbr">
+ {% if entry.abbr %}
+ {% if site.data.venues[entry.abbr] %}
+ <abbr class="badge"><a href="{{site.data.venues[entry.abbr].url}}" target="_blank">{{entry.abbr}}</a></abbr>
+ {% else %}
+ <abbr class="badge">{{entry.abbr}}</abbr>
+ {% endif %}
+ {% endif %}
+ </div>
+
+ <div id="{{entry.key}}" class="col-sm-8">
+ {% if entry.type == "thesis" %}
+ {{reference}}
+ {% else %}
+ <div class="title">{{entry.title}}</div>
+ <div class="author">
+ {% for author in entry.author_array %}
+ {% assign author_is_self = false %}
+ {% if author.last == site.scholar.last_name%}
+ {% if site.scholar.first_name contains author.first%}
+ {% assign author_is_self = true %}
+ {% endif %}
+ {% endif %}
+ {% assign coauthor_url = nil %}
+ {% if site.data.coauthors[author.last] %}
+ {% for coauthor in site.data.coauthors[author.last] %}
+ {% if coauthor.firstname contains author.first %}
+ {% assign coauthor_url = coauthor.url %}
+ {% break %}
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+
+ {% if forloop.length == 1 %}
+ {% if author_is_self %}
+ <em>{{author.last}}, {{author.first}}</em>
+ {% else %}
+ {{author.last}}, {{author.first}}
+ {% endif %}
+ {% else %}
+ {% unless forloop.last %}
+ {% if author_is_self %}
+ <em>{{author.last}}, {{author.first}}</em>,
+ {% else %}
+ {% if coauthor_url %}
+ <a href="{{coauthor_url}}" target="_blank">{{author.last}}, {{author.first}}</a>,
+ {% else %}
+ {{author.last}}, {{author.first}},
+ {% endif %}
+ {% endif %}
+ {% else %}
+ {% if author_is_self %}
+ and <em>{{author.last}}, {{author.first}}</em>
+ {% else %}
+ {% if coauthor_url %}
+ and <a href="{{coauthor_url}}" target="_blank">{{author.last}}, {{author.first}}</a>
+ {% else %}
+ and {{author.last}}, {{author.first}}
+ {% endif %}
+ {% endif %}
+ {% endunless %}
+ {% endif %}
+ {% endfor %}
+ </div>
+
+ <div class="periodical">
+ {% if entry.type == "article" %}
+ <em>{{entry.journal}}</em>
+ {% elsif entry.type == "inproceedings" %}
+ <em>In {{entry.booktitle}}</em>
+ {% endif %}
+ {% if entry.year %}
+ {{entry.year}}
+ {% endif %}
+ </div>
+ {% endif %}
+
+ <div class="links">
+ {% if entry.abstract %}
+ <a class="abstract btn btn-sm z-depth-0" role="button">Abs</a>
+ {% endif %}
+ {% if entry.arxiv %}
+ <a href="http://arxiv.org/abs/{{ entry.arxiv }}" class="btn btn-sm z-depth-0" role="button" target="_blank">arXiv</a>
+ {% endif %}
+ {% if entry.bibtex_show %}
+ <a class="bibtex btn btn-sm z-depth-0" role="button">Bib</a>
+ {% endif %}
+ {% if entry.html %}
+ <a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button" target="_blank">HTML</a>
+ {% endif %}
+ {% if entry.pdf %}
+ {% if entry.pdf contains '://' %}
+ <a href="{{ entry.pdf }}" class="btn btn-sm z-depth-0" role="button" target="_blank">PDF</a>
+ {% else %}
+ <a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">PDF</a>
+ {% endif %}
+ {% endif %}
+ {% if entry.supp %}
+ {% if entry.supp contains '://' %}
+ <a href="{{ entry.supp }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Supp</a>
+ {% else %}
+ <a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Supp</a>
+ {% endif %}
+ {% endif %}
+ {% if entry.blog %}
+ <a href="{{ entry.blog }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Blog</a>
+ {% endif %}
+ {% if entry.code %}
+ <a href="{{ entry.code }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Code</a>
+ {% endif %}
+ {% if entry.poster %}
+ {% if entry.poster contains '://' %}
+ <a href="{{ entry.poster }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Poster</a>
+ {% else %}
+ <a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Poster</a>
+ {% endif %}
+ {% endif %}
+ {% if entry.slides %}
+ {% if entry.slides contains '://' %}
+ <a href="{{ entry.slides }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Slides</a>
+ {% else %}
+ <a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Slides</a>
+ {% endif %}
+ {% endif %}
+ {% if entry.website %}
+ <a href="{{ entry.website }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Website</a>
+ {% endif %}
+ </div>
+
+ <!-- Hidden abstract block -->
+ {% if entry.abstract %}
+ <div class="abstract hidden">
+ <p>{{ entry.abstract }}</p>
+ </div>
+ {% endif %}
+
+ <!-- Hidden bibtex block -->
+ {% if entry.bibtex_show %}
+ <div class="bibtex hidden">
+ {% highlight bibtex %}{{ entry.bibtex }}{% endhighlight %}
+ </div>
+ {% endif %}
+ </div>
+</div>
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..b0aa49b
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+
+ <head>
+ {% include head.html %}
+ {% include scripts/mathjax.html %}
+ </head>
+
+ <body class="{% if site.navbar_fixed %}fixed-top-nav{% endif %} {% unless site.footer_fixed %}sticky-bottom-footer{% endunless %}">
+
+ <!-- Header -->
+
+ {% include header.html %}
+
+ <!-- Content -->
+
+ <div class="container mt-5">
+ {{ content }}
+ </div>
+
+ <!-- Footer -->
+
+ {% include footer.html %}
+
+ </body>
+
+ {% include scripts/bootstrap.html %}
+ {% include scripts/mansory.html %}
+ {% include scripts/misc.html %}
+
+</html>
diff --git a/_layouts/distill.html b/_layouts/distill.html
new file mode 100644
index 0000000..a038990
--- /dev/null
+++ b/_layouts/distill.html
@@ -0,0 +1,89 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ {% include head.html %}
+ {% include scripts/mathjax.html %}
+ <script src="{{ '/assets/js/distillpub/template.v2.js' | relative_url }}"></script>
+ <script src="{{ '/assets/js/distillpub/transforms.v2.js' | relative_url }}"></script>
+ <script src="{{ '/assets/js/distillpub/overrides.js' | relative_url }}"></script>
+ {% if page._styles %}
+ <style type="text/css">
+ {{ page._styles }}
+ </style>
+ {% endif %}
+ </head>
+
+ <d-front-matter>
+ <script async type="text/json">{
+ "title": "{{ page.title }}",
+ "description": "{{ page.description }}",
+ "published": "{{ page.date | date: '%B %-d, %Y' }}",
+ "authors": [
+ {% for author in page.authors %}
+ {
+ "author": "{{ author.name }}",
+ "authorURL": "{{ author.url }}",
+ "affiliations": [
+ {
+ "name": "{{ author.affiliations.name }}",
+ "url": "{{ author.affiliations.url }}"
+ }
+ ]
+ }{% if forloop.last == false %},{% endif %}
+ {% endfor %}
+ ],
+ "katex": {
+ "delimiters": [
+ {
+ "left": "$",
+ "right": "$",
+ "display": false
+ },
+ {
+ "left": "$$",
+ "right": "$$",
+ "display": true
+ }
+ ]
+ }
+ }</script>
+ </d-front-matter>
+
+ <body class="{% if site.navbar_fixed %}fixed-top-nav{% endif %} {% unless site.footer_fixed %}sticky-bottom-footer{% endunless %}">
+
+ <!-- Header -->
+
+ {% include header.html %}
+
+ <!-- Content -->
+
+ <div class="post distill">
+
+ <d-title>
+ <h1>{{ page.title }}</h1>
+ <p>{{ page.description }}</p>
+ </d-title>
+
+ <d-byline></d-byline>
+
+ <d-article>
+ {{ content }}
+ </d-article>
+
+ <d-appendix>
+ <d-footnote-list></d-footnote-list>
+ <d-citation-list></d-citation-list>
+ </d-appendix>
+
+ </div>
+
+ <!-- Footer -->
+
+ {% include footer.html %}
+
+ </body>
+
+ <d-bibliography src="{{ page.bibliography | prepend: '/assets/bibliography/' | relative_url }}">
+ </d-bibliography>
+
+</html>
diff --git a/_layouts/none.html b/_layouts/none.html
new file mode 100644
index 0000000..b92f652
--- /dev/null
+++ b/_layouts/none.html
@@ -0,0 +1 @@
+{{content}}
diff --git a/_layouts/page.html b/_layouts/page.html
new file mode 100644
index 0000000..10b9ab4
--- /dev/null
+++ b/_layouts/page.html
@@ -0,0 +1,15 @@
+---
+layout: default
+---
+<div class="post">
+
+ <header class="post-header">
+ <h1 class="post-title">{{ page.title }}</h1>
+ <p class="post-description">{{ page.description }}</p>
+ </header>
+
+ <article>
+ {{ content }}
+ </article>
+
+</div>
diff --git a/_layouts/post.html b/_layouts/post.html
new file mode 100644
index 0000000..70d595e
--- /dev/null
+++ b/_layouts/post.html
@@ -0,0 +1,37 @@
+---
+layout: default
+---
+
+{% if page._styles %}
+<style type="text/css">
+ {{ page._styles }}
+</style>
+{% endif %}
+
+<div class="post">
+
+ <header class="post-header">
+ <h1 class="post-title">{{ page.title }}</h1>
+ <p class="post-meta">{{ page.date | date: "%B %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
+ </header>
+
+ <article class="post-content">
+ {{ content }}
+ </article>
+
+ {% if site.disqus_shortname and page.comments %}
+ <div id="disqus_thread"></div>
+ <script type="text/javascript">
+ var disqus_shortname = '{{ site.disqus_shortname }}';
+ var disqus_identifier = '{{ page.id }}';
+ var disqus_title = {{ page.title | jsonify }};
+ (function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+ </script>
+ <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+ {% endif %}
+
+</div>