KeyStatic这个CMS挺好用的,尤其是对于白嫖党来说相当友好。
1. Gitbash,数据可以都存在Github上,包括图片
2. 支持Vercel、Cloudflare、Netlify等平台的云函数
3. 一些框架的集成挺方便的,Astro几分钟就能配置好
不过我图片不太想放在Github上,但是目前还没有S3、R2的支持,但是项目组有相关的计划,可以小小期待一波。
cms
现在的CMS系统都设计都好强悍呀!
昨天刷到蜗牛大佬Star了一个叫 [pocketbase](https://pocketbase.io/) 的内容管理系统,Go写的,结构简单,API、权限什么都一应俱全,相当哇撒了。
因为官方没有自带slug生成的功能,所以我跟着官方文档写了个转换脚本,提供的event也相当多,很有意思。
目前唯一的疑惑是为啥不提供markdown格式的fields呀?
#CMS #Github #博客
```javascript
onRecordBeforeUpdateRequest((e) => {
const pinyin = require(`pinyin`);
const title = e.record.get("title");
const titleToSlug = (title) => {
const pinyinTitle = pinyin(title, {
style: pinyin.STYLE_NORMAL, // 普通风格
heteronym: false, // 不使用多音字
})
.flat()
.join("-"); // 将拼音数组转换为字符串并用短横线连接
return pinyinTitle
.trim() // 去除首尾空格
.replace(/[\s]+/g, "-") // 将空格替换为短横线
.replace(/[^\w\-]+/g, "") // 删除非字母数字和非短横线字符
.replace(/--+/g, "-") // 替换多个短横线为一个短横线
.replace(/^-+|-+$/g, ""); // 去除首尾的短横线
};
// 示例用法
const slug = titleToSlug(title);
e.record.set("slug", slug);
}, "posts");
```
Looking for CMS advice
Hey Web devs!
Do you have any suggestions, tips, opinions, dos, don’ts about headless CMSes?
I have a growing list of small/mid non-profits and collectives asking for my help to (re)make their website. I totally want to help, but I don’t have much time, especially considering that they generally have little or no funding—I would most definitely point them to @VillageOneCoop, otherwise.
Therefore, I want a super simple and replicable solution where I can copy-paste most of the code, while providing them with a stable, fast, and modern solution. I had a look at the Headless CMS section in the Jamstack website, but I need opinions from people who actually used some of that software already.
Needs
I want to code and configure everything using @eleventy
Admin interface (#WebApp) for the client to add pages and write posts
Static website in the front-end
Simple and reliable CI/CD
No/minimal maintenance after the first setup
Self-hostable (I was taking this for granted so much that I forgot to write it)
If it requires forge integration, it should support #ForgeJo
#OpenSource
Nice to have
Possibly using #Deno, not #NodeJS
Allowing the client to customize a bit their website through the admin interface, with a GUI
CMS app packaged on @yunohost
No CMS vendor lock-in
I’d love to write as little JavaScript as possible
#FreeSoftware
Absolutely not
Front-end #JavaScript frameworks
Please, boost this and ask around! Links to videos, tutorials, and resources are welcome.
People whose perspective I would really value: @zachleat @harryfk @deno_land @jaredwhite @vanillaweb @stefan @mxbck @WeirdWriter @deadsuperhero (Sorry if I am spamming you!)
#Eleventy #11ty #CMS #HeadlessCMS #Ghost #DecapCMS #CraftCMS #Strapi #Web #WebDev #WebDesign #StaticGen #StaticWebsite #Website #HTML #CSS #YunoHost #SelfHosting #Wordpress
Drupal.community is a Mastodon server focused on Drupal, free and open source software and web development, but any content is welcome as long as it adheres to the Drupal Code of Conduct.
Find out more at https://drupal.community/about or contact the admin @pcambra
#FeaturedServer #Drupal #WebDev #WebDevelopment #CMS #FOSS #Mastodon #Fediverse #FreeFediverse