diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/project.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/layouts/_default/project.html b/layouts/_default/project.html new file mode 100644 index 0000000..34a04ea --- /dev/null +++ b/layouts/_default/project.html @@ -0,0 +1,52 @@ +{{ define "main" }} +{{ if .Menus }} +<nav class="post-navigation"> + {{ range .Menus }} + <a href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a> + {{ end }} +</nav> +{{ end }} + +<article class="post h-entry"> + <header class="post-header"> + <h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " }}</h1> + </header> + <div class="content e-content"> + <h1>Project info</h1> + <dl class="data"> + <dt>Project site</dt> + <dd> + <a href="{{ .Params.projectUrl }}"> + {{ .Params.name }} + </a> + </dd> + <dt>Authors</dt> + <dd> <a href={{.Params.authorURL}}>{{ .Params.author }}</a></dd> + <dt>Status</dt> + <dd>{{ .Params.projectStatus }}</dd> + </dl> + {{ .Content }} + <hr> + {{ if eq .Params.projectStatus "dead" }} + <p> + The project is currently dead. You can fork it if you find it helpful. + </p> + {{ else }} + <p> + The development of project is {{.Params.projectStatus}}. + You can help this project by contributing code, finding new issues, + suggesting new features, or donation. + </p> + {{ end }} + </div> + {{ partial "postInfo.html" . }} +</article> + +{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} + {{ partial "paginationPost.html" . }} +{{ end }} + + +{{ partial "custom-webring.html" }} + +{{ end }} |