diff --git a/README.md b/README.md index 75f1bd6ecf157d73753a6c6072cc72bd363c34dd..8e592942311553c1bfe2a039272ebfbae8a60a28 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,14 @@ -### SSO: Content Management Guide +# SSO: Content Management Guide -#### Separating password protected and public html pages +### Separating password protected and public html pages There are 2 options: 1. Create 2 different pages + - This one seems simpler since you just need to copy-paste and edit the existing html. + - However, having redundant pages often leads to inconsistency and other problems. 2. Use view engine to enable having if-else conditions on 1 page + - This is the option I take for this project. + - You need to get familiar with the view engine. I use pug (https://pugjs.org/api/getting-started.html) on this project. + - You can convert your existing html page to pug using this website: https://html-to-pug.com/. I have tried it to convert index.html to index.pug and it works. -#### Preventing user to directly access an html \ No newline at end of file +### Preventing user to directly access an html +to be continued \ No newline at end of file