diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-08-23 22:29:39 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-08-23 22:29:39 +0700 |
commit | e8ecc7774a0b29a0dcc91f2b4a0e37cad87a5bb1 (patch) | |
tree | 161852da8bd29da11c6832fc232eb7c3a243f94b /layouts/_default | |
parent | bf2b12f75419c548f4939e3ff8448f9a4913aa4c (diff) | |
download | blog-e8ecc7774a0b29a0dcc91f2b4a0e37cad87a5bb1.tar.gz |
Add layout for projects
Diffstat (limited to 'layouts/_default')
-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 }} |