Website for the Goldsmiths Tech Society
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
Redirects are handled in the /static/_redirects
file
- Add it in
store/index.js
to add it to/events
- Create a new .vue file in
/pages/events
and follow comments in the doc.vue template file. - It must match the name of the path given in step 1.
- Static files in static/events
- Add the path to the generate array in
nuxt.config.js
In the store/index.js
file, make sure the desired event has onHome
set to true
.
If the event is in the past, it will revert to a generic events message. If there are multiple events, we will count only the first in the list.
Please make sure there is always at least one event with this property set to true.
- In the
store/index.js
file, make sure you start using a new 'type'. - In the
pages/events/index.vue
gile, include a new entry in theevents()
computed property, with the parameter being the type name you use in the store. - Add a new
<EventsType />
component and pass in the new entry from the computed property.