Added hacks info to readme, updated hacks page
Also applied some minor design tweaks
This commit is contained in:
parent 8c64e09cbb
commit 5b20584e78
4 changed files with 8 additions and 4 deletions
2 hacks
2
hacks | @ -1 +1 @@ | |||
Subproject commit a99fb9eb7479129df09fec2791e2cff9c40fa62d | ||||
Subproject commit 069b776e8da8d9d6f58609f2ca1f62cd3eae4c15 |
| @ -11,13 +11,17 @@ The "extended" version of hugo must be used (Has support for certain features li | |||
* Docs - `content/docs` | ||||
* Theme - `themes/bookstack` | ||||
| ||||
### Hacks | ||||
| ||||
The website also contains a repository of customization hacks which can be found at [the /hacks](https://www.bookstackapp.com/hacks/) part of the site. | ||||
These are managed via a [separate "Hacks" repo](https://github.com/BookStackApp/hacks) which is part of this repository as a git submodule. A symlink is then used to point the `content/hacks` directory to the `hacks/content` directory, where `hacks` is the submodule location. | ||||
| ||||
### Theme | ||||
| ||||
The theme is custom made with snippets taken from the [hugo capser theme](https://github.com/vjeantet/hugo-theme-casper). | ||||
| ||||
SCSS is used for the styling. Install NPM dependencies via `npm install` or `yarn` then you can use `npm run build` to build the css and site once or `npm run dev` to watch for changes. | ||||
| ||||
| ||||
### Search | ||||
| ||||
Search is handled via [Meilisearch](https://www.meilisearch.com/). A nightly scrape runs to index the site pages for search. | ||||
| |
| @ -70,7 +70,7 @@ | |||
<h4>Latest Hacks</h4> | ||||
| ||||
<div class="hack-box-list"> | ||||
{{ range first 5 ( where .Site.RegularPages "Section" "hacks") }} | ||||
{{ range first 4 ( where .Site.RegularPages "Section" "hacks") }} | ||||
{{ if .Params.Date }} | ||||
{{ partial "list-hack" .}} | ||||
{{ end }} | ||||
| |
| @ -585,6 +585,7 @@ iframe[src^="https://www.youtube-nocookie.com"], | |||
border: 1.5px solid #e2e2e2; | ||||
box-shadow: 0 1px 3px 0 rgba(0,0,0,.1); | ||||
border-radius: 4px; | ||||
margin-bottom: 1rem; | ||||
.chroma { | ||||
margin: -1px; | ||||
} | ||||
| @ -660,7 +661,6 @@ details[open] .hack-file-block-filename:before { | |||
display: flex; | ||||
flex-direction: column; | ||||
color: #222; | ||||
margin-bottom: 1rem; | ||||
min-width: 180px; | ||||
flex-basis: 320px; | ||||
flex-grow: 1; | ||||
| |
Loading…
Add table
Add a link
Reference in a new issue