TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Elder.js – An Opinionated, SEO Focused, Svelte Framework

210 点作者 ramshorst将近 4 年前

18 条评论

nickreese将近 4 年前
Hey all, Elder.js author and maintainer.<p>Elder&#x27;s main &quot;opinionated-ness&quot; comes from the fact that we&#x27;re going to put SEO decisions above all others.<p>This includes doing things such as:<p>* partial hydration<p>* no client-side routing wiz-bang<p>* 0kb JS if there are no hydrated components<p>* and several other tradeoffs.<p>It was also built as an SSG first and it is really good at building very large sites (faster than Hugo). [0]<p>Happy to answer any questions. Here is an overview of the &quot;whys&quot; behind many of the uncommon decisions Elder.js made. [1]<p>---<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;Elderjs&#x2F;elderjs&#x2F;discussions&#x2F;166" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Elderjs&#x2F;elderjs&#x2F;discussions&#x2F;166</a><p>[1] <a href="https:&#x2F;&#x2F;nicholasreese.com&#x2F;lessons-from-building-a-static-site-generator&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nicholasreese.com&#x2F;lessons-from-building-a-static-sit...</a><p>Edit: format&#x2F;add links
评论 #27153822 未加载
评论 #27153831 未加载
评论 #27161210 未加载
评论 #27153283 未加载
评论 #27153469 未加载
skybrian将近 4 年前
This guide is nicely written but uses jargon that people who haven’t been keeping up with client and server-side JavaScript frameworks won’t be familiar with, including “route,” “slug,” and “hydration,” not to mention “Svelte” and “SEO.”<p>It seems fine for its intended audience, but if they wanted to help out beginners who somehow stumbled onto this page, adding some outgoing links to definitions where these terms are introduced might be useful.
评论 #27159302 未加载
评论 #27159825 未加载
评论 #27159108 未加载
apozem将近 4 年前
This is cool. I just shipped an app using Svelte [1] and I liked working with the framework. I would be interested to work with it more.<p>My app replaces Safari&#x27;s new tab page with a wallpaper and weather widget. Obviously performance is crucial for this - your wallpaper needs to appear immediately after you hit Cmd-T.<p>Svelte was a nice way to get the benefits of a component-based framework while still shipping only a tiny JS bundle to customers. It has some rough edges, but it&#x27;s cool to see the community fill out the gaps with tools like this.<p>[1]: <a href="https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;beautiful-new-tabs&#x2F;id1567068235" rel="nofollow">https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;beautiful-new-tabs&#x2F;id156706823...</a>
alexobenauer将近 4 年前
Quite the fan of Elder.js; I build my personal site using it (<a href="https:&#x2F;&#x2F;alexanderobenauer.com" rel="nofollow">https:&#x2F;&#x2F;alexanderobenauer.com</a>), where the entire site is built once, each time I push a change, then hosted on static hosting (Netlify).<p>The flexibility on how routes map to various files and templates is wonderful. Some routes are simply markdown files (copied directly from my notes app) that are then rendered into the right template file.
woodpanel将近 4 年前
Hi Nick, just saw your svelte summit presentation you gave and was pretty impressed with Edler.js!<p>I have a simple site, basically 5 different templates. 2 of those templates will be used for content of ~500 pages each. So Elder was exactly what I was looking for.<p>However:<p>I want to re-hydrate my server-side rendered app&#x2F;dynamic-parts <i>including client-side routing</i>.<p>Elderguide (and in the YT talk) mentions that for more complex SPA-y stuff I shouldn&#x27;t use it. I played around with Elder but finally settled on Routify, because it gives me re-hydrated client-site routing out of the box. SvelteKit I haven&#x27;t looked into at all because they released it just when I was done with my app ;-)<p>Would you mind elaborate how Elder&#x27;s feature differ from SvelteKit?<p>Thank you!<p>PS.: Even if my use-case might isn&#x27;t a fit, I think the use-case&#x27;s where Elder would be my first choice are pretty clear.
评论 #27154329 未加载
PinkPigeon将近 4 年前
&gt; A Highly Optimized Build Process: that will span as many CPU cores as you can throw at it to make building your site as fast as possible. For reference, Elder.js easily generates a data intensive 18,000 page site in 8 minutes using a budget 4 core VM.<p>How does this compare to something like Hugo?
评论 #27153666 未加载
评论 #27153240 未加载
评论 #27153251 未加载
评论 #27161383 未加载
apop880将近 4 年前
Big fan of Svelte an and was super-exited to find a static site generator that uses Svelte templates. Actually just released a redesign of my personal site using Elder.js today and am looking forward to using it for more projects in the future.<p>My site: <a href="https:&#x2F;&#x2F;apop.tech" rel="nofollow">https:&#x2F;&#x2F;apop.tech</a> GitHub repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;apop880&#x2F;apop-tech" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;apop880&#x2F;apop-tech</a>
RileyJames将近 4 年前
Previous built static sites with Jekyll (ruby) and most recently moved to NextJS + strapi.<p>This project looks like exactly what I was really after, 100% seo optimised &#x2F; prioritised + all SSG. Will definitely give this a shot for the next project.<p>Appreciate the effort!
fareesh将近 4 年前
Do you support full pre-rendering?<p>Let&#x27;s say I have 100 blog posts - can each of them be pre-rendered into HTML and stored on a CDN? Thereafter if I change a sentence in one of them, can it only recreate the one HTML that was changed?
评论 #27159158 未加载
linkdd将近 4 年前
I don&#x27;t understand what &quot;opinionated&quot; stands for in the context of a software&#x2F;framework&#x2F;technology.
评论 #27153465 未加载
评论 #27153320 未加载
评论 #27153018 未加载
domano将近 4 年前
So you wrote a whole SSG SEO Svelte Framework for a guide for elderly people and released it as Elder.js? I love it :)
评论 #27160896 未加载
techdragon将近 4 年前
I still find front end JavaScript development to be a chore, the least appealing part of any project idea, despite actually liking Working with HTML and CSS… it’s not even really JavaScript as a language.<p>It’s the ecosystem I don’t like. I read about “opinionated frameworks” and for a backend framework that tends to be something like Django or Rails, frameworks built to give you everything top to bottom, with clear layering and extension points. However for front end frameworks opinionated seems to mean “has more indecipherable lisp&#x2F;scheme function&#x2F;macro style logic” that does what the original author designed it for wonderfully but is a royal pain to extend, modify or really build off in any way other than just forking it.<p>I’d call this a “framework for sites where SEO is critical” not really an “opinionated framework” it’s more of a “single issue framework” to borrow a political term”<p>The only “opinionated framework” I’ve ever used in the front end&#x2F;JavaScript world that felt like a cohesive, truly opinionated framework in the backend Django&#x2F;Rails kinda way is EmberJS. Which I highly recommend to people who hate the whole JavaScript ecosystem churn. About the only negative I can highlight was poor IDE tooling with older versions which the most recent releases have improved on their end, but is for the most part an issue of IDE developers like JetBrains not considering EmberJS as important as the Angular family and the React, Vue, and other JSX based system family. Which I can understand for the most part due to business realities, but also this is hardly a good reason not to try something when the tools have full auto-reload and progressive compilation to efficiently test things in the browser as you make changes in any text editor you like.
Inviz将近 4 年前
All opinionated-ness seems to be very arbitary. It&#x27;s a nice way to say &quot;magical api&quot;
评论 #27153208 未加载
abledon将近 4 年前
So the docs are embedded inside a website for elderly care? thats interesting....
评论 #27154472 未加载
seumars将近 4 年前
This is very appealing considering the limitations of client side hydration svelte still has – though I wonder where this stands in relation to the upcoming release of SvelteKit.
评论 #27157077 未加载
Xevi将近 4 年前
How does this compare to something like SvelteKit with an adapter to generate a static site? I don&#x27;t know much about Svelte, so maybe my question is weird.
评论 #27153836 未加载
devops000将近 4 年前
Does it support I18n by default or it needs a plugin? - Sitemap multilanguage - href alternative in head
评论 #27155958 未加载
sergiotapia将近 4 年前
Does a production deploy require a backend server?
评论 #27155238 未加载