mirror of
https://github.com/TeamPiped/hugo-whisper-theme.git
synced 2024-08-14 23:57:00 +00:00
first commit
This commit is contained in:
commit
dcdde20b7c
179 changed files with 16070 additions and 0 deletions
21
exampleSite/content/docs/_index.md
Normal file
21
exampleSite/content/docs/_index.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
title: 'Overview'
|
||||
date: 2018-11-28T15:14:39+10:00
|
||||
weight: 1
|
||||
---
|
||||
|
||||
## Make Beautiful Docs
|
||||
|
||||
Whisper is a minimal documentation theme for Hugo. The design and functionality is intentionally minimal. We’re aiming for a similar feel to a Github readme.
|
||||
|
||||
```javascript
|
||||
var body = document.querySelector('body');
|
||||
var menuTrigger = document.querySelector('#toggle-main-menu-mobile');
|
||||
var menuContainer = document.querySelector('#main-menu-mobile');
|
||||
|
||||
menuTrigger.onclick = function() {
|
||||
menuContainer.classList.toggle('open');
|
||||
menuTrigger.classList.toggle('is-active');
|
||||
body.classList.toggle('lock-scroll');
|
||||
};
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue