Commit graph

18 commits

Author SHA1 Message Date
064177fbf7 Set titles on post mount/unmount 2017-10-14 10:15:48 -07:00
4fce19a7bf Use a global config for some parameters
This can later be loaded from JSON or something, but for now it just
lives with the rest of the code. I'm already going to mix data with code
in this repo and these values shouldn't change much, so I'm fine with
that.

This is my personal site after all. I'm not expecting to release this in
a way for others to use.
2017-10-14 09:56:45 -07:00
bfa8c704d7 Tag routes, complete with pagination! 2017-10-11 20:16:44 -07:00
5a94ee35e6 fix highlighting on posts and pages 2017-10-07 21:00:04 -07:00
e69c47e2c4 Add page object with top-level routes 2017-10-07 19:34:56 -07:00
687b378a8c refactor Posts into their own file 2017-10-07 18:19:18 -07:00
6b0c0f2d88 Scroll to top on location change 2017-10-07 17:46:52 -07:00
9fad879181 Proper HistoryNav
Detects whether there's a previous page or next page, the old HistoryNav
was made to be dumber and most of the logic now lives in Posts (which is
the only thing that uses HistoryNav anyway)

The side-effect is that the nav is now within the content column, which
is okay since it's symmetric now.
2017-10-07 17:31:33 -07:00
5e7fbcd3a4 Fix Article/Post naming
Post/Posts is better than FullArticle/Articles since that's really what
they are. Paves the way for a Page to render an Article.
2017-10-07 15:11:21 -07:00
da3307962d tweak page title 2017-10-07 14:52:40 -07:00
9f307a15c4 Move NotFound out to its own file 2017-10-07 14:38:43 -07:00
4d9923854d Re-jigger articles
There's now a base Article class, and then FullArticle and Articles
classes which are what react-router routes to
2017-10-07 14:26:23 -07:00
5d799021f0 HistoryNav working with routing 2017-10-07 12:27:33 -07:00
0968c22cf6 Fetch Articles from JSON blob 2017-10-07 12:08:50 -07:00
9c346056ed half-assed attempt to futz around with react-router 2017-10-01 20:38:04 -07:00
e26074d01f highlight code with highlight.js 2017-09-24 21:44:11 -07:00
f2244ea3ed Reimpliment the website design in React 2017-09-24 21:23:59 -07:00
833e5f19fc initial commit 2017-09-24 17:04:47 -07:00