prior-art-archive / priorartarchive.org

Prior Art Archive Site
https://priorartarchive.org
GNU General Public License v2.0
3 stars 1 forks source link

Header tags don't update when document data does #43

Open reefdog opened 5 years ago

reefdog commented 5 years ago

We just added document title/description editing in #6. However, the page <head> is composed statically without tying into state, so they don't update when the new document data is saved. The <meta> tags are invisible to the user, but the <title> (which has the document name in the window/tab title) is visible, and becomes stale until the page is re-rendered.

We need to either pass a title-updating function down to the document (gross) or add state to the page, or… something.