pidgin/nest

c76fb0834ef9
Update the update-lastmod.js file to use date from file

The update-lastmod file was taking the first commit for the specific file and replacing the "date" attribute with the date of the commit. This fix sets the date as the attribute date if it exists and if it doesn't uses the first commit date.

Testing Done:
1. Build docker container
2. Run docker container
3. Run the update-lastmod.js script with node and verified that the files with dates stayed the same and ones without used the first commit.

Reviewed at https://reviews.imfreedom.org/r/640/
baseURL = "https://pidgin.im/"
languageCode = "en-us"
title = "Pidgin, the universal chat client"
theme = "learn"
dataDir = "data"
[params]
currentVersion = "2.14.4"
# Disable arrows
disableNextPrev = true
editURL = "https://keep.imfreedom.org/pidgin/nest/file/default/hugo/content/"
disableShortcutsTitle = true
# These enable Open Graph and Twitter cards
description = "Pidgin is a universal chat client, allowing you to consolidate all your different messaging apps into a single tool."
images = ["/images/pidgin-circle-256.png"]
# These manage the notification banner. When finished, please comment them out
# The code is used in the cookie to prevent showing the alert once closed
#notificationMessage = "We've launched the new site. Think we're missing something?<br /><a href=\"/posts/2019-12-nest-launch/\">Read the blog post</a> or <a href=\"https://old.pidgin.im\">Go to the old site</a>"
#notificationCode = "nest-launch"
notificationMessage = "Looking to reach us via XMPP? Check out the new <a href='/about/pidginchat'>PidginChat</a> service!"
notificationCode = "pidgin-chat-announcement"
[outputs]
home = [ "HTML", "RSS", "JSON"]
[permalinks]
post = "posts/:year-:month-:title/"
[languages]
[languages.en]
languageName = "English (US)"
[languages.es]
languageName = "Spanish"
[taxonomies]
# Used by Open Graph
series = "series"
# Shortcuts
[[menu.shortcuts]]
name = "<i class='fas fa-fw fa-tasks'></i> Issue Tracker"
identifier = "issue-tracker"
url = "https://issues.imfreedom.org/issues/PIDGIN"
weight = -900
[[menu.shortcuts]]
name = "<i class='fas fa-fw fa-code'></i> Repositories"
identifier = "sourcecode"
url = "https://keep.imfreedom.org/pidgin/"
weight = -800
[[menu.shortcuts]]
name = "<i class='fas fa-fw fa-comment-dots'></i> IRC"
identifier = "irc"
url = "http://webchat.freenode.net/?channels=pidgin"
weight = -700
[[menu.shortcuts]]
name = "<i class='fab fa-fw fa-discord'></i> Discord"
identifier = "discord"
url = "https://discord.gg/pB9fbVC"
weight = 0
[[menu.shortcuts]]
name = "<i class='fab fa-fw fa-facebook-f'></i> Facebook"
identifier = "facebook"
url = "https://www.facebook.com/pidgin.im/"
weight = 0
[[menu.shortcuts]]
name = "<i class='fab fa-fw fa-reddit-alien'></i> Reddit"
identifier = "reddit"
url = "https://reddit.com/r/pidgin"
weight = 0
[[menu.shortcuts]]
name = "<i class='fab fa-fw fa-twitter'></i> Twitter"
identifier = "twitter"
url = "https://twitter.com/impidgin"
weight = 0
[[menu.shortcuts]]
name = "<i class='fas fa-fw fa-tshirt'></i> Merchandise"
identifier = "merchandise"
url = "https://shop.spreadshirt.com/imfreedom"
weight = 1000