diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..51c046d --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.quarto/ +_site/ + +.DS_Store + +/.quarto/ diff --git a/_extensions/shafayetShafee/collapse-callout/_extension.yml b/_extensions/shafayetShafee/collapse-callout/_extension.yml new file mode 100755 index 0000000..319d0d1 --- /dev/null +++ b/_extensions/shafayetShafee/collapse-callout/_extension.yml @@ -0,0 +1,8 @@ +title: Make the callout blocks collapsible on `html` output format +author: Shafayet Khan Shafee +version: 1.0.0 +quarto-required: ">=1.2.0" +contributes: + filters: + - collapse-callout.lua + diff --git a/_extensions/shafayetShafee/collapse-callout/collapse-callout.lua b/_extensions/shafayetShafee/collapse-callout/collapse-callout.lua new file mode 100755 index 0000000..9e4ec70 --- /dev/null +++ b/_extensions/shafayetShafee/collapse-callout/collapse-callout.lua @@ -0,0 +1,56 @@ +-- defining all possible callout types +local callouts_all = { + caution = 'callout-caution', + important = 'callout-important', + tip = 'callout-tip', + note = 'callout-note', + warning = 'callout-warning' + } + +-- function for adding collapse attributes to callout divs +function collapse_callout(callouts, bool) + local callout_filter = { + Div = function(el) + for key, val in pairs(callouts) do + if el.classes:includes(val) then + if el.attributes["collapse"] == nil then + el.attributes["collapse"] = bool + return el + end + end + end + end + } + return callout_filter +end + +-- make changes to input file if the format is html +if quarto.doc.isFormat("html:js") then + function Pandoc (doc) + local collapse = doc.meta['collapse-callout'] + if not collapse then + return nil + end + + if collapse.all == false then + return doc:walk(collapse_callout(callouts_all,'false')) + elseif collapse.all == true then + return doc:walk(collapse_callout(callouts_all, 'true')) + else + filtered_doc = doc + for k, v in pairs{"caution", "important", "tip", "note", "warning"} do + if collapse[v] == true then + filtered_doc = filtered_doc:walk( + collapse_callout({callouts_all[v]}, 'true') + ) + elseif collapse[v] == false then + filtered_doc = filtered_doc:walk( + collapse_callout({callouts_all[v]}, 'false') + ) + end + end + return filtered_doc + end + return nil + end +end \ No newline at end of file diff --git a/_images/logo_FEUTRE.png b/_images/logo_FEUTRE.png new file mode 100644 index 0000000..06c0bdd Binary files /dev/null and b/_images/logo_FEUTRE.png differ diff --git a/_propositions.qmd b/_propositions.qmd new file mode 100755 index 0000000..4dde88b --- /dev/null +++ b/_propositions.qmd @@ -0,0 +1,20 @@ +--- +title: "Propositions" +listing: + contents: posts/propositions + sort: "date desc" + type: default + categories: false + sort-ui: false + filter-ui: false +draft: true +--- + +# Propositions portées par la FEUTRE + + +La + + + + diff --git a/_publish.yml b/_publish.yml index 6a48ecd..806807c 100755 --- a/_publish.yml +++ b/_publish.yml @@ -1,4 +1,4 @@ - source: project quarto-pub: - id: 911a358d-f6ed-489e-8260-86fd650168dc - url: 'https://osk42.quarto.pub/feutre' + url: https://osk42.quarto.pub/feutre diff --git a/_quarto.yml b/_quarto.yml index 3382543..a25e3d0 100755 --- a/_quarto.yml +++ b/_quarto.yml @@ -9,10 +9,25 @@ website: logo: "_images/logo_FEUTRE.png" logo-alt: "FEUTRE" right: - - href: posts/propositions.qmd - text: "Propositions" - - href: posts/conseils_de_l_universite/index.qmd - text: "Conseils de l'Université" + - href: posts/distributions_alimentaires/distributions_alimentaires.qmd + text: "Distributions alimentaires" + - text: Nous contacter + menu: + - text: Email + icon: envelope + href: mailto:feutrebloistours@gmail.com + - text: Instagram + icon: instagram + href: https://www.instagram.com/feutre_ut/ + target: _blank # open in new tab + - text: Discord + icon: discord + href: https://discord.gg/jYhp33SZ9j + target: _blank # open in new tab + # - href: posts/propositions.qmd + # text: "Propositions" + # - href: posts/conseils_de_l_universite/index.qmd + # text: "Conseils de l'Université" # show image previews twitter-card: diff --git a/_site/posts/conseils_de_l_universite/comission_de_formation_et_vie_universitaire.html b/_site/posts/conseils_de_l_universite/comission_de_formation_et_vie_universitaire.html index d873f62..1644b8b 100644 --- a/_site/posts/conseils_de_l_universite/comission_de_formation_et_vie_universitaire.html +++ b/_site/posts/conseils_de_l_universite/comission_de_formation_et_vie_universitaire.html @@ -2,12 +2,12 @@
- + -