A complete, SEO-ready page (Developer Portfolio)
Print a whole document: <!doctype html, <html lang="en", <head with <meta charset="utf-8", <titleName · Title</title (just the name without a title), <meta name="description" content="…" and <meta property="og:title" content="…", </head, <body, every body line from stage 4 indented by two spaces, </body, </html. The description is description: if given, else the bio; if longer than 155 characters cut it at the last space within the first 155, drop trailing punctuation and add …. Project URLs that do not start with https:// add warning: <name: url should use https. Warnings come after </html.
Input: As before, plus an optional description:.
Output: The full HTML document, then warnings.
Difficulty: Hard. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.
Hint
- Build the body as a list of lines first; then wrap it.