Skip to content

Commit

Permalink
Relocated files and set up for dynamic loading
Browse files Browse the repository at this point in the history
You can use these files as templates for your blog posts and the JavaScript loader for dynamically displaying these posts on your website. Remember to replace the URLs in the JavaScript loader with the actual URLs of your Markdown files hosted on GitHub.
  • Loading branch information
PugTechnology committed Nov 14, 2023
1 parent cc9b47c commit 54de523
Show file tree
Hide file tree
Showing 15 changed files with 52 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions index.html → main/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@
<div class="container mt-4">
<h1>Welcome to Pug Land Tech Blog</h1>
<!-- Blog posts will go here -->
<div id="blog-posts"></div>
</div>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/showdown.min.js"></script>

</body>
</html>
14 changes: 14 additions & 0 deletions main/posts/azure/post_azure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

# Deploying Defender to Servers

In this post, we'll explore how to deploy Microsoft Defender to servers effectively.

## Introduction
Microsoft Defender is a key tool for maintaining server security...

## Steps
1. Step one...
2. Step two...

## Conclusion
Deploying Defender to your servers is a straightforward process that...
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions main/posts/office365/post_office365.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

# Nutanix VM Creation Guide

This guide provides a step-by-step approach to creating virtual machines in Nutanix.

## Introduction
Creating VMs in Nutanix is a crucial skill for managing a virtualized environment...

## Steps
1. Access the Nutanix console...
2. Configure the VM settings...

## Conclusion
With these steps, you can efficiently create and manage VMs in a Nutanix environment.
21 changes: 21 additions & 0 deletions main/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

document.addEventListener("DOMContentLoaded", function() {
// Replace these URLs with the actual URLs of your Markdown files
let posts = [
'https://raw.githubusercontent.com/PugTechnology/Pug-Land/main/posts/azure/post_azure.md',
'https://raw.githubusercontent.com/PugTechnology/Pug-Land/main/posts/office365/post_office365.md'
];

posts.forEach(url => {
fetch(url)
.then(response => response.text())
.then(markdown => {
let converter = new showdown.Converter();
let html = converter.makeHtml(markdown);
let div = document.createElement('div');
div.className = 'blog-post';
div.innerHTML = html;
document.getElementById('blog-posts').appendChild(div);
});
});
});
File renamed without changes.
Empty file removed posts/microsoft/post1.md
Empty file.
Empty file removed posts/microsoft/post2.md
Empty file.
Empty file removed posts/office365/post1.md
Empty file.
Empty file removed posts/office365/post2.md
Empty file.
Empty file removed script.js
Empty file.

0 comments on commit 54de523

Please sign in to comment.