rename description to desc

This commit is contained in:
Rhiannon Morris 2020-07-25 01:17:47 +02:00
parent 49eff9c009
commit 87c3fa5b75
7 changed files with 38 additions and 38 deletions

View file

@ -51,8 +51,8 @@ make' (IndexInfo {title, galleries, links, footer}) = [b|@0
|]
makeItem :: GalleryInfo -> Builder
makeItem (GalleryInfo {title, description, prefix, filters}) = [b|@4
<li$nsfw><a href=$@prefix title="$*description">$*title</a></li>
makeItem (GalleryInfo {title, desc, prefix, filters}) = [b|@4
<li$nsfw><a href=$@prefix title="$*desc">$*title</a></li>
|]
where nsfw = if hasNsfw filters then " class=nsfw" else ""