From 6c3f6b79874e8f409a9c614bea3f40b2baacc806 Mon Sep 17 00:00:00 2001
From: Remi  PLANEL <rplanel@pasteur.fr>
Date: Fri, 13 Oct 2023 17:03:15 +0200
Subject: [PATCH] add contributors compo

---
 components/content/Contributors.vue | 14 ++++++++++++++
 content/3.defense-systems/abi2.md   |  2 ++
 content/3.defense-systems/detocs.md |  4 +++-
 layouts/article.vue                 |  2 +-
 4 files changed, 20 insertions(+), 2 deletions(-)
 create mode 100644 components/content/Contributors.vue

diff --git a/components/content/Contributors.vue b/components/content/Contributors.vue
new file mode 100644
index 00000000..d182bb88
--- /dev/null
+++ b/components/content/Contributors.vue
@@ -0,0 +1,14 @@
+<script setup lang="ts">
+
+const { page } = useContent();
+const contributorsString = computed(() => {
+    if (page.value?.contributors) {
+        return page.value.contributors.join(', ')
+    } else { return null }
+})
+
+</script>
+<template>
+    <div v-if="contributorsString" class="mt-n6 mb-6 text-subtitle-1 text-primary">Contributors: {{ contributorsString }}
+    </div>
+</template>
\ No newline at end of file
diff --git a/content/3.defense-systems/abi2.md b/content/3.defense-systems/abi2.md
index 6f8549ec..3b122756 100644
--- a/content/3.defense-systems/abi2.md
+++ b/content/3.defense-systems/abi2.md
@@ -12,6 +12,8 @@ tableColumns:
 ---
 
 # Abi2
+:contributors
+
 The Abi2 system is composed of one protein: Abi_2.
 
 Here is an example found in the RefSeq database: 
diff --git a/content/3.defense-systems/detocs.md b/content/3.defense-systems/detocs.md
index c3ec3aa4..ff9c7cfc 100644
--- a/content/3.defense-systems/detocs.md
+++ b/content/3.defense-systems/detocs.md
@@ -6,11 +6,13 @@ tableColumns:
       abstract: |
         During viral infection, cells can deploy immune strategies that deprive viruses of molecules essential for their replication. Here, we report a family of immune effectors in bacteria that, upon phage infection, degrade cellular adenosine triphosphate (ATP) and deoxyadenosine triphosphate (dATP) by cleaving the N-glycosidic bond between the adenine and sugar moieties. These ATP nucleosidase effectors are widely distributed within multiple bacterial defense systems, including cyclic oligonucleotide-based antiviral signaling systems (CBASS), prokaryotic argonautes, and nucleotide-binding leucine-rich repeat (NLR)-like proteins, and we show that ATP and dATP degradation during infection halts phage propagation. By analyzing homologs of the immune ATP nucleosidase domain, we discover and characterize Detocs, a family of bacterial defense systems with a two-component phosphotransfer-signaling architecture. The immune ATP nucleosidase domain is also encoded within diverse eukaryotic proteins with immune-like architectures, and we show biochemically that eukaryotic homologs preserve the ATP nucleosidase activity. Our findings suggest that ATP and dATP degradation is a cell-autonomous innate immune strategy conserved across the tree of life.
     PFAM: PF01048, PF18742
-contributors: François Rousset
+contributors: 
+    - François Rousset
 ---
 
 
 # Detocs
+:contributors
 
 ## Description
 Detocs (**De**fensive **T**w**o**-**C**omponent **S**ystem) is a family of 3-gene defense systems that mediate anti-phage activity by abortive infection.
diff --git a/layouts/article.vue b/layouts/article.vue
index 64e4f13a..f724344b 100644
--- a/layouts/article.vue
+++ b/layouts/article.vue
@@ -9,7 +9,7 @@ console.log("================================")
 console.log(surround)
 console.log(prev)
 console.log(next)
-
+console.log(page)
 </script>
 <template>
   <VApp>
-- 
GitLab