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>2021-08-13 16:57:57 +0300
committerEddie Webb <ollitech@gmail.com>2021-08-13 16:57:57 +0300
commitd038d3211dafd4527cea28af0f27654f79658191 (patch)
tree4b68b3575ee2e0d658aedf6a50abda427f11f925
parent62a65018fe0bdd8da1b2277ecf7620dbf65f49ba (diff)
added minimal markdown type
-rw-r--r--layouts/_default/section.html12
-rw-r--r--layouts/markdown/single.html12
2 files changed, 19 insertions, 5 deletions
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
index 561f19f..c453105 100644
--- a/layouts/_default/section.html
+++ b/layouts/_default/section.html
@@ -5,14 +5,16 @@
<h1 id="{{ urlize .Title }}">{{ .Title }}</h1>
<p>{{ .Content }}</p>
{{ range .Data.Pages.ByWeight }}
+ {{ if ne .Type "markdown" }}
{{ partial (printf "%s%s" .Type "Summary") . }}
+ {{ end }}
{{ end }}
{{ range .Sections }}
- <h2 id="{{ urlize .Title }}"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
- <p>{{ .Content }}</p>
- {{ range .Pages }}
- {{ partial (printf "%s%s" .Type "Summary") . }}
- {{ end }}
+ <h2 id="{{ urlize .Title }}"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
+ <p>{{ .Content }}</p>
+ {{ range .Pages }}
+ {{ partial (printf "%s%s" .Type "Summary") . }}
+ {{ end }}
{{ end }}
</div>
</section>
diff --git a/layouts/markdown/single.html b/layouts/markdown/single.html
new file mode 100644
index 0000000..5d9ccd3
--- /dev/null
+++ b/layouts/markdown/single.html
@@ -0,0 +1,12 @@
+{{ define "main" }}
+<section class="resume-section p-3 p-lg-5 d-flex flex-column">
+ <div class="my-auto">
+ <div class="mb-3 d-flex flex-row justify-content-between">
+ <h2 class="mb-0"><span class="text-primary">{{ .Title }}</span></h2>
+ <span class="">{{ .Date.Format "January 2, 2006" }}</span>
+ </div>
+ <div>
+ {{ .Content }}
+ </div>
+</section>
+{{ end }}