feat: Headers are not strictly hardcoded anymore
This commit is contained in:
parent
c392e0ef69
commit
415c9e04ce
|
@ -1,3 +1,4 @@
|
||||||
= Changes compared to upstream gangjun06/SimpleIntro
|
= Changes compared to upstream gangjun06/SimpleIntro
|
||||||
|
|
||||||
* Projects have a new `imageAlt` field that defines the alt-text for the image.
|
* 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.
|
|
@ -0,0 +1,7 @@
|
||||||
|
<!--
|
||||||
|
Copyright (c) 2022 Luca Cristiano <Zekromaster>
|
||||||
|
|
||||||
|
This software is released under the MIT License.
|
||||||
|
https://opensource.org/licenses/MIT
|
||||||
|
-->
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
<main class="container mx-auto mt-8 px-4 xl:px-0">
|
<main class="container mx-auto mt-8 px-4 xl:px-0">
|
||||||
<section id="about" class="md:flex justify-around">
|
<section id="about" class="md:flex justify-around">
|
||||||
<div class="my-auto md:mr-4">
|
<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">
|
<div class="flex mt-3 gap-3 text-xl">
|
||||||
{{ range $data.about.link }}
|
{{ range $data.about.link }}
|
||||||
<a href="{{.url}}"><i class="{{ .icon }}"></i></a>{{end}}
|
<a href="{{.url}}"><i class="{{ .icon }}"></i></a>{{end}}
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
</section>
|
</section>
|
||||||
<section id="skills" class="mt-12">
|
<section id="skills" class="mt-12">
|
||||||
<div class="md:flex justify-center">
|
<div class="md:flex justify-center">
|
||||||
{{ partial "home_title" (dict "title" "Skills") }}
|
{{ partial "home_title" (dict "title" (default "Skills" $.Site.Params.headers.skills)) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{if $data.skills.list}}
|
{{if $data.skills.list}}
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
</section>
|
</section>
|
||||||
<section id="projects" class="mt-12">
|
<section id="projects" class="mt-12">
|
||||||
<div class="md:flex justify-center">
|
<div class="md:flex justify-center">
|
||||||
{{ partial "home_title" (dict "title" "Projects") }}
|
{{ partial "home_title" (dict "title" (default "Projects" $.Site.Params.headers.projects)) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{if $data.skills.list}}
|
{{if $data.skills.list}}
|
||||||
|
|
Loading…
Reference in New Issue