Skip to content

Instantly share code, notes, and snippets.

View jeromecoupe's full-sized avatar
💭
coding away

Jérôme Coupé jeromecoupe

💭
coding away
View GitHub Profile
{# Layout File: src/_includes/layouts/sidebar.njk (in 11ty, layouts have to be in src/_includes by default) #}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ metaTitle }}</title>
</head>
<body>
{% block content %}{% endblock %}
{#
Use case a podcast website:
- programs (have asset and categories)
- episodes (relation source)
#}
{# get all programs Ids #}
{% set allProgramsIds = craft.entries()
.section("programs")
.limit(null)