Remote In Tech 公司档案深度解析:以 Dashlane 全远程公司档案为例掌握目录 Schema 与构建原理

📅 发布时间:2026/10/1 7:51:17
Remote In Tech 公司档案深度解析:以 Dashlane 全远程公司档案为例掌握目录 Schema 与构建原理
数据集【免费下载链接】remote-jobsSource for remoteintech.company — a community-maintained directory of remote-friendly tech companies项目地址https://gitcode.com/GitHub_Trending/re/remote-jobs点击查看免费下载本文以仓库中真实存在的 Dashlane 公司档案 为实例系统拆解 remoteintech.companyRemote In Tech开源目录中公司档案这一核心数据实体的完整结构frontmatter 字段语义与合法取值、Markdown 正文的必备章节、远程政策/地区/技术栈的标签化映射以及从档案文件到站点页面的 Eleventy 构建链路。读完本文你将能独立解读、校验并按仓库规则贡献任意一份公司档案并理解其在前台页面上的渲染机制。一、档案是什么一份可被构建系统解析的结构化文档在 Remote In Tech 项目中src/companies/目录下每家公司对应一个.md文件示例dashlane.md。它由两部分组成YAML frontmatter结构化元数据承载机器可读的字段标题、站点、远程政策、规模、技术栈等Markdown 正文按固定##章节组织的人类可读描述。仓库通过 src/companies/companies.11tydata.js 为所有公司页提供 computed data并通过 src/companies/companies.json 指定这些页面统一使用company布局渲染。也就是说档案文件既是数据也是内容二者共同决定最终页面形态。Dashlane 档案的 frontmatter 如下字段逐一解读见下一节--- title: Dashlane slug: dashlane website: https://dashlane.com careers_url: https://www.dashlane.com/about/careers region: worldwide remote_policy: fully-remote company_size: large technologies: - javascript addedAt: 2022-10-07 updatedAt: 2022-10-07 ---二、Frontmatter 字段语义与合法取值字段的取值范围并非随意约定而是由仓库统一收敛定义在 src/_data/labels.js 中并以regionLabels、remotePolicyLabels、companySizeLabels、techLabels的形式通过 src/_data/companyHelpers.js 再导出给 JS 侧消费Nunjucks 模板则通过全局数据级联直接使用labels.*。因此labels.js 是单一事实来源。字段含义合法取值来自 labels.js / CONTRIBUTING.mdtitle公司显示名称任意字符串例如DashlaneslugURL 标识须与文件名一致如dashlane对应src/companies/dashlane.mdwebsite公司官网合法 URLcareers_url官方招聘页模板中优先于 website 展示合法 URLregion招聘覆盖地区worldwide、americas、europe、americas-europe、asia-pacific、otherremote_policy远程办公政策fully-remote、remote-first、hybrid、remote-friendlycompany_size规模档位tiny(1-10)、small(11-50)、medium(51-200)、large(201-1000)、enterprise(1000)technologies技术栈标签列表javascript、typescript、react、nodejs、python、ruby、go、java、php、rust、dotnet、elixir、scala、swift、cloud、devops、docker、kubernetes、mobile、data、ml、sql、postgres、nosql、searchaddedAt/updatedAt加入/更新时间由维护者管理贡献 PR 时不应包含以 Dashlane 档案为例region: worldwide被 src/_data/labels.js 映射为展示文本Worldwideremote_policy: fully-remote映射为Fully Remotecompany_size: large对应201-1000 employees档案正文自述 300 as of late 2022 与该档位吻合technologies: [javascript]会被映射为JavaScript技术标签虽然正文说明实际以 TypeScript 为主但档案技术标签只收录了javascript这一受支持枚举值——这正体现了枚举字段的约束。三、Markdown 正文的必备章节与 Dashlane 实例根据 CONTRIBUTING.md档案正文必须包含三个##章节Company blurb、Remote status、How to applyCompany size、Region、Company technologies、Office locations等为常用可选章节。Dashlane 档案完整覆盖了全部必备章节与大部分常用章节Company blurb公司简介必备Dashlane is a web and mobile app that simplifies password management for people and businesses. We empower organizations to protect company and employee data, while helping everyone easily log in to the accounts they need — anytime, anywhere. A better digital future starts with secure access.这段简介不仅展示给读者还会被 src/companies/companies.11tydata.js 的eleventyComputed.description自动抓取——构建时正则匹配## Company blurb标题后的段落剥离 Markdown 标记、合并换行并截断到约 155 字符生成页面 meta description优先在句号处截断。这意味着简介写得好SEO 描述自动生成是档案内容直接影响搜索引擎检索质量的机制。Company size公司规模300 (as of late 2022)与 frontmatter 的company_size: large201-1000 人档位相互印证正文提供更精确的数字与时间点。Remote status远程状态必备Many employees are entirely remote while some are hybrid or in-office. Location is highly flexible depending on preference.这一段与remote_policy: fully-remote呼应虽然政策标签为全远程但正文如实补充了部分员工为混合或坐班的细节——档案的价值正在于标签化的同时保留真实描述。Region招聘地区Worldwide.对应region: worldwide表示招聘不限地域。Company technologies技术栈Primarily TypeScript on both the backend (NodeJS) and frontend (and React, NextJS, Gatsby, or just TypeScript depending on the application).正文补充了 frontmatter 枚举之外的细节后端NodeJS与前端React、NextJS、Gatsby 或纯 TypeScript的技术组合。Office locations办公室地点Primary offices are in New York, NY; Paris, France; and Lisbon, Portugal.全远程公司的典型补充信息——即便全员可远程仍列明主要实体办公室。How to apply如何申请必备Check our careers page: https://www.dashlane.com/about/careers申请入口指向 frontmatter 中careers_url字段记录的官方招聘页。四、从档案到页面的渲染链路档案文件经过 Eleventy 的 collection 与模板两层处理后成为线上页面1. Collection 聚合层src/_config/collections.js 通过getFilteredByGlob(./src/companies/**/*.md)收集全部档案并做了内存缓存在此基础上派生出按字母排序的公司列表、按addedAt排序的新增公司、按地区/技术栈分组的浏览数据以及用于标签页的getCompanyTags。Dashlane 档案会被纳入这些集合供Worldwide、Fully Remote、JavaScript等标签页引用。2. 布局渲染层src/_layouts/company.njk 定义了公司页骨架——顶部由careers_url or website决定按钮文案有招聘页显示 Apply Now否则 Visit Websiteregion与remote_policy分别渲染为可点击的地区标签与政策标签technologies数组逐个渲染为技术标签/browse/{tech}/链接正文由{{ content | safe }}注入页面标注schema: Organization便于结构化数据识别底部展示 Last updated 日期来自updatedAt。3. 卡片组件层src/_includes/partials/company-card.njk 提供复用的companyCard宏在公司列表页渲染卡片时优先展示careers_url并截断 URL 文本——同一份档案数据在不同场景复用正是数据与表现分离的设计。五、校验、构建与本地预览仓库的贡献流程详见 CONTRIBUTING.md要求档案文件命名src/companies/{slug}.md且 slug 与 frontmatter 一致正文包含必备章节字段使用合法枚举值。PR 会被Validate Company Profiles自动校验例如拒绝旧文件格式或重复公司。本地验证与预览命令来自 README.md需 Node.js 22npm install # 安装依赖 npm run start # 启动热重载开发服务器 npm run build # 生产构建验证全部档案可正常编译六、小结Dashlane 档案是 Remote In Tech 公司档案格式的完整范例frontmatter 的枚举字段由 src/_data/labels.js 统一约束正文必备章节由 CONTRIBUTING.md 规定meta 描述由 src/companies/companies.11tydata.js 从 blurb 自动生成页面渲染则由 src/_layouts/company.njk 与 src/_includes/partials/company-card.njk 完成。掌握这一套数据结构 校验规则 构建渲染的完整链路你就能准确解读目录中任意一家公司的档案也能按照仓库规范正确评估或新增档案条目。赞分享数据集【免费下载链接】remote-jobsSource for remoteintech.company — a community-maintained directory of remote-friendly tech companies项目地址https://gitcode.com/GitHub_Trending/re/remote-jobs点击查看免费下载相关推荐Remote In Tech 公司档案深度解析以 Articulate 为例看远程友好公司目录条目结构Remote In Tech 公司档案深度解析以 Articulate 为例看远程友好公司目录条目结构 Articulate 是 remoteintech.c数据集Remote In Tech 公司档案深度解析以 ConsenSys 为例看远程友好科技公司目录的数据建模与构建链路Remote In Tech 公司档案深度解析以 ConsenSys 为例看远程友好科技公司目录的数据建模与构建链路 本文以仓库中的 ConsenSys 公司数据集Remote In Tech 公司档案解析以 Atlassian 档案为例解读远程友好公司的数据建模与构建链路Remote In Tech 公司档案解析以 Atlassian 档案为例解读远程友好公司的数据建模与构建链路 导读 本文以仓库中 src/companies数据集上一篇Tomcat中的WebSocket安全配置认证与授权实践下一篇Docker Certified Associate考试详解题型、费用与备考周期规划创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考