CECS’s web server will force users to login through GitLab in order to see content with the phrase campus_only in the URL. Doing so will limit your content so it is only visible to visible students or teachers with access to the teaching GitLab instance.

Protecting one off pages#

If you want to have one-off pages which force authentication, the easiest way to do this is to modify the permalink on a single page. For example, to make a secret.md page you would have the markdown:

---
title: This page is secret!
permalink: /campus_only/secret/
---

You had to log in to see this.

Protecting a collection#

To put authentication in front of all of a collection (for example, the “Deliverable” tab) you could achieve this by setting a value in the collections section in _config.yml instead of modifying each page.

collections:
  deliverables:
    permalink: /deliverables/campus_only/:path/

After modifying the config file, you will need to restart your development server.

arrow-left bars search times