title: Update html file content
body: <p>I worked on a little <a href="https://jubit.github.io/md3/" rel="nofollow noreferrer">startpage</a> for my browser. Now I would like to make some changes to it, so it updates the index.html file depending on a text file, when this got changed. What whould be an efficiant way to solve this problem?</p>
  
  <p>My approach would be to create a text file and read line by line from it and update the html file. In the text file I would store the links shown on my startpage - I thought maybe something like this:</p>
  
  <pre><code>|cat_media
  https://mailbox.org,mail
  https://netflix.com,netflix
  ...
  http://crunchyroll.com,crunchy
  https://jott-uh-be.bandcamp.com,bc
  
  |cat_social
  https://pr0gramm.com,pr0
  https://stackoverflow.com,stackoverflow
  https://twitter.com,twitter
  https://instagram.com,insta
  </code></pre>
  
  <p>When the line starts with the symbol <strong>|</strong>, it creates a new <code>&lt;div&gt;</code> with the class category and the string in that line (e.G. <code>class= 'category cat_media'</code>). Otherwise, if the line starts with http, it will add a href-link (e.G. <code>&lt;a href='https://mailbox.org'&gt;mail&lt;/a&gt;</code>) to the html-code.</p>
  
  <p>I got this website hosted on my raspberry pi with nginx and uploaded it to my github pages.</p>