As much as I like this organization system - I think this is one of the oldest on the site - it was one glaring flaw. I never keep these descriptions up-to-date and never will! So if the software page has source code available (and no other text) it will now redirect straight to the source code.
13 lines
279 B
HTML
13 lines
279 B
HTML
{{ define "main" }}
|
|
<h2>{{ .Title }}</h2>
|
|
|
|
{{ if (and ($.Param "source") (not .Content)) }}
|
|
{{- template "alias.html" (dict "Permalink" .Params.source) -}}
|
|
{{ else }}
|
|
<p>{{ .Summary }}</p>
|
|
|
|
<hr>
|
|
|
|
{{ .Content }}
|
|
{{ end }}
|
|
{{ end }}
|