Skip to content

Commit

Permalink
Theme lookup works
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Jan 27, 2024
1 parent 61fb90a commit a5f80e8
Show file tree
Hide file tree
Showing 57 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ theme = 'paper'
categoryId = 'DIC_kwDOK5Q10M4CbtK1'
mapping = 'pathname'
theme = 'light'
lang = 'en'
lang = 'en'

staticDir = ['static']

4 changes: 2 additions & 2 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ <h1 class="!my-0 pb-2.5">{{ .Title }}</h1>
</header>

{{ if .Params.theme }}
<link rel="stylesheet" type="text/css" href="/assets/themes/{{.Params.theme}}.css" />
<link rel="stylesheet" type="text/css" href="/themes/{{.Params.theme}}.css" />
{{ else }}
<link rel="stylesheet" type="text/css" href="/assets/themes/puzzmo-light.css" />
<link rel="stylesheet" type="text/css" href="/themes/puzzmo-light.css" />
{{ end }}

<section>{{ .Content }}</section>
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"scripts": {
"dev": "hugo server -D"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a5f80e8

Please sign in to comment.