PSLmodels / blog

PSL blog using Fastpages.
http://blog.pslmodels.org
2 stars 6 forks source link

CCC 11/30/2020 demo day post #16

Closed jdebacker closed 3 years ago

jdebacker commented 3 years ago

This PR adds a blog post for the 11/30/2020 demo day on using the CCC web application.

jdebacker commented 3 years ago

@MaxGhenis a couple questions:

  1. Are spaces ok in the tags? e.g., [corporate income tax]
  2. Do I need commas or anything separating tags?
  3. Can I have a hyperlink in the author name?
MaxGhenis commented 3 years ago

Thanks for the post, @jdebacker. For some reason this one isn't working right when I preview it via make server (screenshots below - wrong title on main page and bad rendering in the post). I'll debug more tomorrow. Responses to your questions inline.

  1. Are spaces ok in the tags? e.g., [corporate income tax]

They work, but the URLs look kind of funky, e.g. http://blog.pslmodels.org/categories/#demo-days would be http://blog.pslmodels.org/categories/#demo%20days, and since posts have tags in their URL it'd be http://blog.pslmodels.org/demo%20days/2020/11/23/tax-cruncher.html instead of http://blog.pslmodels.org/demo-days/2020/11/23/tax-cruncher.html. So I think it'd be cleaner to use dashes in all tags.

  1. Do I need commas or anything separating tags?

Per the Fastpages docs, the format is [tag1, tag2]. I submitted a commit to your branch fixing this.

  1. Can I have a hyperlink in the author name?

I tried this with Markdown and it didn't work. Author pages are available with other Jekyll themes, so we could explore those down the road.

Main page: image Post: image

MaxGhenis commented 3 years ago

I asked about this on the forum: https://forums.fast.ai/t/blog-post-not-rendering-correctly/82922

jdebacker commented 3 years ago

@MaxGhenis I just removed a space, which could have been the issue. But how do I preview what the post will look like? I can view the markdown preview, but not the rendered html in my texts editor.

MaxGhenis commented 3 years ago

Removing the space worked!

You can test locally by cloning the repo and running make server from the root directory.

This post revealed that URLs include the full set of categories, which I reported in #17. If others agree with changing that, I think we should fix it before merging this in so this post has a stable URL.

jdebacker commented 3 years ago

@MaxGhenis Let me know if I should make any adjustment to the file name given what you decide on the URLs.

jdebacker commented 3 years ago

@MaxGhenis I believe I've made all the changes you suggested.

I ran make server locally and generated index.html and things looked ok (though buried in a bunch of folders named after the tags).