Skip to content

Commit 7fb3296

Browse files
Initial commit
0 parents  commit 7fb3296

17 files changed

+364
-0
lines changed

.gitignore

+9
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

+24
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

+34
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

+3
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

+43
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

+4
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

+53
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/[email protected]/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/[email protected]/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
17+
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/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

+11
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

+11
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

+4
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>

_includes/screenshot

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<figure>
2+
<img class="image" srcset="/images/{{ include.url }} 2w" sizes="1px" src="/images/{{ include.url }}">
3+
{% if include.caption %}
4+
<figcaption class="image-caption">{{ include.caption }}</figcaption>
5+
{% endif %}
6+
</figure>
7+

_includes/social.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<ul class="social-media-list">
2+
<li><a href="https://github.com/{{ site.github.owner_name | cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username">{{ site.github.owner_name | escape }}</span></a></li>
3+
{%- if site.dribbble_username -%}<li><a href="https://dribbble.com/{{ site.dribbble_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#dribbble' | relative_url }}"></use></svg> <span class="username">{{ site.dribbble_username| escape }}</span></a></li>{%- endif -%}
4+
{%- if site.facebook_username -%}<li><a href="https://www.facebook.com/{{ site.facebook_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#facebook' | relative_url }}"></use></svg> <span class="username">{{ site.facebook_username| escape }}</span></a></li>{%- endif -%}
5+
{%- if site.flickr_username -%}<li><a href="https://www.flickr.com/photos/{{ site.flickr_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#flickr' | relative_url }}"></use></svg> <span class="username">{{ site.flickr_username| escape }}</span></a></li>{%- endif -%}
6+
{%- if site.instagram_username -%}<li><a href="https://instagram.com/{{ site.instagram_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#instagram' | relative_url }}"></use></svg> <span class="username">{{ site.instagram_username| escape }}</span></a></li>{%- endif -%}
7+
{%- if site.linkedin_username -%}<li><a href="https://www.linkedin.com/in/{{ site.linkedin_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#linkedin' | relative_url }}"></use></svg> <span class="username">{{ site.linkedin_username| escape }}</span></a></li>{%- endif -%}
8+
{%- if site.pinterest_username -%}<li><a href="https://www.pinterest.com/{{ site.pinterest_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#pinterest' | relative_url }}"></use></svg> <span class="username">{{ site.pinterest_username| escape }}</span></a></li>{%- endif -%}
9+
{%- for mst in site.mastodon -%}{%- if mst.username and mst.instance -%}<li><a href="https://{{ mst.instance| cgi_escape | escape}}/@{{mst.username}}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#mastodon' | relative_url }}"></use></svg> <span class="username">{{ mst.username|escape }}</span></a></li>{%- endif -%}{%- endfor -%}
10+
{%- if site.twitter_username -%}<li><a href="https://www.twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#twitter' | relative_url }}"></use></svg> <span class="username">{{ site.twitter_username| escape }}</span></a></li>{%- endif -%}
11+
{%- if site.youtube_username -%}<li><a href="https://youtube.com/{{ site.youtube_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg> <span class="username">{{ site.youtube_username| escape }}</span></a></li>{%- endif -%}
12+
{%- if site.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg> <span>{{ site.rss | escape }}</span></a></li>{%- endif -%}
13+
</ul>

_posts/2020-01-14-welcome.md

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# This is the title
2+
3+
Here's the table of contents:
4+
5+
1. TOC
6+
{:toc}
7+
8+
## Basic setup
9+
10+
Jekyll requires blog post files to be named according to the following format:
11+
12+
`YEAR-MONTH-DAY-filename.md`
13+
14+
Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `filename` is whatever file name you choose, to remind yourself what this post is about. `.md` is the file extension for markdown files.
15+
16+
The first line of the file should start with a single hash character, then a space, then your title. This is how you create a "*level 1 heading*" in markdown. Then you can create level 2, 3, etc headings as you wish but repeating the hash character, such as you see in the line `## File names` above.
17+
18+
## Basic formatting
19+
20+
You can use *italics*, **bold**, `code font text`, and create [links](https://www.markdownguide.org/cheat-sheet/). Here's a footnote [^1]. Here's a horizontal rule:
21+
22+
---
23+
24+
## Lists
25+
26+
Here's a list:
27+
28+
- item 1
29+
- item 2
30+
31+
And a numbered list:
32+
33+
1. item 1
34+
1. item 2
35+
36+
## Boxes and stuff
37+
38+
> This is a quotation
39+
40+
{% include alert.html text="You can include alert boxes" %}
41+
42+
...and...
43+
44+
{% include info.html text="You can include info boxes" %}
45+
46+
## Images
47+
48+
![](/images/logo.png "fast.ai's logo")
49+
50+
## Code
51+
52+
General preformatted text:
53+
54+
# Do a thing
55+
do_thing()
56+
57+
Python code and output:
58+
59+
```python
60+
# Prints '2'
61+
print(1+1)
62+
```
63+
64+
2
65+
66+
## Tables
67+
68+
| Column 1 | Column 2 |
69+
|-|-|
70+
| A thing | Another thing |
71+
72+
## Footnotes
73+
74+
[^1]: This is the footnote.
75+

about.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# About
2+
3+
This is where you put the contents of your *About* page. Like all your pages, it's in [Markdown](https://guides.github.com/features/mastering-markdown/) format.
4+

assets/main.scss

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
# Only the main Sass file needs front matter (the dashes are enough)
3+
---
4+
5+
@import "{{ site.theme }}";
6+
7+
.post img {
8+
display: block;
9+
border:1px solid #021a40;
10+
vertical-align: top;
11+
margin-left: auto;
12+
margin-right: auto;
13+
}
14+
15+
.post figcaption {
16+
text-align: center;
17+
font-size: .8rem;
18+
font-style: italic;
19+
color: light-grey;
20+
}
21+
22+
.language-python { border-left: 1px solid lightcoral; }
23+
24+
.language-python + .language-plaintext {
25+
border-left: 1px solid grey;
26+
margin-left: 1rem !important;
27+
}
28+
.language-python + .language-plaintext code { background-color: white !important; }
29+
.language-python + .language-plaintext pre { background-color: white !important; }
30+
31+
// for Jupyter Notebook HTML Code Cells from https://www.fast.ai/public/css/hyde.css
32+
33+
.input_area pre, .input_area div {
34+
margin-bottom:0.1rem !important;
35+
margin-top:0.1rem !important;
36+
padding-bottom:0 !important;
37+
padding-top:0 !important;
38+
}
39+
.output_area pre, .output_area div {
40+
margin-bottom:0.1rem !important;
41+
margin-top:0.1rem !important;
42+
padding-bottom:0 !important;
43+
padding-top:0 !important;
44+
background-color: white !important;
45+
}
46+
.input_area pre {
47+
border-left: 1px solid lightcoral;
48+
}
49+
.output_area pre {
50+
border-left: 1px solid grey;
51+
margin-left: 1rem !important;
52+
}
53+
.codecell {
54+
border-right: 2px solid lightgrey;
55+
margin-bottom:1rem !important;
56+
margin-top:1rem !important;
57+
padding-bottom:0 !important;
58+
padding-top:0 !important;
59+
}
60+
61+
.codecell table { width: auto; }
62+

images/logo.png

6.96 KB
Loading

index.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Hello and welcome to this blog. Edit the `index.md` file to change this content. All pages on the blog, including this one, use [Markdown](https://guides.github.com/features/mastering-markdown/). You can include images:
2+
3+
![Image of fast.ai logo](images/logo.png)
4+
5+
## This is a title
6+
7+
And you can include links, like this [link to fast.ai](https://www.fast.ai). Posts will appear after this file.

0 commit comments

Comments
 (0)