diff --git a/content/posts/website-best-practices.md b/content/posts/website-best-practices.md index 649d6be..034f23d 100644 --- a/content/posts/website-best-practices.md +++ b/content/posts/website-best-practices.md @@ -316,7 +316,7 @@ One example is pagination. It's easier to download one long article ahead of tim Another common offender is infinite-scrolling. In addition to requiring JavaScript, infinite-scrolling also makes it difficult for readers to find their old place upon re-visiting a page. This creates harsh consequences accidental navigation.
-{{< picture name="infinite_scrolling" alt="If books worked like infinite-scrolling webpages, we'd have to turn pages carefully or risk losing the page." longdesc="https://explainxkcd.com/1309/#Transcript" >}} +{{< picture name="infinite_scrolling" alt="If books worked like infinite-scrolling webpages, we'd have to turn pages carefully or risk losing the page.">}}
Infinite-scrolling means that accidentally navigating to a link will result in losing your place. Source: [xkcd](https://xkcd.com/1309/). Transcript [on the "explain xkcd" wiki](https://explainxkcd.com/1309/#Transcript). diff --git a/layouts/shortcodes/picture.html b/layouts/shortcodes/picture.html index f2241c6..0fdaec4 100644 --- a/layouts/shortcodes/picture.html +++ b/layouts/shortcodes/picture.html @@ -74,6 +74,6 @@ type="image/png"> {{ .Get "alt" }} {{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}}