From 11d09ca192f9eff37938f781a5c0dda3ed65685b Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 16 Feb 2020 03:43:16 -0600 Subject: add `hidden` bangtag to let authors mark the current roar hidden until `publish`ed without it needing to be a draft --- app/lib/bangtags.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app') diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index 53c63bf78..59ec16a23 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -712,6 +712,11 @@ class Bangtags @component_stack.push(:var) add_tags(status, 'self.draft') + when 'hidden' + chunk = nil + @status.hidden = true + @status.keep_hidden! + when 'format', 'type' chunk = nil next if cmd[1].nil? -- cgit