hasjob
hasjob copied to clipboard
Share buttons for boards
Could have individual share buttons on hover over yellow post-its on hasjob.co, so people browsing can quickly share it with their friends (pm's and email included if possible)
The job pages have share buttons. We need them for sub-boards.
The board's share buttons will also obsolete the tiny twitter link in the footer, which is a terrible place to put share buttons.
What are sub-boards?
Like these:
- https://cto.hasjob.co/
- https://morpheusgang.hasjob.co/
- https://singapore.hasjob.co/
You can make a new board from https://hasjob.co/board
When you visit https://hasjob.co/, you're actually visiting a sub-board named www
. If there is no such board, you'll see all jobs and hardcoded values in the templates. If the www
board exists, data from that is used instead. Doing this lets us specify consistent behaviour in the templates between main board and sub-boards.
When you visit a job page, if that job is not hosted on the current sub-board, you'll get redirected to the sub-board it is on, defaulting to www
board. This check is not performed when you're on the www
board. You'll see this around the code in the form of g.board.is_root
and g.board.not_root
checks.
All pages in sub-boards also have a <link rel="canonical" href="…"/>
that points to the same page on the root board, so Google doesn't penalise us for duplicating pages.
For the sub-board, can do something like this? -