diff --git a/about.py b/about.py index 2545e3cdbdb7033824ab0809d40b2123feaa6e93..5aadec982fc96cfea5d7506448342ade38f75305 100644 --- a/about.py +++ b/about.py @@ -109,13 +109,19 @@ def compile_to_yaml(in_filename="about_meta.yaml", out_filename="about.yaml", da external yaml file. """ meta_data = open_meta(in_filename, data_dir) + # At this stage it is smart to remove the 'hidden' files. + meta_data_clean = { + "files" : [ + item for item in meta_data["files"] if not item["hidden"] + ] + } - output_text = compile_markdown(meta_data, data_dir) + output_text = compile_markdown(meta_data_clean, data_dir) sidebar = parse_headings(parse_html(output_text)) output_data = { - "meta_data": meta_data, + "meta_data": meta_data_clean, "output_text": output_text, "sidebar": sidebar } diff --git a/data/about_meta.yaml b/data/about_meta.yaml index 40e6f58db6669ec0f7db5d87350ede44307d8da1..5c67c0927683f096783f08c4323317e29b5ce2a5 100644 --- a/data/about_meta.yaml +++ b/data/about_meta.yaml @@ -7,18 +7,21 @@ files: [ name: public.md, slug: public, title: I'm a member of the <b>public</b>, - subtitle: (non-technical description) + subtitle: (non-technical description), + hidden: false }, { name: astro.md, slug: astro, title: I'm an <b>astronomer</b>, - subtitle: "(SPH, gravity accuracy, etc.)" + subtitle: "(SPH, gravity accuracy, etc.)", + hidden: true }, { name: cs.md, slug: cs, title: I'm a <b>computer scientist</b>, - subtitle: "(technical code description)" + subtitle: "(technical code description)", + hidden: true } -] \ No newline at end of file +]