Skip to content

End Week 12#22

Merged
ajitzero merged 2 commits into
masterfrom
end-week-12
Dec 12, 2020
Merged

End Week 12#22
ajitzero merged 2 commits into
masterfrom
end-week-12

Conversation

@ajitzero

Copy link
Copy Markdown
Member

@Viswalahiri I moved almost everything to _data files. Simply approving & merging this PR will effectively apply only this:

has_ended: true

The remaining changes are commented. Update them once the event ends & uncomment them.

  links:
    - title: "Contest"
      url: "https://www.hackerrank.com/week-11-code-hackathon"
  winners:
    - name: "Manohar D.S."
      class: "2/4, B10"
    - name: "Sreeram T."
      class: "2/4, B4"

This example data is from Week 11. links & winners are optional keys themselves but if added, their child key-value pairs must be non-empty (Except class within winners. If not provided class defaults to )

@ajitzero ajitzero requested a review from Viswalahiri December 12, 2020 08:30
@ajitzero ajitzero self-assigned this Dec 12, 2020
@ajitzero ajitzero added the event-update Updates just before & after events label Dec 12, 2020
@ajitzero

ajitzero commented Dec 12, 2020

Copy link
Copy Markdown
Member Author

Note for future updates: you only need to update within the _data/events.yml file. Many parameters are optional and cases for missing data & empty states are covered.

Full template:

- title: "Code Hackathon" # mandatory
  order: "Week #12"  # optional
  date: "12th December, 2020" # mandatory
  time: "2:30 PM onwards" # mandatory
  venue: "ICT-208" # optional, defaults to "ICT-208", only if type is not "remote"
  register_link: "https://bit.ly/w12-reg" # mandatory, if has_ended is false
  poster_link: "assets/poster/w12.jpg" # mandatory
  type: "remote" # string: remote, or nothing
  has_ended: false # boolean
  links: # optional
    - title: "Contest" # mandatory
      url: "https://www.hackerrank.com/week-11-code-hackathon" # mandatory
  winners: # optional, this is a list
    - name: "Manohar D.S." # mandatory
      class: "2/4, B10" # optional, defaults to "–"
    - name: "Sreeram T." # any number of winners is supported (looping over them)
      class: "2/4, B4"

@ajitzero ajitzero merged commit fa8f77d into master Dec 12, 2020
@ajitzero ajitzero deleted the end-week-12 branch December 12, 2020 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

event-update Updates just before & after events

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant