syntax hilighting

This commit is contained in:
slashformotion 2021-07-25 10:04:41 +02:00
parent c396f150c9
commit c2651830a6
2 changed files with 11 additions and 2 deletions

View file

@ -4,7 +4,7 @@ canonifyurls = true
# baseurl = "https://github.com/shawnohare/hugo-tufte"
theme = "hugo-tufte"
title = "Hugo-tufte Theme Example Site"
pygmentsUseClasses=true
[taxonomies]
category = "categories"
group = "groups"
@ -39,6 +39,12 @@ title = "Hugo-tufte Theme Example Site"
weight = -90
identifier = "categories"
url = "/categories"
[[menu.nav]]
name = "About"
pre = "<i class='fa fa-info-circle fa-lg'></i> "
weight = -80
identifier = "about"
url = "/about"
# -----------------------------------------------------------------------
# Footer menu
@ -60,4 +66,5 @@ title = "Hugo-tufte Theme Example Site"
[markup]
[markup.goldmark]
unsafe = false
[markup.goldmark.renderer]
unsafe = true

View file

@ -28,3 +28,5 @@
<link rel="stylesheet" href="{{ "/css/tufte.css" | absURL }}">
<link rel="stylesheet" href="{{ "/css/hugo-tufte.css" | absURL }}">
<link rel="stylesheet" href="{{ "/css/hugo-tufte-override.css" | absURL }}">
<link rel="stylesheet" href="{{ "/css/syntax.css" | absURL }}">