Use version info struct

This commit is contained in:
Valentin Brandl
2019-04-30 14:20:11 +02:00
parent bdf9d382d4
commit 1f807a14fb
5 changed files with 17 additions and 11 deletions

View File

@ -1,4 +1,6 @@
@(title: &str, header: &str, content: Content, commit: &str, version: &str)
@use crate::VersionInfo;
@(title: &str, header: &str, content: Content, version_info: VersionInfo)
<!DOCTYPE html>
<html lang="en">
@ -32,7 +34,7 @@
<nav>
<ul>
<li>
<small>HoC v@version - <a href="https://github.com/vbrandl/hoc/commit/@commit">@commit</a></small>
<small>HoC v@version_info.version - <a href="https://github.com/vbrandl/hoc/commit/@version_info.commit">@version_info.commit</a></small>
</li>
</ul>
</nav>