diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..92dc685 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +*.swp +~* +*~ +_site +.sass-cache +.jekyll-cache +.jekyll-metadata +vendor +_notebooks/.ipynb_checkpoints diff --git a/404.html b/404.html new file mode 100644 index 0000000..00cc241 --- /dev/null +++ b/404.html @@ -0,0 +1,24 @@ +--- +permalink: /404.html +layout: default +--- + + + +
+

404

+

Page not found :(

+

The requested page could not be found.

+
diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..ef117f0 --- /dev/null +++ b/Gemfile @@ -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" + diff --git a/README.md b/README.md new file mode 100644 index 0000000..2b3400f --- /dev/null +++ b/README.md @@ -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. diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..f468870 --- /dev/null +++ b/_config.yml @@ -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 diff --git a/_includes/alert.html b/_includes/alert.html new file mode 100644 index 0000000..3592963 --- /dev/null +++ b/_includes/alert.html @@ -0,0 +1,4 @@ +
+ {% octicon alert %} + {{include.text}} +
diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..44ad1e1 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,53 @@ + + + + + {%- seo -%} + + + {%- feed_meta -%} + {%- if jekyll.environment == 'production' and site.google_analytics -%} + {%- include google-analytics.html -%} + {%- endif -%} + + {% if site.use_math %} + + + + + + {% endif %} + + + + diff --git a/_includes/image b/_includes/image new file mode 100644 index 0000000..165b3ae --- /dev/null +++ b/_includes/image @@ -0,0 +1,11 @@ +
+ {{ include.caption }} + {% if include.caption %} +
{{ include.caption }}
+ {% endif %} +
+ diff --git a/_includes/image-r b/_includes/image-r new file mode 100644 index 0000000..1137491 --- /dev/null +++ b/_includes/image-r @@ -0,0 +1,11 @@ +
+ {{ include.caption }} + {% if include.caption %} +
{{ include.caption }}
+ {% endif %} +
+ diff --git a/_includes/info.html b/_includes/info.html new file mode 100644 index 0000000..e54c773 --- /dev/null +++ b/_includes/info.html @@ -0,0 +1,4 @@ +
+ {% octicon info %} + {{include.text}} +
diff --git a/_includes/screenshot b/_includes/screenshot new file mode 100644 index 0000000..393c61d --- /dev/null +++ b/_includes/screenshot @@ -0,0 +1,7 @@ +
+ + {% if include.caption %} +
{{ include.caption }}
+ {% endif %} +
+ diff --git a/_includes/social.html b/_includes/social.html new file mode 100644 index 0000000..1e48c60 --- /dev/null +++ b/_includes/social.html @@ -0,0 +1,13 @@ + diff --git a/_posts/2020-01-14-welcome.md b/_posts/2020-01-14-welcome.md new file mode 100755 index 0000000..e8b3fdc --- /dev/null +++ b/_posts/2020-01-14-welcome.md @@ -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 + +![](/images/logo.png "fast.ai's logo") + +## 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. + diff --git a/about.md b/about.md new file mode 100644 index 0000000..0ad4eea --- /dev/null +++ b/about.md @@ -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. + diff --git a/assets/main.scss b/assets/main.scss new file mode 100644 index 0000000..784e913 --- /dev/null +++ b/assets/main.scss @@ -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; } + diff --git a/images/logo.png b/images/logo.png new file mode 100644 index 0000000..ee8f242 Binary files /dev/null and b/images/logo.png differ diff --git a/index.md b/index.md new file mode 100644 index 0000000..1ec15b5 --- /dev/null +++ b/index.md @@ -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: + +![Image of fast.ai logo](images/logo.png) + +## 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.