Skip to content

Commit

Permalink
feat: update layout configuration to make minimal an option
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits committed Jun 4, 2024
1 parent a4b4a3e commit c354121
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 47 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

### Features

- Make `minimal` layout an option in the configuration, rather then an import

- Provide a non-custom font version of Aplós (`aplos/plain`)

- Provide `style` frontmatter configuration for any page
Expand Down
15 changes: 6 additions & 9 deletions Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,22 @@ const { site, frontmatter, page, theme } = useData();

<template>
<Navigation />
<main
id="content-main"
:class="{
numeric: frontmatter.style === 'numeric' || theme.style === 'numeric',
'icon-links': theme.links === 'icons',
}"
>
<main id="content-main" :class="{
numeric: frontmatter.style === 'numeric' || theme.style === 'numeric',
'icon-links': theme.links === 'icons',
}">
<div v-if="frontmatter.home">
<h1>{{ site.title }}</h1>
</div>
<div v-if="frontmatter.layout === 'article'">
<div v-if="frontmatter.layout === 'article' || (theme.minimal === true && frontmatter.layout !== 'article')">
<ArticleHead />
</div>
<NotFound v-if="page.isNotFound" />
<div v-else :class="frontmatter.pageClass">
<Content />
</div>
<HelpfulLayout v-if="frontmatter.layout == 'helpful'" />
<div v-if="frontmatter.layout == 'article'">
<div v-if="frontmatter.layout === 'article' || (theme.minimal === true && frontmatter.layout !== 'article')">
<ArticleFooter />
</div>
</main>
Expand Down
5 changes: 0 additions & 5 deletions minimal.ts

This file was deleted.

33 changes: 0 additions & 33 deletions minimal/Layout.vue

This file was deleted.

0 comments on commit c354121

Please sign in to comment.