Skip to content

Commit

Permalink
attempt fix at image path resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
RadioPotin committed Sep 2, 2024
1 parent 517c009 commit 797f7b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
baseURL = 'https://decysif.fr'
languageCode = 'fr'
title = 'DéCySif'
copyright = 'OCamlPro'
SectionPagesMenu = "main"
Expand All @@ -26,7 +25,7 @@ Paginate = 10
legal = "DéCySif is a project funded by the i-Démo call and the Ile-de-France region."

[params]
site_logo = '../images/logo_decysif_excellence_for_security_blank_bg_rectangle.svg'
site_logo = 'images/logo_decysif_excellence_for_security_blank_bg_rectangle.svg'
text_color = ""
recent_posts_number = 5
[params.contact]
Expand All @@ -35,3 +34,5 @@ Paginate = 10
# Helps display HTML inlined inside of frontmatter variables
[markup.goldmark.renderer]
unsafe = true

relativeURLs = true
2 changes: 1 addition & 1 deletion layouts/partials/site-navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="flex-l justify-between items-center center">
<a href="{{ .Site.Home.RelPermalink }}" class="f3 fw2 hover-white no-underline white-90 dib">
{{ with .Site.Params.site_logo }}
<img src="{{ . }}" class="w100 mw5-ns" id="sitelogo" alt="{{ $.Site.Title }}" />
<img src="{{ relURL . }}" class="w100 mw5-ns" id="sitelogo" alt="{{ $.Site.Title }}" />
{{ else }}
{{ .Site.Title }}
{{ end }}
Expand Down

0 comments on commit 797f7b0

Please sign in to comment.