Skip to content

Commit

Permalink
format to 120 columns wide
Browse files Browse the repository at this point in the history
  • Loading branch information
ooloth committed Jun 6, 2023
1 parent fe45cff commit 5358b4b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .prettierrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ overrides:
parser: 'html'
# see: https://prettier.io/docs/en/plugins.html
plugins: ['prettier-plugin-toml']
printWidth: 100
printWidth: 120
proseWrap: preserve
quoteProps: as-needed
requirePragma: false
Expand Down
5 changes: 2 additions & 3 deletions public/css/index.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/* Defaults */
:root {
--font-family: -apple-system, system-ui, sans-serif;
--font-family-monospace: 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;
--font-family-monospace: 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;
}

/* Theme colors */
Expand Down
35 changes: 14 additions & 21 deletions src/_includes/layouts/main.webc
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,33 @@ layout: layouts/root.webc
<a href="#skip" class="visually-hidden">Skip to main content</a>

<header>
<a href="/" @html="site.title" class="home-link"></a>

<!-- Read more about `eleventy-navigation` at https://www.11ty.dev/docs/plugins/navigation/ -->
<!--
<nav>
<h2 class="visually-hidden">Top level navigation menu</h2>
<ul class="nav">
{%- for entry in collections.all | eleventyNavigation %}
<li class="nav-item"><a href="{{ entry.url }}"{% if entry.url == page.url %} aria-current="page"{% endif %}>{{ entry.title }}</a></li>
{%- endfor %}
</ul>
</nav>
-->
<a href="/" @html="site.title"></a>

<nav>
<!-- <h2 class="visually-hidden">Top level navigation menu</h2> -->
<!-- <ul class="nav"> -->
<!-- {%- for entry in collections.all | eleventyNavigation %} -->
<!-- <li class="nav-item"><a href="{{ entry.url }}"{% if entry.url == page.url %} aria-current="page"{% endif %}>{{ entry.title }}</a></li> -->
<!-- {%- endfor %} -->
<!-- </ul> -->
</nav>
</header>

<main @raw="content" id="skip"></main>

<!-- List every post in the project -->
<!--- List every post in the project --->
<h2>All Posts</h2>
<script webc:type="js" webc:root>
`<ul>
${collections.posts
.map(item => `<li><a href="${item.url}"><code>${item.url}</code></a></li>`)
.join('')}
${collections.posts.map(item => `<li><a href="${item.url}"><code>${item.url}</code></a></li>`).join('')}
</ul>`;
</script>

<!-- List every content page in the project -->
<!--- List every content page in the project --->
<h2>All Pages</h2>
<script webc:type="js" webc:root>
`<ul>
${collections.all
.map(item => `<li><a href="${item.url}"><code>${item.url}</code></a></li>`)
.join('')}
${collections.all.map(item => `<li><a href="${item.url}"><code>${item.url}</code></a></li>`).join('')}
</ul>`;
</script>

Expand Down

0 comments on commit 5358b4b

Please sign in to comment.