Live data from Hacker News

Show HN: Pages CMS – A CMS for GitHub

pagescms.org

11–20 of 122 posts

Re: Show HN: Pages CMS – A CMS for GitHub

#13
EDIT:

I didn't have a `media` entry in my pages.yml, which meant the rich text editor wasn't loading (JS error was being thrown). When I added that entry, it started working! Brilliant work!

I'm using Jekyll, with yaml frontmatter, and it's not clear how to specify the body. The documentation says that a rich text field could be set up with a "name" option (and gives "body") as an example but my Markdown files don't specify a name for the body.. it's just... there:

https://github.com/colinramsay/colinramsay.github.io/blob/ma...

I'm probably missing something but happy to open an issue if not.

Re: Show HN: Pages CMS – A CMS for GitHub

#14
post #5

Earlier quoted context omitted.

I have a very surface understanding of mdx, but basically it's a mix of markdown and JSX syntax, no? Didn't know you could define some sort of fields like you seem to do with: import { MdxLayout } from "components/mdx-layout.tsx"; export const meta = { slug: "all-time-high", publishedAt: "2022-09-16T10:00:00.000Z", title: "All time high", headerImage: "https://june-changelog.s3.eu-central-1.amazonaws.com/changelog_at…

Honestly as a v1, I'd just love for you to parse out the whole text file and give me a basic markdown editor! I don't particularly care about having advanced filtering or of parsing my "meta" data

The editor will kinda work for individual mdx files, just not collections. I guess you could try the following to see:

  media: public
  content:
    - name: changelog
      label: Changelog
      type: file
      path: pages/changelogs/2022-in-review.mdx
      format: code
Obviously not super useful at this stage, especially since I haven't figured out mdx support in Codemirror yet.

I can probably get collections to work though in the next few days. I'll let you know.

Re: Show HN: Pages CMS – A CMS for GitHub

#15
This looks cool but I moved all my repos to a self-hosted forge when GitHub openly and notoriously refused to stop collaborating with ICE (that runs concentration camps in Texas).

It would be nice to have this support generic/arbitrary git servers. I’ve been feeling this pain point for a while and have been considering building something like this myself.

Re: Show HN: Pages CMS – A CMS for GitHub

#16
post #10

What the hell is going on with the little sentences in that example? I thought it was supposed to be like, a bad VC rap joke song or something? I was looking for rhymes. It's really lame.

They're the titles of the author's blog posts: https://ronanberder.com/ (see bottom of page) - i.e. it's a screenshot of them using it for their own blog.

Re: Show HN: Pages CMS – A CMS for GitHub

#17
post #12

This is really cool! I was sad when Forestry went down and this looks better than TinaCMS. I'm trying to set it up with my Eleventy blog (paavandesign.com/blog) and struggling to get the body field working

Is your repo public? Happy to have a look if it is.

Have you also checked the examples: https://pagescms.org/docs/examples/

Re: Show HN: Pages CMS – A CMS for GitHub

#18
post #9

Nice to see a new entry in the git based CMS realm, I really appreciate that you seem to understand the importance of a good user experience for editing content! Am I gathering correctly that this does not actually require you to host a backend somewhere? The GitHub OAuth will work even if the CMS is just statically hosted on Cloudflare Pages / Netlify? This was something I always found a little strange about Netlify…

That's the lightest I could figure out to get OAuth rolling, but it does almost nothing and doesn't store your token.

You don't have to host anything if you use the online version, but you can self host it fairly easily for free on Cloudflare Pages: https://pagescms.org/docs/development/#deploy-on-cloudflare

Re: Show HN: Pages CMS – A CMS for GitHub

#19
post #12

This is really cool! I was sad when Forestry went down and this looks better than TinaCMS. I'm trying to set it up with my Eleventy blog (paavandesign.com/blog) and struggling to get the body field working

Is your repo public? Happy to have a look if it is. Have you also checked the examples: https://pagescms.org/docs/examples/

edit: this was the bug which I think you're already on top of! https://news.ycombinator.com/item?id=39468906

---

So 'body' is working if I set the type to text but when I set it to rich-text there's no input generated for body

Repo is private (sorry!) but here's the settings YAML file as it stands

     content:
      - name: blog
        label: Blog
        type: collection
        path: 'src/blog'
        view:
          fields: [ title, date]
        fields:
          - name: date
            label: Date
            type: date
          - name: title
            label: Title
            type: string
          - name: description
            label: Description
            type: string
          - name: tags
            label: Tags
            type: string
          - name: body
            label: Body
            type: rich-text

Re: Show HN: Pages CMS – A CMS for GitHub

#20

EDIT: I didn't have a `media` entry in my pages.yml, which meant the rich text editor wasn't loading (JS error was being thrown). When I added that entry, it started working! Brilliant work! I'm using Jekyll, with yaml frontmatter, and it's not clear how to specify the body. The documentation says that a rich text field could be set up with a "name" option (and gives "body") as an example but my Markdown files don't…

Thanks a lot for finding that bug. I'm adding a hotfix and will release in the next hour.
Post reply on HN