Commit graph

58 commits

Author SHA1 Message Date
8ede266169 update config for rss/atom 2018-01-18 22:22:54 -08:00
7308419301 OMG FEATURE PARITY WITH REACT
... almost. It looks identical, just some minor things to fix up.

Yes! the templates exist now and work!!

Add `clean` back to `make all` and use `-c` in `gsutil rsync`, which
will ignore mtime and use checksums when comparing files instead,
meaning we don't have to re-upload all of /media/ every time! (^_^)

Also fix a broken link to the kegerator project page
2018-01-15 22:13:47 -08:00
3d4e86c462 fix page permissions 2018-01-15 20:48:01 -08:00
75714f651c move css/fonts to media, get rid of public folder 2018-01-15 20:44:01 -08:00
29d9dfd1f5 add all make target 2018-01-15 20:40:58 -08:00
0af1cafcd4 Get rid of more JS stuff, replace publish.sh with a Makefile 2018-01-15 20:36:40 -08:00
a32c587c41 update README 2018-01-15 20:31:44 -08:00
8ebedf6765 get rid of JS garbage 2018-01-15 20:30:27 -08:00
787f49f2fc move stuff around for Posty2, add base config 2018-01-14 20:31:13 -08:00
6ced08d443 fix post dates 2017-10-14 21:43:26 -07:00
aaef669aa8 Add publish script, only knows about test so far 2017-10-14 17:27:53 -07:00
3eedb94180 Port the Python build script over to JS
`npm run build` now builds both the site.json file and the React app.
Two new run scripts are available:

* build_site - just build the site.json file
* build_code - build the React app
2017-10-14 17:16:15 -07:00
55610cb0ba Merge the real site metadata into this repo 2017-10-14 10:41:31 -07:00
02a17e1465 Reset the page title in App if it doesn't look right 2017-10-14 10:19:38 -07:00
9b14fc82be set title on pages 2017-10-14 10:17:16 -07:00
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
6109bb690d Unify slugify()
Provides a new util.js file with a unified `slugify()` function that also
lowercases the slug. Change all uses of `slugify()` to use this instead.
2017-10-11 22:26:39 -07:00
b9fe8c7f38 match posts on year/month too
Shouldn't assume that slugs will be globally unique, this enforces
month-local uniqueness instead
2017-10-11 22:20:30 -07:00
e22f52b06d Zero-pad months < 10
This is greasy, but it doesn't look like JS has a sprintf-alike
2017-10-11 22:12:30 -07:00
b696005d89 Pick top N tags from posts 2017-10-11 21:35:19 -07:00
2446ec7f95 Replace static bullshit tags with bullshit tags from the state 2017-10-11 20:30:34 -07:00
bfa8c704d7 Tag routes, complete with pagination! 2017-10-11 20:16:44 -07:00
89d0ac2a86 properly link tags in articles 2017-10-11 20:16:18 -07:00
b2e67e0125 deprecate RouterListLink 2017-10-11 20:15:57 -07:00
5a94ee35e6 fix highlighting on posts and pages 2017-10-07 21:00:04 -07:00
7e838f31ec remove HTML comment 2017-10-07 20:00:11 -07:00
062185020b Add links to pages in the sidebar nav 2017-10-07 19:57:06 -07:00
67dd5dbe17 add slug to About test page 2017-10-07 19:35:08 -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
2bd0b602ff Display NotFound on missing posts 2017-10-07 17:55:44 -07:00
4743912d9d Don't show history nav if 404ing 2017-10-07 17:53:03 -07:00
6b0c0f2d88 Scroll to top on location change 2017-10-07 17:46:52 -07:00
01eb8c8d3c remove console logging 2017-10-07 17:35:27 -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
04a4e8a93f Remove loading messages to help with the illusion 2017-10-07 15:46:59 -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
60e6e75cb4 actually load tags from the post 2017-10-07 14:59:43 -07:00
77d7938c54 remove some console.logs 2017-10-07 14:59:25 -07:00
da3307962d tweak page title 2017-10-07 14:52:40 -07:00
698a553afc Show 404 if you ask for a page of posts that has none
A later TODO is to to only display the Older Posts link if there are
older posts to show. That's a little complicated, this is at least a
quick win.
2017-10-07 14:42:35 -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
348703077b add slugify package 2017-10-07 14:26:08 -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
1554308f8a numbers in site posts 2017-10-07 11:52:02 -07:00
579af158e0 Add example site.json file
This is approximately what the JSON blob will eventually look like
2017-10-07 10:31:31 -07:00
3784568621 remove React favicon 2017-10-07 10:19:06 -07:00