-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Idea: Arbitrary Post meta-data #214
Comments
The bit of code is here:
in |
That's a good idea. The only downside that occurs to me would be the disappearance of p.s. I don't understand this part:
What would be the good way, how would you do it in Scribble? |
True. Although perhaps that could be configured in the blog's frog.rkt config file? Perhaps something like
Okay, so probably not the best way in the world. And I'd have to double check how frog renders scribble files, but what I was thinking was having the template post.html file use a parameter defined in a different racket file, and having the blog post setting that parameter. |
I always have a mixed feeling about these metadata. As I use only Scribble (never use Markdown), I would prefer to have something like Pollen's <frog-metadata>
<key>k</key>
<value>v</value>
</frog-metadata> and then you can simply search over the xexpr for |
I have been playing with Frog the last few days, and i, too, would love this sort of feature. Unfortunately my Racket-fu is super rusty (much embarrassment) and so i've kinda been struggling with trying a few things:
Anyway, apologies for the helplessness, i'm going to continue poking about and see if i can make something work. Just consider this a "thank you" for making Frog and a +1 on the feature request? 😅 |
Right now a post can have metadata for
Title
,Date
,Tags
, andAuthors
. This is sufficient for most cases, but sometimes you want additional information in each post.For example, lets say I wanted to enable comments, but I didn't like using disqus. I could follow this tutorial (http://hydroecology.net/using-github-to-host-blog-comments/), to use github issues to host comments for me. Unfortunately, there isn't a direct mapping from a github issue to the post itself, and so would need to be denoted for every post.
Right now, there is no good way to do that when using markdown, meaning I'd have to write all of my posts with scribble. I mean, you 'could' make a tag for the issue number, and parse that out, but that seems a bit...clunky. Instead, it might make sense to have extra meta-data be available to the
post-template.html
andpage-template.html
files, so that they can be used in formatting the page.The text was updated successfully, but these errors were encountered: