-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 259-add-link-checker-to-ci
- Loading branch information
Showing
6 changed files
with
70 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,44 @@ | ||
{{/* | ||
Three predefined header titles are shown, with optional images above. | ||
Image paths relative to permalink are passed in named arguments: | ||
- condition-image | ||
- task-image | ||
- resolution-image | ||
*/}} | ||
<div class="container workflow align-items-center"> | ||
<div class="row d-none d-sm-flex text-center"> | ||
<div class="col-3"><img src="{{ .Get "condition-image" }}" alt="Condition" /><h5><strong>Condition</strong></h5></div> | ||
<div class="col-3 align-self-end"> | ||
{{ template "col-header" ( dict "context" . "title" "Condition" "file" (.Get "condition-image" ) ) }} | ||
</div> | ||
<div class="col-1"></div> | ||
<div class="col-3"><img src="{{ .Get "task-image" }}" alt="Task" /><h5><strong>Task</strong></h5></div> | ||
<div class="col-3 align-self-end"> | ||
{{ template "col-header" ( dict "context" . "title" "Task" "file" (.Get "task-image" ) ) }} | ||
</div> | ||
<div class="col-1"></div> | ||
<div class="col-3"><img src="{{ .Get "resolution-image" }}" alt="Resolution" /><h5><strong>Resolution</strong></h5></div> | ||
<div class="col-3 align-self-end"> | ||
{{ template "col-header" ( dict "context" . "title" "Resolution" "file" (.Get "resolution-image" ) ) }} | ||
</div> | ||
</div> | ||
{{ .Inner }} | ||
</div> | ||
{{- define "col-header" -}} | ||
{{- $context := .context -}} | ||
{{- $title := .title -}} | ||
{{- $file := .file -}} | ||
{{- with $file -}} | ||
{{- $fullpath := "" -}} | ||
{{- if ne $context.Page.File.TranslationBaseName "_index" -}} | ||
{{- $fullpath = path.Join $context.Page.File.Dir $context.Page.File.ContentBaseName $file -}} | ||
{{- else -}} | ||
{{- $fullpath = path.Join $context.Page.File.Dir $file -}} | ||
{{- end -}} | ||
{{- if fileExists $fullpath -}} | ||
<img src="{{ . }}" alt="{{ $title }}" /> | ||
{{- else -}} | ||
{{ errorf "File '%s' not found with '%s-image=\"%s\"': %s" $fullpath (lower $title) . $context.Position }} | ||
{{- end -}} | ||
{{- else -}} | ||
{{ warnf "Missing value for param '%s-image': %s" (lower $title) $context.Position }} | ||
{{- end -}} | ||
<h4>{{ title $title }}</h4> | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<div class="row"> | ||
<div class="col-12 col-sm-3">{{ .Get "condition" | markdownify }}</div> | ||
<div class="d-none d-sm-flex col-1 align-self-center"><div><i class="fas fa-arrow-alt-circle-right"></i></div></div> | ||
<div class="d-flex d-sm-none col-1"><i class="fas fa-long-arrow-alt-right"></i></div> | ||
<div class="col-11 col-sm-3">{{ .Get "task" | markdownify }}</div> | ||
<div class="d-none d-sm-flex col-1 align-self-center"><div><i class="fas fa-arrow-alt-circle-right"></i></div></div> | ||
<div class="d-flex d-sm-none col-1"><i class="fas fa-long-arrow-alt-right"></i></div> | ||
<div class="col-11 col-sm-4">{{ .Get "resolution" | markdownify }}</div> | ||
<div class="col-12 col-sm-3 text"><h4 class="d-sm-none">Condition</h4>{{ .Get "condition" | markdownify }}</div> | ||
|
||
<div class="col-1 d-none d-sm-flex align-self-center"><i class="fas fa-arrow-alt-circle-right"></i></div> | ||
<div class="col-1 d-sm-none"><i class="fas fa-long-arrow-alt-right fa-rotate-45"></i></div> | ||
<div class="col-11 col-sm-3 text"><h4 class="d-sm-none">Task</h4>{{ .Get "task" | markdownify }}</div> | ||
|
||
<div class="col-1 d-none d-sm-flex align-self-center"><i class="fas fa-arrow-alt-circle-right"></i></div> | ||
<div class="col-1 d-sm-none"><i class="fas fa-long-arrow-alt-right fa-rotate-45"></i></div> | ||
<div class="col-11 col-sm-4 text"><h4 class="d-sm-none">Resolution</h4>{{ .Get "resolution" | markdownify }}</div> | ||
</div> |