feat: Headers are not strictly hardcoded anymore

This commit is contained in:
Zekromaster 2022-05-27 00:40:49 +02:00
parent c392e0ef69
commit 415c9e04ce
No known key found for this signature in database
GPG Key ID: ACF094DEBDED347E
3 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,4 @@
= Changes compared to upstream gangjun06/SimpleIntro
* Projects have a new `imageAlt` field that defines the alt-text for the image.
* Header names can be changed by changing the `headers.aboutMe`, `headers.projects` and `headers.skills` site parameters.

View File

@ -0,0 +1,7 @@
<!--
Copyright (c) 2022 Luca Cristiano <Zekromaster>
This software is released under the MIT License.
https://opensource.org/licenses/MIT
-->

View File

@ -30,7 +30,7 @@
<main class="container mx-auto mt-8 px-4 xl:px-0">
<section id="about" class="md:flex justify-around">
<div class="my-auto md:mr-4">
{{ partial "home_title" (dict "title" "About Me") }}
{{ partial "home_title" (dict "title" (default "About Me" $.Site.Params.headers.aboutMe) ) }}
<div class="flex mt-3 gap-3 text-xl">
{{ range $data.about.link }}
<a href="{{.url}}"><i class="{{ .icon }}"></i></a>{{end}}
@ -52,7 +52,7 @@
</section>
<section id="skills" class="mt-12">
<div class="md:flex justify-center">
{{ partial "home_title" (dict "title" "Skills") }}
{{ partial "home_title" (dict "title" (default "Skills" $.Site.Params.headers.skills)) }}
</div>
{{if $data.skills.list}}
@ -87,7 +87,7 @@
</section>
<section id="projects" class="mt-12">
<div class="md:flex justify-center">
{{ partial "home_title" (dict "title" "Projects") }}
{{ partial "home_title" (dict "title" (default "Projects" $.Site.Params.headers.projects)) }}
</div>
{{if $data.skills.list}}