Add githubPath to rendered content

This commit is contained in:
Simon Larsen
2024-03-19 07:41:24 +00:00
parent a06e5035df
commit d1af2e62bf
3 changed files with 24 additions and 0 deletions

View File

@@ -67,6 +67,7 @@ app.get(
content: renderedContent,
category: currentCategory,
link: currrentNavLink,
githubPath: fullPath
});
} catch (err) {
logger.error(err);

View File

@@ -149,6 +149,7 @@
</div>
<div class="min-w-0 max-w-2xl flex-auto px-4 py-16 lg:max-w-none lg:pl-8 lg:pr-0 xl:px-16">
<%- include('./Partials/Content.ejs', { category: category, link: link, content: content }) %>
<%- include('./Partials/OpenSourceCommitment.ejs', { githubPath: githubPath }) %>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<div class=" font-medium leading-6 text-gray-900 mt-24">Our Commitment to Open Source
</div>
<div class="mt-2 text-gray-900">
<ul role="list" class="divide-y divide-gray-100 rounded-md border border-gray-200">
<li class="items-center justify-between py-4 pl-4 pr-5 leading-6">
<div class="items-center">
<div class="p-1 space-y-2">
<div>Everything we do at OneUptime is 100% open-source. You can contribute and improve this post here <a class="underline"
target="_blank"
href="https://github.com/OneUptime/oneuptime/tree/master/App/FeatureSet/Docs/Content/<%- githubPath -%>.md">here.</a></div>
</div>
</div>
</li>
</ul>
</div>