Skip to content

Commit

Permalink
Updates to 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Apr 6, 2019
1 parent d2439ad commit 6e02ac8
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
8 changes: 8 additions & 0 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ header:after {
display: table;
clear: both;
}
table {
margin: 1em 0;
}
table td,
table th {
padding-right: 1em;
}

pre,
code {
font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"homepage": "https://github.com/11ty/eleventy-base-blog#readme",
"devDependencies": {
"@11ty/eleventy": "^0.8.0",
"@11ty/eleventy": "^0.8.1",
"@11ty/eleventy-plugin-rss": "^1.0.6",
"@11ty/eleventy-plugin-syntaxhighlight": "^2.0.1",
"luxon": "^1.12.0",
Expand Down
22 changes: 22 additions & 0 deletions page-list.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
pagination:
data: collections.all
size: 20
alias: entries
layout: layouts/home.njk
permalink: /page-list/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}
---
<table>
<thead>
<th>URL</th>
<th>Page Title</th>
</thead>
<tbody>
{%- for entry in entries %}
<tr>
<td><a href="{{ entry.url }}"><code>{{ entry.url }}</code></a></td>
<td>{{ entry.data.title }}</td>
</tr>
{%- endfor %}
</tbody>
</table>
2 changes: 2 additions & 0 deletions tags.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ pagination:
- nav
- post
- posts
- tagList
addAllPagesToCollections: true
layout: layouts/home.njk
renderData:
title: Tagged “{{ tag }}
Expand Down

0 comments on commit 6e02ac8

Please sign in to comment.