From 06c2e9e467491840881e60d2e8213a28bea62497 Mon Sep 17 00:00:00 2001 From: danix Date: Tue, 7 Mar 2023 14:42:39 +0100 Subject: [PATCH] still working on the curriculum page. Added signature to every post. Added categories and tags. Need working on landing pages. --- assets/SVGs/print.svg | 1 + assets/sass/base/_typography.scss | 4 ++++ assets/sass/components/_image.scss | 16 ++++++++++++++++ assets/sass/print.scss | 9 ++++++++- layouts/curriculum/cv.html | 4 +++- layouts/partials/funcs/datepublish.html | 6 +++++- layouts/partials/funcs/share-on-socials.html | 7 +++++++ layouts/partials/funcs/signature.html | 3 +++ layouts/post/single.html | 5 ++++- 9 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 assets/SVGs/print.svg create mode 100644 layouts/partials/funcs/signature.html diff --git a/assets/SVGs/print.svg b/assets/SVGs/print.svg new file mode 100644 index 0000000..e5b75d7 --- /dev/null +++ b/assets/SVGs/print.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/sass/base/_typography.scss b/assets/sass/base/_typography.scss index d172291..1a082fb 100644 --- a/assets/sass/base/_typography.scss +++ b/assets/sass/base/_typography.scss @@ -69,6 +69,10 @@ p { margin: 0 0 _size(element-margin) 0; + &.smaller { + font-style: italic; + font-size: 12pt; + } } h1, h2, h3, h4, h5, h6 { diff --git a/assets/sass/components/_image.scss b/assets/sass/components/_image.scss index ff15292..6b6fdb3 100644 --- a/assets/sass/components/_image.scss +++ b/assets/sass/components/_image.scss @@ -113,4 +113,20 @@ text-align: center; } } + } + // signature inside single articles + div#post-signature { + clear: both; + overflow: hidden; + width: 100%; + margin: 0; + div#signature { + margin: 0; + padding: 0; + img.signature { + margin: 0; + margin-right: 4em; + width: 350px; + } + } } \ No newline at end of file diff --git a/assets/sass/print.scss b/assets/sass/print.scss index f625709..62b5c93 100644 --- a/assets/sass/print.scss +++ b/assets/sass/print.scss @@ -14,6 +14,9 @@ body { width: 100%; margin: 0; float: none; + div#main { + background-color: initial; + } } figure.image { &.shadow { @@ -25,8 +28,9 @@ figure.image { @include hide-visually; } } -header#header, #backtotop, +footer#shareme, +header#header, footer#footer { @include hide-visually; } @@ -69,4 +73,7 @@ div.col-8 { strong { page-break-before: avoid; } + p { + page-break-inside: avoid !important; + } } diff --git a/layouts/curriculum/cv.html b/layouts/curriculum/cv.html index 38dbcaa..e7f8cff 100644 --- a/layouts/curriculum/cv.html +++ b/layouts/curriculum/cv.html @@ -9,7 +9,9 @@ {{ define "curriculum-footer" }}
-

Lorem, ipsum dolor, sit amet consectetur adipisicing elit. Suscipit praesentium sequi aperiam corrupti dolore vitae dolores natus incidunt ullam eum quod in debitis, voluptatum a excepturi perferendis ratione nulla. Molestias.

+

Su richiesta posso fornire lettere di referenze dai miei precedenti datori di lavoro.

+

I dati personali acquisiti mediante questo Curriculum Vitae devono essere trattati nel rispetto delle norme del'art. 13 del D. Lgs. 196/2003 in materia di trattamento dei dati personali.

+
{{- partial "funcs/share-on-socials.html" . -}}
{{ end }} diff --git a/layouts/partials/funcs/datepublish.html b/layouts/partials/funcs/datepublish.html index 235bbe0..dd57a63 100644 --- a/layouts/partials/funcs/datepublish.html +++ b/layouts/partials/funcs/datepublish.html @@ -1,3 +1,7 @@ {{ $dateTime := .PublishDate.Format "2006-01-02" }} {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }} - +{{ $author := .Params.author }} +
+ Published by {{ $author }} on +
+ diff --git a/layouts/partials/funcs/share-on-socials.html b/layouts/partials/funcs/share-on-socials.html index dc673e7..e28ae2d 100644 --- a/layouts/partials/funcs/share-on-socials.html +++ b/layouts/partials/funcs/share-on-socials.html @@ -23,4 +23,11 @@ {{- partial "funcs/svg.html" (dict "context" . "username" "telegram") -}}Share "{{ .Title }}" via Telegram + {{ if eq "curriculum" .Type }} + +
  • + {{- partial "funcs/svg.html" (dict "context" . "username" "print") -}}Print "{{ .Title }}" + +
  • + {{ end }} diff --git a/layouts/partials/funcs/signature.html b/layouts/partials/funcs/signature.html new file mode 100644 index 0000000..d97da56 --- /dev/null +++ b/layouts/partials/funcs/signature.html @@ -0,0 +1,3 @@ +
    + danix +
    \ No newline at end of file diff --git a/layouts/post/single.html b/layouts/post/single.html index 4fd57a7..591556c 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -1,7 +1,10 @@ {{ define "article-main" }}
    + {{- partial "funcs/datepublish.html" . -}}

    {{ .Content }}

    -

    firma e metadata

    +
    {{- partial "funcs/signature.html" . -}}
    +

    {{- partial "funcs/categories.html" . -}}

    +

    {{- partial "funcs/tags.html" . -}}

    {{- partial "funcs/share-on-socials.html" . -}}

    {{ end }} -- 2.20.1