Skip to content

Commit

Permalink
Update cover
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkomiu committed Sep 6, 2023
1 parent 8f36bfd commit 1cee507
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Binary file added content/notes/ai-ml/cpp/01-fundamentals/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content/notes/ai-ml/cpp/01-fundamentals/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Fundamentals of ML
author: Nikko Miu
date: 2023-09-05T15:00:00Z
coverQuality: 30
tags:
- ai
- machine-learning
Expand Down
1 change: 1 addition & 0 deletions content/notes/ai-ml/cpp/02-linear-algebra/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Linear Algebra for ML
author: Nikko Miu
date: 2023-09-05T15:00:00Z
coverQuality: 40
tags:
- ai
- machine-learning
Expand Down
4 changes: 3 additions & 1 deletion themes/terminal/layouts/partials/cover.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
{{- end -}}

{{ if $cover -}}
{{ $cover := $cover.Resize "744x webp q40" }}
{{ $coverQ := default 60 .Params.CoverQuality }}
{{ $coverResizeArg := printf "744x webp q%d" $coverQ }}
{{ $cover := $cover.Resize $coverResizeArg }}
<img
src="{{ $cover.RelPermalink }}"
class="post-cover"
Expand Down

0 comments on commit 1cee507

Please sign in to comment.