The place we like call home.
This repository contains the source for the next generation site for pidgin.im.
This project uses hugo, get it here
To start development server run:
hugo server -s hugo -D --disableFastRender -v --verboseLog --noHTTPCache --i18n-warnings
--disableFastRender
Disabling fast render is needed because hugo starts to
ignore new content in the data dir-v --verboseLog
Better logging and debugging experience--noHTTPCache
To prevent caching issuesdocker build -t pidgin/nest:latest .
docker run -it --rm -p 3000:3000 pidgin/nest:latest
These are some regex's to quickly format templating
regex | replace | |||
---|---|---|---|---|
`{{(\w | . | $ | ()` | {{ $1 |
`{{-(\w | . | $)` | {{- $1 |
|
`(" | \w | . | ))(-)?}}` | $1 }} |
To disable Copy Code to Clipboard the disableInlineCopyToClipBoard
switch
can be used either in config [params]
or in the front matter of the
individual page
node tools/visual-diff.js
or
npm run regression
Notifications are configured in hugo/config.toml
[params]
notificationMessage = "Great News Everyone!"
notificationCode = "nest-launch"
notificationMessage
is the message and is fully HTMLnotificationCode
is used as the key to remember if the notification has been clearedIf Either of these are unset, the template will not render
The notification template is rendered display: none
in the
hugo/layouts/partials/custom-footer.html
, and then hoisted to the top of the
page if the cookie is not equal to the code.