Compare commits

...

14 Commits

Author SHA1 Message Date
Nick Stokoe
a37b8e68d3 package.json - add build and deploy scripts
bin/deploy wraps the rsync command.
2023-05-09 15:42:59 +01:00
Nick Stokoe
0f5d81e59f theme fixes - and use url filter to allow non root folder deploying 2023-05-09 15:42:26 +01:00
Nick Stokoe
5ebd808a20 src/_images/.htaccess - spurious leftover from Drupal, remove 2023-05-09 15:41:57 +01:00
Nick Stokoe
c391cd96f0 very minimal theme 2023-05-09 14:33:01 +01:00
Nick Stokoe
65813f28f5 .eleventy.js - pass through with rename of assets and images
rc/index.html - update path following passthrough rename
2023-05-09 14:32:54 +01:00
Nick Stokoe
6b97640b61 src/_images/ - remove dupes 2023-05-09 14:32:54 +01:00
Nick Stokoe
f2606bbfc6 _articles/4d1cc620-43cf-4945-b44c-e4c56f668c1f.md - correct image path 2023-05-09 14:32:54 +01:00
Nick Stokoe
800f9b7c8e src/_images/ - remove trailing space from names 2023-05-09 14:32:54 +01:00
Nick Stokoe
3900c58641 src/_people/ - reimport people 2023-05-09 12:25:35 +01:00
Nick Stokoe
07c8038c6f src/_pages/ - reimport pages 2023-05-09 12:25:12 +01:00
Nick Stokoe
c2cb27d0f0 unpack-whenwe-json.js - tweak to serialise lists of things as JSON
Which should work in YAML
2023-05-09 12:24:36 +01:00
Nick Stokoe
af5c5ffde8 src/_articles/ - reimport
using unpack-whenwe-json.js, tweaked
2023-05-09 12:24:06 +01:00
Nick Stokoe
0f48194d81 unpack-whenwe-json.js - indent, untabify 2023-05-09 12:07:18 +01:00
Nick Stokoe
fbfed95657 index.md - delete, unused 2023-05-09 12:02:14 +01:00
56 changed files with 236 additions and 192 deletions

View File

@@ -5,7 +5,8 @@ module.exports = function(eleventyConfig) {
return collection.getFilteredByGlob(src+'/_articles/*.md');
});
eleventyConfig.addPassthroughCopy("src/_images");
eleventyConfig.addPassthroughCopy({ "src/_images" : "images" });
eleventyConfig.addPassthroughCopy({ "src/assets" : "assets" });
return {
dir: {

8
bin/deploy Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -vx
rsync -avzc \
--delete \
-C \
_site/ \
-- \
"$1"

View File

@@ -1,6 +0,0 @@
---
title: Hi
---
Hello!
{{ title }}

View File

@@ -4,6 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"build": "rm -rf _site && eleventy --pathprefix '~nick/whenwe/'",
"deploy": "bin/deploy nick@mixian.noodlefactory.co.uk:public_html/whenwe/",
"server": "eleventy --serve",
"test": "echo \"Error: no test specified\" && exit 1"
},

View File

@@ -5,8 +5,8 @@ comment_count: "0"
created: "2013-12-04T12:05:00.000Z"
featured_image: "picnic at High Force - Stan & Janet.jpg"
images:
ix: "9"
nid: "26"
ix: 9
nid: 26
original_author: "Janet Woolley"
path: "content/jans-earliest-memories-and-kagumo"
title: "My (Jan's) earliest memories "

View File

@@ -5,8 +5,8 @@ comment_count: "0"
created: "2019-07-12T17:15:02.000Z"
featured_image:
images:
ix: "12"
nid: "54"
ix: 12
nid: 54
original_author: "Jan and Muriel"
path: "content/kagumo-college-cine-films"
title: "Kagumo College cine films"

View File

@@ -4,9 +4,9 @@ changed: "2019-09-09T21:52:59.000Z"
comment_count: "0"
created: "2016-02-02T23:27:00.000Z"
featured_image: "mike_about_1968.jpg"
images: "barnard_castle_school.jpg,mike_on_safari.jpg,safari_1.jpg,mike_on_safari_2.jpg,mike_linda_1972ish_at_st_tudy_photos.jpg,mike_and_linda_wedding_family_photo.jpg,jon_and_dan_age_5or6.jpg,1966_mike_in_doy_uniform.jpg,jan_and_mike_at_hengar_70s.jpg,doy_late_60s.jpg,safari_photos_3.jpg,mike_dad_at_wedding_1972.jpg,mike_and_christine_wedding.jpg,mike_and_chris_25_years2.jpg,2006_mikes_family_new_year.jpg,jon_dan_and_lucy_at_kathys_wedding.jpeg"
ix: "16"
nid: "48"
images: ["barnard_castle_school.jpg","mike_on_safari.jpg","safari_1.jpg","mike_on_safari_2.jpg","mike_linda_1972ish_at_st_tudy_photos.jpg","mike_and_linda_wedding_family_photo.jpg","jon_and_dan_age_5or6.jpg","1966_mike_in_doy_uniform.jpg","jan_and_mike_at_hengar_70s.jpg","doy_late_60s.jpg","safari_photos_3.jpg","mike_dad_at_wedding_1972.jpg","mike_and_christine_wedding.jpg","mike_and_chris_25_years2.jpg","2006_mikes_family_new_year.jpg","jon_dan_and_lucy_at_kathys_wedding.jpeg"]
ix: 16
nid: 48
original_author: "Jan"
path: "content/mikes-story"
title: "Mike's Story - including his big adventure"

View File

@@ -4,9 +4,9 @@ changed: "2019-07-19T22:06:53.000Z"
comment_count: "0"
created: "2019-07-19T21:59:00.000Z"
featured_image: "1960 on the steps at Kagumo.JPG"
images: "Kids dressing up Kagumo.jpg"
ix: "13"
nid: "55"
images: ["Kids dressing up Kagumo.jpg"]
ix: 13
nid: 55
original_author: "Janet"
path: "content/kagumo-our-friends-and-what-we-got"
title: "Kagumo: our friends and what we got up to"

View File

@@ -4,9 +4,9 @@ changed: "2019-09-12T20:45:59.000Z"
comment_count: "0"
created: "2013-10-16T15:19:00.000Z"
featured_image: "jan in 6th form.jpg"
images: "Jan in her new KHS uniform.JPG,birds_eye_view_of_boma.jpg"
ix: "32"
nid: "22"
images: ["Jan in her new KHS uniform.JPG","birds_eye_view_of_boma.jpg"]
ix: 32
nid: 22
original_author: "Janet Woolley"
path: "content/1968"
title: "Kenya High School - looking back from 1968 "

View File

@@ -4,9 +4,9 @@ changed: "2019-09-12T10:49:48.000Z"
comment_count: "0"
created: "2015-07-29T20:39:00.000Z"
featured_image: "1970_may_mike_in_boat_at_kerenga.jpg"
images: "1973_06_tea_hotel_pool.jpg"
ix: "27"
nid: "41"
images: ["1973_06_tea_hotel_pool.jpg"]
ix: 27
nid: 41
original_author: "Jan"
path: "content/kericho-water-ski-ing"
title: "Kericho: Kerenga Dam"

View File

@@ -5,8 +5,8 @@ comment_count: "0"
created: "2015-07-29T20:56:47.000Z"
featured_image:
images:
ix: "7"
nid: "42"
ix: 7
nid: 42
original_author: "Jan"
path: "content/kathys-pony-club-days"
title: "Kathy's pony club days"

View File

@@ -5,8 +5,8 @@ comment_count: "0"
created: "2013-12-10T21:18:00.000Z"
featured_image:
images:
ix: "36"
nid: "28"
ix: 36
nid: 28
original_author: "Irene Smithe"
path: "content/irene-becomes-granny-1992"
title: "Irene becomes a Granny - 1992 - A poem"

View File

@@ -4,9 +4,9 @@ changed: "2019-09-12T11:00:17.000Z"
comment_count: "0"
created: "2015-01-29T12:17:00.000Z"
featured_image: "1965_kericho_college_.jpg"
images: "1965_01_jan_going_back_to_school.jpg,1965_01_kathy_and_mike_going_back_to_school.jpg,1965_02_licnic_at_kabianga.jpg,1966_01_janet.jpg,1966_01_kathy_dressed_up.jpg,1966_01_jan_steph_adam_and_caroline.jpg,1966_01_mike_kathy_and_kipper.jpg,1966_09_chui_at_3_months.jpg,1967_kathy_in_school_uniform.jpg,1967_kathy_in_the_garden.jpg,1967_jan_and_peter_butterworth.jpg,Kericho House.jpg,1970_mike_swinging_a_jembe.jpg,1970_jan_hanging_out_the_clothes.jpg,1970_oct_mike_on_tractor.jpg,1973_01_kath.jpg,1973_nick_with_patrick_and_owen.jpg,Stan at Kericho College.jpg,1967_sp_kathy_and_horse.jpg,1972_feb_kathy_and_nick_on_a_horse.jpg,1967_kathy_riding_.jpg,1966_jan_walking_in_nairobi_street.jpg,1966_mike_in_doy_uniform.jpg,1970_mike_swinging_a_jembe.jpg,1970_mike_and_nick.jpg,1967_nov_jan_and_mike_in_kings_garden.jpg"
ix: "28"
nid: "35"
images: ["1965_01_jan_going_back_to_school.jpg","1965_01_kathy_and_mike_going_back_to_school.jpg","1965_02_licnic_at_kabianga.jpg","1966_01_janet.jpg","1966_01_kathy_dressed_up.jpg","1966_01_jan_steph_adam_and_caroline.jpg","1966_01_mike_kathy_and_kipper.jpg","1966_09_chui_at_3_months.jpg","1967_kathy_in_school_uniform.jpg","1967_kathy_in_the_garden.jpg","1967_jan_and_peter_butterworth.jpg","Kericho House.jpg","1970_mike_swinging_a_jembe.jpg","1970_jan_hanging_out_the_clothes.jpg","1970_oct_mike_on_tractor.jpg","1973_01_kath.jpg","1973_nick_with_patrick_and_owen.jpg","Stan at Kericho College.jpg","1967_sp_kathy_and_horse.jpg","1972_feb_kathy_and_nick_on_a_horse.jpg","1967_kathy_riding_.jpg","1966_jan_walking_in_nairobi_street.jpg","1966_mike_in_doy_uniform.jpg","1970_mike_swinging_a_jembe.jpg","1970_mike_and_nick.jpg","1967_nov_jan_and_mike_in_kings_garden.jpg"]
ix: 28
nid: 35
original_author: "Jan"
path: "content/kericho"
title: "Kericho 1962 to 1969 and beyond (includes Kabianga)"

View File

@@ -5,8 +5,8 @@ comment_count: "0"
created: "2015-07-29T21:51:00.000Z"
featured_image: "Diani shore.JPG"
images:
ix: "30"
nid: "44"
ix: 30
nid: 44
original_author: "Jan"
path: "content/coast-cine-films"
title: "Holidays at the Coast part 2 - Cine Films"

View File

@@ -3,10 +3,10 @@ category: "6"
changed: "2019-09-09T22:14:49.000Z"
comment_count: "0"
created: "2013-09-26T23:36:00.000Z"
featured_image: "Birds eye view of the Boma.JPG"
featured_image: "birds_eye_view_of_boma.jpg"
images:
ix: "18"
nid: "14"
ix: 18
nid: 14
original_author: "Janet Woolley"
path: "content/kenya-high-school"
title: "B5 ... Kenya High School - a story (Midnight Feast)"
@@ -37,4 +37,4 @@ _Your tonsils turn a sickly green and pus oozes out like Devonshire cream”_
“Time to go back to bed, I think” says Sue. We had had great fun but just pray that matron won't be on the prowl as we creep back upstairs, and that none of the prefects will be making a midnight trip to the bathroom. First though, we have to get back through that window to the locker room, more of a challenge than we anticipated. Sue gives Mary a leg up and finds a box to heave herself up. I am last as usual and being the least athletic and tubbiest I am dragged up and through the window by my partners in crime. Phew, the chocolate cake doesn't help and my knees scrape across the window ledge.
We are not caught though and soon I am back in bed, but unable to sleep as the adrenalin races round my body.
We are not caught though and soon I am back in bed, but unable to sleep as the adrenalin races round my body.

View File

@@ -3,10 +3,10 @@ category: "8"
changed: "2019-09-11T15:20:55.000Z"
comment_count: "1"
created: "2013-10-04T13:42:00.000Z"
featured_image: "Muriel 1951"
images: "Janet 18mths.jpg,as ayoung man.jpg,Thomsons Falls.jpg,N. Frontier view.jpg"
ix: "21"
nid: "17"
featured_image: "Muriel 1951.jpg"
images: ["Janet 18mths.jpg","as ayoung man.jpg","Thomsons Falls.jpg","N. Frontier view.jpg"]
ix: 21
nid: 17
original_author: "Muriel Stokoe"
path: "tcontent/muriels-letter-kenya-setember-1951"
title: "Muriel's Story - an insight into her first 2 years in Kenya"
@@ -81,4 +81,4 @@ Do make Janet a frock if you'd like to, she can do with plenty of cotton ones as
Much love, and thanks for your birthday wishes, I had a nice birthday and several presents this year but its awful to think of the age I've reached 34! I can't really believe it I'll soon be middle aged.
_Lots of love Muriel_
_Lots of love Muriel_

View File

@@ -4,9 +4,9 @@ changed: "2019-09-12T20:55:26.000Z"
comment_count: "0"
created: "2015-01-31T00:03:00.000Z"
featured_image: "1965canal_holiday.jpg"
images: "1965_canal_leavinh_heyford.jpg,1965_children_at_trout_inn.jpg,1965_getting_fuel.jpg,1965_jan_on_boat_roof.jpg,1965_jan_walking_by_canal.jpg,1965_k_at_trout_inn.jpg,1965_mooring_the_boat.jpg,1965_sitting_thames_lock.jpg,1965_swans_at_abingdon.jpg,1967_boat_in_the_lock.jpg,1967_gordon_on_boat.jpg,1967_k_and_rufus.jpg,1967_km_rufus.jpg,1967_lunch_on_board.jpg,1967_me_and_kath_on_boat.jpg,1967_me_and_kath_on_boat.jpg,1967_me_and_rufus.jpg,1967_opening_lock.jpg,1967_skipper_gordon.jpg"
ix: "33"
nid: "38"
images: ["1965_canal_leavinh_heyford.jpg","1965_children_at_trout_inn.jpg","1965_getting_fuel.jpg","1965_jan_on_boat_roof.jpg","1965_jan_walking_by_canal.jpg","1965_k_at_trout_inn.jpg","1965_mooring_the_boat.jpg","1965_sitting_thames_lock.jpg","1965_swans_at_abingdon.jpg","1967_boat_in_the_lock.jpg","1967_gordon_on_boat.jpg","1967_k_and_rufus.jpg","1967_km_rufus.jpg","1967_lunch_on_board.jpg","1967_me_and_kath_on_boat.jpg","1967_me_and_kath_on_boat.jpg","1967_me_and_rufus.jpg","1967_opening_lock.jpg","1967_skipper_gordon.jpg"]
ix: 33
nid: 38
original_author: "Jan"
path: "content/canals-1965-and-1967"
title: "Canal Holidays in the UK 1965 and 1967"

View File

@@ -4,9 +4,9 @@ changed: "2019-09-12T20:23:46.000Z"
comment_count: "0"
created: "2013-11-01T21:35:00.000Z"
featured_image: "1960 classic photo.JPG"
images: "1960 dusty road Nyeri.JPG,muddy road nr Nyeri.JPG,1961 stuck in mudcoast0026.JPG,bus coming up the escarpment.JPG,looking north across Rift Valley.JPG,1961 waiting for the ferry at Kilindini.JPG,big baobab.JPG,1960 Diani.JPG,Diani shore.JPG,1961 Watatu garden.JPG,1960 Wells bungalow.JPG,1960 shell sellers.JPG,1960 eating mango.JPG,1960 Molly and Irene.JPG,1960 Kathy on verandah.JPG,1961 steps at coast.JPG,nglau boat.JPG,1960 Mike with boat.JPG,1960 Mu and Jan on the reef.JPG,1960 Mu and chidren at low tide.JPG,1967 shell sellers.JPG,1966 high tide.JPG,1961 all swimming.JPG,1963 Kathys on ponton.JPG,1961 jan and paula.JPG,bleached logs on the beach.JPG,coast0023.JPG,1959 coast Kath.JPG,1961 M&M up palm tree .JPG,1959 Kathy and sand castle.JPG,1961 Mike dripping sand.JPG,1961Jan and Martin sandcastle.JPG,1966 kathy in sand.JPG,1963 Jan buried.JPG,1961 coast with cousins at xmas.JPG,1961 Gordon at coast.JPG,1963 with Moffs.JPG,1963 jan and jan in bikini.JPG,1963 boat.JPG,1963 our catermeran.JPG"
ix: "29"
nid: "25"
images: ["1960 dusty road Nyeri.JPG","muddy road nr Nyeri.JPG","1961 stuck in mudcoast0026.JPG","bus coming up the escarpment.JPG","looking north across Rift Valley.JPG","1961 waiting for the ferry at Kilindini.JPG","big baobab.JPG","1960 Diani.JPG","Diani shore.JPG","1961 Watatu garden.JPG","1960 Wells bungalow.JPG","1960 shell sellers.JPG","1960 eating mango.JPG","1960 Molly and Irene.JPG","1960 Kathy on verandah.JPG","1961 steps at coast.JPG","nglau boat.JPG","1960 Mike with boat.JPG","1960 Mu and Jan on the reef.JPG","1960 Mu and chidren at low tide.JPG","1967 shell sellers.JPG","1966 high tide.JPG","1961 all swimming.JPG","1963 Kathys on ponton.JPG","1961 jan and paula.JPG","bleached logs on the beach.JPG","coast0023.JPG","1959 coast Kath.JPG","1961 M&M up palm tree .JPG","1959 Kathy and sand castle.JPG","1961 Mike dripping sand.JPG","1961Jan and Martin sandcastle.JPG","1966 kathy in sand.JPG","1963 Jan buried.JPG","1961 coast with cousins at xmas.JPG","1961 Gordon at coast.JPG","1963 with Moffs.JPG","1963 jan and jan in bikini.JPG","1963 boat.JPG","1963 our catermeran.JPG"]
ix: 29
nid: 25
original_author: "Janet"
path: "content/holidays-coast-0"
title: "Holidays at the Coast"

View File

@@ -4,9 +4,9 @@ changed: "2019-09-12T10:11:01.000Z"
comment_count: "0"
created: "2013-10-04T13:40:00.000Z"
featured_image: "in the garden at DOYS.jpg"
images: "A = Stan & Muriel's wedding July 1949.jpg,D - baby Janet with Granny, Don and Nell .jpg,Jan and Mu leave for Kenya Jun 50.jpg,Janet with proud Dad Jul 1950.jpg,new house feb 1951.jpg,G - inside the new home2.jpg,delamere house.jpg,Janet & Fatuma feb 1951.jpg,Janet helping in garden.jpg,F - new home and new car 1951.jpg,Mount Kenya trip 1.jpg,Mt Kenya trip2.jpg,family coast 51.jpg,house at Embu.jpg,baby Mike 3weeks old.jpg,Minnie and Janet.jpg,elsie and minnie with Pym the cat in June 52.jpg,I - 4 generations of Stokoes 1954.jpg,on leave 1954 in Tursdale.jpg,Stand and children at Bickley 1954.jpg,J - baby Michael at Kisii.jpg,unpacking at Kisii.jpg,verandah at Kisii.jpg,witch and Mukeria1.jpg,christmas 1954 kisii -1.jpg,cousins 1956 - M&M.jpg,Paula and Martin 1956.jpg,Tursdale school 1956.jpg,Janet Shirley & Pauline.jpg,picnic at High Force - Stan & Janet.jpg,Picnic at High Force - Mike & Granny"
ix: "22"
nid: "16"
images: ["A = Stan & Muriel's wedding July 1949.jpg","D - baby Janet with Granny, Don and Nell .jpg","Jan and Mu leave for Kenya Jun 50.jpg","Janet with proud Dad Jul 1950.jpg","new house feb 1951.jpg","G - inside the new home2.jpg","delamere house.jpg","Janet & Fatuma feb 1951.jpg","Janet helping in garden.jpg","F - new home and new car 1951.jpg","Mount Kenya trip 1.jpg","Mt Kenya trip2.jpg","family coast 51.jpg","house at Embu.jpg","baby Mike 3weeks old.jpg","Minnie and Janet.jpg","elsie and minnie with Pym the cat in June 52.jpg","I - 4 generations of Stokoes 1954.jpg","on leave 1954 in Tursdale.jpg","Stand and children at Bickley 1954.jpg","J - baby Michael at Kisii.jpg","unpacking at Kisii.jpg","verandah at Kisii.jpg","witch and Mukeria1.jpg","christmas 1954 kisii -1.jpg","cousins 1956 - M&M.jpg","Paula and Martin 1956.jpg","Tursdale school 1956.jpg","Janet Shirley & Pauline.jpg","picnic at High Force - Stan & Janet.jpg","Picnic at High Force - Mike & Granny"]
ix: 22
nid: 16
original_author: "Janet Woolley"
path: "content/kenya-early-days"
title: "Early years in Kenya (1950 to 1956) "

View File

@@ -4,9 +4,9 @@ changed: "2015-01-18T23:05:24.000Z"
comment_count: "0"
created: "2013-09-27T22:11:00.000Z"
featured_image:
images: "Elizabeth Miller v 2.jpg,Elizabeth Miller v 2.jpg,Hunt fam tree v 2 (amended).jpg,Michael Price Stokoe family tree.jpg"
ix: "6"
nid: "15"
images: ["Elizabeth Miller v 2.jpg","Elizabeth Miller v 2.jpg","Hunt fam tree v 2 (amended).jpg","Michael Price Stokoe family tree.jpg"]
ix: 6
nid: 15
original_author: "Esther Hunt and Wendy Stokoe"
path: "content/family-trees"
title: "Family trees"

View File

@@ -4,9 +4,9 @@ changed: "2019-09-12T10:19:05.000Z"
comment_count: "0"
created: "2015-07-27T19:24:00.000Z"
featured_image: "1960 on the steps at Kagumo.JPG"
images: "mental map of Kagumo,mental map of Kagumo,1961 Kathy and Guy Velzian.JPG,1961_daphne_at_limuru.jpg,1961_swimming_in_limuru_dam.jpg,1961_limuru_dam_steph_and_jill.jpg,gillespies.jpg,1962 picnic at Nairobi dam.JPG,Embu river picnic.JPG,Embu wholw grou at picnic000032.JPG,Cave Waterfall Aberdares.JPG,Cave waterfall from above.JPG,tribal dancers.JPG,1961 Kathy Mike Mart on steps.JPG,Aberdares, icy river.JPG,Aberdare ark Sign.JPG,Thego 1961 Mike on a rock.JPG,Thego picnic.JPG,1961 Jan and Moira.JPG,Thego river picnic.JPG,1961 flooding at Sagana bridge.JPG,1961 Jan and Paula watching floods.JPG,1961 flooded bridge.JPG"
ix: "23"
nid: "39"
images: ["mental map of Kagumo","mental map of Kagumo","1961 Kathy and Guy Velzian.JPG","1961_daphne_at_limuru.jpg","1961_swimming_in_limuru_dam.jpg","1961_limuru_dam_steph_and_jill.jpg","gillespies.jpg","1962 picnic at Nairobi dam.JPG","Embu river picnic.JPG","Embu wholw grou at picnic000032.JPG","Cave Waterfall Aberdares.JPG","Cave waterfall from above.JPG","tribal dancers.JPG","1961 Kathy Mike Mart on steps.JPG","Aberdares, icy river.JPG","Aberdare ark Sign.JPG","Thego 1961 Mike on a rock.JPG","Thego picnic.JPG","1961 Jan and Moira.JPG","Thego river picnic.JPG","1961 flooding at Sagana bridge.JPG","1961 Jan and Paula watching floods.JPG","1961 flooded bridge.JPG"]
ix: 23
nid: 39
original_author: "Jan"
path: "content/kagumo-friends-cine-films"
title: "Kagumo College: about our friends and what we got up to"

View File

@@ -4,9 +4,9 @@ changed: "2019-09-13T06:46:18.000Z"
comment_count: "0"
created: "2014-04-30T16:27:00.000Z"
featured_image: "Stokoe Bros 1967.jpg"
images: "stokoe_bros_celebration.jpg,stokoe_bros.jpg"
ix: "35"
nid: "32"
images: ["stokoe_bros_celebration.jpg","stokoe_bros.jpg"]
ix: 35
nid: 32
original_author:
path: "content/stokoe-brothers-garage-business"
title: "Stokoe family stories: Stokoe Brothers Garage "

View File

@@ -4,9 +4,9 @@ changed: "2019-09-12T21:08:43.000Z"
comment_count: "0"
created: "2015-01-29T23:20:00.000Z"
featured_image: "stan_tusker_at_eastbourne.jpg"
images: "stan_and_ellen_at_eastborne.jpg,eastbourne_stan_ellen_madge.jpg,1960_.jpg,1960_hadrians_wall.jpg,1960_at_redcar.jpg,1960_also_at_redcar.jpg,1960_family_ay_redcar.jpg,1960_stokoes_at_tursdale.jpg,1960_the_children.jpg,1960_the_four_brothers_stokoe.jpg,1960_the_wives.jpg,1965_jan_at_tursdale.jpg,1965_kath_and_mike_at_coop_close.jpg,1965_kath_at_tursdale.jpg,1965_on_steps_at_coop_close_loftus.jpg,1965_pond_at_morpeth.jpg,1967_tursdale_with_cousins.jpg,1960_boating_lake_at_bromley_2.jpg,1960_boating_lake_bromley.jpg,1960_children_in_elsies_garden.jpg,1960_mike_and_martin_at_elsies.jpg,1960_rene_and_her_children_in_auntie_elsie_garden.jpg,1960_smithes_house_at_shortlands.jpg,1960_mm_shortlands.jpg,1960_mu_j_and_m_.jpg,1960_kath_at_elsies_.jpg,_goeffrey_daisy_garden_about_1960.jpg,auntie_elsies_front.jpg,_1965_trafalgar_sq_1.jpg,1965_at_trafalgar_sq_2.jpg,1965_kath_trafalger_sq.jpg,1965_mike_with_pigeon_on_his_head.jpg,1965_rene_and_paula_at_home.jpg"
ix: "34"
nid: "37"
images: ["stan_and_ellen_at_eastborne.jpg","eastbourne_stan_ellen_madge.jpg","1960_.jpg","1960_hadrians_wall.jpg","1960_at_redcar.jpg","1960_also_at_redcar.jpg","1960_family_ay_redcar.jpg","1960_stokoes_at_tursdale.jpg","1960_the_children.jpg","1960_the_four_brothers_stokoe.jpg","1960_the_wives.jpg","1965_jan_at_tursdale.jpg","1965_kath_and_mike_at_coop_close.jpg","1965_kath_at_tursdale.jpg","1965_on_steps_at_coop_close_loftus.jpg","1965_pond_at_morpeth.jpg","1967_tursdale_with_cousins.jpg","1960_boating_lake_at_bromley_2.jpg","1960_boating_lake_bromley.jpg","1960_children_in_elsies_garden.jpg","1960_mike_and_martin_at_elsies.jpg","1960_rene_and_her_children_in_auntie_elsie_garden.jpg","1960_smithes_house_at_shortlands.jpg","1960_mm_shortlands.jpg","1960_mu_j_and_m_.jpg","1960_kath_at_elsies_.jpg","_goeffrey_daisy_garden_about_1960.jpg","auntie_elsies_front.jpg","_1965_trafalgar_sq_1.jpg","1965_at_trafalgar_sq_2.jpg","1965_kath_trafalger_sq.jpg","1965_mike_with_pigeon_on_his_head.jpg","1965_rene_and_paula_at_home.jpg"]
ix: 34
nid: 37
original_author: "Jan"
path: "content/holidays-uk"
title: "On leave in the UK "

View File

@@ -4,9 +4,9 @@ changed: "2019-07-19T23:39:02.000Z"
comment_count: "0"
created: "2016-01-14T15:34:00.000Z"
featured_image: "Nyeri Hill.JPG"
images: "1960 grass nests.JPG,tribal dancers.JPG,1961 family and friends picnic.JPG,1961 Nyeri Primary .JPG,1962 01 minibus going to school.JPG,Kids dressing up Kagumo.jpg,1961 flooding at Sagana bridge.JPG,1961 flooded bridge.JPG,1961 Jan and Paula watching floods.JPG,1962 picnic at Nairobi dam.JPG,Embu river picnic.JPG,Embu wholw grou at picnic000032.JPG,Cave waterfall standing under.JPG,Cave Waterfall Aberdares.JPG,Cave waterfall from above.JPG,Aberdares, icy river.JPG,Aberdare ark Sign.JPG,Thego 1961 Mike on a rock.JPG,Thego picnic.JPG,Thego river picnic.JPG,1961 making flower hats.JPG,1961 dessing up.JPG"
ix: "14"
nid: "45"
images: ["1960 grass nests.JPG","tribal dancers.JPG","1961 family and friends picnic.JPG","1961 Nyeri Primary .JPG","1962 01 minibus going to school.JPG","Kids dressing up Kagumo.jpg","1961 flooding at Sagana bridge.JPG","1961 flooded bridge.JPG","1961 Jan and Paula watching floods.JPG","1962 picnic at Nairobi dam.JPG","Embu river picnic.JPG","Embu wholw grou at picnic000032.JPG","Cave waterfall standing under.JPG","Cave Waterfall Aberdares.JPG","Cave waterfall from above.JPG","Aberdares, icy river.JPG","Aberdare ark Sign.JPG","Thego 1961 Mike on a rock.JPG","Thego picnic.JPG","Thego river picnic.JPG","1961 making flower hats.JPG","1961 dessing up.JPG"]
ix: 14
nid: 45
original_author:
path: "content/kagumo-college-part-3-what-life-was"
title: "Kagumo College: our Life"

View File

@@ -4,9 +4,9 @@ changed: "2019-09-11T13:54:14.000Z"
comment_count: "0"
created: "2016-02-02T23:30:00.000Z"
featured_image: "kathy_1966.jpg"
images: "kath_and_rob_r_at_hengar.jpg,gus_honeybun.jpg,robbie_2.jpg,karobi_in_a_lock_in_france.jpg,karobi_in_paris.jpg,kathy_and_rob_on_karobi.jpg,kathy_on_karobi_zante.jpg,kath_at_ford_hill.jpg,patrsy_jean_heading_through_france_to_greece.jpg,patsy_jean_being_helped_through_a_lock.jpg,kathy_with_patsy_jean_in_the_med.jpg,k_sunbathing_on_patsy_jean.jpg,robbie_1.jpg,p1050618.jpg,1967_kathy_in_school_uniform.jpg,1965_01_kathy_and_mike_going_back_to_school.jpg,1959 Kathy and flower.JPG,1959 coast Kath.JPG,kathy_riding_1970.jpg,karobi_3_final.jpg,karobi2_final.jpg,fletch_in_2004.jpg,the_happy_couple.jpg,kathys_boys_2.jpg"
ix: "20"
nid: "49"
images: ["kath_and_rob_r_at_hengar.jpg","gus_honeybun.jpg","robbie_2.jpg","karobi_in_a_lock_in_france.jpg","karobi_in_paris.jpg","kathy_and_rob_on_karobi.jpg","kathy_on_karobi_zante.jpg","kath_at_ford_hill.jpg","patrsy_jean_heading_through_france_to_greece.jpg","patsy_jean_being_helped_through_a_lock.jpg","kathy_with_patsy_jean_in_the_med.jpg","k_sunbathing_on_patsy_jean.jpg","robbie_1.jpg","p1050618.jpg","1967_kathy_in_school_uniform.jpg","1965_01_kathy_and_mike_going_back_to_school.jpg","1959 Kathy and flower.JPG","1959 coast Kath.JPG","kathy_riding_1970.jpg","karobi_3_final.jpg","karobi2_final.jpg","fletch_in_2004.jpg","the_happy_couple.jpg","kathys_boys_2.jpg"]
ix: 20
nid: 49
original_author: "Jan"
path: "content/kathys-story"
title: "Kathy's Story - including her big adventure"

View File

@@ -3,10 +3,10 @@ category:
changed: "2016-02-02T21:41:25.000Z"
comment_count: "1"
created: "2013-10-09T16:17:00.000Z"
featured_image: "Muriel 1951 .jpg"
images: "jan nearly walking.jpg,jan nearly walking.jpg"
ix: "8"
nid: "18"
featured_image: "Muriel 1951.jpg"
images: ["jan nearly walking.jpg","jan nearly walking.jpg"]
ix: 8
nid: 18
original_author:
path: "content/muriels-second-letter-her-mother"
title: "Muriel - Another letter to her Mother from Kenya in April 1952"

View File

@@ -5,8 +5,8 @@ comment_count: "0"
created: "2016-01-14T17:46:00.000Z"
featured_image: "hengar.jpg"
images:
ix: "17"
nid: "46"
ix: 17
nid: 46
original_author:
path: "content/family-transition-1969-1975-kenya-uk"
title: "1969 to 1975 finally leaving Kenya and arriving in Cornwall"

View File

@@ -5,8 +5,8 @@ comment_count: "0"
created: "2013-10-11T20:11:00.000Z"
featured_image: "Janet aged 18 months.jpg"
images:
ix: "37"
nid: "20"
ix: 37
nid: 20
original_author: "Minnie Hunt"
path: "content/bedtime-story-janet"
title: "Story for Janet written by her Grandma in 1951"

View File

@@ -4,9 +4,9 @@ changed: "2019-09-12T10:33:30.000Z"
comment_count: "0"
created: "2013-12-04T12:45:00.000Z"
featured_image: "1960 bougainvillea.JPG"
images: "mount_kenya_peaks.jpg,Pole Pole Hill.JPG,Nyeri,1959 Christmas tree at Kagumo000001.JPG,1960 bougainvillea.JPG,1960 jacaranda at Kagumo.JPG,1959 K&m with bike.JPG,1962 cricket at Kggumo.JPG,tea_party_on_our_verandah_1959ish.jpg,janet_nursing_angus.jpg,mukeria_1957.jpg,1959 Mike choing wood.JPG,Nandi Flames .JPG,1959 Nandi flame at Kagumo.JPG,frangipani.JPG,1961 Nyeri Primary .JPG,1960 grass nests.JPG,1962 01 minibus going to school.JPG,1962 01 children off to school.JPG,kathy_aged_6_weeks.jpg,nyeri_school_62_.jpg,1961 making flower hats.JPG,1960 grass nests.JPG,1961 dessing up.JPG,1961 sports day at Kagumo.JPG,Nyeri Hill.JPG"
ix: "25"
nid: "27"
images: ["mount_kenya_peaks.jpg","Pole Pole Hill.JPG","Nyeri","1959 Christmas tree at Kagumo000001.JPG","1960 bougainvillea.JPG","1960 jacaranda at Kagumo.JPG","1959 K&m with bike.JPG","1962 cricket at Kggumo.JPG","tea_party_on_our_verandah_1959ish.jpg","janet_nursing_angus.jpg","mukeria_1957.jpg","1959 Mike choing wood.JPG","Nandi Flames .JPG","1959 Nandi flame at Kagumo.JPG","frangipani.JPG","1961 Nyeri Primary .JPG","1960 grass nests.JPG","1962 01 minibus going to school.JPG","1962 01 children off to school.JPG","kathy_aged_6_weeks.jpg","nyeri_school_62_.jpg","1961 making flower hats.JPG","1960 grass nests.JPG","1961 dessing up.JPG","1961 sports day at Kagumo.JPG","Nyeri Hill.JPG"]
ix: 25
nid: 27
original_author: "Janet"
path: "content/kagumo-college-nyeri"
title: "Kagumo College, Nyeri: what our life was like"

View File

@@ -4,9 +4,9 @@ changed: "2018-03-03T10:13:30.000Z"
comment_count: "0"
created: "2013-09-26T16:17:00.000Z"
featured_image: "36_western_st.jpg"
images: "wedding_2.jpg,wedding_1.jpg,jan_and_col_wedding.jpg,nick_with_gerbils_in_brighton.jpg,nick_on_brighton_seafront.jpg,nick_and_tree.jpg,more_christmas_in_brighton1.jpg,jan_after_graduation_in_brighton.jpg,jan_xmas_day_in_brighton.jpg,christmas_in_brighton.jpg,colin_a_christmas_in_brighton.jpg"
ix: "10"
nid: "13"
images: ["wedding_2.jpg","wedding_1.jpg","jan_and_col_wedding.jpg","nick_with_gerbils_in_brighton.jpg","nick_on_brighton_seafront.jpg","nick_and_tree.jpg","more_christmas_in_brighton1.jpg","jan_after_graduation_in_brighton.jpg","jan_xmas_day_in_brighton.jpg","christmas_in_brighton.jpg","colin_a_christmas_in_brighton.jpg"]
ix: 10
nid: 13
original_author: "Janet Woolley"
path: "content/cornwall-brighton"
title: "From Cornwall to Brighton and back"

View File

@@ -5,8 +5,8 @@ comment_count: "0"
created: "2013-10-11T20:04:00.000Z"
featured_image:
images:
ix: "38"
nid: "19"
ix: 38
nid: 19
original_author: "Janet Woolley"
path: "content/stans-school-rycotewood"
title: "Stan's school - Rycotewood"

View File

@@ -5,8 +5,8 @@ comment_count: "0"
created: "2019-09-13T07:04:00.000Z"
featured_image: "murielin her 20s.jpg"
images:
ix: "40"
nid: "56"
ix: 40
nid: 56
original_author:
path: "content/elsie-muriel-stokoe-1919-1976"
title: "(Elsie) Muriel Stokoe 1919 - 1976"

View File

@@ -4,9 +4,9 @@ changed: "2019-09-12T10:25:41.000Z"
comment_count: "0"
created: "2013-12-27T17:31:00.000Z"
featured_image: "Young Hasani.jpg"
images: "Hassani 1952-2.jpg,mukeria 1957.jpg,stan_with_hassani_on_return_to_kenya.jpg"
ix: "24"
nid: "31"
images: ["Hassani 1952-2.jpg","mukeria 1957.jpg","stan_with_hassani_on_return_to_kenya.jpg"]
ix: 24
nid: 31
original_author: "Janet Woolley"
path: "content/hassani"
title: "Hassani - Part of our Kenya Family "

View File

@@ -4,9 +4,9 @@ changed: "2019-10-01T11:26:43.000Z"
comment_count: "0"
created: "2019-09-13T07:14:00.000Z"
featured_image: "Stan at Kericho College.jpg"
images: "dan and wen.jpg"
ix: "39"
nid: "57"
images: ["dan and wen.jpg"]
ix: 39
nid: 57
original_author:
path: "content/stanley-reynolds-stokoe-1924-2015"
title: "Stanley Reynolds Stokoe 1924 - 2015"

View File

@@ -4,9 +4,9 @@ changed: "2019-09-12T20:37:08.000Z"
comment_count: "0"
created: "2015-01-29T14:23:00.000Z"
featured_image: "1960_view_from_archers_post.jpg"
images: "1960_uaso_niro_river.jpg,1961_hasani_cooking_at_uaso_niro.jpg,early_elephant_at_uaso_niro.jpg,1961_stan_kath_buffulo_springs.jpg,1960_mu_at_buffalo_springs.jpg,1960_san_and_mike_at_buffalo_springs.jpg,1965_at_the_top_of_the_falls.jpg,1965_crocs_on_th_nile.jpg,1965_elephant_at_paraa_lodge.jpg,1965_entrance_to_murchison_falls.jpg,1965_hipos_at_paraa_lodge.jpg,1965_murchison_falls.jpg,1965_mar_elephant_at_samburu.jpg,1966_buffalo_bones_in_the_mara.jpg,1966_camping_in_mara.jpg,1966_jan_at_mara_camp.jpg,1966_mara_river.jpg,chipmonk_at_samburu.jpg,samburu_game_scout_.jpg,samburu_tribe.jpg,samburu_wives_1965.jpg,000013.jpg,1960_bridge_over_uaso_niro_river.jpg"
ix: "31"
nid: "36"
images: ["1960_uaso_niro_river.jpg","1961_hasani_cooking_at_uaso_niro.jpg","early_elephant_at_uaso_niro.jpg","1961_stan_kath_buffulo_springs.jpg","1960_mu_at_buffalo_springs.jpg","1960_san_and_mike_at_buffalo_springs.jpg","1965_at_the_top_of_the_falls.jpg","1965_crocs_on_th_nile.jpg","1965_elephant_at_paraa_lodge.jpg","1965_entrance_to_murchison_falls.jpg","1965_hipos_at_paraa_lodge.jpg","1965_murchison_falls.jpg","1965_mar_elephant_at_samburu.jpg","1966_buffalo_bones_in_the_mara.jpg","1966_camping_in_mara.jpg","1966_jan_at_mara_camp.jpg","1966_mara_river.jpg","chipmonk_at_samburu.jpg","samburu_game_scout_.jpg","samburu_tribe.jpg","samburu_wives_1965.jpg","000013.jpg","1960_bridge_over_uaso_niro_river.jpg"]
ix: 31
nid: 36
original_author: "Jan"
path: "content/safaris"
title: "On Safari in Kenya's Game Parks"

View File

@@ -4,9 +4,9 @@ changed: "2019-09-09T22:26:55.000Z"
comment_count: "0"
created: "2016-01-14T00:39:00.000Z"
featured_image: "new_born_nick_again.jpg"
images: "jan in uniform,nicks_first_birthday_at_hengar_1970s.jpg,jan_sitting_with_nick_at_5_months.jpg,jan_at_toddler_n_at_hengar.jpg,Jan in her new KHS uniform.JPG,1969_bromley_station.jpg,hengar.jpg,jan_and_mike_at_hengar_70s.jpg,new_born_nick.jpg,new_born_nick_1.jpg,1970_mike_and_nick.jpg"
ix: "19"
nid: "47"
images: ["jan in uniform","nicks_first_birthday_at_hengar_1970s.jpg","jan_sitting_with_nick_at_5_months.jpg","jan_at_toddler_n_at_hengar.jpg","Jan in her new KHS uniform.JPG","1969_bromley_station.jpg","hengar.jpg","jan_and_mike_at_hengar_70s.jpg","new_born_nick.jpg","new_born_nick_1.jpg","1970_mike_and_nick.jpg"]
ix: 19
nid: 47
original_author:
path: "content/jans-story-schoolgirl-motherhood"
title: "Jan's story - from schoolgirl to mother"

View File

@@ -4,9 +4,9 @@ changed: "2019-09-12T10:40:32.000Z"
comment_count: "0"
created: "2013-11-01T18:28:00.000Z"
featured_image: "007 at the top.JPG"
images: "001 ready to climb from base camp.JPG,001 ready to climb from base camp.JPG,002 looking up towards the peak .JPG,003 resting among the cactus and giant lobelia.JPG,004 looking across the glacier to Batian peak.JPG,005 looking down from a high ridge.JPG,006 another view from above.JPG,007 at the top.JPG,008 crossing the glacier on the way down.JPG,009 making their way down.JPG,010 Stan arives home after his journey.JPG"
ix: "26"
nid: "24"
images: ["001 ready to climb from base camp.JPG","001 ready to climb from base camp.JPG","002 looking up towards the peak .JPG","003 resting among the cactus and giant lobelia.JPG","004 looking across the glacier to Batian peak.JPG","005 looking down from a high ridge.JPG","006 another view from above.JPG","007 at the top.JPG","008 crossing the glacier on the way down.JPG","009 making their way down.JPG","010 Stan arives home after his journey.JPG"]
ix: 26
nid: 24
original_author: "Jan"
path: "content/stan-climbs-mount-kenya"
title: "Stan's adventure climbing Mount Kenya"

1
src/_data/layout.js Normal file
View File

@@ -0,0 +1 @@
module.exports = "default.njk"

View File

@@ -1,15 +0,0 @@
# Turn off all options we don't need.
Options None
Options +FollowSymLinks
# Set the catch-all handler to prevent scripts from being executed.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
<Files *>
# Override the handler again if we're run later in the evaluation list.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
</Files>
# If we know how to do it safely, disable the PHP engine entirely.
<IfModule mod_php5.c>
php_flag engine off
</IfModule>

View File

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 170 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 547 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 772 KiB

26
src/_includes/default.njk Normal file
View File

@@ -0,0 +1,26 @@
<!doctype html>
<html lang="{{ page.lang }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% if title %}{{ title }} &mdash; {% endif %}{{ site.title }}</title>
<link href="{{ '/assets/css/style.css' | url }}" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="sidebar">
{#% include "sidebar.html" %#}
</div>
<div class="content">
<h1>{{ title }}</h1>
<ul class="images">
{% for image in images %}
<li><img src="{{ [ '../../images/', image ] | join | url }}"></li>
{% endfor %}
</ul>
{{ content | safe }}
</div>
</div>
</body>
</html>

View File

@@ -2,8 +2,8 @@
changed: "2019-09-09T21:46:54.000Z"
comment_count: "0"
created: "2013-12-27T17:09:00.000Z"
ix: "15"
nid: "30"
ix: 15
nid: 30
path: "content/about-website"
title: "About this website"
type: "panopoly_page"

View File

@@ -7,8 +7,8 @@ date_of_birth: "1888-02-22T00:00:00.000Z"
date_of_death: "1945-03-03T00:00:00.000Z"
featured_image: "Sydney 3.jpg"
forename_at_birth: "Sydney Walter"
ix: "2"
nid: "33"
ix: 2
nid: 33
other_forenames:
other_surnames:
parent_of:

View File

@@ -7,8 +7,8 @@ date_of_birth: "1894-01-09T00:00:00.000Z"
date_of_death: "1981-07-15T00:00:00.000Z"
featured_image: "Bet in 1914.jpg"
forename_at_birth: "Elizabeth"
ix: "4"
nid: "11"
ix: 4
nid: 11
other_forenames:
other_surnames: "Stokoe"
parent_of:

View File

@@ -8,7 +8,7 @@ date_of_death: "1982-05-01T00:00:00.000Z"
featured_image: " Elsie about 1960.JPG"
forename_at_birth: "Elsie Grace"
ix:
nid: "29"
nid: 29
other_forenames:
other_surnames:
parent_of:

View File

@@ -7,8 +7,8 @@ date_of_birth: "1894-04-03T00:00:00.000Z"
date_of_death: "1966-09-27T00:00:00.000Z"
featured_image: "G dad uniform 1917.jpg"
forename_at_birth: "Michael"
ix: "5"
nid: "9"
ix: 5
nid: 9
other_forenames:
other_surnames:
parent_of:

View File

@@ -7,8 +7,8 @@ date_of_birth: "1924-02-16T00:00:00.000Z"
date_of_death:
featured_image: "Stan at Kericho College.jpg"
forename_at_birth: "Stanley"
ix: "3"
nid: "10"
ix: 3
nid: 10
other_forenames: "Stan"
other_surnames:
parent_of:

View File

@@ -7,8 +7,8 @@ date_of_birth: "1919-04-12T00:00:00.000Z"
date_of_death: "1976-10-20T00:00:00.000Z"
featured_image: "murielin her 20s.jpg"
forename_at_birth: "Muriel"
ix: "11"
nid: "12"
ix: 11
nid: 12
other_forenames:
other_surnames: "Stokoe"
parent_of:

View File

@@ -7,8 +7,8 @@ date_of_birth: "1887-07-01T00:00:00.000Z"
date_of_death: "1953-07-11T00:00:00.000Z"
featured_image: "Katherine Hunt.jpg"
forename_at_birth: "Minnie Katherine"
ix: "1"
nid: "34"
ix: 1
nid: 34
other_forenames:
other_surnames:
parent_of:

21
src/assets/css/style.css Normal file
View File

@@ -0,0 +1,21 @@
h1 {
text-align: center;
}
ul.images {
list-style: none;
}
ul.images img {
width: 20em;
}
ul.images li {
display: inline-block;
margin: 0em 2em 2em 2em;
}
ul.images li:nth-child(even) {
float: left;
clear: left;
}
ul.images li:nth-child(2n+1) {
float: right;
clear: right;
}

View File

@@ -1,14 +1,16 @@
---
title: Hi
title: When-we 2
---
Hello!!
This is a minimal rebuild of the When-we site, which is old and decrepit...
Very rough. It will be incrementally improved.
<ul>
{%- for post in collections.articles -%}
<li>
{% if post.data.featured_image %}
<img width=100 height=100 src="_images/{{ post.data.featured_image }}">
<img width=100 height=100 src="{{ '/images/' | append: post.data.featured_image | join: "/" | url }}">
{% endif %}
<a href="{{ post.url }}">{{ post.data.title }}</a></li>
<a href="{{ post.url | url }}">{{ post.data.title }}</a></li>
{%- endfor -%}
</ul>

View File

@@ -1,72 +1,76 @@
/*
Reads in the Drupal node dump of WhenWe data from ./whenwe.json
Writes it converted to markdown with frontmatter, organised in subdirectories, in out/
*/
const data = require('./whenwe.json');
const fs = require('fs');
const path = require('path');
const { NodeHtmlMarkdown, NodeHtmlMarkdownOptions } = require('node-html-markdown');
const nhm = new NodeHtmlMarkdown({
useLinkReferenceDefinitions: true,
useInlineLinks: true,
useLinkReferenceDefinitions: true,
useInlineLinks: true,
});
function toYaml(data, body) {
const frontmatter = Object.keys(data).sort().map(key => key+': '+(data[key] ? '"'+data[key]+'"' : '')).join("\n");
return "---\n" + frontmatter + "\n---\n" + nhm.translate(body);
const frontmatter = Object.keys(data).sort().map(key => key+': '+(data[key] ? JSON.stringify(data[key]) : '')).join("\n");
return "---\n" + frontmatter + "\n---\n" + nhm.translate(body);
}
function date(datestr) {
if (datestr) {
const [Y,M,D,h,m,s] = datestr.split(/[^0-9]/)
return new Date(Date.UTC.call(null, Y,M-1,D,h,m,s)).toISOString();
}
else
return '';
if (datestr) {
const [Y,M,D,h,m,s] = datestr.split(/[^0-9]/)
return new Date(Date.UTC.call(null, Y,M-1,D,h,m,s)).toISOString();
}
else
return '';
}
data.forEach((node, ix) => {
const lang = 'und';
const filepath = path.join('out', node.type);
const body = node.body.und[0].value;
const filename = `${node.uuid}.md`;
fs.mkdirSync(path.join(__dirname, filepath), { recursive: true });
const item = {
ix: ix,
nid: Number(node.nid),
type: node.type,
title: node.title,
uuid: node.uuid,
created: new Date(Number(node.created)*1000).toISOString(),
changed: new Date(Number(node.changed)*1000).toISOString(),
path: node.path.alias,
comment_count: node.comment_count,
};
switch(node.type) {
case 'article':
Object.assign(item, {
original_author: node.field_original_author?.und?.[0]?.value,
featured_image: node.field_featured_image?.und?.[0]?.filename,
images: node.field_basic_image_image?.und?.map(item => item.filename),
category: node.field_category?.und?.[0]?.tid,
});
break;
case 'person':
Object.assign(item, {
forename_at_birth: node.field_forename_at_birth?.und?.[0]?.value,
surname_at_birth: node.field_surname_at_birth?.und?.[0]?.value,
other_surnames: node.field_other_surnames?.und?.[0]?.value,
other_forenames: node.field_other_forenames?.und?.[0]?.value,
title: node.field_title?.und?.[0]?.value,
date_of_birth: date(node.field_date_of_birth?.und?.[0]?.value),
date_of_death: date(node.field_date_of_death?.und?.[0]?.value),
parent_of: node.field_parent_of?.und?.[0]?.value,
child_of: node.field_child_of?.und?.[0]?.value,
partner_of: node.field_partner_of?.und?.[0]?.value,
// lifetime: node.field_lifetime?.und?.[0]?.value,
featured_image: node.field_featured_image?.und?.[0]?.filename,
});
break;
}
fs.writeFileSync(path.join(filepath, filename), toYaml(item, body));
console.log(item.title);
const lang = 'und';
const filepath = path.join('out', node.type);
const body = node.body.und[0].value;
const filename = `${node.uuid}.md`;
fs.mkdirSync(path.join(__dirname, filepath), { recursive: true });
const item = {
ix: ix,
nid: Number(node.nid),
type: node.type,
title: node.title,
uuid: node.uuid,
created: new Date(Number(node.created)*1000).toISOString(),
changed: new Date(Number(node.changed)*1000).toISOString(),
path: node.path.alias,
comment_count: node.comment_count,
};
switch(node.type) {
case 'article':
Object.assign(item, {
original_author: node.field_original_author?.und?.[0]?.value,
featured_image: node.field_featured_image?.und?.[0]?.filename,
images: node.field_basic_image_image?.und?.map(item => item.filename),
category: node.field_category?.und?.[0]?.tid,
});
break;
case 'person':
Object.assign(item, {
forename_at_birth: node.field_forename_at_birth?.und?.[0]?.value,
surname_at_birth: node.field_surname_at_birth?.und?.[0]?.value,
other_surnames: node.field_other_surnames?.und?.[0]?.value,
other_forenames: node.field_other_forenames?.und?.[0]?.value,
title: node.field_title?.und?.[0]?.value,
date_of_birth: date(node.field_date_of_birth?.und?.[0]?.value),
date_of_death: date(node.field_date_of_death?.und?.[0]?.value),
parent_of: node.field_parent_of?.und?.[0]?.value,
child_of: node.field_child_of?.und?.[0]?.value,
partner_of: node.field_partner_of?.und?.[0]?.value,
// lifetime: node.field_lifetime?.und?.[0]?.value,
featured_image: node.field_featured_image?.und?.[0]?.filename,
});
break;
}
fs.writeFileSync(path.join(filepath, filename), toYaml(item, body));
console.log(item.title);
});