-
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
Sebastian Nickels
committed
Jan 5, 2024
1 parent
5eaccd8
commit bb14a64
Showing
34 changed files
with
1,561 additions
and
3 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,2 @@ | ||
--- | ||
BUNDLE_PATH: "/home/snickels/.local/share/gem" |
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,10 @@ | ||
--- | ||
layout: default | ||
title: "404: Page not found" | ||
permalink: 404.html | ||
--- | ||
|
||
<div class="page"> | ||
<h1 class="page-title">404: Page not found</h1> | ||
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ site.baseurl }}/">Head back home</a> to try finding it again.</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,6 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "jekyll" | ||
gem "jekyll-gist" | ||
gem "jekyll-paginate" | ||
gem "jekyll-seo-tag" |
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,84 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
addressable (2.7.0) | ||
public_suffix (>= 2.0.2, < 5.0) | ||
colorator (1.1.0) | ||
concurrent-ruby (1.1.6) | ||
em-websocket (0.5.1) | ||
eventmachine (>= 0.12.9) | ||
http_parser.rb (~> 0.6.0) | ||
eventmachine (1.2.7) | ||
faraday (1.0.1) | ||
multipart-post (>= 1.2, < 3) | ||
ffi (1.13.1) | ||
forwardable-extended (2.6.0) | ||
http_parser.rb (0.6.0) | ||
i18n (1.8.5) | ||
concurrent-ruby (~> 1.0) | ||
jekyll (4.1.1) | ||
addressable (~> 2.4) | ||
colorator (~> 1.0) | ||
em-websocket (~> 0.5) | ||
i18n (~> 1.0) | ||
jekyll-sass-converter (~> 2.0) | ||
jekyll-watch (~> 2.0) | ||
kramdown (~> 2.1) | ||
kramdown-parser-gfm (~> 1.0) | ||
liquid (~> 4.0) | ||
mercenary (~> 0.4.0) | ||
pathutil (~> 0.9) | ||
rouge (~> 3.0) | ||
safe_yaml (~> 1.0) | ||
terminal-table (~> 1.8) | ||
jekyll-gist (1.5.0) | ||
octokit (~> 4.2) | ||
jekyll-paginate (1.1.0) | ||
jekyll-sass-converter (2.1.0) | ||
sassc (> 2.0.1, < 3.0) | ||
jekyll-seo-tag (2.6.1) | ||
jekyll (>= 3.3, < 5.0) | ||
jekyll-watch (2.2.1) | ||
listen (~> 3.0) | ||
kramdown (2.3.0) | ||
rexml | ||
kramdown-parser-gfm (1.1.0) | ||
kramdown (~> 2.0) | ||
liquid (4.0.3) | ||
listen (3.2.1) | ||
rb-fsevent (~> 0.10, >= 0.10.3) | ||
rb-inotify (~> 0.9, >= 0.9.10) | ||
mercenary (0.4.0) | ||
multipart-post (2.1.1) | ||
octokit (4.18.0) | ||
faraday (>= 0.9) | ||
sawyer (~> 0.8.0, >= 0.5.3) | ||
pathutil (0.16.2) | ||
forwardable-extended (~> 2.6) | ||
public_suffix (4.0.5) | ||
rb-fsevent (0.10.4) | ||
rb-inotify (0.10.1) | ||
ffi (~> 1.0) | ||
rexml (3.2.4) | ||
rouge (3.21.0) | ||
safe_yaml (1.0.5) | ||
sassc (2.4.0) | ||
ffi (~> 1.9) | ||
sawyer (0.8.2) | ||
addressable (>= 2.3.5) | ||
faraday (> 0.8, < 2.0) | ||
terminal-table (1.8.0) | ||
unicode-display_width (~> 1.1, >= 1.1.1) | ||
unicode-display_width (1.7.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
jekyll | ||
jekyll-gist | ||
jekyll-paginate | ||
jekyll-seo-tag | ||
|
||
BUNDLED WITH | ||
2.1.4 |
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 @@ | ||
# Released under MIT License | ||
|
||
Copyright (c) 2013 Mark Otto. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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 |
---|---|---|
@@ -1,2 +1,128 @@ | ||
# Portfolio | ||
Hey, my name is Sebastian Nickels and I am a data scientist based in Berlin, Germany. | ||
# Dark Poole | ||
|
||
 | ||
|
||
Dark Poole is a permanent dark theme of the Poole theme by [@mdo](https://github.com/mdo). I made the theme darker, inspired by [Derek Kedziora's site](https://derekkedziora.com/). Unlike default Poole that utilizes CSS media queries to activate dark mode, the theme will stay dark regardless of the user's preference. | ||
|
||
- I added a navbar that is easily customizable. Check out [Development](#development) to see how. | ||
- I also got rid of the "tagline" in the navbar. I think it looks cleaner without it. | ||
- Finally, I changed the default font size to 20px. I have 20/20 vision and still thought the original font size was too small. | ||
|
||
That's it! I tried to be least intrusive as possible to the Poole code base. | ||
|
||
**I noticed that Poole's documentation is slightly outdated and misleading. This documentation will try to address most, if not all, of these issues.** | ||
|
||
--- | ||
|
||
## Contents | ||
|
||
- [Usage](#usage) | ||
- [Development](#development) | ||
- [Author](#author) | ||
- [License](#license) | ||
|
||
## Usage | ||
|
||
### 1. Install dependencies | ||
|
||
Poole is built on Jekyll and uses its built-in SCSS compiler to generate our CSS. Before getting started, you'll need to install the Jekyll gem and related dependencies: | ||
|
||
```bash | ||
$ gem install jekyll jekyll-gist jekyll-sitemap jekyll-seo-tag | ||
``` | ||
|
||
### 2. Install bundler | ||
|
||
You must have bundler installed. If you already have bundler installed, please skip this step. | ||
|
||
```bash | ||
# Update Rubygems | ||
$ gem update --system | ||
# Update bundler | ||
$ gem install bundler | ||
``` | ||
|
||
### 3. Running locally | ||
|
||
To see your Jekyll site with Poole applied, start a Jekyll server. In Terminal, from `/dark-poole` (or whatever your Jekyll site's root directory is named): | ||
|
||
```bash | ||
$ bundle exec jekyll serve | ||
``` | ||
|
||
Open <http://localhost:4000> in your browser, and voilà. | ||
|
||
### 4. Serving it up | ||
|
||
If you host your code on GitHub, you can use [GitHub Pages](https://pages.github.com) to host your project. | ||
|
||
1. Fork this repo and switch to the `gh-pages` branch. | ||
1. If you're [using a custom domain name](https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages), modify the `CNAME` file to point to your new domain. | ||
1. If you're not using a custom domain name, **modify the `url` in `_config.yml`** to point to your GitHub Pages URL. Example: for a site hosted at `username.github.io`, use `http://username.github.io`. | ||
1. If you want to use your repo name as a base url, **set the `url`** to your repo link and **set the `baseurl`** to your repo name in **`_config.yml`**. Example: for site hosted on `https://username.github.io/dark-poole`, set `url` as `https://username.github.io/dark-poole` and `baseurl` as `/dark-poole`. | ||
1. Done! Head to your GitHub Pages URL or custom domain. | ||
|
||
No matter your production or hosting setup, be sure to verify the `baseurl` option file and `CNAME` settings. Not applying this correctly can mean broken styles on your site. | ||
|
||
### 5. Pagination for sites with base urls | ||
|
||
If you are using a base url for your site, (for example, hosted on `https://username.github.io/dark-poole`) you have to make some changes to get jekyll-pagination to work correctly: | ||
|
||
In `_config.yml`, add this line: | ||
|
||
```yaml | ||
paginate_path: "/baseurl/page:num/" | ||
``` | ||
In `archive.md`, add `{{ site.baseurl }}` before `{{ post.url }}` | ||
|
||
```html | ||
<!-- Add "{{ site.baseurl }}" --> | ||
<li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li> | ||
``` | ||
|
||
In `index.html`, remove the `prepend:`: | ||
|
||
```html | ||
<!-- Remove "prepend:" in "prepend: relative_url" --> | ||
<a | ||
class="pagination-item newer" | ||
href="{{ paginator.previous_page_path | relative_url }}" | ||
>Newer</a | ||
> | ||
``` | ||
|
||
## Development | ||
|
||
Poole has two branches, but only one is used for active development. | ||
|
||
- `master` for development. **All pull requests should be to submitted against `master`.** | ||
- `gh-pages` for hosted demo **Please avoid using this branch.** | ||
|
||
CSS is handled via Jeykll's built-in Sass compiler. Source Sass files are located in `_sass/`, included into `styles.scss`, and compile to `styles.css`. | ||
|
||
### Customize Navbar | ||
|
||
You can easily customize the navbar by tweaking the `_config.yml` file. Simply change the title and url of each of the nav elements, or add more. The order will be preserved in the site. | ||
|
||
```yaml | ||
nav: | ||
- title: Blog | ||
url: /archive | ||
- title: About | ||
url: /about | ||
``` | ||
|
||
## Author | ||
|
||
**Mark Otto** | ||
|
||
- <https://github.com/mdo> | ||
- <https://twitter.com/mdo> | ||
|
||
## License | ||
|
||
Open sourced under the [MIT license](LICENSE.md). | ||
|
||
<3 |
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 |
---|---|---|
@@ -1 +1,49 @@ | ||
remote_theme: sblisesivdin/biscuit | ||
# Setup | ||
title: Sebastian Nickels | ||
url: https://snickels.io | ||
paginate: 1 | ||
paginate_path: "/page:num/" | ||
baseurl: "/" | ||
permalink: pretty | ||
|
||
# Gems | ||
plugins: | ||
- jekyll-gist | ||
- jekyll-paginate | ||
- jekyll-seo-tag | ||
|
||
# Optimize Jekyll | ||
exclude: | ||
- .editorconfig | ||
- .git | ||
- .jekyll-cache | ||
- Gemfile | ||
- Gemfile.lock | ||
- LICENSE.md | ||
- README.md | ||
|
||
sass: | ||
sass_dir: _sass | ||
style: :compressed | ||
|
||
# Options | ||
|
||
# Replace this value and uncomment to enable Google Analytics tracking | ||
# ga_analytics: UA-000000-0 | ||
|
||
# Specify the author for blog posts | ||
author: | ||
name: Sebastian Nickels | ||
# url: https://twitter.com/mdo | ||
# email: [email protected] | ||
|
||
# Custom vars | ||
# version: 3.0.0 | ||
|
||
# Navbar page list | ||
nav: | ||
- title: About | ||
url: /about | ||
|
||
- title: Blog | ||
url: /archive |
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,26 @@ | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
|
||
<title> | ||
{% if page.title == "Home" %} {{ site.title }}{% if site.tagline %} · | ||
{{ site.tagline }}{% endif %} {% else %} {{ page.title }} · {{ | ||
site.title }} {% endif %} | ||
</title> | ||
|
||
<link rel="stylesheet" href="{{ 'styles.css' | relative_url }}" /> | ||
<link | ||
rel="apple-touch-icon-precomposed" | ||
sizes="144x144" | ||
href="{{ '/assets/apple-touch-icon-precomposed.png' | relative_url }}" | ||
/> | ||
<link rel="shortcut icon" href="{{ '/assets/favicon.ico' | relative_url }}" /> | ||
<link | ||
rel="alternate" | ||
type="application/atom+xml" | ||
title="{{ site.title }}" | ||
href="{{ 'atom.xml' | relative_url }}" | ||
/> | ||
|
||
{% seo title=false %} | ||
</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,59 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" data-theme="dark-poole"> | ||
{% include head.html %} | ||
|
||
<body> | ||
<div class="container content"> | ||
<header class="masthead"> | ||
<h3 class="masthead-title"> | ||
<a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a> | ||
|
||
<nav class="nav"> | ||
{% for nav in site.nav %} | ||
<small><a href="{{ nav.url }}">{{ nav.title }}</a></small> | ||
{% endfor %} | ||
</nav> | ||
</h3> | ||
</header> | ||
|
||
<main> | ||
{{ content }} | ||
</main> | ||
|
||
<footer class="footer"> | ||
<small> | ||
© | ||
<time datetime="{{ site.time | date_to_xmlschema }}" | ||
>{{ site.time | date: '%Y' }}</time | ||
>. All rights reserved. | ||
</small> | ||
</footer> | ||
</div> | ||
|
||
{% if site.ga_analytics %} | ||
<script> | ||
(function (i, s, o, g, r, a, m) { | ||
i["GoogleAnalyticsObject"] = r; | ||
(i[r] = | ||
i[r] || | ||
function () { | ||
(i[r].q = i[r].q || []).push(arguments); | ||
}), | ||
(i[r].l = 1 * new Date()); | ||
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]); | ||
a.async = 1; | ||
a.src = g; | ||
m.parentNode.insertBefore(a, m); | ||
})( | ||
window, | ||
document, | ||
"script", | ||
"https://www.google-analytics.com/analytics.js", | ||
"ga" | ||
); | ||
ga("create", "{{ site.ga_analytics }}", "auto"); | ||
ga("send", "pageview"); | ||
</script> | ||
{% endif %} | ||
</body> | ||
</html> |
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,8 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<article class="page"> | ||
<h1 class="page-title">{{ page.title }}</h1> | ||
{{ content }} | ||
</article> |
Oops, something went wrong.