generated from fastai/fast_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9348623
Showing
17 changed files
with
364 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.swp | ||
~* | ||
*~ | ||
_site | ||
.sass-cache | ||
.jekyll-cache | ||
.jekyll-metadata | ||
vendor | ||
_notebooks/.ipynb_checkpoints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
permalink: /404.html | ||
layout: default | ||
--- | ||
|
||
<style type="text/css" media="screen"> | ||
.container { | ||
margin: 10px auto; | ||
max-width: 600px; | ||
text-align: center; | ||
} | ||
h1 { | ||
margin: 30px 0; | ||
font-size: 4em; | ||
line-height: 1; | ||
letter-spacing: -1px; | ||
} | ||
</style> | ||
|
||
<div class="container"> | ||
<h1>404</h1> | ||
<p><strong>Page not found :(</strong></p> | ||
<p>The requested page could not be found.</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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" | ||
# 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-feed", "~> 0.12" | ||
gem 'jekyll-octicons' | ||
end | ||
|
||
gem "jekyll-github-metadata" | ||
|
||
# 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? | ||
|
||
gem "faraday", "< 1.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Your blog | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Welcome to Jekyll! | ||
# | ||
# This config file is meant for settings that affect your whole blog. | ||
# | ||
# If you need help with YAML syntax, here are some quick references for you: | ||
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml | ||
# https://learnxinyminutes.com/docs/yaml/ | ||
|
||
title: Edit _config.yml to set your title! | ||
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... ❤ | ||
github_username: jph00 | ||
|
||
# Email and twitter are optional: | ||
email: | ||
twitter_username: | ||
|
||
# Set this to true to get LaTeX math equation support | ||
use_math: | ||
|
||
# Add your Google Analytics ID here if you have one and want to use it | ||
google_analytics: | ||
|
||
# Everything below here can be ignored, unless you want to change the theme entirely | ||
theme: minima | ||
plugins: | ||
- jekyll-feed | ||
- jekyll-gist | ||
- jekyll-octicons | ||
- jekyll-github-metadata | ||
|
||
titles_from_headings: | ||
enabled: true | ||
strip_title: true | ||
collections: true | ||
|
||
highlighter: rouge | ||
markdown: kramdown | ||
kramdown: | ||
math_engine: katex | ||
input: GFM | ||
auto_ids: true | ||
hard_wrap: false | ||
syntax_highlighter: rouge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="Toast Toast--warning googoo"> | ||
<span class="Toast-icon">{% octicon alert %}</span> | ||
<span class="Toast-content">{{include.text}}</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
{%- seo -%} | ||
<link href="https://unpkg.com/@primer/css/dist/primer.css" rel="stylesheet" /> | ||
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}"> | ||
{%- feed_meta -%} | ||
{%- if jekyll.environment == 'production' and site.google_analytics -%} | ||
{%- include google-analytics.html -%} | ||
{%- endif -%} | ||
|
||
{% if site.use_math %} | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous"> | ||
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"> </script> | ||
<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> | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"></script> | ||
<script> | ||
document.addEventListener("DOMContentLoaded", function() { | ||
renderMathInElement( document.body, { | ||
delimiters: [ | ||
{left: "$$", right: "$$", display: true}, | ||
{left: "[%", right: "%]", display: true}, | ||
{left: "$", right: "$", display: false} | ||
]} | ||
); | ||
}); | ||
</script> | ||
{% endif %} | ||
|
||
<script> | ||
function wrap_img(fn) { | ||
if (document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading") { | ||
var elements = document.querySelectorAll(".post img"); | ||
Array.prototype.forEach.call(elements, function(el, i) { | ||
if (el.getAttribute("title")) { | ||
const caption = document.createElement('figcaption'); | ||
var node = document.createTextNode(el.getAttribute("title")); | ||
caption.appendChild(node); | ||
const wrapper = document.createElement('figure'); | ||
wrapper.className = 'image'; | ||
el.parentNode.insertBefore(wrapper, el); | ||
el.parentNode.removeChild(el); | ||
wrapper.appendChild(el); | ||
wrapper.appendChild(caption); | ||
} | ||
}); | ||
} else { document.addEventListener('DOMContentLoaded', fn); } | ||
} | ||
window.onload = wrap_img; | ||
</script> | ||
|
||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<figure> | ||
<img class="image" width="{{ include.w }}" src="/images/{{ include.url }}" | ||
{% if include.caption %} | ||
alt="{{ include.caption }}" | ||
{% endif %} | ||
> | ||
{% if include.caption %} | ||
<figcaption class="image-caption">{{ include.caption }}</figcaption> | ||
{% endif %} | ||
</figure> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<figure style="float: right;"> | ||
<img class="image" width="{{ include.w }}" src="/images/{{ include.url }}" | ||
{% if include.caption %} | ||
alt="{{ include.caption }}" | ||
{% endif %} | ||
> | ||
{% if include.caption %} | ||
<figcaption class="image-caption">{{ include.caption }}</figcaption> | ||
{% endif %} | ||
</figure> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="Toast"> | ||
<span class="Toast-icon">{% octicon info %}</span> | ||
<span class="Toast-content">{{include.text}}</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<figure> | ||
<img class="image" srcset="/images/{{ include.url }} 2w" sizes="1px" src="/images/{{ include.url }}"> | ||
{% if include.caption %} | ||
<figcaption class="image-caption">{{ include.caption }}</figcaption> | ||
{% endif %} | ||
</figure> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<ul class="social-media-list"> | ||
<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> | ||
{%- 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 -%} | ||
{%- 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 -%} | ||
{%- 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 -%} | ||
{%- 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 -%} | ||
{%- 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 -%} | ||
{%- 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 -%} | ||
{%- 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 -%} | ||
{%- 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 -%} | ||
{%- 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 -%} | ||
{%- 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 -%} | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# This is the title | ||
|
||
Here's the table of contents: | ||
|
||
1. TOC | ||
{:toc} | ||
|
||
## Basic setup | ||
|
||
Jekyll requires blog post files to be named according to the following format: | ||
|
||
`YEAR-MONTH-DAY-filename.md` | ||
|
||
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. | ||
|
||
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. | ||
|
||
## Basic formatting | ||
|
||
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: | ||
|
||
--- | ||
|
||
## Lists | ||
|
||
Here's a list: | ||
|
||
- item 1 | ||
- item 2 | ||
|
||
And a numbered list: | ||
|
||
1. item 1 | ||
1. item 2 | ||
|
||
## Boxes and stuff | ||
|
||
> This is a quotation | ||
{% include alert.html text="You can include alert boxes" %} | ||
|
||
...and... | ||
|
||
{% include info.html text="You can include info boxes" %} | ||
|
||
## Images | ||
|
||
 | ||
|
||
## Code | ||
|
||
General preformatted text: | ||
|
||
# Do a thing | ||
do_thing() | ||
|
||
Python code and output: | ||
|
||
```python | ||
# Prints '2' | ||
print(1+1) | ||
``` | ||
|
||
2 | ||
|
||
## Tables | ||
|
||
| Column 1 | Column 2 | | ||
|-|-| | ||
| A thing | Another thing | | ||
|
||
## Footnotes | ||
|
||
[^1]: This is the footnote. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# About | ||
|
||
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
# Only the main Sass file needs front matter (the dashes are enough) | ||
--- | ||
|
||
@import "{{ site.theme }}"; | ||
|
||
.post img { | ||
display: block; | ||
border:1px solid #021a40; | ||
vertical-align: top; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
.post figcaption { | ||
text-align: center; | ||
font-size: .8rem; | ||
font-style: italic; | ||
color: light-grey; | ||
} | ||
|
||
.language-python { border-left: 1px solid lightcoral; } | ||
|
||
.language-python + .language-plaintext { | ||
border-left: 1px solid grey; | ||
margin-left: 1rem !important; | ||
} | ||
.language-python + .language-plaintext code { background-color: white !important; } | ||
.language-python + .language-plaintext pre { background-color: white !important; } | ||
|
||
// for Jupyter Notebook HTML Code Cells from https://www.fast.ai/public/css/hyde.css | ||
|
||
.input_area pre, .input_area div { | ||
margin-bottom:0.1rem !important; | ||
margin-top:0.1rem !important; | ||
padding-bottom:0 !important; | ||
padding-top:0 !important; | ||
} | ||
.output_area pre, .output_area div { | ||
margin-bottom:0.1rem !important; | ||
margin-top:0.1rem !important; | ||
padding-bottom:0 !important; | ||
padding-top:0 !important; | ||
background-color: white !important; | ||
} | ||
.input_area pre { | ||
border-left: 1px solid lightcoral; | ||
} | ||
.output_area pre { | ||
border-left: 1px solid grey; | ||
margin-left: 1rem !important; | ||
} | ||
.codecell { | ||
border-right: 2px solid lightgrey; | ||
margin-bottom:1rem !important; | ||
margin-top:1rem !important; | ||
padding-bottom:0 !important; | ||
padding-top:0 !important; | ||
} | ||
|
||
.codecell table { width: auto; } | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
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: | ||
|
||
 | ||
|
||
## This is a title | ||
|
||
And you can include links, like this [link to fast.ai](https://www.fast.ai). Posts will appear after this file. |