|
1 | 1 | {{- define "headline" }}
|
2 |
| - <section class="container my-2" style="max-width: 700px !important"> |
3 |
| - <div class="row p-2"> |
4 |
| - <div class="col-12"> |
5 |
| - {{- partial "publications/resourceType.html" . }} |
6 |
| - <h1 class="mb-4 nkda-heading-primary">{{- .Title | markdownify }}</h1> |
7 |
| - {{- if .Params.subtitle }} |
8 |
| - <h2 class="mb-4 nkda-heading-secondary">{{- .Params.subtitle | markdownify }}</h2> |
9 |
| - {{- end }} |
10 |
| - {{- partial "publications/craft.html" . }} |
11 |
| - {{- partial "publications/share-bar.html" . }} |
| 2 | + <section class="container-fluid resources-headline py-md-4"> |
| 3 | + <section class="container my-2" style="max-width: 900px !important"> |
| 4 | + <div> |
| 5 | + <div class="row"> |
| 6 | + <div class="col-12 col-xl-8"> |
| 7 | + {{- partial "publications/resourceType.html" . }} |
| 8 | + </div> |
| 9 | + <div class="col-xl-4 d-none d-xl-flex justify-content-end align-items-center"> |
| 10 | + <h4>tech·nic·al·ly agile</h4> |
| 11 | + </div> |
| 12 | + <div class="col-12 col-xl-8"> |
| 13 | + <h1 class="mb-4 nkda-heading-primary">{{- .Title | markdownify }}</h1> |
| 14 | + {{- if .Params.subtitle }} |
| 15 | + <h2 class="mb-4 nkda-heading-secondary">{{- .Params.subtitle | markdownify }}</h2> |
| 16 | + {{ else }} |
| 17 | + <h2 class="mb-4 nkda-heading-secondary">{{- .Description | markdownify }}</h2> |
| 18 | + {{- end }} |
| 19 | + {{- partial "publications/craft.html" . }} |
| 20 | + </div> |
| 21 | + <div class="col-xl-4 d-none d-xl-flex justify-content-center align-items-center"> |
| 22 | + <div class="position-relative"> |
| 23 | + <img src="/images/technically-agile-logo.png" /> |
| 24 | + <img src="/images/nkdagility-with-martin-hinshelwood-dark-300px.png" alt="Image" class="position-absolute top-0 end-0" style="width: 100px; height: auto;" /> |
| 25 | + </div> |
| 26 | + </div> |
| 27 | + <div class="col-xl-12 d-none d-xl-flex justify-content-end align-items-center"> |
| 28 | + {{ $url := "" }} |
| 29 | + {{ if eq .Type "resources" }} |
| 30 | + {{ $url = printf "https://nkdagility.com/resources/%s" .Params.ResourceId }} |
| 31 | + {{ else }} |
| 32 | + {{ $url = printf "https://nkdagility.com%s" .RelPermalink }} |
| 33 | + {{ end }} |
| 34 | + {{ $url }} |
| 35 | + </div> |
| 36 | + </div> |
12 | 37 | </div>
|
13 |
| - </div> |
| 38 | + </section> |
| 39 | + </section> |
| 40 | + <section class="container my-2" style="max-width: 900px !important"> |
| 41 | + {{- partial "publications/share-bar.html" . }} |
14 | 42 | </section>
|
15 | 43 | {{- end }}
|
| 44 | + |
16 | 45 | {{- define "main" }}
|
17 |
| - <section class="container my-5" style="max-width: 700px !important">{{- .Content }}</section> |
| 46 | + |
| 47 | + <!-- Change this date as needed --> |
| 48 | + {{ if .Params.AudioNative }} |
| 49 | + <section class="container my-5" style="max-width: 700px !important"> |
| 50 | + {{- if ne hugo.Environment "production" }} |
| 51 | + <div>RENDER AUDIO NATIVE from Eleven Labs (Production only)</div> |
| 52 | + <div>AudioNative: {{ .Params.AudioNative }}</div> |
| 53 | + {{- else -}} |
| 54 | + <div id="elevenlabs-audionative-widget" data-height="90" data-width="100%" data-frameborder="no" data-scrolling="no" data-publicuserid="71edc96043fbd75e5e1bd94d997b31cfa7932b5e94d7296094d7bc2906e081ab" data-playerurl="https://elevenlabs.io/player/index.html">Loading the <a href="https://elevenlabs.io/text-to-speech" target="_blank" rel="noopener">Elevenlabs Text to Speech</a> AudioNative Player...</div> |
| 55 | + <script src="https://elevenlabs.io/player/audioNativeHelper.js" type="text/javascript"></script> |
| 56 | + {{- end -}} |
| 57 | + </section> |
| 58 | + {{ end }} |
| 59 | + |
| 60 | + |
| 61 | + <section class="container my-5 content" style="max-width: 700px !important"> |
| 62 | + {{- .Content }} |
| 63 | + </section> |
| 64 | + |
18 | 65 | <section class="container my-5" style="max-width: 700px !important">
|
19 | 66 | {{- partial "publications/tag-cloud.html" . }}
|
20 | 67 | </section>
|
21 |
| - <section class="container my-5" style="max-width: 700px !important"> |
| 68 | + |
| 69 | + <section class="container my-5" style="max-width: 900px !important"> |
22 | 70 | {{- partial "publications/share-bar.html" . }}
|
23 | 71 | </section>
|
24 | 72 | <section class="container my-5 p-2" style="max-width: 700px !important">
|
25 | 73 | {{- partial "publications/comments.html" . }}
|
26 | 74 | </section>
|
| 75 | + |
| 76 | + <section class="container my-5 p-2" style="max-width: 700px !important"> |
| 77 | + {{ $related := .Site.RegularPages.Related . }} |
| 78 | + {{ $blogs := where $related ".Params.resourceTypes" "blog" | first 5 }} |
| 79 | + {{ with $blogs }} |
| 80 | + <h3>Related blog posts</h3> |
| 81 | + <ul> |
| 82 | + {{ range . }} |
| 83 | + <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li> |
| 84 | + {{ end }} |
| 85 | + </ul> |
| 86 | + {{ else }} |
| 87 | + <p>No related blog posts found.</p> |
| 88 | + {{ end }} |
| 89 | + </section> |
| 90 | + |
| 91 | + <section class="container my-5 p-2" style="max-width: 700px !important"> |
| 92 | + {{- partial "related-videos.html" . }} |
| 93 | + </section> |
27 | 94 | {{- end }}
|
| 95 | + |
28 | 96 | {{- define "template" }}
|
29 |
| - resources/single.html |
| 97 | + resources/blog.html |
30 | 98 | {{- end }}
|
0 commit comments