Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ task :build do
Jekyll::Commands::Build.build(site, config)
end

desc 'serve the Jekyll project with live reload'
task :serve do
config = Jekyll.configuration(
'watch' => true,
'serving' => true,
'port' => 4000,
'host' => '127.0.0.1'
)

Jekyll::Commands::Serve.process(config)
end

desc 'run playwright tests'
task :test do
sh 'npx playwright test'
Expand Down
53 changes: 43 additions & 10 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,51 @@
<head>
<!-- Meta -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="author" content="Jay Prall" />
<meta name="robots" content="follow" />

<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<!-- Title & Description -->
<title>
{% if page.title %}
{{ page.title }}
{% else %}
{{ site.title }}
{% endif %}
</title>

<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />
<meta name="description"
content="{% if page.excerpt %}
{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}
{% else %}
{{ site.description }}
{% endif %}">

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" type="text/javascript"></script>
<!-- Stylesheets -->
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}" />

<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css"
integrity="sha512-TktJbycEG5Van9KvrSHFUcYOKBroD7QCYkEe73HAutODCw9QTFcvF6fuxioYM1h6THNudK1GjVidazj6EslK4A=="
crossorigin="anonymous"
referrerpolicy="no-referrer" />

<!-- Canonical & RSS -->
<link rel="canonical"
href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" />

<link rel="alternate"
type="application/rss+xml"
title="{{ site.title }}"
href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />

<!-- Scripts -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js"
integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw=="
crossorigin="anonymous"
referrerpolicy="no-referrer">
</script>

<!-- codeql-disable js/functionality-from-untrusted-source -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- codeql-enable js/functionality-from-untrusted-source -->
</head>
57 changes: 26 additions & 31 deletions css/main.scss
Original file line number Diff line number Diff line change
@@ -1,54 +1,49 @@
---
# Only the main Sass file needs front matter (the dashes are enough)
sitemap_exclude: y
sitemap_exclude: true
---
@charset "utf-8";
@use 'sass:color';


@charset "utf-8";
@use "sass:color";

// Our variables
// Variables
$base-font-family: Helvetica, Arial, sans-serif;
$base-font-size: 16px;
$small-font-size: $base-font-size * 0.875;
$base-font-size: 16px;
$small-font-size: $base-font-size * 0.875;
$base-line-height: 1.5;

$spacing-unit: 30px;
$spacing-unit: 30px;

$text-color: #111;
$text-color: #111;
$background-color: #fdfdfd;
$brand-color: #2a7ae2;
$brand-color: #2a7ae2;

$grey-color: #828282;
$grey-color: #828282;
$grey-color-light: color.scale($grey-color, $lightness: 40%);
$grey-color-dark: color.scale($grey-color, $lightness: -25%);
$grey-color-dark: color.scale($grey-color, $lightness: -25%);

// Width of the content area
$content-width: 800px;

$on-palm: 600px;
$on-laptop: 800px;
$content-width: 800px;

$on-palm: 600px;
$on-laptop: 800px;


// Using media queries with like this:
// Media query mixin
// Usage:
// @include media-query($on-palm) {
// .wrapper {
// padding-right: calc($spacing-unit / 2);
// padding-left: calc($spacing-unit / 2);
// }
// .wrapper {
// padding-right: $spacing-unit / 2;
// padding-left: $spacing-unit / 2;
// }
// }
@mixin media-query($device) {
@media screen and (max-width: $device) {
@content;
}
@media screen and (max-width: $device) {
@content;
}
}



// Import partials from `sass_dir` (defaults to `_sass`)
@import
"base",
"layout",
"syntax-highlighting"
;
"base",
"layout",
"syntax-highlighting";