still working on the curriculum page. Added signature to every post. Added categories...
authordanix <danix@danix.xyz>
Tue, 7 Mar 2023 13:42:39 +0000 (14:42 +0100)
committerdanix <danix@danix.xyz>
Tue, 7 Mar 2023 13:42:39 +0000 (14:42 +0100)
assets/SVGs/print.svg [new file with mode: 0644]
assets/sass/base/_typography.scss
assets/sass/components/_image.scss
assets/sass/print.scss
layouts/curriculum/cv.html
layouts/partials/funcs/datepublish.html
layouts/partials/funcs/share-on-socials.html
layouts/partials/funcs/signature.html [new file with mode: 0644]
layouts/post/single.html

diff --git a/assets/SVGs/print.svg b/assets/SVGs/print.svg
new file mode 100644 (file)
index 0000000..e5b75d7
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M128 0C92.7 0 64 28.7 64 64v96h64V64H354.7L384 93.3V160h64V93.3c0-17-6.7-33.3-18.7-45.3L400 18.7C388 6.7 371.7 0 354.7 0H128zM384 352v32 64H128V384 368 352H384zm64 32h32c17.7 0 32-14.3 32-32V256c0-35.3-28.7-64-64-64H64c-35.3 0-64 28.7-64 64v96c0 17.7 14.3 32 32 32H64v64c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V384zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"/></svg>
\ No newline at end of file
index d172291..1a082fb 100644 (file)
 \r
        p {\r
                margin: 0 0 _size(element-margin) 0;\r
+               &.smaller {\r
+                       font-style: italic;\r
+                       font-size: 12pt;\r
+               }\r
        }\r
 \r
        h1, h2, h3, h4, h5, h6 {\r
index ff15292..6b6fdb3 100644 (file)
                                text-align: center;\r
                        }\r
                }\r
+       }\r
+       // signature inside single articles\r
+       div#post-signature {\r
+               clear: both;\r
+               overflow: hidden;\r
+               width: 100%;\r
+               margin: 0;\r
+               div#signature {\r
+                       margin: 0;\r
+                       padding: 0;\r
+                       img.signature {\r
+                               margin: 0;\r
+                               margin-right: 4em;\r
+                               width: 350px;\r
+                       }\r
+               }\r
        }
\ No newline at end of file
index f625709..62b5c93 100644 (file)
@@ -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;
+       }
 }
index 38dbcaa..e7f8cff 100644 (file)
@@ -9,7 +9,9 @@
 {{ define "curriculum-footer" }}
 <article>
        <div class="inner">
-               <p>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.</p>
+               <p class="align-center smaller">Su richiesta posso fornire lettere di referenze dai miei precedenti datori di lavoro.</p>
+               <p class="align-center smaller">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.</p>
+               <footer id="shareme">{{- partial "funcs/share-on-socials.html" . -}}</footer>
        </div>
 </article>
 {{ end }}
index 235bbe0..dd57a63 100644 (file)
@@ -1,3 +1,7 @@
 {{ $dateTime := .PublishDate.Format "2006-01-02" }}
 {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
-<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
+{{ $author := .Params.author }}
+<div id="byline">
+       Published by {{ $author }} on <time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
+</div>
+
index dc673e7..e28ae2d 100644 (file)
     <!-- Telegram -->
     <a href="https://telegram.me/share/url?text={{ .Title }}&amp;url={{ .Permalink }}" target="_blank" rel="noopener" aria-label="">{{- partial "funcs/svg.html" (dict "context" . "username" "telegram") -}}<span class="screen-reader-text">Share "{{ .Title }}" via Telegram</span></a>
   </li>
+  {{ if eq "curriculum" .Type }}
+  <!-- Print this page -->
+  <li>
+    <a href="javascript:window.print()">{{- partial "funcs/svg.html" (dict "context" . "username" "print") -}}<span class="screen-reader-text">Print "{{ .Title }}"</span></a>
+    <a href=""></a>
+  </li>
+  {{ end }}
 </ul>
diff --git a/layouts/partials/funcs/signature.html b/layouts/partials/funcs/signature.html
new file mode 100644 (file)
index 0000000..d97da56
--- /dev/null
@@ -0,0 +1,3 @@
+<div id="signature">
+       <img class="signature image right" src="/uploads/2018/05/new-signature.png" alt="danix">
+</div>
\ No newline at end of file
index 4fd57a7..591556c 100644 (file)
@@ -1,7 +1,10 @@
 {{ define "article-main" }}
        <div class="inner">
+               {{- partial "funcs/datepublish.html" . -}}
                <p>{{ .Content }}</p>
-               <p>firma e metadata</p>
+               <div id="post-signature">{{- partial "funcs/signature.html" . -}}</div>
+               <p>{{- partial "funcs/categories.html" . -}}</p>
+               <p>{{- partial "funcs/tags.html" . -}}</p>
                <p>{{- partial "funcs/share-on-socials.html" . -}}</p>
        </div>
 {{ end }}