Skip to content

Commit b216ac3

Browse files
authored
Set default code style to bw, update wiki (#184)
1 parent 2e3071d commit b216ac3

3 files changed

Lines changed: 47 additions & 107 deletions

File tree

assets/css/syntax-highlighting.css

Lines changed: 30 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Generated using: hugo gen chromastyles --style algol_nu */
1+
/* Generated using: hugo gen chromastyles --style bw */
22

33
/* Background */
44
.bg {
@@ -76,192 +76,112 @@
7676
/* KeywordDeclaration */
7777
.chroma .kd {
7878
font-weight: bold;
79-
font-style: italic;
8079
}
8180

8281
/* KeywordNamespace */
8382
.chroma .kn {
8483
font-weight: bold;
8584
}
8685

87-
/* KeywordPseudo */
88-
.chroma .kp {
89-
font-weight: bold;
90-
}
91-
9286
/* KeywordReserved */
9387
.chroma .kr {
9488
font-weight: bold;
9589
}
9690

97-
/* KeywordType */
98-
.chroma .kt {
99-
font-weight: bold;
100-
}
101-
10291
/* NameClass */
10392
.chroma .nc {
104-
color: #666;
105-
font-weight: bold;
106-
font-style: italic;
107-
}
108-
109-
/* NameConstant */
110-
.chroma .no {
111-
color: #666;
112-
font-weight: bold;
113-
font-style: italic;
114-
}
115-
116-
/* NameNamespace */
117-
.chroma .nn {
118-
color: #666;
119-
font-weight: bold;
120-
font-style: italic;
121-
}
122-
123-
/* NameBuiltin */
124-
.chroma .nb {
12593
font-weight: bold;
126-
font-style: italic;
12794
}
12895

129-
/* NameBuiltinPseudo */
130-
.chroma .bp {
96+
/* NameEntity */
97+
.chroma .ni {
13198
font-weight: bold;
132-
font-style: italic;
13399
}
134100

135-
/* NameVariable */
136-
.chroma .nv {
137-
color: #666;
101+
/* NameException */
102+
.chroma .ne {
138103
font-weight: bold;
139-
font-style: italic;
140-
}
141-
142-
/* NameVariableClass */
143-
.chroma .vc {
144-
color: #666;
145-
font-weight: bold;
146-
font-style: italic;
147104
}
148105

149-
/* NameVariableGlobal */
150-
.chroma .vg {
151-
color: #666;
152-
font-weight: bold;
153-
font-style: italic;
154-
}
155-
156-
/* NameVariableInstance */
157-
.chroma .vi {
158-
color: #666;
159-
font-weight: bold;
160-
font-style: italic;
161-
}
162-
163-
/* NameVariableMagic */
164-
.chroma .vm {
165-
color: #666;
106+
/* NameNamespace */
107+
.chroma .nn {
166108
font-weight: bold;
167-
font-style: italic;
168109
}
169110

170-
/* NameFunction */
171-
.chroma .nf {
172-
color: #666;
111+
/* NameTag */
112+
.chroma .nt {
173113
font-weight: bold;
174-
font-style: italic;
175-
}
176-
177-
/* NameFunctionMagic */
178-
.chroma .fm {
179-
color: #666;
180-
font-weight: bold;
181-
font-style: italic;
182114
}
183115

184116
/* LiteralString */
185117
.chroma .s {
186-
color: #666;
187118
font-style: italic;
188119
}
189120

190121
/* LiteralStringAffix */
191122
.chroma .sa {
192-
color: #666;
193123
font-style: italic;
194124
}
195125

196126
/* LiteralStringBacktick */
197127
.chroma .sb {
198-
color: #666;
199128
font-style: italic;
200129
}
201130

202131
/* LiteralStringChar */
203132
.chroma .sc {
204-
color: #666;
205133
font-style: italic;
206134
}
207135

208136
/* LiteralStringDelimiter */
209137
.chroma .dl {
210-
color: #666;
211138
font-style: italic;
212139
}
213140

214141
/* LiteralStringDoc */
215142
.chroma .sd {
216-
color: #666;
217143
font-style: italic;
218144
}
219145

220146
/* LiteralStringDouble */
221147
.chroma .s2 {
222-
color: #666;
223148
font-style: italic;
224149
}
225150

226151
/* LiteralStringEscape */
227152
.chroma .se {
228-
color: #666;
153+
font-weight: bold;
229154
font-style: italic;
230155
}
231156

232157
/* LiteralStringHeredoc */
233158
.chroma .sh {
234-
color: #666;
235159
font-style: italic;
236160
}
237161

238162
/* LiteralStringInterpol */
239163
.chroma .si {
240-
color: #666;
164+
font-weight: bold;
241165
font-style: italic;
242166
}
243167

244168
/* LiteralStringOther */
245169
.chroma .sx {
246-
color: #666;
247170
font-style: italic;
248171
}
249172

250173
/* LiteralStringRegex */
251174
.chroma .sr {
252-
color: #666;
253175
font-style: italic;
254176
}
255177

256178
/* LiteralStringSingle */
257179
.chroma .s1 {
258-
color: #666;
259180
font-style: italic;
260181
}
261182

262183
/* LiteralStringSymbol */
263184
.chroma .ss {
264-
color: #666;
265185
font-style: italic;
266186
}
267187

@@ -272,42 +192,50 @@
272192

273193
/* Comment */
274194
.chroma .c {
275-
color: #888;
276195
font-style: italic;
277196
}
278197

279198
/* CommentHashbang */
280199
.chroma .ch {
281-
color: #888;
282200
font-style: italic;
283201
}
284202

285203
/* CommentMultiline */
286204
.chroma .cm {
287-
color: #888;
288205
font-style: italic;
289206
}
290207

291208
/* CommentSingle */
292209
.chroma .c1 {
293-
color: #888;
294210
font-style: italic;
295211
}
296212

297213
/* CommentSpecial */
298214
.chroma .cs {
299-
color: #888;
215+
font-style: italic;
216+
}
217+
218+
/* GenericEmph */
219+
.chroma .ge {
220+
font-style: italic;
221+
}
222+
223+
/* GenericHeading */
224+
.chroma .gh {
225+
font-weight: bold;
226+
}
227+
228+
/* GenericPrompt */
229+
.chroma .gp {
300230
font-weight: bold;
301231
}
302232

303-
/* CommentPreproc */
304-
.chroma .cp {
305-
color: #888;
233+
/* GenericStrong */
234+
.chroma .gs {
306235
font-weight: bold;
307236
}
308237

309-
/* CommentPreprocFile */
310-
.chroma .cpf {
311-
color: #888;
238+
/* GenericSubheading */
239+
.chroma .gu {
312240
font-weight: bold;
313241
}

wiki/features/appearance.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,12 @@ hideHeader = true
6767

6868
I strongly recommend enabling breadcrumbs if you do so.
6969

70-
## Note on Syntax Highlighting
70+
## Code Blocks
71+
72+
**Syntax Highlighting**
7173

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

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

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

102+
**Line Numbers**
103+
104+
If you want to enable line numbers, use the following, `lineNumbersInTable` is expecially important.
105+
106+
```toml
107+
[markup]
108+
[markup.highlight]
109+
lineNos = true
110+
lineNumbersInTable = false
111+
```
112+
100113
## Footer Customization
101114

102115
One can decide to hide the footer completely or to change it's content by specifying the following parameters.

wiki/setup.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ hideHeader = false
101101
# Intro on main page, content is markdown
102102
homeIntroTitle = 'Hi!'
103103
homeIntroContent = """
104-
I am an Italian Software Engineer with a strong foundation in computer science and a passion for solving complex problems.
105-
I am interested in a range of topics, including algorithms, distributed systems, databases, and information retrieval.
104+
My very long home intro
106105
"""
107106

108107
# Collection to display on home
@@ -149,7 +148,7 @@ url = "/about"
149148
# Syntax highlight on code blocks
150149
[markup]
151150
[markup.highlight]
152-
style = 'algol'
151+
noClasses = false
153152

154153
# Giscus comments
155154
[params.giscus]

0 commit comments

Comments
 (0)