posts
Adding a Copy Button to Code Blocks in Hugo with Netlify
Introduction Adding a “Copy Code” button to code blocks in your Hugo blog can significantly enhance the user experience, especially for technical blogs. With the help of GitHub Copilot, I implemented a solution to add a copy button above code blocks, styled similarly to GitHub’s copy button.
This blog post walks you through the steps to achieve this functionality using JavaScript and CSS. By the end, you’ll have a fully functional “Copy” button that appears in the top of your code blocks.
posts
Pinning Fields to the Filter Pane in SharePoint Libraries Using PowerShell
Introduction In SharePoint Online, the filter pane is a powerful feature that allows users to quickly filter and find relevant data in libraries and lists. However, by default, not all fields are visible in the filter pane. To enhance usability, you can pin specific fields to the top of the filter pane using PowerShell or the REST API.
This blog post demonstrates how to use PowerShell and the REST API to pin fields to the filter pane in SharePoint libraries.
posts
PowerShell: Finding and Deleting Files in SharePoint Libraries
Introduction Managing files in SharePoint libraries can be challenging, especially when dealing with test data or bulk operations. For instance, you may need to find and delete files containing specific names or patterns to reset a testing environment. This blog post demonstrates how to use PowerShell to locate and delete files in SharePoint libraries, including associated data in lists, to streamline the testing process.
In this example, we had PDF files containing a series of receipts that were split into individual files using Power Automate with the Encodian connector.