Skip to content

Commit

Permalink
Ajout d'un historique des admis à l'agrégation externe.
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyost committed Jul 19, 2024
1 parent 457f9d7 commit 11632bf
Show file tree
Hide file tree
Showing 63 changed files with 26,080 additions and 113 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,6 @@ content/latex/developpements.tex
content/latex/lecons.tex
content/latex/fiches.tex
content/latex/lecons-developpements.tex
content/latex/historique.tex
content/latest-commit.json
content/**/*.pdf
9 changes: 6 additions & 3 deletions components/Cards/Cards.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts" generic="T extends HasCategories & { [key: string]: any }">
import type { Category, HasCategories } from '~/types'
<script setup lang="ts" generic="T extends { [key: string]: any }">
import type { Category } from '~/types'
type CategoryOrUndefined = Category | undefined
Expand Down Expand Up @@ -53,7 +53,10 @@ const filter = (item: T) => {
cols="12"
:lg="searchFields ? '9' : undefined"
>
<b-button-group class="categories mb-3 mb-lg-0">
<b-button-group
v-if="categories.length > 1"
class="categories mb-3 mb-lg-0"
>
<b-button
v-for="category in categories"
:key="category"
Expand Down
14 changes: 14 additions & 0 deletions components/Cards/RankingCard.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<script setup lang="ts">
import type { Ranking } from '~/types'
import LatexContentCard from '~/components/Cards/LatexContentCard.vue'
defineProps<{ ranking: Ranking }>()
</script>

<template>
<latex-content-card
btn-check="Consulter l'entrée"
link-prefix="historique"
:object="ranking"
/>
</template>
96 changes: 0 additions & 96 deletions components/Page/PageHead.vue

This file was deleted.

72 changes: 72 additions & 0 deletions composables/usePageHead.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import { siteMeta } from '~/site/meta'

/**
* Configurable parameters for `usePageHead`.
*/
export interface PageHead {
/**
* The page title.
*/
title: string
/**
* The page description.
*/
description?: string
/**
* The OpenGraph image.
*/
openGraphImage?: string
/**
* The Twitter card to use.
*/
twitterCard?: 'summary' | 'summary_large_image' | 'app' | 'player'
/**
* The Twitter image.
*/
twitterImage?: string
}

/**
* Adds the specified tags to the page head.
* @param {PageHead} pageHead The parameters to use.
*/
export const usePageHead = (pageHead: PageHead) => {
const head: PageHead = { ...pageHead }
head.description ??= siteMeta.description
head.openGraphImage ??= `${siteMeta.url}/images/social/open-graph.png`
head.twitterCard ??= 'summary'
head.twitterImage ??= `${siteMeta.url}/images/social/twitter.png`
const route = useRoute()
const currentAddress = `${siteMeta.url}${route.path}`
useSeoMeta({
title: head.title,
description: head.description,
ogTitle: head.title,
ogDescription: head.description,
ogType: 'website',
ogSiteName: siteMeta.title,
ogUrl: currentAddress,
ogImage: head.openGraphImage,
ogLocale: 'fr',
twitterCard: head.twitterCard,
twitterTitle: head.title,
twitterDescription: head.description,
twitterSite: '@Skyost',
twitterCreator: '@Skyost',
twitterImage: head.twitterImage,
})
useHead({
meta: [
{
name: 'twitter:url',
content: currentAddress,
},
],
link: [
{
rel: 'canonical',
href: currentAddress,
},
],
})
}
10 changes: 6 additions & 4 deletions content/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ Vous trouverez donc sur ce site :

* Mes [plans](https://agreg.skyost.eu/lecons) de leçons. Par manque de temps, et / ou d'envie, et / ou d'appétence,
et / ou de maîtrise du sujet, j'ai fait l'impasse sur les leçons _161_, _181_ et _220_.
* Mon choix de [developpements](https://agreg.skyost.eu/developpements).
* Quelques [fiches](https://agreg.skyost.eu/fiches) de révision.
* Ma [bibliographie](https://agreg.skyost.eu/bibliographie) personnelle.
* Une liste personnelle de [conseils généraux](https://agreg.skyost.eu/fiches/conseils-generaux) écrite suite aux
* Mon choix de [developpements](https://agreg.skyost.eu/developpements/).
* Quelques [fiches](https://agreg.skyost.eu/fiches/) de révision.
* Ma [bibliographie](https://agreg.skyost.eu/bibliographie/) personnelle.
* Une liste personnelle de [conseils généraux](https://agreg.skyost.eu/fiches/conseils-generaux/) écrite suite aux
oraux de cette année.
* En bonus, [un historique](https://agreg.skyost.eu/historique/) de la liste des admis à l'agrégation externe depuis
1987.

En espérant que le contenu de ce site vous aide dans votre préparation à l'oral. Si vous avez une quelconque remarque
/ idée / correction à me soumettre, vous pouvez me contacter via [le formulaire](https://skyost.eu/fr/#contact) présent sur mon site.
Expand Down
8 changes: 8 additions & 0 deletions content/latex/common.tex
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
%\usepackage{thmtools}
\usepackage{xcolor}
\usepackage{tabularx}
\usepackage{xltabular}
\usepackage{aligned-overset}
\usepackage[subpreambles=true]{standalone}
\usepackage{environ}
Expand Down Expand Up @@ -138,6 +139,13 @@

\providecommand{\sheet}[3]{\development{#1}{#2}{#3}}

\providecommand{\ranking}[1]{%
\title{Agrégation externe #1}%
\hypersetup{pdftitle={Agrégation externe #1}}%
\section*{Agrégation externe #1}%
\fancyhead[R]{\truncate{0.73\textwidth}{Agrégation externe #1}}%
}

\providecommand{\summary}[1]{%
\textit{#1}%
\par%
Expand Down
Loading

0 comments on commit 11632bf

Please sign in to comment.