Skip to content

Commit

Permalink
Merge pull request #65 from pine64/syntaxhl
Browse files Browse the repository at this point in the history
Syntax highlighting
  • Loading branch information
x1y authored Mar 17, 2024
2 parents 447db60 + 80a7b21 commit b394145
Show file tree
Hide file tree
Showing 12 changed files with 415 additions and 375 deletions.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ cd website-main

### Get Hugo

Install *Hugo* as explained under https://gohugo.io/installation/.

* Arch Linux: `sudo pacman -S hugo`
* Debian: `sudo apt install hugo`
* Fedora: `sudo dnf install hugo`
* Gentoo: `sudo emerge --ask www-apps/hugo` (SASS/SCSS support not required)
* NixOS: `nix-shell -p hugo` (to temporarily test it in a nix-shell)
* openSUSE: `sudo zypper install hugo`
* Solus: `sudo eopkg install hugo`
Install *Hugo* as explained under https://gohugo.io/installation/, as well as [Asciidoctor](https://asciidoctor.org/) and [Rouge](https://github.com/rouge-ruby/rouge):

* Arch Linux: `sudo pacman -S hugo asciidoctor ruby-rouge`
* Debian: `sudo apt install hugo asciidoctor ruby-rouge`
* Fedora: `sudo dnf install hugo rubygem-asciidoctor rubygem-rouge`
* Gentoo: `sudo emerge --ask www-apps/hugo dev-ruby/asciidoctor dev-ruby/rouge` (SASS/SCSS support not required)
* NixOS: `nix-shell -p hugo asciidoctor rubyPackages.rouge` (to temporarily test it in a nix-shell)
* openSUSE: `sudo zypper install hugo rubygem-asciidoctor rubygem-rouge`
* Windows: See [here](https://gohugo.io/installation/windows/)
* MacOS: See [here](https://gohugo.io/installation/macos/)
* BSD: See [here](https://gohugo.io/installation/bsd/)
Expand Down Expand Up @@ -50,7 +49,6 @@ The html pages can be generated to the *public* folder using:
hugo
```


## Site structure

```
Expand Down
5 changes: 4 additions & 1 deletion config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ paginate = 9
lineNumbersInTable = true
noClasses = true
noHl = false
style = 'monokai'
style = 'autumn'
tabWidth = 4

[permalinks]
Expand All @@ -57,6 +57,9 @@ paginate = 9
[params.social]
twitter = 'thepine64'




[security.exec]
allow = ["^asciidoctor$"]

Expand Down
Loading

0 comments on commit b394145

Please sign in to comment.