Index loop over all posts
This commit is contained in:
parent
1055080993
commit
7613559c1f
4 changed files with 28 additions and 6 deletions
|
@ -2,10 +2,13 @@ module.exports = function(eleventyConfig) {
|
|||
eleventyConfig.addPassthroughCopy("./content/images");
|
||||
|
||||
return {
|
||||
htmlTemplateEngine: "njk",
|
||||
markdownTemplateEngine: "md",
|
||||
dir: {
|
||||
input: "./content",
|
||||
output: "./_site"
|
||||
includes: "../_includes",
|
||||
layouts: "../_includes",
|
||||
input: "content",
|
||||
output: "_site"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
17
_includes/indexlayout.njk
Normal file
17
_includes/indexlayout.njk
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ content | safe }}
|
||||
|
||||
{%- for post in collections.all -%}
|
||||
<a href="{{ post.url }}">
|
||||
{{ post.data.title }}
|
||||
</a>
|
||||
{%- endfor -%}
|
||||
</body>
|
||||
</html>
|
8
content/.obsidian/workspace
vendored
8
content/.obsidian/workspace
vendored
|
@ -9,7 +9,7 @@
|
|||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "posts/deving_on_linux_is_fun.md",
|
||||
"file": "index.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
|
@ -69,7 +69,7 @@
|
|||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "posts/deving_on_linux_is_fun.md",
|
||||
"file": "index.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
|
@ -89,6 +89,7 @@
|
|||
},
|
||||
"active": "a8e90712c1fef449",
|
||||
"lastOpenFiles": [
|
||||
"index.md",
|
||||
"posts/deving_on_linux_is_fun.md",
|
||||
"posts/coming-out-again-nb.md",
|
||||
"posts/code2college-volunteering.md",
|
||||
|
@ -97,7 +98,6 @@
|
|||
"posts/best-improv-performance-yet.md",
|
||||
"posts/a_modern_terminal_workflow_2.md",
|
||||
"posts/ember-modifiers.md",
|
||||
"posts/code2college-volunteering-resume-prep.md",
|
||||
"posts/austin-givecamp-2019.md"
|
||||
"posts/code2college-volunteering-resume-prep.md"
|
||||
]
|
||||
}
|
|
@ -1,5 +1,7 @@
|
|||
---
|
||||
eleventyExcludeFromCollections: true
|
||||
layout: indexlayout
|
||||
title: Gaiety's Life
|
||||
---
|
||||
|
||||
# Gaiety's Life
|
||||
|
|
Loading…
Add table
Reference in a new issue