Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwgundersen committed Jun 21, 2020
0 parents commit 1bdc76e
Show file tree
Hide file tree
Showing 17 changed files with 1,571 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 4.0.0"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-scholar"
gem "jekyll-sitemap"
gem "jekyll-feed"
gem "jekyll-katex"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
111 changes: 111 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
bibtex-ruby (5.0.1)
latex-decode (~> 0.0)
citeproc (1.0.10)
namae (~> 1.0)
citeproc-ruby (1.1.10)
citeproc (~> 1.0, >= 1.0.9)
csl (~> 1.5)
colorator (1.1.0)
concurrent-ruby (1.1.5)
csl (1.5.1)
namae (~> 1.0)
csl-styles (1.0.1.10)
csl (~> 1.0)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
execjs (2.7.0)
ffi (1.11.3)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (1.8.2)
concurrent-ruby (~> 1.0)
jekyll (4.0.0)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (>= 0.9.5, < 2)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.1)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 1.8)
jekyll-feed (0.13.0)
jekyll (>= 3.7, < 5.0)
jekyll-katex (1.0.0)
execjs (~> 2.7)
jekyll (>= 3.6, < 5.0)
jekyll-sass-converter (2.0.1)
sassc (> 2.0.1, < 3.0)
jekyll-scholar (6.5.1)
bibtex-ruby (~> 5.0)
citeproc-ruby (~> 1.0)
csl-styles (~> 1.0)
jekyll (~> 4.0)
jekyll-seo-tag (2.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.1.0)
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
latex-decode (0.3.1)
liquid (4.0.3)
listen (3.2.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
namae (1.0.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.3)
rb-fsevent (0.10.3)
rb-inotify (0.10.1)
ffi (~> 1.0)
rouge (3.14.0)
safe_yaml (1.0.5)
sassc (2.2.1)
ffi (~> 1.9)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
tzinfo (1.2.6)
thread_safe (~> 0.1)
tzinfo-data (1.2019.3)
tzinfo (>= 1.0.0)
unicode-display_width (1.6.0)
wdm (0.1.1)

PLATFORMS
ruby

DEPENDENCIES
jekyll (~> 4.0.0)
jekyll-feed
jekyll-katex
jekyll-scholar
jekyll-sitemap
minima (~> 2.5)
tzinfo (~> 1.2)
tzinfo-data
wdm (~> 0.1.1)

BUNDLED WITH
2.1.3
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Files necessary to replicate my blog, [http://gregorygundersen.com/blog/](http://gregorygundersen.com/blog/). For details, see [this post](http://gregorygundersen.com/blog/2020/06/21/blog-theme)
11 changes: 11 additions & 0 deletions _bibliography/references.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
---
References
==========
@article{bishop2006pattern,
title={Pattern Recognition and Machine Learning},
author={Bishop, Christopher M},
year={2006},
publisher={Springer}
}
15 changes: 15 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
highlighter: rouge
permalink: /blog/:year/:month/:day/:title/
environment: prod
url: "http://gregorygundersen.com" # Sitemap base URL.
plugins:
- jekyll-scholar
- jekyll-sitemap
- jekyll-feed
- jekyll-katex
katex:
js_path: "assets" # Path used to search for katex.min.js
rendering_options:
# Default KaTeX rendering options. See https://github.com/Khan/KaTeX#rendering-options
throw_error: false # throwOnError - set to false if you want rendering to output error as text rather than a build error
error_color: "#cc0000" # errorColor
17 changes: 17 additions & 0 deletions _includes/mathjax.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script type='text/x-mathjax-config'>
MathJax.Hub.Config({
jax: ['input/TeX', 'output/HTML-CSS'],
tex2jax: {
inlineMath: [ ['$', '$'] ],
displayMath: [ ['$$', '$$']],
processEscapes: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
extensions: ['color.js']
},
messageStyle: 'none',
'HTML-CSS': { preferredFont: 'TeX', availableFonts: ['STIX','TeX'] }
});
</script>

<script src='//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML' type='text/javascript'></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
7 changes: 7 additions & 0 deletions _includes/nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div class='nav'>
<ul class='wrap'>
<li><a href='/'>Home</a></li>
<li><a href='/blog'>Blog</a></li>
<li><a href='/feed.xml'>RSS</a></li>
</ul>
</div>
43 changes: 43 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<html>
<head>
<title>{{ page.title }}</title>
<meta charset='UTF-8'>
<meta content='width=device-width, initial-scale=1' name='viewport'/>

<meta name='description' content='Gregory Gundersen is a PhD candidate at Princeton.'>
<meta name='keywords' content='{{ page.keywords }}'>
<meta name='author' content='Gregory Gundersen'>

<link href='/css/blog.css' rel='stylesheet'/>
<link href='/css/trac.css' rel='stylesheet'/>
<link href='/css/markdown.css' rel='stylesheet'/>

{% include mathjax.html %}
</head>
<body>
<div class='content'>
{% include nav.html %}
<div class='front-matter'>
<div class='wrap'>
<h1>{{ page.title }}</h1>
<h4>{{ page.subtitle }}</h4>
<div class='bylines'>
<div class='byline'>
<h3>Published</h3>
<p>{{ page.date | date: '%d %B %Y' }}</p>
</div>
</div>
<div class='clear'></div>
</div>
</div>
<div class='wrap article'>
{{ content }}
</div>
<div id='bibliography'>
<div class='wrap'>
{% bibliography --cited %}
</div>
</div>
</div>
</body>
</html>
16 changes: 16 additions & 0 deletions _posts/2020-06-21-example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: An Example Post
subtitle: Here is some extra detail about the post.
layout: default
date: 2020-06-21
keywords: blogging, writing
published: true
---

Here are some words. And this is some math:

{% katexmm %}
e = mc^2. \tag{1}
{% endkatexmm %}

Cool!
1 change: 1 addition & 0 deletions assets/katex.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 1bdc76e

Please sign in to comment.