diff --git a/components/jobs/JobDetail.vue b/components/jobs/JobDetail.vue
new file mode 100644
index 00000000..885bb303
--- /dev/null
+++ b/components/jobs/JobDetail.vue
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('actions.apply') }}
+
+
+
+
+
+
diff --git a/composables/markdown.ts b/composables/markdown.ts
index 8fa2eb12..e06f5b4b 100644
--- a/composables/markdown.ts
+++ b/composables/markdown.ts
@@ -66,19 +66,25 @@ export const useMarkdownContent = () => {
const queryPrefixForJob = async (
prefix: typeof CONTENT_PREFIX,
path: string,
- ): Promise => {
+ ): Promise => {
const prefixedPath = `${prefix}${path}`;
- const data = await queryContent(prefixedPath).findOne();
- return {
- ...data,
- link: replacePathPrefix(prefix, data?._path),
- };
+ try {
+ const data = await queryContent(
+ prefixedPath,
+ ).findOne();
+ return {
+ ...data,
+ link: replacePathPrefix(prefix, data?._path),
+ };
+ } catch {
+ return null;
+ }
};
/**
* fetches a single markdown files within the jobs directory
*/
- const loadJob = async (path: string): Promise => {
+ const loadJob = async (path: string): Promise => {
try {
// try to fetch from prefix
return await queryPrefixForJob(CONTENT_PREFIX, path);
diff --git a/pages/jobs/[id].vue b/pages/jobs/[id].vue
index 5cdba662..40b3ceaa 100644
--- a/pages/jobs/[id].vue
+++ b/pages/jobs/[id].vue
@@ -1,9 +1,6 @@
-
+
{{ data.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ t('actions.apply') }}
-
-
-
-
-
+