-
Notifications
You must be signed in to change notification settings - Fork 88
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
Moving to a GitHub CMS #10
Comments
this is a test comment |
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Corrupti fugiat quod non ipsum perspiciatis voluptatum pariatur explicabo enim, suscipit sapiente, quo perferendis amet sint voluptates. Quibusdam ullam voluptatibus expedita repudiandae quos tenetur, modi eligendi eos. Sit cum unde dolor assumenda error, suscipit earum, corrupti molestias vero quae incidunt enim aspernatur magni inventore reprehenderit esse rerum quas, at itaque? Autem repellendus cupiditate natus vero inventore sit! let foo = 123 Excepturi expedita optio in! Sapiente rerum fuga dignissimos odit iure laboriosam earum non dolores obcaecati repellendus ipsum minus enim eum et, totam facere? Doloribus autem sed magni nobis aspernatur nulla officiis impedit nostrum obcaecati assumenda! |
How long does it take for new reactions to come on the netlify rendered blog? |
So I can't see my comment edits on the rendered blog because I think that is due to the edge caching you mentioned on netlify? |
yeah because i cache the api response for 1min-1hr. i think if you retry on incognito it will work i have not implemented reactions on comments yet… pr welcome for that one haha |
test comments for testing markdown rendering in comments. its buggy right now, i think bc of the sanitization SnarkdownSnarkdown is easy to Here's an important anchor link. Two newlines creates a line break. Or, end a line with two spaces. Code & Poetry
Or, wrap your code in three backticks:
Block Quotes
Lists
|
noice. |
i fixed the buggy snarkdown rendering with the string replace recommended here developit/snarkdown#69 |
This is really cool! |
wow is amazing |
Curious to see if it supports syntax highlighting for a given language function veryCool() {
console.log('awesome approach!')
} |
haha no, because this is all rendered clientside and i didnt want to add extra js weight, but you should be able to add highlight.js easily |
<script>alert('this should not happen');</script>
Hello World! |
<script>
import FeatureCard from '$lib/../components/FeatureCard.svelte';
</script>
HelloIt will be awesome if this can work ;) |
<script> import FeatureCard from '$lib/../components/FeatureCard.svelte'; </script> It would be a major security flaw if this would work ;) |
category: essay
subtitle: Why I chose to use GitHub Issues as a CMS (and you should too!)
tags: github cms
Here are my requirements for blogging platforms:
After thinking through local markdown, GraphCMS, Notion, Strapi, Directus, and so on, I've finally settled on using GitHub as a CMS.
I've long admired the OneGraph approach to blogging:
However their use of Relay is a bit too high overhead for me. So I built my own using just the GitHub REST API.
The primary problem with GH's API is that it rate limits at 5000 requests an hour, which is dicey for a high traffic blog. So either you prerender at build, or you cache on request (we can also cache on build). Netlify's On Demand Builders are a partial solution to this - partial because content updates will not be respected. I think this is an acceptable tradeoff for all the other functionality github as a cms offers.
The PR for doing this is available here: #9
Edit: users may also want to explore using Utterances for authed comments https://github.com/utterance/utterances
Edit 2: I answered some FAQs here #50
The text was updated successfully, but these errors were encountered: