-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR doesn't contain the public footer that I'll be working on next
- Loading branch information
1 parent
e8d6a35
commit 47b2e07
Showing
24 changed files
with
761 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!-- eslint-disable vue/no-v-html --> | ||
<template> | ||
<div | ||
:class="markdownClasses" | ||
v-html="formatMarkdown(content, minHeading)" | ||
/> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
withDefaults(defineProps<{ | ||
content: string | ||
minHeading?: 1 | 2 | 3 | 4 | 5 | 6 | ||
}>(), { | ||
minHeading: 3, | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<template> | ||
<div class="max-w-[38rem] hover:bg-neutral-200 fr-enlarge-link"> | ||
<div v-if="post.image"> | ||
<img :src="post.image"> | ||
</div> | ||
<div class="p-4"> | ||
<p class="text-lg mb-2.5 font-bold"> | ||
<NuxtLinkLocale | ||
:to="`/posts/${post.slug}/`" | ||
> | ||
{{ post.name }} | ||
</NuxtLinkLocale> | ||
</p> | ||
<p | ||
v-if="post.published" | ||
class="mb-0 text-gray-medium" | ||
> | ||
{{ $t('Published the {date}', { date: formatDate(post.published) }) }} | ||
</p> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { formatDate } from '@datagouv/components' | ||
import type { Post } from '~/types/posts' | ||
defineProps<{ | ||
post: Post | ||
}>() | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.