feat: add logos
This commit is contained in:
parent
854da17109
commit
0b4efd59de
20 changed files with 257 additions and 14 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<footer class="site-footer">
|
||||
<div class="site-footer__content page-container">
|
||||
<div class="site-footer__title">
|
||||
<a href="/">{{ .Site.Title }}</a>.
|
||||
<div class="site-footer__title-recall">
|
||||
{{ partial "helpers/svg" (dict "path" "all_logos/square_text_white_transparent" "class" "site-footer__logo") }}
|
||||
</div>
|
||||
<div class="site-footer__links">
|
||||
<ul class="inline-menu-list">
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
<header class="site-header">
|
||||
<div class="site-header__content page-container">
|
||||
<a class="site-header__title" href="/">
|
||||
<img
|
||||
class="site-header__logo"
|
||||
src="/logo.svg"
|
||||
alt="Logo l'étoile de bethléem"
|
||||
/>
|
||||
{{ partial "helpers/svg" (dict "path" "logo_horizontal_white_transparent" "class" "site-header__logo") }}
|
||||
<!-- {{ $image := resources.Get "images/all_logos/horizontal_white_transparent.svg" }} -->
|
||||
<!-- <img class="site-header__logo" -->
|
||||
<!-- src="{{ $image.RelPermalink }}" /> -->
|
||||
</a>
|
||||
<nav class="site-header__nav desktop-nav">
|
||||
<ul class="inline-menu-list">
|
||||
|
|
|
|||
6
layouts/partials/helpers/svg.html
Normal file
6
layouts/partials/helpers/svg.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{{ $svg := .path }}
|
||||
{{ $match := `<svg (.*)>((\s|\S)*)</svg>` }}
|
||||
|
||||
{{ $replaceWith := printf `<svg class="%s" ${1}>${2}</svg>` .class }}
|
||||
{{ $input := (printf "/assets/images/%s.svg" $svg | readFile) }}
|
||||
{{ return (replaceRE $match $replaceWith $input | safeHTML) }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue