diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-10-18 20:39:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-18 20:39:19 +0100 |
| commit | 958457be8626148a9559716caf032bb54c10bbdc (patch) | |
| tree | 26343603fd7b384b12819113e7bd3beda8167a55 | |
| parent | 9ddedf444811bac0dd2d8ce6e21b64c8dee9de76 (diff) | |
Dev (#16)
* Adds images for Lallans 102
* Adds most 102 data... except contributors...
* Adds contributors
* Adds issue to Lallans data index
* Adds instructions about adding a Lallans issue to the README
* Adds sanity check instructions
| -rw-r--r-- | README.md | 17 | ||||
| -rw-r--r-- | src/data/lallans/index.ts | 1 | ||||
| -rw-r--r-- | src/data/lallans/issue102.ts | 58 | ||||
| -rw-r--r-- | src/images/lallans/issue102-192w.webp | bin | 0 -> 14884 bytes | |||
| -rw-r--r-- | src/images/lallans/issue102-274w.webp | bin | 0 -> 26694 bytes | |||
| -rw-r--r-- | src/images/lallans/issue102.webp | bin | 0 -> 132290 bytes | |||
| -rw-r--r-- | src/types/LallansIssueNumber.d.ts | 3 |
7 files changed, 78 insertions, 1 deletions
@@ -141,3 +141,20 @@ and the base branch of `dev`. Once you've done that, it's down to an owner of the upstream repository to approve your Pull Request. Once they've done that, your new news article will appear on the website. + +## Adding an issue of Lallans + +1. Add the issue number to `src/types/LallansIssueNumber.d.ts`. +2. Add the original issue cover photo as `src/images/issueXYZ.jpg`, where `XYZ` + is the issue number. Most of the examples are `.jpg`, but the file type isn't important. +3. Make copies of the cover image that are scaled to 192 and 274 pixels wide. + Name them `issueXYZ-192w.jpg` and `issueXYZ-274w.jpg` respectively. +4. Copy one of the existing Lallans issues in `src/data/lallans` and name the + copy `issueXYZ.ts`. +5. Edit the file you just made with the new issue's information, including the + locations of the correctly scaled cover images that you just made. +6. Import that data file into the Lallans data index file, `src/data/lallans/index.ts`. +7. Check that everything's working: the issue should appear at the top on the + Lallans page, `/furthsettins/lallans`, and the issue information should appear + at `/furthsettins/lallans/XYZ`. Check both the English and Scots versions. + diff --git a/src/data/lallans/index.ts b/src/data/lallans/index.ts index 434ff1c..db443d2 100644 --- a/src/data/lallans/index.ts +++ b/src/data/lallans/index.ts @@ -77,6 +77,7 @@ export const getLallansIssue: LallansIssueGetterTable = { 99: async () => (await import('./issue99')).default, 100: async () => (await import('./issue100')).default, 101: async () => (await import('./issue101')).default, + 102: async () => (await import('./issue102')).default, }; export type LallansIssueGetterTable = { [key in LallansIssueNumber]: () => Promise<LallansIssue> }; diff --git a/src/data/lallans/issue102.ts b/src/data/lallans/issue102.ts new file mode 100644 index 0000000..1ae14e5 --- /dev/null +++ b/src/data/lallans/issue102.ts @@ -0,0 +1,58 @@ +import img192w from '$images/lallans/issue102-192w.webp'; +import img274w from '$images/lallans/issue102-274w.webp'; +import type LallansIssue from '$types/LallansIssue'; + +const issue: LallansIssue = { + issueNumber: 102, + img: { + width192: img192w, + width274: img274w, + }, + issueName: 'Beltane/Lammas 2023', + price: '10.00', + uploadDate: '2023-10-16', + description: { + 'en-GB': 'The hundred-and-second issue of the Lallans magazine.', + sco: 'The hunner-an-saicont issue o the Lallans magazine.', + }, + contributors: [ + 'Finola Scott', + 'Derrick McClure', + 'Jamie Purves', + 'Lord Braxfield', + 'Frieda Morrison', + 'Irene Howat', + 'David Bleiman', + 'Marcus Keaveney', + 'WS Milne', + 'Alistair McLeish', + 'Craig Aitchison', + 'Ian Nimmo White', + 'Maggie Elliott', + 'Jim Aitken', + 'Gordon D Moodie', + 'Walter Perrie', + 'Kevin Connelly', + 'Frances Robson', + 'Jim Roddie', + 'Fred Freeman', + 'George T Watt', + 'Hamish Scott', + 'Rose MacGregor', + 'Nicole Le Marie', + 'Jacqueline Tweddle', + 'Sheena Blackhall', + 'Elaine Morton', + 'Alasdair Allan', + 'Pete Fortune', + 'Tony Beekman', + 'Ewan MacColl', + 'Odveig Klyve', + 'Jock Stein', + 'Michael Swan', + 'Marion Angus', + 'Brendan McCluskey', + ], +}; + +export default issue; diff --git a/src/images/lallans/issue102-192w.webp b/src/images/lallans/issue102-192w.webp Binary files differnew file mode 100644 index 0000000..22e45b3 --- /dev/null +++ b/src/images/lallans/issue102-192w.webp diff --git a/src/images/lallans/issue102-274w.webp b/src/images/lallans/issue102-274w.webp Binary files differnew file mode 100644 index 0000000..a158271 --- /dev/null +++ b/src/images/lallans/issue102-274w.webp diff --git a/src/images/lallans/issue102.webp b/src/images/lallans/issue102.webp Binary files differnew file mode 100644 index 0000000..11b5861 --- /dev/null +++ b/src/images/lallans/issue102.webp diff --git a/src/types/LallansIssueNumber.d.ts b/src/types/LallansIssueNumber.d.ts index 29f07cc..52dc35a 100644 --- a/src/types/LallansIssueNumber.d.ts +++ b/src/types/LallansIssueNumber.d.ts @@ -68,6 +68,7 @@ type LallansIssueNumber = | 98 | 99 | 100 - | 101; + | 101 + | 102; export default LallansIssueNumber; |
