Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,15 @@ export default async function (eleventyConfig) {
eleventyConfig.addCollection("jobs", (collectionApi) => {
return collectionApi.getFilteredByGlob("src/jobs/*.md").sort(byTitle);
});

// draft blog posts are rendered locally, but not in production builds
Comment thread
lalver1 marked this conversation as resolved.
eleventyConfig.addPreprocessor("drafts", "*", (data, content) => {
if (data.draft) {
data.title = `${data.title} (draft)`;
}

if (data.draft && process.env.ELEVENTY_RUN_MODE === "build") {
return false;
}
});
}
8 changes: 4 additions & 4 deletions src/_layouts/blog_post.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ layout: default
<article class="blog_post">
<div class="row">
<div class="col-md-6 d-flex offset-md-3 text-center flex-column justify-content-center py-md-5 my-md-5 my-2">
<h1 class="d-inline-block mb-3">{{ page.title }}</h1>
<span class="secondary-sans-serif-xs">{{ page.subtitle }}</span>
<span class="fs-7 fw-500 text-primary pt-4 mt-3">By {{ page.author }}</span>
<time class="fs-7 text-info" datetime="{{ page.date }}">{{ page.date | date: '%B %d, %Y' }}</time>
<h1 class="d-inline-block mb-3">{{ title }}</h1>
<span class="secondary-sans-serif-xs">{{ subtitle }}</span>
<span class="fs-7 fw-500 text-primary pt-4 mt-3">By {{ author }}</span>
<time class="fs-7 text-info" datetime="{{ date }}">{{ date | date: '%B %d, %Y' }}</time>
</div>
</div>
<div class="bg-w-100 position-relative bg-white">
Expand Down
28 changes: 14 additions & 14 deletions src/blog.html → src/blog.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
description: An inside look at Compiler’s internal projects, interests and our client projects.
title: Compiler’s Blog
---

<div class="row blog">
<div class="col-md-10 offset-md-1">
<span class="pill d-inline-block mb-4">Blog</span>
Expand All @@ -15,22 +14,23 @@ <h1 class="mb-2">Our blog</h1>
class="mw-100 mh-100"
src="/assets/blog/compiler-team-photo-for-blog.jpg"
alt="A group photograph of many members of the Compiler team at a winery in California."
/>
>
</div>
<div class="col-md-6 offset-md-3">
<!-- Home Post List -->
{% for post in site.posts %}
<article class="post-preview">
<a
class="h3 post-title text-white text-decoration-underline d-inline-block mb-2"
href="{{ post.url | prepend: site.baseurl | replace: '//', '/' }}"
>
{{ post.title }}
</a>
<p class="font-monospace fw-boldest text-info mb-4">By {{ post.author }}</p>
<p class="post-subtitle text-info mb-3">{{ post.excerpt }}</p>
<p class="text-info fine-print">{{ post.date | date: '%B %d, %Y' }}</p>
</article>
{% assign posts = collections.posts | reverse %}
{% for post in posts %}
<article class="post-preview">
<a
class="h3 post-title text-white text-decoration-underline d-inline-block mb-2"
href="{{ post.data.page.url }}"
>
{{ post.data.title }}
</a>
<p class="font-monospace fw-boldest text-info mb-4">By {{ post.data.author }}</p>
<p class="post-subtitle text-info mb-3">{{ post.data.excerpt }}</p>
<p class="text-info fine-print">{{ post.data.date | date: '%B %d, %Y' }}</p>
</article>
{% endfor %}
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
layout: blog_post
title: "How to write a Compiler blog post"
subtitle: "Follow these instructions to learn how to write a blog post, include images, blockquotes and more."
description: "Follow these instructions to learn how to write a blog post, include images, blockquotes and more."
author: Laney Mangan
excerpt: "Learn how to write a blog post, include images, blockquotes and more."
date: 2023-09-24T19:03:13+0200
categories: compiler
draft: true
---

## First thing’s first
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: blog_post
title: "Compiler’s 2023 Holiday Gift Guide"
subtitle: "Searching for that perfect gift for the public service enthusiast in your life? Compiler’s got you covered! Here is this year’s round-up of our favorite transit-related gift ideas.
<br><br><p><em>P.S. If you didn’t make the holiday cut off this year, we think these make great gifts year-round!</em></p>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: blog_post
title: "Welcome to the Compiler blog!"
subtitle: "What you can expect from our blog"
description: "What you can expect from our blog"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: blog_post
title: "How to support a platform-agnostic engineering team with VS Code Dev Containers"
subtitle: "Learn from the Compiler Engineering team, which has been using VS Code Dev Containers daily across Windows, Linux and Mac on all of their projects."
description: "Learn from the Compiler Engineering team, which has been using VS Code Dev Containers daily across Windows, Linux and Mac on all of their projects."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: blog_post
title: "The Compiler Team's Transportation Round-up"
subtitle: "Our favorite transit stories from the past year"
description: "Our favorite transit stories from the past year"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: blog_post
title: "Civic Tech Career Resources"
subtitle: "Our most used resources for navigating a career in Civic Tech"
description: "Our most used resources for navigating a career in Civic Tech"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: blog_post
title: "Driving Progress: The Crucial Role of Open Source in Public Transportation Technology"
subtitle:
description: "Learn from the Compiler Team about the benefits of open source development"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: blog_post
title: "Creating Compiler's Parental Leave Policy"
subtitle: "How a small, scrappy, California-based LLC created parental leave and wage replacement policies for its remote, multi-state team."
description: "How a small, scrappy, California-based LLC created parental leave and wage replacement policies for its remote, multi-state team."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: blog_post
title: "Tales from Transportation Camp"
subtitle: "The Compiler Team's key takeaways from UCLA's 2024 Transportation Camp LA."
description: "The Compiler Team's key takeaways from UCLA's 2024 Transportation Camp LA."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: blog_post
title: "Employee Spotlight: Angela"
subtitle: "Get to know our Compiler team member, Angela Tran."
description: "Get to know our Compiler team member, Angela Tran."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: blog_post
title: "How Compiler Approaches Static Sites"
subtitle: "Learn how the Engineering team combines older and reliable static site frameworks with new build tools and an open source approach to craft memorable and functional content-driven sites."
description: "Learn how the Engineering team combines older and reliable static site frameworks with new build tools and an open source approach to craft memorable and functional content-driven sites."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: blog_post
title: "Employee Spotlight: Adam"
subtitle: "Get to know our Compiler team member, Adam Linder."
description: "Get to know our Compiler team member, Adam Linder."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: blog_post
title: "Case Study: Strengthening California’s Digital Disaster Recovery"
subtitle: "Supporting the California Department of Technology During the 2025 Wildfire Emergency"
description: "Supporting the California Department of Technology During the 2025 Wildfire Emergency"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
layout: blog_post
title: "How Compiler Research Transformed Scheduling for Smaller Transit Agencies"
subtitle: "Learn how Compiler transformed smaller transit agency scheduling with a research-backed pilot of Remix by Via."
description: "Learn how Compiler transformed smaller transit agency scheduling with a research-backed pilot of Remix by Via."
Expand Down
4 changes: 4 additions & 0 deletions src/blog/blog.11tydata.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
layout: "blog_post",
tags: ["posts"],
Comment thread
thekaveman marked this conversation as resolved.
};