Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/eddiewebb/hugo-resume.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEddie Webb <ollitech@gmail.com>2020-02-11 22:31:20 +0300
committerEddie Webb <ollitech@gmail.com>2020-02-11 22:31:20 +0300
commit3d46496fdbfa9e64dbe79438e9b4e589aa601332 (patch)
treead77a4cb1215dc23300a96616f41da3425fa6e00
parent7d35cbc5a4bb89c110b18ccfd2d22c6e663b5b6c (diff)
enhance css layout
adds better heading format for sections and allows users to override css with a /css/resume-override.css file
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/partials/sectionSummary.html7
2 files changed, 7 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index ab8fbec..8a5aba9 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -28,6 +28,8 @@
<noscript><link rel="stylesheet" href="{{ "css/resume.css" | absURL }}"></noscript>
<link rel="preload" href="{{ "css/tweaks.css" | absURL }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="{{ "css/tweaks.css" | absURL }}"></noscript>
+ <link rel="preload" href="{{ "css/resume-override.css" | absURL }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
+ <noscript><link rel="stylesheet" href="{{ "css/resume-override.css" | absURL }}"></noscript>
{{ hugo.Generator }}
{{ block "headfiles" . }}
<!-- pl;aceholder -->
diff --git a/layouts/partials/sectionSummary.html b/layouts/partials/sectionSummary.html
index 81a8420..ecceadb 100644
--- a/layouts/partials/sectionSummary.html
+++ b/layouts/partials/sectionSummary.html
@@ -1,7 +1,10 @@
<section class="resume-section p-3 p-lg-5 d-flex flex-column" id="{{ .Scratch.Get "sectionId" }}">
<div class="my-auto" id="projects-content">
- <h2 class="mb-5"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
- <p>{{ .Content }}</p>
+ <div class=" pb-2 pt-3">
+ <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
+ {{ .Content | replaceRE "<p>" "<p class=\"lead\">" | safeHTML }}
+ </div>
+
{{ $featuredPages := where .Pages "Params.featured" true }}
{{ range $featuredPages }}
{{ partial (printf "%s%s" .Section "Summary") . }}