diff --git a/Gemfile b/Gemfile index de77416..4557963 100644 --- a/Gemfile +++ b/Gemfile @@ -2,13 +2,11 @@ source "https://rubygems.org" ruby RUBY_VERSION gem "jekyll" -gem "minimal-mistakes-jekyll" group :jekyll_plugins do gem "jekyll-paginate" gem "jekyll-sitemap" gem "jekyll-gist" gem "jekyll-feed" - gem "jekyll-include-cache" gem "jekyll-octicons" end diff --git a/_config.yml b/_config.yml index eca50f0..8dfb18b 100644 --- a/_config.yml +++ b/_config.yml @@ -4,10 +4,6 @@ description: Software developer and technical writer based in Vancouver, Canada. baseurl: "" url: "http://alphang.com" -# Theme -theme: minimal-mistakes-jekyll -minimal_mistakes_skin: "dark" - # Build settings markdown: kramdown highlighter: rouge @@ -19,7 +15,6 @@ plugins: - jekyll-sitemap - jekyll-gist - jekyll-feed - - jekyll-include-cache - jekyll-octicons # Pagination @@ -34,10 +29,8 @@ author: avatar: "/assets/brick-road-alpha.jpg" links: - label: "GitHub" - icon: "fab fa-fw fa-github" url: "https://github.com/alphang" - label: "LinkedIn" - icon: "fab fa-fw fa-linkedin" url: "https://www.linkedin.com/in/alphang" # Defaults @@ -46,16 +39,12 @@ defaults: path: "" type: posts values: - layout: single - author_profile: true - read_time: true - share: false + layout: post - scope: path: "" type: pages values: - layout: single - author_profile: true + layout: page exclude: - CLAUDE.md diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..996c1f9 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,184 @@ + + + + + + {% if page.title %}{{ page.title }} — {% endif %}{{ site.title }} + + + {% feed_meta %} + + + + + + + + + + + + + + + + + +
+ {{ content }} +
+ + + + + + + + + diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 0000000..3d0ac66 --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,116 @@ +--- +layout: default +--- + +
+ + +
+ {% if site.author.avatar %} +
+ {{ site.author.name }} +
+

Author

+

{{ site.author.name }}

+
+
+ {% endif %} + +

+ Software developer
+ & technical writer. +

+

+ {{ site.description }} +

+
+ + +
+

+ Latest Posts + +

+ + {% if paginator.posts.size > 0 %} +
+ {% for post in paginator.posts %} +
+
+
+
+ + {% if post.categories.size > 0 %} + · + {% for cat in post.categories limit:2 %} + {{ cat }} + {% endfor %} + {% endif %} +
+ +

+ {{ post.title }} +

+ + {% if post.excerpt %} +

+ {{ post.excerpt | strip_html | truncate: 150 }} +

+ {% endif %} +
+ +
+ + Read + + + + +
+
+
+ {% endfor %} +
+ + {% if paginator.total_pages > 1 %} + + {% endif %} + + {% else %} +
+

No posts yet — check back soon.

+
+ {% endif %} + +
+
diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100644 index 0000000..9ac7b70 --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,18 @@ +--- +layout: default +--- + +
+ +
+

+ {{ page.title }} +

+
+
+ +
+ {{ content }} +
+ +
diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..78b96cc --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,73 @@ +--- +layout: default +--- + +
+ + +
+ + + + + All posts + +
+ + +
+
+ + {% if page.categories.size > 0 %} + · + {% for cat in page.categories limit:3 %} + {{ cat }} + {% endfor %} + {% endif %} +
+ +

+ {{ page.title }} +

+ +
+ {% if site.author.avatar %} + {{ site.author.name }} + {% endif %} +
+

{{ site.author.name }}

+

{{ site.author.location }}

+
+
+
+ + +
+ {{ content }} +
+ + + + +
diff --git a/_posts/2026-03-01-hello-world.markdown b/_posts/2026-03-01-hello-world.markdown new file mode 100644 index 0000000..157ac19 --- /dev/null +++ b/_posts/2026-03-01-hello-world.markdown @@ -0,0 +1,51 @@ +--- +layout: post +title: "Hello, World" +date: 2026-03-01 12:00:00 -0700 +categories: meta +--- + +A first post to break in the new look. + +## What changed + +The site has been rebuilt with a custom Tailwind CSS template — clean, dark, and fully hand-rolled. The previous theme was [Minimal Mistakes](https://mmistakes.github.io/minimal-mistakes/), which is excellent but ships with a lot I wasn't using. + +The new setup is a thin layer of custom Jekyll layouts over Tailwind's utility classes, loaded via the Play CDN. No npm, no PostCSS pipeline, no build step beyond the standard `bundle exec jekyll build`. + +## What stays the same + +- Posts live in `_posts/` with standard Jekyll front matter +- Pages like About and Projects are plain Markdown files +- The site deploys to GitHub Pages via GitHub Actions on every push to `master` + +## Writing posts + +Front matter is minimal: + +```yaml +--- +layout: post +title: "Post Title" +date: 2026-03-01 12:00:00 -0700 +categories: writing code +--- +``` + +Everything else — author info, navigation, footer — comes from `_config.yml` and the layout files in `_layouts/`. + +## Code blocks + +Syntax highlighting is handled by Rouge (Jekyll's default). Inline `code` and fenced blocks both render cleanly in the dark theme. + +```javascript +function greet(name) { + return `Hello, ${name}!`; +} + +console.log(greet('World')); +``` + +--- + +Source is on [GitHub](https://github.com/alphang/alphang.github.io). diff --git a/index.html b/index.html index b95bb1f..e4d427d 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,3 @@ --- layout: home -author_profile: true ---