Technical Stuff About the Website

This page is mainly for my own personal use - I’m documenting some of the stuff about how the website works…..because if I don’t I will certainly forget :)

References

I’ve never really found a very simple one-stop guide to doing references. I’m largely basing the pattern for this website on this Wikipedia page:

‘Standard’ web-pages

i.e. web pages that aren’t news items, wikipedia pages, PDF’s, or Google books

The Library Guide at Victoria University says:

The basics of a Reference List entry for a Web page or Web document:

  • Author or authors. The surname is followed by first initials.
  • Year.
  • Title (in italics).
  • Publisher. Where there is a corporate author, the publisher and author may be the same.
  • Date viewed.
  • Web address .

Example: Cancer Council 2017, Causes of cancer, Cancer Council, viewed 21 May 2018, https://www.cancer.org.au/about-cancer/causes-of-cancer/.

CitingAWebPage.PNG

  • Include author(s) name(s) for internet/website references where possible (an author may be a corporate body or organisation responsible for creating, producing or publishing a webpage or website.
  • there is no identifiable author or authoring body, use the title of the webpage or website
  • The year is the time of the last update of the web page or document.

The code:

"Wyndham Arms - 27 Estcourt Road, Salisbury, Wiltshire, SP1 3AS: The Good Pub Guide", "The Good Pub Guide", Link: <a href="https://thegoodpubguide.co.uk/pub/sp1+3as/wyndham+arms/">https://thegoodpubguide.co.uk/pub/sp1+3as/wyndham+arms/</a>. Retrieved 27 November 2019

How it looks:

“Wyndham Arms - 27 Estcourt Road, Salisbury, Wiltshire, SP1 3AS: The Good Pub Guide”, “The Good Pub Guide”, Link: https://thegoodpubguide.co.uk/pub/sp1+3as/wyndham+arms/. Retrieved 27 November 2019

Most web pages don’t show an author but if they did it would go on the front of the citation as for the other citations

Online News articles:

How it looks: Simon Blow, “My family’s better days”, The Spectator, 18 January 2014, Link: https://www.spectator.co.uk/2014/01/the-wild-wyndhams-by-claudia-renton-review. Retrieved: 27 November 2019

The code:

Simon Blow, "My family's better days", The Spectator, 18 January 2014, Link: <a href="https://www.spectator.co.uk/2014/01/the-wild-wyndhams-by-claudia-renton-review/">https://www.spectator.co.uk/2014/01/the-wild-wyndhams-by-claudia-renton-review</a>. Retrieved: 27 November 2019

On paper News articles

Plunkett, John. “Sorrell accuses Murdoch of panic buying”, “[[The Guardian]]“, London, 27 October 2005.

After you add this information and publish your edit, it appears as:

Plunkett, John. "Sorrell accuses Murdoch of panic buying", The Guardian, London, 27 October 2005.

On paper books

Charmley, John (2006). “The Princess and the Politicians”, p. 60. Penguin Books, London. {{ISBN|0140289712}}.

After you add this information and publish your edit, it appears as:

Charmley, John (2006). The Princess and the Politicians, p. 60. Penguin Books, London. ISBN 0140289712.

Date format

One of the three formats shown below is accepted for dates. Invalid dates will be flagged by an error message that will appear with the footnoted reference. The ISO date, the last format shown, is preferred by some editors for the “Date accessed” field, because it conveys the necessary information in as compact and unobtrusive a way as possible.

27 January 2007

Pdf, word and other online documents

Wikipedia as it appears:

van Wesel, M.; Wyatt, S.; ten Haaf, J. (2014). “What a difference a colon makes: how superficial factors influence subsequent citation” (PDF). Scientometrics. 98 (3): 1601–1615. doi:10.1007/s11192-013-1154-x.

Wikipedia code:

{{cite journal |doi=10.1007/s11192-013-1154-x |first=M. |last=van Wesel |first2=S. |last2=Wyatt |first3=J. |last3=ten Haaf |title=What a difference a colon makes: how superficial factors influence subsequent citation |journal=Scientometrics |issue=3 |volume=98 |pages=1601–1615 |year=2014|url=https://pure.knaw.nl/ws/files/894334/art_3A10.1007_2Fs11192_013_1154_x.pdf }}

salisburyandstonehenge.net as it should appear:

Wessex Archaeology, (2011), “The Council House Gardens At Bourne Hill, Salisbury, Wiltshire - Conservation Management Plan” (PDF), URL: https://www.wessexarch.co.uk/sites/default/files/74980-cmp-ver-02-210311.pdf, Page 6

salisburyandstonehenge.net code:

Wessex Archaeology, (2011), "The Council House Gardens At Bourne Hill, Salisbury, Wiltshire - Conservation Management Plan" (PDF), URL: <a href="https://www.wessexarch.co.uk/sites/default/files/74980-cmp-ver-02-210311.pdf">https://www.wessexarch.co.uk/sites/default/files/74980-cmp-ver-02-210311.pdf</a>, Page 6

An example of something or other

From: Citation - Wikipedia

The note, located either at the foot of the page (footnote) or at the end of the paper (endnote) would look like this: Elisabeth Kübler-Ross, On Death and Dying (New York: Macmillan, 1969) 45–60.

Linking to Wikipedia

Code:

 Wikipedia contributors, "Dinton, Wiltshire," Wikipedia, The Free Encyclopedia, Link: <a href="https://en.wikipedia.org/wiki/Dinton,_Wiltshire">https://en.wikipedia.org/wiki/Dinton,_Wiltshire</a>. Retieved 27 November 2019

Looks like:

Wikipedia contributors, “Dinton, Wiltshire,” Wikipedia, The Free Encyclopedia, Link: https://en.wikipedia.org/wiki/Dinton,_Wiltshire. Retieved 27 November 2019

Note: I’m not using the permanent link for Wikipedia. What I’d gain in certainy of what is there, the reader would lose in the usefulness of any subsequent revisions

References within footnotes

There is a book by Claudia Renton called ‘Those Wild Wyndhams’ about three sisters Mary, Madeline and Pamela who were painted by John Singer Sargent in 1899. They lived in Clouds House, which remained in the family until the 1920s.

The book is reviewed in the Spectator by Pamela Wyndham’s great-grandson, Simon Blow. His mother and grandmother were photographed for Vogue by Cecil Beaton

Simon Blow, “My family’s better days”, The Spectator, 18 January 2014, Link: https://www.spectator.co.uk/2014/01/the-wild-wyndhams-by-claudia-renton-review. Retrieved: 27 November 2019

[^2]: There is a book by Claudia Renton called 'Those Wild Wyndhams' about three sisters Mary, Madeline and Pamela who were painted by John Singer Sargent in 1899. They lived in Clouds House, which remained in the family until the 1920s.  <br><br> The book is reviewed in the Spectator by Pamela Wyndham's great-grandson, Simon Blow. His mother and grandmother were photographed for Vogue by Cecil Beaton <br><br> Simon Blow, "My family's better days", The Spectator, 18 January 2014, Link: <a href="https://www.spectator.co.uk/2014/01/the-wild-wyndhams-by-claudia-renton-review/">https://www.spectator.co.uk/2014/01/the-wild-wyndhams-by-claudia-renton-review</a>. Retrieved: 27 November 2019


About footnotes line spacing

To put blank lines into footnotes, use

<br><br>

…..actual blank lines don’t seem to work :(

I can’t get blank lines between the footnotes as yet either :(

Images

Get dumped into:

and then I run:

Get-MarkdownLinkForImageFile C:\matt\salisburyandstonehenge.net\static\images\ElvisAtStonehenge.PNG

to quickly get:

![ElvisAtStonehenge.PNG](ElvisAtStonehenge.PNG)

It will be quicker still when I set up the images file as a default

Scripts - running the site, deploying the site

C:\matt\bin\Run-SalisburyAndStonehenge.ps1

looks like this:

$StartLocation = pwd
cd C:\matt\salisburyandstonehenge.net
hugo server -w  --renderToDisk --theme hyde
cd $StartLocation

C:\matt\bin\deploy.sh

looks like this:

cd /mnt/c/matt/salisburyandstonehenge.net/
/mnt/c/ProgramData/chocolatey/bin/hugo.exe  --theme hyde   
cd -
rsync -ravz -I -e 'ssh -p 18765' /mnt/c/matt/salisburyandstonehenge.net/public/meta username@my.provider.co.uk:public_html 
rsync -ravz -I -e 'ssh -p 18765' /mnt/c/matt/salisburyandstonehenge.net/public/about username@my.provider.co.uk:public_html 
rsync -ravz -I -e 'ssh -p 18765' /mnt/c/matt/salisburyandstonehenge.net/public/on-this-day username@my.provider.co.uk:public_html 
rsync -ravz -I -e 'ssh -p 18765' /mnt/c/matt/salisburyandstonehenge.net/public/stuff username@my.provider.co.uk:public_html 
rsync -ravz -I -e 'ssh -p 18765' /mnt/c/matt/salisburyandstonehenge.net/public/stonehenge username@my.provider.co.uk:public_html 
rsync -ravz -I -e 'ssh -p 18765' /mnt/c/matt/salisburyandstonehenge.net/public/images/`* username@my.provider.co.uk:public_html/images
rsync -ravz -I -e 'ssh -p 18765' /mnt/c/matt/salisburyandstonehenge.net/public/ username@my.provider.co.uk:public_html 

Firefox bookmarklets

Make link

javascript:function%20htmlEscape(s){s=s.replace(/&/g,'&amp;');s=s.replace(/>/g,'&gt;');s=s.replace(/</g,'&lt;');return%20s;}%20function%20linkEscape(s){s=s.replace(/&/g,'&amp;');s=s.replace(/%22/,'&quot;');return%20s}%20h%20=%20'<a%20href=%22'%20+%20linkEscape(location.href)%20+%20'%22>'%20+%20htmlEscape(document.title)%20+%20'</a>';%20with(window.open().document){write(h+'<form%20name=f><textarea%20%20name=a%20rows=5%20cols=80%20wrap=hard>'+htmlEscape(h)+'</textarea></form>');%20close();%20f.a.select();%20}%20void%200

Make reference

javascript:function%20htmlEscape(s){s=s.replace(/&/g,'&amp;');s=s.replace(/>/g,'&gt;');s=s.replace(/</g,'&lt;');return%20s;}%20function%20linkEscape(s){s=s.replace(/&/g,'&amp;');s=s.replace(/%22/,'&quot;');return%20s}%20h%20=%20'XxAuthor, %22'%20+%20htmlEscape(document.title)%20+%20'%22,%20Link:%20<a%20href=%22'%20+%20linkEscape(location.href)%20+%20'%22>'%20+%20linkEscape(location.href)%20+%20'</a>. Retrieved: XXTodaysDate';%20with(window.open().document){write(h+'<form%20name=f><textarea%20%20name=a%20rows=5%20cols=80%20wrap=hard>'+htmlEscape(h)+'</textarea></form>');%20close();%20f.a.select();%20}%20void%200

Creates:

XxAuthor, "Stonehenges · salisburyandstonehenge.net", Link: <a href="http://salisburyandstonehenge.net/stonehenge/">http://salisburyandstonehenge.net/stonehenge/</a>. Retrieved: XXTodaysDate


…then using the vim commands

/xx<Cr>cw
:%s/XXTodaysDate/\=strftime('%d %B %Y')