Skip to content

Commit

Permalink
Add toc plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nkshah2 committed Dec 14, 2024
1 parent 40bf0e7 commit cbb2027
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions content/django-user-authentication/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ category: "programming, featured"
author: "Nemi Shah"
---

```toc
tight: true
toHeading: 3
```

Authentication has become a common concept in almost every application today, with most web applications requiring users to log in to gain access to features and personalisation. Ensuring that user data is protected and stored securely has become even more important to make sure nobody can gain unauthorised access to your application. All of this makes it crucial to user or build a reliable user authentication system that ensures data security while providing you with the flexibility to build your application your way.

Django provides a built-in solution for user auth which provides features such as user accounts, permissions and cookie-based session management out of the box while still allowing you to extend and customise them to suit your needs. In this article we will visit how you can use Django's built-in auth mechanisms and compare it with a possible alternative.
Expand Down
11 changes: 11 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ module.exports = {
rel: "nofollow"
}
},
{
resolve: `gatsby-remark-table-of-contents`,
options: {
exclude: "Table of Contents",
tight: false,
ordered: false,
fromHeading: 1,
toHeading: 6,
className: "table-of-contents"
},
},
`gatsby-remark-autolink-headers`,
`gatsby-remark-code-titles`,
`gatsby-remark-prismjs`,
Expand Down
19 changes: 19 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"gatsby-remark-prismjs": "^6.7.0",
"gatsby-remark-responsive-iframe": "^5.7.0",
"gatsby-remark-smartypants": "^5.7.0",
"gatsby-remark-table-of-contents": "^2.0.0",
"gatsby-source-filesystem": "^4.7.0",
"gatsby-transformer-remark": "^5.7.0",
"gatsby-transformer-sharp": "^4.7.0",
Expand Down

0 comments on commit cbb2027

Please sign in to comment.