From 97c51d35455440592c86e3948edda1b4f4e6b4b3 Mon Sep 17 00:00:00 2001 From: Matthew Tran Date: Mon, 3 Jul 2023 23:39:54 -0700 Subject: [PATCH] added basic jekyll files --- .gitignore | 10 ++-- 404.html | 25 ++++++++ Gemfile | 33 +++++++++++ Gemfile.lock | 84 +++++++++++++++++++++++++++ _config.yml | 55 ++++++++++++++++++ _posts/2023-07-03-moving-to-jekyll.md | 9 +++ about.md | 12 ++++ index.md | 3 + 8 files changed, 225 insertions(+), 6 deletions(-) create mode 100644 404.html create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 _config.yml create mode 100644 _posts/2023-07-03-moving-to-jekyll.md create mode 100644 about.md create mode 100644 index.md diff --git a/.gitignore b/.gitignore index 74a9223..f40fbd8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,5 @@ -_site/ -.sass-cache/ -.jekyll-cache/ +_site +.sass-cache +.jekyll-cache .jekyll-metadata -# Ignore folders generated by Bundler -.bundle/ -vendor/ +vendor diff --git a/404.html b/404.html new file mode 100644 index 0000000..086a5c9 --- /dev/null +++ b/404.html @@ -0,0 +1,25 @@ +--- +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..ff2c342 --- /dev/null +++ b/Gemfile @@ -0,0 +1,33 @@ +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.3.2" +# This is the default theme for new Jekyll sites. You may change this to anything you like. +gem "minima", "~> 2.5" +# If you want to use GitHub Pages, remove the "gem "jekyll"" above and +# uncomment the line below. 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" +end + +# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem +# and associated library. +platforms :mingw, :x64_mingw, :mswin, :jruby do + gem "tzinfo", ">= 1", "< 3" + gem "tzinfo-data" +end + +# Performance-booster for watching directories on Windows +gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin] + +# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem +# do not have a Java counterpart. +gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby] diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..a3feac2 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,84 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.8.4) + public_suffix (>= 2.0.2, < 6.0) + colorator (1.1.0) + concurrent-ruby (1.2.2) + em-websocket (0.5.3) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0) + eventmachine (1.2.7) + ffi (1.15.5) + forwardable-extended (2.6.0) + google-protobuf (3.23.3-x86_64-darwin) + http_parser.rb (0.8.0) + i18n (1.14.1) + concurrent-ruby (~> 1.0) + jekyll (4.3.2) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 1.0) + jekyll-sass-converter (>= 2.0, < 4.0) + jekyll-watch (~> 2.0) + kramdown (~> 2.3, >= 2.3.1) + kramdown-parser-gfm (~> 1.0) + liquid (~> 4.0) + mercenary (>= 0.3.6, < 0.5) + pathutil (~> 0.9) + rouge (>= 3.0, < 5.0) + safe_yaml (~> 1.0) + terminal-table (>= 1.8, < 4.0) + webrick (~> 1.7) + jekyll-feed (0.17.0) + jekyll (>= 3.7, < 5.0) + jekyll-sass-converter (3.0.0) + sass-embedded (~> 1.54) + jekyll-seo-tag (2.8.0) + jekyll (>= 3.8, < 5.0) + jekyll-watch (2.2.1) + listen (~> 3.0) + kramdown (2.4.0) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) + liquid (4.0.4) + listen (3.8.0) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + mercenary (0.4.0) + minima (2.5.1) + jekyll (>= 3.5, < 5.0) + jekyll-feed (~> 0.9) + jekyll-seo-tag (~> 2.1) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (5.0.1) + rb-fsevent (0.11.2) + rb-inotify (0.10.1) + ffi (~> 1.0) + rexml (3.2.5) + rouge (4.1.2) + safe_yaml (1.0.5) + sass-embedded (1.63.6-x86_64-darwin) + google-protobuf (~> 3.23) + terminal-table (3.0.2) + unicode-display_width (>= 1.1.1, < 3) + unicode-display_width (2.4.2) + webrick (1.8.1) + +PLATFORMS + x86_64-darwin-22 + +DEPENDENCIES + http_parser.rb (~> 0.6.0) + jekyll (~> 4.3.2) + jekyll-feed (~> 0.12) + minima (~> 2.5) + tzinfo (>= 1, < 3) + tzinfo-data + wdm (~> 0.1.1) + +BUNDLED WITH + 2.4.15 diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..22eb82a --- /dev/null +++ b/_config.yml @@ -0,0 +1,55 @@ +# Welcome to Jekyll! +# +# This config file is meant for settings that affect your whole blog, values +# which you are expected to set up once and rarely edit after that. If you find +# yourself editing this file very often, consider using Jekyll's data files +# feature for the data you need to update frequently. +# +# For technical reasons, this file is *NOT* reloaded automatically when you use +# 'bundle exec jekyll serve'. If you change this file, please restart the server process. +# +# 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/ +# +# Site settings +# These are used to personalize your new site. If you look in the HTML files, +# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. +# You can create any custom variable you would like, and they will be accessible +# in the templates via {{ site.myvariable }}. + +title: Matthew Tran's Blog! +email: matthewlamtran@berkeley.edu +description: >- # this means to ignore newlines until "baseurl:" + Hi! I'm a human being who loves to learn new things and create cool projects. +url: "https://matthewtran.dev" # the base hostname & protocol for your site, e.g. http://example.com +github_username: dragonlock2 +linkedin_username: matthewlamtran + +# Build settings +permalink: /:year/:month/:title/ +show_excerpts: true + +theme: minima +plugins: + - jekyll-feed + +# Exclude from processing. +# The following items will not be processed, by default. +# Any item listed under the `exclude:` key here will be automatically added to +# the internal "default list". +# +# Excluded items can be processed by explicitly listing the directories or +# their entries' file path in the `include:` list. +# +# exclude: +# - .sass-cache/ +# - .jekyll-cache/ +# - gemfiles/ +# - Gemfile +# - Gemfile.lock +# - node_modules/ +# - vendor/bundle/ +# - vendor/cache/ +# - vendor/gems/ +# - vendor/ruby/ diff --git a/_posts/2023-07-03-moving-to-jekyll.md b/_posts/2023-07-03-moving-to-jekyll.md new file mode 100644 index 0000000..88acc9e --- /dev/null +++ b/_posts/2023-07-03-moving-to-jekyll.md @@ -0,0 +1,9 @@ +--- +layout: post +title: "Moving to Jekyll" +date: 2023-07-03 +categories: other +excerpt: After several years on WordPress, I realized that I would be better served by a static site generator like Jekyll. It'll be far more maintainable and secure and can even be deployed on Github Pages. +--- + +Nothing much to see here. If the process gets rocky, I'll add some comments. diff --git a/about.md b/about.md new file mode 100644 index 0000000..2cd0993 --- /dev/null +++ b/about.md @@ -0,0 +1,12 @@ +--- +layout: page +title: About +permalink: /about/ +excerpt: The obligatory "about me" page. +--- + +Hi! I'm Matthew and I've been a maker for just about my entire life. I discovered my passion way back in elementary school and have been on a lifelong journey of learning ever since. That journey led me to getting an EECS degree at UC Berkeley where I learned a hell of a lot and realized just how much there's still left to learn. For now I'm working in industry, having lots of fun but also making sure not to overwork myself too much. I don't have quite as much time for personal projects anymore, but that's the price of trying to make a living. + +I created this blog so that I may finally document my journey. Human memory isn't perfect and it'll be pretty awesome to scroll back and say, "Hey! I did that!" Heck, I already do that when looking at my camera roll. I hope to also inspire others who are on a similar path and perhaps be the mentor I wish I had growing up. Since I believe guarding knowledge impedes societal progress, everything I do here will be as free and open-source as possible. + +This site will likely be hosted on Github Pages which will free up my home server for some fun shenanigans. Check out [https://matthewtran.com](matthewtran.com) to see what I'm doing there. diff --git a/index.md b/index.md new file mode 100644 index 0000000..e4d427d --- /dev/null +++ b/index.md @@ -0,0 +1,3 @@ +--- +layout: home +---