diff --git a/templates/generate.rs.html b/templates/generate.rs.html new file mode 100644 index 0000000..86b2c03 --- /dev/null +++ b/templates/generate.rs.html @@ -0,0 +1,23 @@ +@use super::base; +@use crate::VersionInfo; + +@(version_info: VersionInfo, domain: &str, url: &str, service: &str, path: &str) + +@:base("Hits-of-Code Badges", "Badge Generator", { + +
+Here is the markdown for the badge for @url/@path +
+ ++[![Hits-of-Code](https://@domain/@service/@path)](https://@domain/view/@service/@path) ++ +
+It will be rendered like this +
+ ++ ++}, version_info) diff --git a/templates/index.rs.html b/templates/index.rs.html index ec004cc..adbcd91 100644 --- a/templates/index.rs.html +++ b/templates/index.rs.html @@ -45,6 +45,21 @@ would render this badge: alt="example badge" /> +