Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whitelisting pages #1

Closed
emarshphd opened this issue Jul 23, 2021 · 7 comments
Closed

Whitelisting pages #1

emarshphd opened this issue Jul 23, 2021 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@emarshphd
Copy link

It would be useful to be able to whitelist pages. In other words, choose which pages get published, rather than having to exclude them.

@nateritter
Copy link

I agree with the above, but I'd also like to do that from the meta section in the page itself.

@jackyzha0 jackyzha0 self-assigned this Jul 23, 2021
@jackyzha0 jackyzha0 added the enhancement New feature or request label Jul 23, 2021
@jackyzha0
Copy link
Owner

Will look into this sometime this week! @nateritter, do you mean having a potential publish flag in the front matter of the Markdown? So something like

---
title: Example Post
publish: true
---

Content here...

@nateritter
Copy link

Exactly!

@flatrick
Copy link

flatrick commented Nov 21, 2021

You could do it the other way around (if you're using templates).
If your note-template looks something like the following, all notes would by default be excluded (I'm using templater instead of Obsidians default template-plugin btw).

---
title: "<% tp.file.title %>"
creation date: <% tp.file.creation_date() %>
draft: true
---
# <% tp.file.title %>
<% tp.file.cursor() %>

But I agree, not having to add it to ALL notes and doing it the other way around would be nice :)

@shinyben
Copy link

The above template workaround works for new notes but not large imported vaults (if you don't want mass changes to notes). Another workaround would be to add an ignoreFile RegEx in config.toml that ignores all files without some string in the file name (say, an emoji) which you can then add to the file name to whitelist the note.

iceener referenced this issue in iceener/brain Jun 9, 2022
TheIndexx added a commit to TheIndexx/hub that referenced this issue Jun 14, 2022
@chaosarium
Copy link
Contributor

My current workaround is by setting draft: true as a default frontmatter using cascade.

# config.toml
# make draft by default
[[cascade]]
draft = true
[cascade._target]
  path = '/notes/**'

This unpublishes all markdown files under '/content/notes/' unless I write draft: false individually in the frontmatter. Example:

---
# markdown file in /content/notes/
title: Example Post
draft: false
---

(I'm not sure why it doesn't seem to work if I try to do it for everything under '/content/' though)

fakeheal added a commit to fakeheal/digital-garden that referenced this issue Feb 28, 2023
fakeheal added a commit to fakeheal/digital-garden that referenced this issue Feb 28, 2023
@jackyzha0
Copy link
Owner

This issue should be fixed in Quartz 4. I'll be closing it for now but please reopen this issue if this persists in the new version.

JohnsonL111 added a commit to JohnsonL111/quartz that referenced this issue Dec 26, 2023
Devallex added a commit to AusziStudios/auszistudios.github.io that referenced this issue Dec 29, 2023
Lisandra-dev referenced this issue in Lisandra-dev/owlly-lab Feb 12, 2024
* PUSH NOTE : Ambre Loiseau.md

* PUSH NOTE : Exasys Online.md

* PUSH NOTE : Illustration.md

* PUSH ATTACHMENT : ref.png

* PUSH ATTACHMENT : hermite.png

* PUSH ATTACHMENT : clothes.png

* PUSH ATTACHMENT : emotions.png

* PUSH ATTACHMENT : ref.png

* PUSH ATTACHMENT : project nucleus.png

* PUSH ATTACHMENT : Unlimited blades Works.png

* PUSH ATTACHMENT : Ashling_x_robot.png

* PUSH ATTACHMENT : futaba 2.png

* PUSH ATTACHMENT : Futaba 1.png

* PUSH ATTACHMENT : SOLAUI-1-1.png

* PUSH ATTACHMENT : ref chambre.png

* PUSH ATTACHMENT : ASH-LYNMAMECHI-1-1.png

* PUSH ATTACHMENT : don-john-gatacilo-workstation-cyberpunk-style-1685914612863-1.jpg

* PUSH ATTACHMENT : Commission Feilyn.png

* PUSH ATTACHMENT : solow.png

* PUSH ATTACHMENT : Mimeowendormi.png

* PUSH NOTE : Pouvoirs.md

* PUSH NOTE : Ashling May.md

* PUSH ATTACHMENT : Commission Feilyn.png

* PUSH NOTE : Azraël Blakes.md

* PUSH NOTE : Illustration.md

* PUSH ATTACHMENT : fullbody.png

* PUSH ATTACHMENT : draft_medhas.png

* PUSH ATTACHMENT : Mara_Illu.png

* PUSH ATTACHMENT : Illustration-Kai.jpeg

* PUSH ATTACHMENT : COMMISSION_MARA_PP.png

* PUSH NOTE : Blaïka Yermakova.md

* PUSH ATTACHMENT : Blaïka.jpg

* PUSH NOTE : Hayleen May.md

* PUSH NOTE : Illustration.md

* PUSH ATTACHMENT : Kara-Civil-Realist.png

* PUSH ATTACHMENT : DRK_tank.png

* PUSH ATTACHMENT : drk_summer.png

* PUSH ATTACHMENT : Kara_chill-1-1-1.jpg

* PUSH ATTACHMENT : drk_night.png

* PUSH ATTACHMENT : épée_dos.png

* PUSH ATTACHMENT : ref_dague.png

* PUSH ATTACHMENT : ref_flingue.png

* PUSH NOTE : Kara Grimalkin.md

* PUSH ATTACHMENT : Kara_Kimono-1-1.jpeg

* PUSH ATTACHMENT : Kara_chill-1-1-1.jpg

* PUSH ATTACHMENT : Kara_illustration_commission-1-1.png

* PUSH NOTE : Arknights.md

* PUSH ATTACHMENT : Lucrezia - AK.png

* PUSH ATTACHMENT : Full_liberi_Ambrose.png

* PUSH NOTE : Illustration.md

* PUSH ATTACHMENT : Grimm_Nemo.jpg

* PUSH ATTACHMENT : Robe_némo.jpeg

* PUSH ATTACHMENT : Némo_grim_danse.png

* PUSH ATTACHMENT : meme_nemo.jpeg

* PUSH ATTACHMENT : portrait_love_nemo.jpeg

* PUSH ATTACHMENT : fusain.png

* PUSH ATTACHMENT : tenu_jap.png

* PUSH ATTACHMENT : meme_chaa_grim.jpeg

* PUSH ATTACHMENT : Illustration-1701068323349.jpeg

* PUSH ATTACHMENT : guirlande.jpeg

* PUSH ATTACHMENT : portrait.png

* PUSH ATTACHMENT : Nemo_draft.jpeg

* PUSH ATTACHMENT : Illustration-1701068323911.jpeg

* PUSH ATTACHMENT : Illustration-1701068324041.jpg

* PUSH ATTACHMENT : Illustration-1701068324265.jpeg

* PUSH ATTACHMENT : illu_truc.jpeg

* PUSH ATTACHMENT : Chaa_Rodon.jpeg

* PUSH ATTACHMENT : Perseith_chaa_collab.png

* PUSH ATTACHMENT : Nemo_twitter.jpeg

* PUSH ATTACHMENT : qquoee.jpeg

* PUSH ATTACHMENT : pixel_art.png

* PUSH ATTACHMENT : MOG.jpeg

* PUSH ATTACHMENT : Némo_lillyth.jpg

* PUSH ATTACHMENT : première_commi.png

* PUSH ATTACHMENT : semi_realist.png

* PUSH ATTACHMENT : Némo_BG_nom.jpg

* PUSH ATTACHMENT : portrait.jpg

* PUSH ATTACHMENT : avatar.png

* PUSH NOTE : Mnémosyne.md

* PUSH ATTACHMENT : Némo_lillyth.jpg

* PUSH ATTACHMENT : Némo_Commission_BG+name.png

* PUSH NOTE : Eden « 28500 » Loiseau.md

* PUSH ATTACHMENT : eden_portrait.png

* PUSH ATTACHMENT : Eden-full.png

* PUSH NOTE : Le laboratoire.md

* PUSH NOTE : Éden.md

* DELETE FILE : content/assets/img/ASH-LYNMAMECHI-1-1.png

* DELETE FILE : content/assets/img/Ashling_x_robot.png

* DELETE FILE : content/assets/img/CDI_Best_Rasp.png

* DELETE FILE : content/assets/img/CDI_Bestiaire_2.png

* DELETE FILE : content/assets/img/CDI_Bestiaire_3.png

* DELETE FILE : content/assets/img/CDI_Bestiaire_C.png

* DELETE FILE : content/assets/img/CDI_Bestiaire_Masque.png

* DELETE FILE : content/assets/img/CDI_Iguane.png

* DELETE FILE : content/assets/img/CDI_Logo.png

* DELETE FILE : content/assets/img/CDI_Map.png

* DELETE FILE : content/assets/img/COMMISSION_MARA_PP.png

* DELETE FILE : content/assets/img/Commission Feilyn.png

* DELETE FILE : content/assets/img/Eden-full.png

* DELETE FILE : content/assets/img/Futaba 1.png

* DELETE FILE : content/assets/img/IMG_0758.jpeg

* DELETE FILE : content/assets/img/Illustration-1701067202828.png

* DELETE FILE : content/assets/img/Illustration-1701067202830.png

* DELETE FILE : content/assets/img/Illustration-1701067203526.png

* DELETE FILE : content/assets/img/Illustration-1701067203528.png

* DELETE FILE : content/assets/img/Illustration-1701067204160.png

* DELETE FILE : content/assets/img/Illustration-1701067204162.png

* DELETE FILE : content/assets/img/Illustration-1701067204991.png

* DELETE FILE : content/assets/img/Illustration-1701067204993.jpeg

* DELETE FILE : content/assets/img/Illustration-1701067205460.png

* DELETE FILE : content/assets/img/Illustration-1701067205462.jpeg

* DELETE FILE : content/assets/img/Illustration-1701067205957.png

* DELETE FILE : content/assets/img/Illustration-1701067208515.jpeg

* DELETE FILE : content/assets/img/Illustration-1701067208654.jpeg

* DELETE FILE : content/assets/img/Illustration-1701067208718.png

* DELETE FILE : content/assets/img/Illustration-1701068321097.png

* DELETE FILE : content/assets/img/Illustration-1701068321713.jpeg

* DELETE FILE : content/assets/img/Illustration-1701068322156.jpeg

* DELETE FILE : content/assets/img/Illustration-1701068322540.png

* DELETE FILE : content/assets/img/Illustration-1701068322877.jpeg

* DELETE FILE : content/assets/img/Illustration-1701068322881.png

* DELETE FILE : content/assets/img/Illustration-1701068323349.jpeg

* DELETE FILE : content/assets/img/Illustration-1701068323445.jpeg

* DELETE FILE : content/assets/img/Illustration-1701068323550.png

* DELETE FILE : content/assets/img/Illustration-1701068323665.jpeg

* DELETE FILE : content/assets/img/Illustration-1701068323911.jpeg

* DELETE FILE : content/assets/img/Illustration-1701068324041.jpg

* DELETE FILE : content/assets/img/Illustration-1701068324265.jpeg

* DELETE FILE : content/assets/img/Illustration-1701068324478.jpeg

* DELETE FILE : content/assets/img/Illustration-1701068324587.jpeg

* DELETE FILE : content/assets/img/Illustration-1701068324712.png

* DELETE FILE : content/assets/img/Illustration-1701068324788.jpeg

* DELETE FILE : content/assets/img/Illustration-1701068324913.png

* DELETE FILE : content/assets/img/Illustration-1701068325095.png

* DELETE FILE : content/assets/img/Illustration-1701068325219.jpg

* DELETE FILE : content/assets/img/Illustration-1701068325515.jpg

* DELETE FILE : content/assets/img/Implant-Mémoriel-1-1-1-1.png

* DELETE FILE : content/assets/img/Kara-Civil-Realist.png

* DELETE FILE : content/assets/img/Kara_Kimono-1-1.jpeg

* DELETE FILE : content/assets/img/Kara_chill-1-1-1.jpg

* DELETE FILE : content/assets/img/Kara_illustration_commission-1-1.png

* DELETE FILE : content/assets/img/Lucrezia - AK.png

* DELETE FILE : content/assets/img/Mimeowendormi.png

* DELETE FILE : content/assets/img/Némo_Commission_BG+name.png

* DELETE FILE : content/assets/img/Pasted image 20220121203402.png

* DELETE FILE : content/assets/img/Pasted image 20220121204230.png

* DELETE FILE : content/assets/img/Pasted image 20220121205357.png

* DELETE FILE : content/assets/img/Pasted image 20220126170658.png

* DELETE FILE : content/assets/img/Pasted image 20220126171006.png

* DELETE FILE : content/assets/img/Pasted image 20220126171043.png

* DELETE FILE : content/assets/img/Pasted image 20220126172840.png

* DELETE FILE : content/assets/img/Pasted image 20220126174208.png

* DELETE FILE : content/assets/img/Pasted image 20231226134811.png

* DELETE FILE : content/assets/img/Plasma-Implant-Bouclier-1-1-1-1.png

* DELETE FILE : content/assets/img/Plasma-Implant-Double-1-1-1-1.png

* DELETE FILE : content/assets/img/Plasma-Implant-Illégal-1-1-1.png

* DELETE FILE : content/assets/img/Plasma-Implant-Simple-1-1-1.png

* DELETE FILE : content/assets/img/Quanxi-Sara-White.jpg

* DELETE FILE : content/assets/img/SOLAUI-1-1.png

* DELETE FILE : content/assets/img/Spectre_CDI.png

* DELETE FILE : content/assets/img/Unlimited blades Works.png

* DELETE FILE : content/assets/img/avatar.png

* DELETE FILE : content/assets/img/cdi2.png

* DELETE FILE : content/assets/img/cdi_arcadia.jpg

* DELETE FILE : content/assets/img/cdi_arcadia_3.jpg

* DELETE FILE : content/assets/img/cdi_arcadia_4.jpg

* DELETE FILE : content/assets/img/cdi_arcadia_5.jpg

* DELETE FILE : content/assets/img/cdi_arcadia_6.jpg

* DELETE FILE : content/assets/img/cdi_arcadia_7.jpg

* DELETE FILE : content/assets/img/cdi_mess.jpg

* DELETE FILE : content/assets/img/cid_arcadia_8.jpg

* DELETE FILE : content/assets/img/clothes.png

* DELETE FILE : content/assets/img/don-john-gatacilo-workstation-cyberpunk-style-1685914612863-1.jpg

* DELETE FILE : content/assets/img/eden_portrait.png

* DELETE FILE : content/assets/img/emotions.png

* DELETE FILE : content/assets/img/futaba 2.png

* DELETE FILE : content/assets/img/hermite.png

* DELETE FILE : content/assets/img/kris-thaler-pistol-rev3a.jpg

* DELETE FILE : content/assets/img/project nucleus.png

* DELETE FILE : content/assets/img/ref chambre.png

* DELETE FILE : content/assets/img/ref.png

* DELETE FILE : content/assets/img/solow.png

* DELETE FILE : content/assets/img/Éden.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants