[skip ci] Added url, original_url and archive_date to the cite_book shortcode

This commit is contained in:
2025-01-29 12:54:24 +01:00
parent 7076d2fd83
commit c1767791da
4 changed files with 20 additions and 7 deletions

View File

@ -16,8 +16,8 @@ Wikipedia.
date = "2007-06-09"
location = "San Diego, CA"
original-url = "https://www.csc2.ncsu.edu/faculty/efg/wcae/ISCA2007/FinalProgram.html"
archive-date = "2025-01-29"
original_url = "https://www.csc2.ncsu.edu/faculty/efg/wcae/ISCA2007/FinalProgram.html"
archive_date = "2025-01-29"
>}}
```
@ -41,6 +41,6 @@ Wikipedia.
{{ with .Get "location" }}{{ . }}.{{ end }}
{{/* Archive info */}}
{{ with .Get "original-url" }}Archived from <a href="{{ . }}">the original</a>{{ end }}{{ with .Get "archive-date" }} on {{ . }}{{ end }}.
{{ with .Get "original_url" }}Archived from <a href="{{ . }}">the original</a>{{ end }}{{ with .Get "archive_date" }} on {{ . }}{{ end }}.
</div>