aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-21 14:56:46 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-21 14:56:46 +0200
commitfb34cbea3705f3ab7eeb1b07f0dc7caffb0fd23a (patch)
treee9981689f382fab4bb902595acef3e1d2345c87a
parent9587e2cf3a9a08d9e88d70733a82f38c1ec75376 (diff)
downloadhugo-minimalist-theme-fb34cbea3705f3ab7eeb1b07f0dc7caffb0fd23a.tar.gz
hugo-minimalist-theme-fb34cbea3705f3ab7eeb1b07f0dc7caffb0fd23a.tar.bz2
hugo-minimalist-theme-fb34cbea3705f3ab7eeb1b07f0dc7caffb0fd23a.zip
CV explicit styling with new ox-hugo
-rw-r--r--assets/scss/style.scss31
-rw-r--r--layouts/_default/_markup/render-heading.html2
2 files changed, 24 insertions, 9 deletions
diff --git a/assets/scss/style.scss b/assets/scss/style.scss
index 93aaf5f..c1019e9 100644
--- a/assets/scss/style.scss
+++ b/assets/scss/style.scss
@@ -199,10 +199,10 @@ footer {
// CV ENTRY
.cv-entry {
@extend .ml3, .pl4, .pb2, .relative, .bl, .b--moon-gray;
- h2 {
+ .cv-role {
@extend .ma0, .f3;
}
- h2::before {
+ .cv-role::before {
content: "";
position: absolute;
width: 2rem;
@@ -212,15 +212,30 @@ footer {
transform: translateX(-50%);
left: 0;
}
+ .cv-host, .cv-date, .cv-location {
+ @extend .fw3, .mid-gray, .ma0, .pa0;
+ }
+ .cv-host::before {
+ font-family: "Font Awesome 6 Free";
+ content: "\f1ad";
+ font-weight: 900;
+ margin: 0 .5rem ;
+ }
+ .cv-date::before {
+ font-family: "Font Awesome 6 Free";
+ content: "\f133";
+ font-weight: 900;
+ margin: 0 .5rem ;
+ }
+ .cv-location::before {
+ font-family: "Font Awesome 6 Free";
+ content: "\f041";
+ font-weight: 900;
+ margin: 0 .5rem ;
+ }
p, ul {
@extend .mv1, .pv1;
}
- p:first-of-type {
- @extend .mid-gray, .fw3;
- i {
- @extend .mh2;
- }
- }
}
// Title font
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
index 3df797e..3ebfeb6 100644
--- a/layouts/_default/_markup/render-heading.html
+++ b/layouts/_default/_markup/render-heading.html
@@ -1,5 +1,5 @@
<!-- https://discourse.gohugo.io/t/adding-anchor-next-to-headers/1726/24 -->
-<h{{ .Level }} id="{{ .Anchor | safeURL }}">
+<h{{ .Level }} id="{{ .Anchor | safeURL }}"{{ with .Attributes.class }} class="{{ . }}"{{ end }}>
{{ .Text | safeHTML }}
<a class="heading-anchor" href="#{{ .Anchor | safeURL }}">
<i class="fa fa-chain" aria-hidden="true"></i>