Add Open Source Commitment partial to blog views

This commit is contained in:
Simon Larsen 2024-03-14 11:47:43 +00:00
parent c255205f9c
commit d3957363c3
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
5 changed files with 34 additions and 23 deletions

View File

@ -40,6 +40,8 @@
</ul>
<% } %>
<%- include('./Partials/OpenSourceCommitment', {blogPost: null}) -%>
</div>

View File

@ -41,6 +41,7 @@
<% } %>
</div>
<%- include('./Partials/OpenSourceCommitment', {blogPost: null}) -%>
</div>

View File

@ -0,0 +1,29 @@
<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 by writing a post just like this.
Please check contributing guidelines <a class="underline"
target="_blank"
href="https://github.com/oneuptime/blog">here.</a></div>
<% if(blogPost){%>
<div>If you wish to contribute to this post, you can make edits and improve it <a
class="underline" target="_blank"
href="https://github.com/oneuptime/blog/tree/master/posts/<%- blogPost.fileName -%>">here</a>.</div>
<% } %>
</div>
</div>
</li>
</ul>
</div>

View File

@ -110,29 +110,8 @@
</div>
</div>
<%- include('./Partials/OpenSourceCommitment', { blogPost: blogPost }) -%>
<div class="text-sm font-medium leading-6 text-gray-900 mt-24">Our Commitment to Open Source
</div>
<div class="mt-2 text-sm text-gray-900">
<ul role="list" class="divide-y divide-gray-100 rounded-md border border-gray-200">
<li class="flex items-center justify-between py-4 pl-4 pr-5 text-sm leading-6">
<div class="flex w-0 flex-1 items-center">
<div class="ml-4 flex min-w-0 flex-1 gap-2">
<span>Everything we do at OneUptime is 100% open-source, including this
blog post. You can make edits to this post and improve it <a
class="underline" target="_blank"
href="https://github.com/oneuptime/blog/tree/master/posts/<%- blogPost.fileName -%>">here</a>.
<br /> You can even contribute by writing a post just like this.
Please check contributing guidelines <a class="underline"
target="_blank"
href="https://github.com/oneuptime/blog">here</a></span>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>

View File

@ -1,6 +1,6 @@
{
"name": "@oneuptime/infrastructure-agent",
"version": "1.0.1",
"version": "1.0.0",
"description": "",
"scripts": {
"start": "npm run compile && node --require ts-node/register Index.ts",