From 8eaea048978bc115021ca9942fdbaf89c7072ff4 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 22 Jul 2022 10:30:28 +0100 Subject: using a shortcode for cat kill data! --- content/blog/cats/cat_kills/index.md | 61 +----------------------------- data/cat_kills.yml | 36 ++++++++++++++++++ layouts/shortcodes/cat_kill_log_table.html | 35 +++++++++++++++++ 3 files changed, 72 insertions(+), 60 deletions(-) create mode 100644 data/cat_kills.yml create mode 100644 layouts/shortcodes/cat_kill_log_table.html diff --git a/content/blog/cats/cat_kills/index.md b/content/blog/cats/cat_kills/index.md index 638a76b..143238f 100644 --- a/content/blog/cats/cat_kills/index.md +++ b/content/blog/cats/cat_kills/index.md @@ -20,66 +20,7 @@ I have decided to resume updating this. Best way to do it is to include a new ta Chris Packham - if you're reading this, you're right. Locking the cats out at night *does* result in a higher kill-rate. Less hassle for us but more hassle for the birds. Lesson learned. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DateSuper speciesSpecific speciesKill TypeKillerSuspect KillerComments
22 July 2022RodentShrewDOAUnknownNAJust a dead shrew on the carpet, a few long blades of grass alongside it suggesting it put up a fight. RIP.
19 July 2022BirdUnknownMissing presumed deadUnknownNAJust a pile of feathers (probably of a young bird) outside the back door. The body would have been brought inside had we not locked the flap last night.
18 July 2022RodentShrewAliveNANANo remains this morning but a shrew trotted into the living room at about 8am having been carried in by someone's murderous jaws at some point during the night. Eventually we trapped it under a plant pot and released it out the front. Shrews make a lot of noise when stressed!
17 July 2022BirdSparrowDOAUnknownNAMullered corpse lying in bloom of feathers on the utility room floor upon waking this morning. Do most of my hoovering in pyjamas nowadays.
+{{< cat_kill_log_table >}} #### Current analysis as of 21 June 2021: diff --git a/data/cat_kills.yml b/data/cat_kills.yml new file mode 100644 index 0000000..17588a2 --- /dev/null +++ b/data/cat_kills.yml @@ -0,0 +1,36 @@ +cat_kills: + - date: "22 July 2022" + super_species: "Rodent" + specific_species: "Shrew" + kill_type: "DOA" + killer: "Unknown" + suspect_killer: "Unknown" + comments: "Dumped outside the backdoor on its back." + - date: "22 July 2022" + super_species: "Rodent" + specific_species: "Shrew" + kill_type: "DOA" + killer: "Unknown" + suspect_killer: "Unknown" + comments: "Just a dead shrew on the carpet, a few long blades of grass alongside it suggesting it put up a fight. RIP." + - date: "19 July 2022" + super_species: "Bird" + specific_species: "Unknown" + kill_type: "Missing presumed dead" + killer: "Unknown" + suspect_killer: "NA" + comments: "Just a pile of feathers (probably of a young bird) outside the back door. The body would have been brought inside had we not locked the flap last night." + - date: "18 July 2022" + super_species: "Rodent" + specific_species: "Shrew" + kill_type: "Alive" + killer: "NA" + suspect_killer: "NA" + comments: "No remains this morning but a shrew trotted into the living room at about 8am having been carried in by someone's murderous jaws at some point during the night. Eventually we trapped it under a plant pot and released it out the front. Shrews make a lot of noise when stressed!" + - date: "17 July 2022" + super_species: "Bird" + specific_species: "Sparrow" + kill_type: "DOA" + killer: "Unknown" + suspect_killer: "NA" + comments: "Mullered corpse lying in bloom of feathers on the utility room floor upon waking this morning. Do most of my hoovering in pyjamas nowadays." diff --git a/layouts/shortcodes/cat_kill_log_table.html b/layouts/shortcodes/cat_kill_log_table.html new file mode 100644 index 0000000..6c3246a --- /dev/null +++ b/layouts/shortcodes/cat_kill_log_table.html @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + {{ range .Site.Data.cat_kills.cat_kills }} + + + + + + + + + + {{ end }} + +
DateSuper speciesSpecific speciesKill TypeKillerSuspect KillerComments
{{ .date }}{{ .super_species }}{{ .specific_species }}{{ .kill_type }}{{ .killer }}{{ .suspect_killer }}{{ .comments }}
-- cgit v1.2.3