Skip to content

Commit

Permalink
📚 update home page, add bibliography and jekylly-scholar
Browse files Browse the repository at this point in the history
  • Loading branch information
tcbutler320 committed Oct 30, 2020
1 parent f021308 commit 24e9981
Show file tree
Hide file tree
Showing 13 changed files with 318 additions and 17 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source "https://rubygems.org"
#gemspec
gem 'jekyll' #Needed since this is a theme for Jekyll
gem 'jekyll-feed'
gem 'jekyll-feed'
gem 'jekyll-scholar'
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Dumbarton
![](https://img.shields.io/badge/Bootstrap-v4.5.3-blue)
A Jekyll theme designed for academics, powered by Bootstrap 4.

- [Dumbarton](#dumbarton)
- [Installation](#installation)
- [Style](#style)
- [Academic Options](#academic-options)
- [Jekyll Scholar](#jekyll-scholar)
- [Theme Options](#theme-options)
- [Favicon](#favicon)
- [Meta Data](#meta-data)
Expand Down Expand Up @@ -43,6 +46,11 @@ bundle exec jekyll serve

**Fontawesome**

## Academic Options

### Jekyll Scholar
*Excerpt from [Jekyll-Scholar](https://github.com/inukshuk/jekyll-scholar)*
> Jekyll-Scholar is for all the academic bloggers out there. It is a set of extensions to Jekyll, the awesome, blog aware, static site generator; it formats your bibliographies and reading lists for the web and gives your blog posts citation super-powers.

## Theme Options
Expand Down
70 changes: 70 additions & 0 deletions _bibliography/papers.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
---
@string{aps = {American Physical Society,}}
@book{einstein1956investigations,
title={Investigations on the Theory of the Brownian Movement},
author={Einstein, Albert},
year={1956},
publisher={Courier Corporation,}
}

@article{einstein1950meaning,
abbr={AJP},
title={The meaning of relativity},
author={Einstein, Albert and Taub, AH},
journal={American Journal of Physics,},
volume={18},
number={6},
pages={403--404},
year={1950},
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.,},
volume={47},
issue={10},
pages={777--780},
numpages={0},
year={1935},
month={May},
publisher=aps,
doi={10.1103/PhysRev.47.777},
url={http://link.aps.org/doi/10.1103/PhysRev.47.777},
html={https://journals.aps.org/pr/abstract/10.1103/PhysRev.47.777},
pdf={example_pdf.pdf},
selected={true}
}

@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,},
volume={322},
number={8},
pages={549--560},
year={1905},
publisher={Wiley Online Library}
}

@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.,},
volume={17},
pages={549--560},
year={1905}
}

@article{einstein1905electrodynamics,
title={On the electrodynamics of moving bodies},
author={Einstein, A.},
year={1905}
}
47 changes: 35 additions & 12 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,31 @@ image_alt: # image description
theme:
plugins:
- jekyll-feed
- jekyll-scholar
sass:
sass_dir: _sass

scholar:

last_name: Dumbarton

style: apa
locale: en

source: /_bibliography/
bibliography: papers.bib
bibliography_template: bib

replace_strings: true
join_strings: true

details_dir: bibliography
details_layout: bibtex.html
details_link: Details

query: "@*"



font_awesome_id: 32a2b2a489
# =============================
Expand Down Expand Up @@ -58,16 +80,17 @@ phonenumber:



include:
- _posts


# exclude:
# - .sass-cache/
# - .jekyll-cache/
# - gemfiles/
# - Gemfile
# - Gemfile.lock
# - node_modules/
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/
exclude:
- .sass-cache/
- .jekyll-cache/
- gemfiles/
- Gemfile
- Gemfile.lock
- node_modules/
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
5 changes: 5 additions & 0 deletions _data/data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
data_list_title: Author Data
publications:

- title: "Trying New Things"
url: https://example.com
6 changes: 3 additions & 3 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
<link rel="stylesheet" href="/css/main.css">
<!-- BootStrap CDN -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">


<script src="https://kit.fontawesome.com/{{ site.font_awesome_id }}.js" crossorigin="anonymous"></script>
<!-- Provides information about an author or another person -->
<link rel="me" href="mailto:{{ site.email }}">
Expand Down Expand Up @@ -106,7 +104,9 @@
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>

<script>
// function(s) go here
$(document).ready(function() {
$(".toast").toast('show');
});
</script>
<noscript>
<!-- No JS alternative -->
Expand Down
1 change: 1 addition & 0 deletions _includes/nav.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a href={{ site.url }}><img src="/assets/img/icons/favicon.ico" class="dumbarton-icon"></a>
<a class="navbar-brand" href="#">{{ site.title }}</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
Expand Down
122 changes: 122 additions & 0 deletions _layouts/bib.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
---
---

<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 %}
{% if forloop.length == 1 %}
{% if author.last == site.scholar.last_name %}
<em>{{author.last}}, {{author.first}}</em>
{% else %}
{{author.last}}, {{author.first}}
{% endif %}
{% else %}
{% unless forloop.last %}
{% if author.last == site.scholar.last_name %}
<em>{{author.last}}, {{author.first}}</em>,
{% else %}
{% if site.data.coauthors[author.last] %}
<a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.last}}, {{author.first}}</a>,
{% else %}
{{author.last}}, {{author.first}},
{% endif %}
{% endif %}
{% else %}
{% if author.last == site.scholar.last_name %}
and <em>{{author.last}}, {{author.first}}</em>
{% else %}
{% if site.data.coauthors[author.last] %}
and <a href="{{site.data.coauthors[author.last].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.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 %}
</div>
</div>
49 changes: 48 additions & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,53 @@
layout: default
---

<div class="card mb-3 mx-auto border-light mb-3" style="max-width: 95%;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="{{ site.profile_image }}" class="card-img rounded-lg" alt="...">
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">{{ page.title }}</h5>
<p class="card-text">{{ content | markdownify }}</p>
<p class="card-text"><small class="text-muted">Last updated {{ page.date }}</small></p>
</div>
</div>
</div>
</div>

<div class="card text-center mx-auto" style="max-width: 95%;">
<div class="card-header">
<ul class="nav nav-tabs card-header-tabs">
<li class="nav-item">
<a class="nav-link active" href="#">Publications</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
</li>
</ul>
</div>
<div class="card-body">
<h5 class="card-title">A list of my publications</h5>
<p class="card-text">
<div class="publications">
{% bibliography -f papers %}
</div>
</p>
</div>
</div>


<div class="dumbarton-spacer">
</div>
<!--
<div class="media">
<img src="{{ site.profile_image }}" class="dumbarton-home" alt="{{ site.author }}">
<div class="media-body">
<h5 class="mt-0">{{ page.title }}</h5>
{{ content | markdownify }}
</div>
</div>
-->
Binary file added assets/docx/vitae.docx
Binary file not shown.
Binary file added assets/pdf/vitae.pdf
Binary file not shown.
Loading

0 comments on commit 24e9981

Please sign in to comment.