Skip to content

Commit 6754ee5

Browse files
committed
WIP
- Changing image on header
1 parent 705f076 commit 6754ee5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

site/blueprints/site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ tabs:
6767
templates:
6868
- contact
6969
- about
70-
70+
7171
settings:
7272
label: Configuration
7373
icon: settings

site/templates/components/navigation/header.blade.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
<div class="container mx-auto flex items-center justify-between">
33
<div class="flex items-center">
44
<a href="/" class="text-2xl font-bold text-black">
5-
Andrea
5+
@php
6+
$aboutPage = page('about');
7+
$image = $aboutPage?->image();
8+
@endphp
9+
10+
@if($image)
11+
<img src="{{ $image->url() }}" alt="Profile Picture" class="w-12 h-12 rounded-full object-cover">
12+
@endif
613
</a>
714
</div>
815
<div class="flex items-center space-x-4">

0 commit comments

Comments
 (0)