Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 30 additions & 102 deletions assets/css/syntax-highlighting.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Generated using: hugo gen chromastyles --style algol_nu */
/* Generated using: hugo gen chromastyles --style bw */

/* Background */
.bg {
Expand Down Expand Up @@ -76,192 +76,112 @@
/* KeywordDeclaration */
.chroma .kd {
font-weight: bold;
font-style: italic;
}

/* KeywordNamespace */
.chroma .kn {
font-weight: bold;
}

/* KeywordPseudo */
.chroma .kp {
font-weight: bold;
}

/* KeywordReserved */
.chroma .kr {
font-weight: bold;
}

/* KeywordType */
.chroma .kt {
font-weight: bold;
}

/* NameClass */
.chroma .nc {
color: #666;
font-weight: bold;
font-style: italic;
}

/* NameConstant */
.chroma .no {
color: #666;
font-weight: bold;
font-style: italic;
}

/* NameNamespace */
.chroma .nn {
color: #666;
font-weight: bold;
font-style: italic;
}

/* NameBuiltin */
.chroma .nb {
font-weight: bold;
font-style: italic;
}

/* NameBuiltinPseudo */
.chroma .bp {
/* NameEntity */
.chroma .ni {
font-weight: bold;
font-style: italic;
}

/* NameVariable */
.chroma .nv {
color: #666;
/* NameException */
.chroma .ne {
font-weight: bold;
font-style: italic;
}

/* NameVariableClass */
.chroma .vc {
color: #666;
font-weight: bold;
font-style: italic;
}

/* NameVariableGlobal */
.chroma .vg {
color: #666;
font-weight: bold;
font-style: italic;
}

/* NameVariableInstance */
.chroma .vi {
color: #666;
font-weight: bold;
font-style: italic;
}

/* NameVariableMagic */
.chroma .vm {
color: #666;
/* NameNamespace */
.chroma .nn {
font-weight: bold;
font-style: italic;
}

/* NameFunction */
.chroma .nf {
color: #666;
/* NameTag */
.chroma .nt {
font-weight: bold;
font-style: italic;
}

/* NameFunctionMagic */
.chroma .fm {
color: #666;
font-weight: bold;
font-style: italic;
}

/* LiteralString */
.chroma .s {
color: #666;
font-style: italic;
}

/* LiteralStringAffix */
.chroma .sa {
color: #666;
font-style: italic;
}

/* LiteralStringBacktick */
.chroma .sb {
color: #666;
font-style: italic;
}

/* LiteralStringChar */
.chroma .sc {
color: #666;
font-style: italic;
}

/* LiteralStringDelimiter */
.chroma .dl {
color: #666;
font-style: italic;
}

/* LiteralStringDoc */
.chroma .sd {
color: #666;
font-style: italic;
}

/* LiteralStringDouble */
.chroma .s2 {
color: #666;
font-style: italic;
}

/* LiteralStringEscape */
.chroma .se {
color: #666;
font-weight: bold;
font-style: italic;
}

/* LiteralStringHeredoc */
.chroma .sh {
color: #666;
font-style: italic;
}

/* LiteralStringInterpol */
.chroma .si {
color: #666;
font-weight: bold;
font-style: italic;
}

/* LiteralStringOther */
.chroma .sx {
color: #666;
font-style: italic;
}

/* LiteralStringRegex */
.chroma .sr {
color: #666;
font-style: italic;
}

/* LiteralStringSingle */
.chroma .s1 {
color: #666;
font-style: italic;
}

/* LiteralStringSymbol */
.chroma .ss {
color: #666;
font-style: italic;
}

Expand All @@ -272,42 +192,50 @@

/* Comment */
.chroma .c {
color: #888;
font-style: italic;
}

/* CommentHashbang */
.chroma .ch {
color: #888;
font-style: italic;
}

/* CommentMultiline */
.chroma .cm {
color: #888;
font-style: italic;
}

/* CommentSingle */
.chroma .c1 {
color: #888;
font-style: italic;
}

/* CommentSpecial */
.chroma .cs {
color: #888;
font-style: italic;
}

/* GenericEmph */
.chroma .ge {
font-style: italic;
}

/* GenericHeading */
.chroma .gh {
font-weight: bold;
}

/* GenericPrompt */
.chroma .gp {
font-weight: bold;
}

/* CommentPreproc */
.chroma .cp {
color: #888;
/* GenericStrong */
.chroma .gs {
font-weight: bold;
}

/* CommentPreprocFile */
.chroma .cpf {
color: #888;
/* GenericSubheading */
.chroma .gu {
font-weight: bold;
}
17 changes: 15 additions & 2 deletions wiki/features/appearance.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ hideHeader = true

I strongly recommend enabling breadcrumbs if you do so.

## Note on Syntax Highlighting
## Code Blocks

**Syntax Highlighting**

The theme supports syntax highlighting.
By default, it uses a slightly modified version of the `algol_nu` theme, defined in `assets/css/syntax-highlighting.css`.
By default, it uses a slightly modified version of the `bw` theme, defined in `assets/css/syntax-highlighting.css`.
To enable syntax highlighting, add the following to your `hugo.toml`:

```toml
Expand All @@ -97,6 +99,17 @@ hugo gen chromastyles --style monokai > assets/css/syntax-highlighting.css

I suggest trying [color schemes](https://xyproto.github.io/splash/docs/all.html) and see what can work for you.

**Line Numbers**

If you want to enable line numbers, use the following, `lineNumbersInTable` is expecially important.

```toml
[markup]
[markup.highlight]
lineNos = true
lineNumbersInTable = false
```

## Footer Customization

One can decide to hide the footer completely or to change it's content by specifying the following parameters.
Expand Down
5 changes: 2 additions & 3 deletions wiki/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ hideHeader = false
# Intro on main page, content is markdown
homeIntroTitle = 'Hi!'
homeIntroContent = """
I am an Italian Software Engineer with a strong foundation in computer science and a passion for solving complex problems.
I am interested in a range of topics, including algorithms, distributed systems, databases, and information retrieval.
My very long home intro
"""

# Collection to display on home
Expand Down Expand Up @@ -149,7 +148,7 @@ url = "/about"
# Syntax highlight on code blocks
[markup]
[markup.highlight]
style = 'algol'
noClasses = false

# Giscus comments
[params.giscus]
Expand Down