All changs i made
This commit is contained in:
parent
363756ffee
commit
ab522619b9
BIN
Illustration-after.png
Normal file
BIN
Illustration-after.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 98 KiB |
BIN
Illustration-before.png
Normal file
BIN
Illustration-before.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 111 KiB |
@ -1,5 +1,6 @@
|
|||||||
{{- define "main" }}
|
{{- define "main" }}
|
||||||
|
|
||||||
|
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
{{- if .Description }}
|
{{- if .Description }}
|
||||||
@ -11,7 +12,7 @@
|
|||||||
|
|
||||||
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||||
|
|
||||||
{{- if site.Params.ShowAllPagesInArchive }}
|
{{- if .Site.Params.ShowAllPagesInArchive }}
|
||||||
{{- $pages = site.RegularPages }}
|
{{- $pages = site.RegularPages }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
@ -27,16 +28,23 @@
|
|||||||
<div class="archive-posts">
|
<div class="archive-posts">
|
||||||
{{- range .Pages }}
|
{{- range .Pages }}
|
||||||
{{- if eq .Kind "page" }}
|
{{- if eq .Kind "page" }}
|
||||||
<div class="archive-entry">
|
<div style="display: flex; align-items: center;">
|
||||||
<h3 class="archive-entry-title">
|
{{- $isHidden := .Params.cover.hidden | default .Site.Params.cover.hiddenInSingle | default .Site.Params.cover.hidden }}
|
||||||
{{- .Title | markdownify }}
|
{{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden "Isarchives" true) }}
|
||||||
{{- if .Draft }}<sup><span class="entry-isdraft"> [draft]</span></sup>{{- end }}
|
<div class="archive-entry">
|
||||||
</h3>
|
|
||||||
<div class="archive-meta">
|
<h3 class="archive-entry-title">
|
||||||
{{- partial "post_meta.html" . -}}
|
|
||||||
|
{{- .Title | markdownify }}
|
||||||
|
{{- if .Draft }}<sup><span class="entry-isdraft"> [draft]</span></sup>{{- end }}
|
||||||
|
</h3>
|
||||||
|
<div class="archive-meta">
|
||||||
|
{{- partial "post_meta.html" . -}}
|
||||||
|
</div>
|
||||||
|
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
|
||||||
</div>
|
</div>
|
||||||
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
{{- define "main" }}
|
{{- define "main" }}
|
||||||
|
|
||||||
{{- if (and site.Params.profileMode.enabled .IsHome) }}
|
{{- if (and .Site.Params.profileMode.enabled .IsHome) }}
|
||||||
{{- partial "index_profile.html" . }}
|
{{- partial "index_profile.html" . }}
|
||||||
{{- else }} {{/* if not profileMode */}}
|
{{- else }} {{/* if not profileMode */}}
|
||||||
|
|
||||||
{{- if not .IsHome | and .Title }}
|
{{- if not .IsHome | and .Title }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
{{- partial "breadcrumbs.html" . }}
|
{{- partial "breadcrumbs.html" . }}
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
@ -16,12 +19,15 @@
|
|||||||
</header>
|
</header>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{- if .Content }}
|
{{- if .Content }}
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
{{- if not (.Param "disableAnchoredHeadings") }}
|
{{- if not (.Param "disableAnchoredHeadings") }}
|
||||||
{{- partial "anchored_headings.html" .Content -}}
|
{{- partial "anchored_headings.html" .Content -}}
|
||||||
{{- else }}{{ .Content }}{{ end }}
|
{{- else }}{{ .Content }}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- $pages := union .RegularPages .Sections }}
|
{{- $pages := union .RegularPages .Sections }}
|
||||||
@ -30,40 +36,86 @@
|
|||||||
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{- $paginator := .Paginate $pages }}
|
{{- $paginator := .Paginate $pages }}
|
||||||
|
|
||||||
{{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }}
|
{{- if and .IsHome .Site.Params.homeInfoParams (eq $paginator.PageNumber 1) }}
|
||||||
|
|
||||||
{{- partial "home_info.html" . }}
|
{{- partial "home_info.html" . }}
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
{{- $term := .Data.Term }}
|
{{- $term := .Data.Term }}
|
||||||
{{- range $index, $page := $paginator.Pages }}
|
{{- range $index, $page := $paginator.Pages }}
|
||||||
|
|
||||||
{{- $class := "post-entry" }}
|
{{- $class := "post-entry" }}
|
||||||
|
|
||||||
{{- $user_preferred := or site.Params.disableSpecial1stPost site.Params.homeInfoParams }}
|
|
||||||
|
|
||||||
|
{{- $user_preferred := or .Site.Params.disableSpecial1stPost .Site.Params.homeInfoParams }}
|
||||||
{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (not $user_preferred)) }}
|
{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (not $user_preferred)) }}
|
||||||
{{- $class = "first-entry" }}
|
{{- $class = "first-entry" }}
|
||||||
{{- else if $term }}
|
{{- else if $term }}
|
||||||
{{- $class = "post-entry tag-entry" }}
|
{{- $class = "post-entry tag-entry" }}
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
img {
|
||||||
|
min-width: 100px;
|
||||||
|
}
|
||||||
|
@media only screen and (hover: none) and (pointer: coarse){
|
||||||
|
|
||||||
|
.imagecontenaire {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
figure {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<article class="{{ $class }}">
|
<article class="{{ $class }}">
|
||||||
{{- $isHidden := (site.Params.cover.hidden | default site.Params.cover.hiddenInList) }}
|
<div style="display: flex; margin-bottom: 10px;">
|
||||||
{{- partial "cover.html" (dict "cxt" . "IsHome" true "isHidden" $isHidden) }}
|
<div style="vertical-align: middle;" class="imagecontenaire">
|
||||||
<header class="entry-header">
|
{{- $isHidden := (.Site.Params.cover.hidden | default .Site.Params.cover.hiddenInList) }}
|
||||||
<h2>
|
{{- partial "cover.html" (dict "cxt" . "IsHome" true "isHidden" $isHidden) }}
|
||||||
{{- .Title }}
|
</div>
|
||||||
{{- if .Draft }}<sup><span class="entry-isdraft"> [draft]</span></sup>{{- end }}
|
|
||||||
</h2>
|
|
||||||
</header>
|
|
||||||
|
<div style="display: inline; vertical-align: middle;">
|
||||||
|
<header class="entry-header">
|
||||||
|
<h2>
|
||||||
|
{{- .Title }}
|
||||||
|
{{- if .Draft }}<sup><span class="entry-isdraft"> [draft]</span></sup>{{- end }}
|
||||||
|
</h2>
|
||||||
|
</header>
|
||||||
|
<section class="entry-content">
|
||||||
|
<p>{{- if .Description }}{{- .Description }}{{- end }}</p>
|
||||||
|
<p>{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}</p>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{- if (ne (.Param "hideSummary") true) }}
|
{{- if (ne (.Param "hideSummary") true) }}
|
||||||
<section class="entry-content">
|
|
||||||
<p>{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}</p>
|
|
||||||
</section>
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not (.Param "hideMeta") }}
|
{{- if not (.Param "hideMeta") }}
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
|
|
||||||
{{- partial "post_meta.html" . -}}
|
{{- partial "post_meta.html" . -}}
|
||||||
</footer>
|
</footer>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -1,28 +1,155 @@
|
|||||||
{{- define "main" }}
|
{{- define "main" }}
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@media only screen and (hover: none) and (pointer: coarse){
|
||||||
|
|
||||||
|
.contenaire {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
{{- if (.Param "isapage")}}
|
||||||
<article class="post-single">
|
<article class="post-single">
|
||||||
<header class="post-header">
|
<div style="display: flex; align-items: center; margin-bottom: 20px;" class="contenaire">
|
||||||
{{ partial "breadcrumbs.html" . }}
|
|
||||||
<h1 class="post-title">
|
|
||||||
{{ .Title }}
|
<header class="post-header">
|
||||||
{{- if .Draft }}<sup><span class="entry-isdraft"> [draft]</span></sup>{{- end }}
|
{{ partial "breadcrumbs.html" . }}
|
||||||
</h1>
|
<h1 class="post-title">
|
||||||
{{- if .Description }}
|
{{ .Title }}
|
||||||
<div class="post-description">
|
{{- if .Draft }}<sup><span class="entry-isdraft"> [draft]</span></sup>{{- end }}
|
||||||
{{ .Description }}
|
</h1>
|
||||||
</div>
|
{{- if .Description }}
|
||||||
|
<div class="post-description">
|
||||||
|
{{ .Description }}
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
{{- if not (.Param "hideMeta") }}
|
||||||
|
{{- if (.Param "ShowToc") }}
|
||||||
|
{{- partial "toc.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not (.Param "hideMeta") }}
|
<div class="post-meta">
|
||||||
<div class="post-meta">
|
{{- partial "post_meta.html" . -}}
|
||||||
{{- partial "post_meta.html" . -}}
|
{{- partial "translation_list.html" . -}}
|
||||||
{{- partial "translation_list.html" . -}}
|
{{- partial "edit_post.html" . -}}
|
||||||
{{- partial "edit_post.html" . -}}
|
{{- partial "post_canonical.html" . -}}
|
||||||
{{- partial "post_canonical.html" . -}}
|
</div>
|
||||||
</div>
|
{{- end }}
|
||||||
|
</header>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{- if (.Param "ShowToc") }}
|
||||||
|
{{- partial "toc.html" . }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{- if .Description }}
|
||||||
|
<div class="post-description">
|
||||||
|
{{ .Description }}
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{- if (.Param "curriculum") }}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.main {
|
||||||
|
max-width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (hover: none) and (pointer: coarse){
|
||||||
|
|
||||||
|
.main {
|
||||||
|
max-width: 100%;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
{{- if not (.Param "english") }}
|
||||||
|
<iframe id="iFrame1" src="/cv-template" width="150%" onload='javascript:(function(o){o.style.height=o.contentWindow.document.body.scrollHeight+"px";}(this));' style="height:200px;width:100%;border:none;overflow:hidden;"></iframe>
|
||||||
|
{{- else }}
|
||||||
|
<iframe id="iFrame1" src="/en/cv-template/index.en.html" width="150%" onload='javascript:(function(o){o.style.height=o.contentWindow.document.body.scrollHeight+"px";}(this));' style="height:200px;width:100%;border:none;overflow:hidden;"></iframe>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</header>
|
|
||||||
{{- $isHidden := .Params.cover.hidden | default site.Params.cover.hiddenInSingle | default site.Params.cover.hidden }}
|
|
||||||
{{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .Content }}
|
||||||
|
<div class="post-content">
|
||||||
|
{{- if not (.Param "disableAnchoredHeadings") }}
|
||||||
|
{{- partial "anchored_headings.html" .Content -}}
|
||||||
|
{{- else }}{{ .Content }}{{ end }}
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
<footer class="post-footer">
|
||||||
|
{{- if .Params.tags }}
|
||||||
|
<ul class="post-tags">
|
||||||
|
{{- range ($.GetTerms "tags") }}
|
||||||
|
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
|
||||||
|
{{- end }}
|
||||||
|
</ul>
|
||||||
|
{{- end }}
|
||||||
|
{{- if (.Param "ShowPostNavLinks") }}
|
||||||
|
{{- partial "post_nav_links.html" . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if (and .Site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
|
||||||
|
{{- partial "share_icons.html" . -}}
|
||||||
|
{{- end }}
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
{{- if (.Param "comments") }}
|
||||||
|
{{- partial "comments.html" . }}
|
||||||
|
{{- end }}
|
||||||
|
</article>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if not (.Param "isapage") }}
|
||||||
|
<article class="post-single">
|
||||||
|
<div style="display: flex; align-items: center; margin-bottom: 20px;" class="contenaire">
|
||||||
|
<div style="width: 30%;">
|
||||||
|
{{- $isHidden := .Params.cover.hidden | default .Site.Params.cover.hiddenInSingle | default .Site.Params.cover.hidden }}
|
||||||
|
{{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<header class="post-header">
|
||||||
|
{{ partial "breadcrumbs.html" . }}
|
||||||
|
<h1 class="post-title">
|
||||||
|
{{ .Title | markdownify}}
|
||||||
|
{{- if .Draft }}<sup><span class="entry-isdraft"> [draft]</span></sup>{{- end }}
|
||||||
|
</h1>
|
||||||
|
{{- if .Description }}
|
||||||
|
<div class="post-description">
|
||||||
|
{{ .Description }}
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
{{- if not (.Param "hideMeta") }}
|
||||||
|
<div class="post-meta">
|
||||||
|
{{- partial "post_meta.html" . -}}
|
||||||
|
</div>
|
||||||
|
<div class="post-meta">
|
||||||
|
{{- partial "translation_list.html" . -}}
|
||||||
|
{{- partial "edit_post.html" . -}}
|
||||||
|
{{- partial "post_canonical.html" . -}}
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
</header>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="https://latest.cactus.chat/cactus.js"></script>
|
||||||
|
<link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css">
|
||||||
|
|
||||||
{{- if (.Param "ShowToc") }}
|
{{- if (.Param "ShowToc") }}
|
||||||
{{- partial "toc.html" . }}
|
{{- partial "toc.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -46,7 +173,7 @@
|
|||||||
{{- if (.Param "ShowPostNavLinks") }}
|
{{- if (.Param "ShowPostNavLinks") }}
|
||||||
{{- partial "post_nav_links.html" . }}
|
{{- partial "post_nav_links.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if (and site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
|
{{- if (and .Site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
|
||||||
{{- partial "share_icons.html" . -}}
|
{{- partial "share_icons.html" . -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</footer>
|
</footer>
|
||||||
@ -55,5 +182,6 @@
|
|||||||
{{- partial "comments.html" . }}
|
{{- partial "comments.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</article>
|
</article>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- end }}{{/* end main */}}
|
{{- end }}{{/* end main */}}
|
||||||
|
@ -1,9 +1,23 @@
|
|||||||
{{- with .cxt}} {{/* Apply proper context from dict */}}
|
{{- with .cxt}} {{/* Apply proper context from dict */}}
|
||||||
{{- if (and .Params.cover.image (not $.isHidden)) }}
|
{{- if (and .Params.cover.image (not $.isHidden)) }}
|
||||||
{{- $alt := (.Params.cover.alt | default .Params.cover.caption | plainify) }}
|
{{- $alt := (.Params.cover.alt | default .Params.cover.caption | plainify) }}
|
||||||
<figure class="entry-cover">
|
|
||||||
{{- $responsiveImages := (.Params.cover.responsiveImages | default site.Params.cover.responsiveImages) | default true }}
|
{{- if $.Isarchives }}
|
||||||
{{- $addLink := (and site.Params.cover.linkFullImages (not $.IsHome)) }}
|
<style>
|
||||||
|
.entry-cover img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
figure {
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
<figure class="entry-cover" style="margin: 0px; margin-right: 20px; height: auto;">
|
||||||
|
|
||||||
|
{{- $responsiveImages := (.Params.cover.responsiveImages | default .Site.Params.cover.responsiveImages) | default true }}
|
||||||
|
{{- $addLink := (and .Site.Params.cover.linkFullImages (not $.IsHome)) }}
|
||||||
{{- $cover := (.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}
|
{{- $cover := (.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}
|
||||||
{{- if $cover -}}{{/* i.e it is present in page bundle */}}
|
{{- if $cover -}}{{/* i.e it is present in page bundle */}}
|
||||||
{{- if $addLink }}<a href="{{ (path.Join .RelPermalink .Params.cover.image) | absURL }}" target="_blank"
|
{{- if $addLink }}<a href="{{ (path.Join .RelPermalink .Params.cover.image) | absURL }}" target="_blank"
|
||||||
@ -13,7 +27,7 @@
|
|||||||
{{- if hugo.IsExtended -}}
|
{{- if hugo.IsExtended -}}
|
||||||
{{- $processableFormats = $processableFormats | append "webp" -}}
|
{{- $processableFormats = $processableFormats | append "webp" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $prod := (hugo.IsProduction | or (eq site.Params.env "production")) }}
|
{{- $prod := (hugo.IsProduction | or (eq .Site.Params.env "production")) }}
|
||||||
{{- if (and (in $processableFormats $cover.MediaType.SubType) ($responsiveImages) (eq $prod true)) }}
|
{{- if (and (in $processableFormats $cover.MediaType.SubType) ($responsiveImages) (eq $prod true)) }}
|
||||||
<img loading="lazy" srcset="{{- range $size := $sizes -}}
|
<img loading="lazy" srcset="{{- range $size := $sizes -}}
|
||||||
{{- if (ge $cover.Width $size) -}}
|
{{- if (ge $cover.Width $size) -}}
|
||||||
|
@ -1,4 +1,21 @@
|
|||||||
{{- with site.Params.homeInfoParams }}
|
{{- with site.Params.homeInfoParams }}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
img {
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lediv {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.buttons {
|
||||||
|
justify-content: flex-start;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<article class="first-entry home-info">
|
<article class="first-entry home-info">
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<h1>{{ .Title | markdownify }}</h1>
|
<h1>{{ .Title | markdownify }}</h1>
|
||||||
@ -10,4 +27,4 @@
|
|||||||
{{ partial "social_icons.html" site.Params.socialIcons }}
|
{{ partial "social_icons.html" site.Params.socialIcons }}
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
{{- end -}}
|
{{- end -}}
|
Loading…
x
Reference in New Issue
Block a user