Skip to content

Commit 271df76

Browse files
committed
Initial commit
0 parents  commit 271df76

File tree

17 files changed

+364
-0
lines changed

17 files changed

+364
-0
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.swp
2+
~*
3+
*~
4+
_site
5+
.sass-cache
6+
.jekyll-cache
7+
.jekyll-metadata
8+
vendor
9+
_notebooks/.ipynb_checkpoints

404.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
permalink: /404.html
3+
layout: default
4+
---
5+
6+
<style type="text/css" media="screen">
7+
.container {
8+
margin: 10px auto;
9+
max-width: 600px;
10+
text-align: center;
11+
}
12+
h1 {
13+
margin: 30px 0;
14+
font-size: 4em;
15+
line-height: 1;
16+
letter-spacing: -1px;
17+
}
18+
</style>
19+
20+
<div class="container">
21+
<h1>404</h1>
22+
<p><strong>Page not found :(</strong></p>
23+
<p>The requested page could not be found.</p>
24+
</div>

Gemfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
source "https://rubygems.org"
2+
# Hello! This is where you manage which Jekyll version is used to run.
3+
# When you want to use a different version, change it below, save the
4+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5+
#
6+
# bundle exec jekyll serve
7+
#
8+
# This will help ensure the proper Jekyll version is running.
9+
# Happy Jekylling!
10+
# gem "jekyll", "~> 4.0.0"
11+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
12+
gem "minima", "~> 2.5"
13+
# To upgrade, run `bundle update github-pages`.
14+
gem "github-pages", group: :jekyll_plugins
15+
# If you have any plugins, put them here!
16+
group :jekyll_plugins do
17+
gem "jekyll-feed", "~> 0.12"
18+
gem 'jekyll-octicons'
19+
end
20+
21+
gem "jekyll-github-metadata"
22+
23+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
24+
# and associated library.
25+
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
26+
gem "tzinfo", "~> 1.2"
27+
gem "tzinfo-data"
28+
end
29+
30+
# Performance-booster for watching directories on Windows
31+
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
32+
33+
gem "faraday", "< 1.0"
34+

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Your blog
2+
3+
This is the repository for your blog! Click *_config.yml* above to get started and fill in the details. Then click *index.md* and edit it to start creating your home page.

_config.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog.
4+
#
5+
# If you need help with YAML syntax, here are some quick references for you:
6+
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
7+
# https://learnxinyminutes.com/docs/yaml/
8+
9+
title: Edit _config.yml to set your title!
10+
description: This is where the description of your site will go. You should change it by editing the _config.yml file. It can be as long as you like! Happy blogging... ❤
11+
github_username: jph00
12+
13+
# Email and twitter are optional:
14+
email:
15+
twitter_username:
16+
17+
# Set this to true to get LaTeX math equation support
18+
use_math:
19+
20+
# Add your Google Analytics ID here if you have one and want to use it
21+
google_analytics:
22+
23+
# Everything below here can be ignored, unless you want to change the theme entirely
24+
theme: minima
25+
plugins:
26+
- jekyll-feed
27+
- jekyll-gist
28+
- jekyll-octicons
29+
- jekyll-github-metadata
30+
31+
titles_from_headings:
32+
enabled: true
33+
strip_title: true
34+
collections: true
35+
36+
highlighter: rouge
37+
markdown: kramdown
38+
kramdown:
39+
math_engine: katex
40+
input: GFM
41+
auto_ids: true
42+
hard_wrap: false
43+
syntax_highlighter: rouge

_includes/alert.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="Toast Toast--warning googoo">
2+
<span class="Toast-icon">{% octicon alert %}</span>
3+
<span class="Toast-content">{{include.text}}</span>
4+
</div>

_includes/head.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
{%- seo -%}
6+
<link href="https://unpkg.com/@primer/css/dist/primer.css" rel="stylesheet" />
7+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
8+
{%- feed_meta -%}
9+
{%- if jekyll.environment == 'production' and site.google_analytics -%}
10+
{%- include google-analytics.html -%}
11+
{%- endif -%}
12+
13+
{% if site.use_math %}
14+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
15+
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"> </script>
16+
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
17+
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"></script>
18+
<script>
19+
document.addEventListener("DOMContentLoaded", function() {
20+
renderMathInElement( document.body, {
21+
delimiters: [
22+
{left: "$$", right: "$$", display: true},
23+
{left: "[%", right: "%]", display: true},
24+
{left: "$", right: "$", display: false}
25+
]}
26+
);
27+
});
28+
</script>
29+
{% endif %}
30+
31+
<script>
32+
function wrap_img(fn) {
33+
if (document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading") {
34+
var elements = document.querySelectorAll(".post img");
35+
Array.prototype.forEach.call(elements, function(el, i) {
36+
if (el.getAttribute("title")) {
37+
const caption = document.createElement('figcaption');
38+
var node = document.createTextNode(el.getAttribute("title"));
39+
caption.appendChild(node);
40+
const wrapper = document.createElement('figure');
41+
wrapper.className = 'image';
42+
el.parentNode.insertBefore(wrapper, el);
43+
el.parentNode.removeChild(el);
44+
wrapper.appendChild(el);
45+
wrapper.appendChild(caption);
46+
}
47+
});
48+
} else { document.addEventListener('DOMContentLoaded', fn); }
49+
}
50+
window.onload = wrap_img;
51+
</script>
52+
53+
</head>

_includes/image

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<figure>
2+
<img class="image" width="{{ include.w }}" src="/images/{{ include.url }}"
3+
{% if include.caption %}
4+
alt="{{ include.caption }}"
5+
{% endif %}
6+
>
7+
{% if include.caption %}
8+
<figcaption class="image-caption">{{ include.caption }}</figcaption>
9+
{% endif %}
10+
</figure>
11+

_includes/image-r

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<figure style="float: right;">
2+
<img class="image" width="{{ include.w }}" src="/images/{{ include.url }}"
3+
{% if include.caption %}
4+
alt="{{ include.caption }}"
5+
{% endif %}
6+
>
7+
{% if include.caption %}
8+
<figcaption class="image-caption">{{ include.caption }}</figcaption>
9+
{% endif %}
10+
</figure>
11+

_includes/info.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="Toast">
2+
<span class="Toast-icon">{% octicon info %}</span>
3+
<span class="Toast-content">{{include.text}}</span>
4+
</div>

0 commit comments

Comments
 (0)