Custom changes

This commit is contained in:
Giulio De Pasquale 2022-11-23 09:02:59 +01:00
parent b14099207d
commit ddccd88417
6 changed files with 53 additions and 33 deletions

View File

@ -5,11 +5,11 @@
<body> <body>
<div class="container wrapper"> <div class="container wrapper">
{{ partial "head.html" . }} {{ partial "head.html" . }}
<div class="body_spacer"></div>
{{ partial "introduction.html" . }} {{ partial "introduction.html" . }}
{{ partial "projects.html" . }} {{ partial "projects.html" . }}
{{ partial "publications.html" . }} {{ partial "publications.html" . }}
</div> </div>
</div>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
</body> </body>

View File

@ -1,6 +1,6 @@
<div class="footer wrapper"> <div class="footer wrapper">
<nav class="nav"> <nav class="nav">
<div><a href="https://github.com/hadisinaee/avicenna">Avicenna Theme</a> | Built with <a href="https://gohugo.io">Hugo</a></div> <div>Original theme: <a href="https://github.com/hadisinaee/avicenna">Avicenna</a>, modifications by me</div>
</nav> </nav>
</div> </div>

View File

@ -21,13 +21,13 @@
{{- range $index, $key := .Site.Params.Social -}} {{- range $index, $key := .Site.Params.Social -}}
<a href="{{ $key.url }}" title="{{ $key.name }}"><i data-feather="{{ $key.icon }}"></i></a> <a href="{{ $key.url }}" title="{{ $key.name }}"><i data-feather="{{ $key.icon }}"></i></a>
{{- end -}} {{- end -}}
{{ if or (.Site.Params.blog) (.Site.Params.cv_name) }} {{ if or (.Site.Params.blog) (.Site.Params.cv_link) }}
| |
{{- with .Site.Params.blog -}} {{- with .Site.Params.blog -}}
<a href="{{ . }}" class="blog_cv">[blog]</a> <a href="{{ . }}" class="blog_cv">[blog]</a>
{{- end -}} {{- end -}}
{{ with .Site.Params.cv_name }} {{ with .Site.Params.cv_link }}
<a href="{{ . }}" class="blog_cv">[cv]</a> <a href="{{ . }}" class="blog_cv">[cv]</a>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -1,6 +1,9 @@
<div class="introduction"> <div class="introduction">
{{ with .Site.Params.projects }} {{ with .Site.Params.projects }}
<h4>Projects</h4> <h2>Projects</h2>
These are some of my open source projects:
<ul> <ul>
{{- range $index, $projects_map := $.Site.Params.projects -}} {{- range $index, $projects_map := $.Site.Params.projects -}}

View File

@ -1,5 +1,5 @@
<div class="introduction"> <div class="introduction">
<h4>Publications</h4> <h2>Publications</h2>
{{- range $index, $publications := .Site.Params.publications -}} {{- range $index, $publications := .Site.Params.publications -}}
<div class="year">{{ $publications.year }}</div> <div class="year">{{ $publications.year }}</div>
@ -14,7 +14,7 @@
{{ end }} {{ end }}
{{ $publication.dest | markdownify }}. {{ $publication.dest | markdownify }}.
{{ if or ($publication.code_link) $publication.blog_link }} {{ if or ($publication.code_link) $publication.blog_link $publication.pdf_link }}
<span class="code_blog"> <span class="code_blog">
{{ with $publication.code_link }} {{ with $publication.code_link }}
[<a href="{{ $publication.code_link }}">code</a>] [<a href="{{ $publication.code_link }}">code</a>]
@ -23,6 +23,10 @@
{{ with $publication.blog_link }} {{ with $publication.blog_link }}
[<a href="{{ $publication.blog_link }}">blog</a>] [<a href="{{ $publication.blog_link }}">blog</a>]
{{ end }} {{ end }}
{{ with $publication.pdf_link }}
[<a href="{{ $publication.pdf_link }}">PDF</a>]
{{ end }}
</span> </span>
{{ end }} {{ end }}

View File

@ -2,17 +2,22 @@
@import url(https://fonts.googleapis.com/css?family=Ubuntu); @import url(https://fonts.googleapis.com/css?family=Ubuntu);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono); @import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono);
:root {
--palette-red: #0395DE;
--body-font-weight: 330;
}
body { body {
font-family: "Ubuntu", sans-serif; font-family: "Ubuntu", sans-serif;
font-weight: 300; font-weight: var(--body-font-weight);
color: #333; color: #333;
line-height: 1.5; line-height: 1.4;
font-size: 16px; font-size: 24px;
} }
a, a,
a:hover { a:hover {
color: #a00; color: var(--palette-red);
text-decoration: none; text-decoration: none;
} }
@ -67,7 +72,7 @@ blockquote {
font-size: 1.4rem; font-size: 1.4rem;
font-family: Georgia, bitstream charter, serif; font-family: Georgia, bitstream charter, serif;
border-left: 3px solid; border-left: 3px solid;
border-color: #a00; border-color: var(--palette-red);
padding-left: 20px; padding-left: 20px;
} }
@ -75,13 +80,14 @@ blockquote cite {
font-size: 70%; font-size: 70%;
opacity: 0.8; opacity: 0.8;
} }
span { span {
display: block; display: block;
} }
a, a,
a:hover { a:hover {
color: #a00; color: var(--palette-red);
text-decoration: none; text-decoration: none;
} }
@ -98,7 +104,7 @@ h6 {
font-family: Ubuntu, raleway, sans-serif; font-family: Ubuntu, raleway, sans-serif;
line-height: 1.2; line-height: 1.2;
color: #330; color: #330;
font-weight: 100; font-weight: var(--body-font-weight) / 3;
margin-bottom: 15px; margin-bottom: 15px;
margin-top: 20px; margin-top: 20px;
} }
@ -120,12 +126,12 @@ h4 {
} }
h5 { h5 {
font-weight: 300; font-weight: var(--body-font-weight);
font-size: 1rem; font-size: 1rem;
} }
h6 { h6 {
font-weight: 300; font-weight: var(--body-font-weight);
font-size: 0.9rem; font-size: 0.9rem;
} }
@ -164,6 +170,11 @@ ul {
list-style: disc inside; list-style: disc inside;
} }
.body_spacer {
display: block;
height: 1.2rem;
}
.introduction ul li { .introduction ul li {
margin-bottom: 10px; margin-bottom: 10px;
} }
@ -201,7 +212,7 @@ ul {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
max-width: 30%; max-width: 40%;
height: auto; height: auto;
border-radius: 50%; border-radius: 50%;
/* float: left; */ /* float: left; */
@ -211,7 +222,7 @@ ul {
.header h2 { .header h2 {
margin: 0; margin: 0;
padding: 0; padding: 0;
font-size: 2rem; font-size: 2.2rem;
line-height: 1.3em; line-height: 1.3em;
} }
@ -249,7 +260,7 @@ ul {
.header .site-affilation .email { .header .site-affilation .email {
/* color: #a00; */ /* color: #a00; */
font-size: 14px; font-size: 0.9rem;
display: block; display: block;
font-family: "Ubuntu Mono"; font-family: "Ubuntu Mono";
font-weight: bolder; font-weight: bolder;
@ -257,7 +268,7 @@ ul {
.header .site-affilation .position { .header .site-affilation .position {
/* color: #a00; */ /* color: #a00; */
/* font-size: 14px; */ font-size: 1.5rem;
/* display: block; */ /* display: block; */
font-family: Ubuntu; font-family: Ubuntu;
/* font-weight: bolder; */ /* font-weight: bolder; */
@ -267,15 +278,16 @@ ul {
margin: 0; margin: 0;
padding: 0; padding: 0;
border: none; border: none;
} }
.header .site-affilation nav ul svg { .header .site-affilation nav ul svg {
max-height: 15px; /* max-height: 15px; */
} }
.email { .email {
/* color: #a00; */ /* color: #a00; */
font-size: 16px; font-size: 100rem;
font-family: "Ubuntu Mono"; font-family: "Ubuntu Mono";
font-weight: bolder; font-weight: bolder;
} }
@ -287,8 +299,9 @@ ul {
} }
.year { .year {
font-size: 20px; font-size: 23px;
margin-bottom: -.6em; margin-bottom: -.6em;
text-align: right;
} }
.project { .project {
@ -300,24 +313,24 @@ ul {
} }
.code_blog { .code_blog {
font-family: "Ubuntu Mono"; font-family: "Ubuntu Mono";
font-size: 14px; font-size: 14px;
margin: 0em .9em 0em; margin: 0em .9em 0em;
} }
.blog_cv { .blog_cv {
font-family: "Ubuntu Mono"; font-family: "Ubuntu Mono";
font-size: 17px; font-size: 17px;
/* margin: 0em .9em 0em; */ /* margin: 0em .9em 0em; */
} }
.project_description { .project_description {
margin: .5em .9em 0em; margin: .5em .9em 0em;
} }
.section .section-header { .section .section-header {
font-size: 0.75rem; font-size: 0.75rem;
font-weight: 600; font-weight: 2 * var(--body-font-weight);
text-transform: uppercase; text-transform: uppercase;
color: #999; color: #999;
margin-bottom: 20px; margin-bottom: 20px;