<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Web development on PäksTech</title><link>https://www.pakstech.com/categories/web-development/</link><description>Recent content in Web development on PäksTech</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright>2021 Janne Kemppainen All rights reserved</copyright><lastBuildDate>Sun, 09 May 2021 20:02:10 +0300</lastBuildDate><atom:link href="https://www.pakstech.com/categories/web-development/index.xml" rel="self" type="application/rss+xml"/><item><title>Add an RSS Feed to Your Hugo Blog</title><link>https://www.pakstech.com/blog/hugo-rss/</link><pubDate>Sun, 09 May 2021 20:02:10 +0300</pubDate><guid>https://www.pakstech.com/blog/hugo-rss/</guid><description>&lt;p>RSS might not be as fashionable as it was many years ago, but it&amp;rsquo;s still a great way to easily stay up to date with your favorite sites. If you have a Hugo site, you probably already have a working RSS feed. You just might not know about it!&lt;/p></description></item><item><title>SASS Processing with Hugo Pipes</title><link>https://www.pakstech.com/blog/hugo-sass/</link><pubDate>Mon, 08 Jun 2020 22:14:42 +0300</pubDate><guid>https://www.pakstech.com/blog/hugo-sass/</guid><description>&lt;p>So far we have been using the CDN version of Bulma. However, this has the unfortunate property that we cannot really customize the colors and other parameters. We can solve this by using Hugo pipes to process the &lt;a href="https://github.com/jgthms/bulma">Bulma source code&lt;/a> with &lt;a href="https://gohugo.io/hugo-pipes/scss-sass/">the built-in SASS processor&lt;/a>.&lt;/p></description></item><item><title>I'm Switching to Twitter for My Blog Comments</title><link>https://www.pakstech.com/blog/switching-to-twitter-comments/</link><pubDate>Sun, 24 May 2020 18:06:43 +0300</pubDate><guid>https://www.pakstech.com/blog/switching-to-twitter-comments/</guid><description>&lt;p>This blog is a static website built with &lt;a href="https://gohugo.io/">Hugo&lt;/a>. As with any static website letting users post comments on your site typically requires using a third party service. This is one area where having WordPress would be nice as it gives you a built-in commenting platform. I&amp;rsquo;ve been using a third party commenting platform but now I&amp;rsquo;m going to try something else, use Twitter for comments.&lt;/p></description></item><item><title>Start a Blog With Hugo</title><link>https://www.pakstech.com/blog/blog-with-hugo/</link><pubDate>Mon, 27 Apr 2020 20:25:51 +0300</pubDate><guid>https://www.pakstech.com/blog/blog-with-hugo/</guid><description>&lt;p>I run my blog with a static site generator called &lt;a href="https://gohugo.io/">Hugo&lt;/a> and as you&amp;rsquo;re reading this article I&amp;rsquo;m going to make a wild guess that you&amp;rsquo;d be interested to start your own blog too. I have created a whole series of blog posts about &lt;a href="https://www.pakstech.com/series/blog-with-hugo/">blogging with Hugo&lt;/a> where I go through the required steps to build your own blog from scratch. However, in this tutorial I wanted to condense all the necessary steps to getting your blog up and running as fast as possible with a ready theme.&lt;/p></description></item><item><title>CORS Simply Explained</title><link>https://www.pakstech.com/blog/cors-simply-explained/</link><pubDate>Sat, 11 Apr 2020 15:30:40 +0300</pubDate><guid>https://www.pakstech.com/blog/cors-simply-explained/</guid><description>&lt;p>If you&amp;rsquo;re doing web development there is one thing that you have quite likely been bitten by, CORS. It stands for &lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">Cross-Origin Resource Sharing&lt;/a> and simply put it is a mechanism which is used by browsers to determine whether or not a request to another domain can be made.&lt;/p></description></item><item><title>Use Google Analytics to Show Popular Content on Your Static Blog</title><link>https://www.pakstech.com/blog/hugo-popular-content/</link><pubDate>Sat, 07 Mar 2020 13:08:13 +0200</pubDate><guid>https://www.pakstech.com/blog/hugo-popular-content/</guid><description>&lt;p>It is quite easy to recommend your most popular posts to your readers if you are running a WordPress site. What if you are using a static site generator such as Hugo instead? On this post you&amp;rsquo;ll learn how to add a popular posts section by using data from Google Analytics, and how to automate the whole process.&lt;/p></description></item><item><title>Custom Hugo Shortcodes</title><link>https://www.pakstech.com/blog/hugo-shortcodes/</link><pubDate>Sat, 21 Dec 2019 12:10:31 +0200</pubDate><guid>https://www.pakstech.com/blog/hugo-shortcodes/</guid><description>&lt;p>Even though you can add normal HTML markup to your Markdown files in Hugo it doesn&amp;rsquo;t always mean that you should. Complicated or reusable pieces of code should preferably be abstracted away from the content. Custom shortcodes can help with this issue as they let you define snippets that can be added to the page and configured with parameters.&lt;/p>
&lt;p>In this series we haven&amp;rsquo;t created the home page yet so in this post we are finally going to create a simple one with the help of some custom shortcodes.&lt;/p></description></item><item><title>Hugo Comments</title><link>https://www.pakstech.com/blog/hugo-comments/</link><pubDate>Tue, 05 Nov 2019 19:32:02 +0200</pubDate><guid>https://www.pakstech.com/blog/hugo-comments/</guid><description>&lt;p>Comments are an important part of communicating with your audience. This is where static pages struggle a bit as they are immutable by design. To add comments to a Hugo (or any other static) blog you need to resort to some third party solution. Personally I&amp;rsquo;m using &lt;a href="https://getreplybox.com">ReplyBox&lt;/a> but Disqus works with Hugo out of the box so it would be the easy way.&lt;/p>
&lt;p>In this post I&amp;rsquo;ll show you how to add Disqus or ReplyBox to your site but I will also talk about other alternatives.&lt;/p></description></item><item><title>Related Content in Hugo</title><link>https://www.pakstech.com/blog/hugo-related-pages/</link><pubDate>Sun, 03 Nov 2019 19:25:25 +0200</pubDate><guid>https://www.pakstech.com/blog/hugo-related-pages/</guid><description>&lt;p>You may have noticed that many blogs like to promote other posts at the end of an article. Hugo can do this too with its related content feature. This means that you don&amp;rsquo;t have to hand pick those related posts for each new piece of content you write but you can let Hugo do it for you automatically. If you scroll down to the bottom of the page you can see a live example on this very page.&lt;/p></description></item><item><title>Implemement Hugo List and Taxonomy Pages</title><link>https://www.pakstech.com/blog/hugo-list-page/</link><pubDate>Sun, 27 Oct 2019 21:37:46 +0300</pubDate><guid>https://www.pakstech.com/blog/hugo-list-page/</guid><description>&lt;p>Until now we have concentrated on single pages such as blog posts or special pages. While we do already have a basic and functional list page for our blog it isn&amp;rsquo;t particularly pretty.&lt;/p>
&lt;p>So in this post you will learn how to create a decent looking layout to display multiple blog posts on a single page.&lt;/p></description></item><item><title>Introduction To Cloudflare Workers</title><link>https://www.pakstech.com/blog/cloudflare-workers/</link><pubDate>Wed, 19 Jun 2019 12:16:55 +0300</pubDate><guid>https://www.pakstech.com/blog/cloudflare-workers/</guid><description>&lt;p>I&amp;rsquo;ve been interested in serverless for a while but haven&amp;rsquo;t had the chance to try anything out. Recently I found out about Cloudflare Workers, a rather new serverless solution by the CDN company that powers 10% of the Internet. In this post I&amp;rsquo;ll tell you how it differs from its main competitors and how to get started.&lt;/p></description></item><item><title>Hugo Single Page Templates</title><link>https://www.pakstech.com/blog/hugo-single-page-template/</link><pubDate>Sat, 04 May 2019 09:00:05 +0300</pubDate><guid>https://www.pakstech.com/blog/hugo-single-page-template/</guid><description>&lt;p>Now that our blog has a basic single post template it is time to move on to other content pages. In this post we will concentrate on pages such as About, Privacy Policy and Contact.&lt;/p>
&lt;p>Even though the site itself is static it is possible to embed dynamic content from other sources. For example, the contact page will show you how to embed Google Forms as a contact form and a map showing your office location.&lt;/p></description></item><item><title>Show Twitter Follower Count with Google Spreadsheets as a Backend</title><link>https://www.pakstech.com/blog/twitter-followers-google-spreadsheet/</link><pubDate>Mon, 15 Apr 2019 21:00:26 +0300</pubDate><guid>https://www.pakstech.com/blog/twitter-followers-google-spreadsheet/</guid><description>&lt;p>I was quite surprised to get my first Twitter followers after linking my earlier blog post about &lt;a href="https://www.pakstech.com/blog/develop-with-subsystem-for-linux/">developing with Windows Subsystem for Linux&lt;/a> to Twitter as I&amp;rsquo;ve never really had a social media presence outside of my own circles. This gave me the idea to track how my Twitter following develops over time when I start from zero.&lt;/p>
&lt;p>Given that I&amp;rsquo;m using a static blogging environment there is no server that could actively serve this data and routing users to my home server is definitely not an option. This is where Google Spreadsheets comes in handy as it turns out that you can fetch data in CSV format without having to use strong authentication! Read more to find out how I built the follower chart below.&lt;/p></description></item><item><title>Create a Single Post Template in Hugo</title><link>https://www.pakstech.com/blog/hugo-single-article-template/</link><pubDate>Thu, 21 Mar 2019 20:26:52 +0200</pubDate><guid>https://www.pakstech.com/blog/hugo-single-article-template/</guid><description>&lt;p>In this post we will create a template for single blog posts on our Hugo blog. The end result will be a clean and simple page with support for a featured image. It will also show the author, an author image, publish date and the estimated reading time.&lt;/p></description></item><item><title>Create a Layout for Your Hugo Theme</title><link>https://www.pakstech.com/blog/create-theme-layout/</link><pubDate>Sun, 17 Mar 2019 22:51:21 +0200</pubDate><guid>https://www.pakstech.com/blog/create-theme-layout/</guid><description>&lt;p>Last time we finally started creating our own theme and we were able to render something on the home page. We also created a template for the page head so that our pages will always contain the necessary metadata and information for social sharing. Next we&amp;rsquo;re going to create the basic layout for our page.&lt;/p></description></item><item><title>Let's Create a New Hugo Theme</title><link>https://www.pakstech.com/blog/create-hugo-theme/</link><pubDate>Thu, 14 Mar 2019 18:49:40 +0200</pubDate><guid>https://www.pakstech.com/blog/create-hugo-theme/</guid><description>&lt;p>Now that we know how the basics of Hugo it&amp;rsquo;s time to take a step further and start building our own theme. This post will lay the foundations for our theme so it won&amp;rsquo;t look like much in the beginning but it will be something that we can build on. We have lots of content to cover so let&amp;rsquo;s get going!&lt;/p></description></item><item><title>Getting Started with Hugo</title><link>https://www.pakstech.com/blog/introduction-to-hugo-basics/</link><pubDate>Fri, 08 Mar 2019 20:09:24 +0200</pubDate><guid>https://www.pakstech.com/blog/introduction-to-hugo-basics/</guid><description>&lt;p>In the last post of the series we touched the surface and learned what Hugo is. This time we will dive deeper and actually create our first example site with a ready theme.&lt;/p></description></item><item><title>Why You Should Blog with Hugo?</title><link>https://www.pakstech.com/blog/introduction-to-hugo/</link><pubDate>Fri, 08 Mar 2019 16:30:10 +0200</pubDate><guid>https://www.pakstech.com/blog/introduction-to-hugo/</guid><description>&lt;p>I wanted to have a blog where I could share my thoughts and ideas. Naturally I quickly discovered WordPress and started fiddling around with it. In this series I&amp;rsquo;ll tell you why I chose to go with a static site generator called Hugo instead and how you can do it too. The idea of this series is to help you learn while doing.&lt;/p>
&lt;p>If you want to go the static web page route with Hugo you have basically two choices, either use a ready theme or create your own. I decided to go with the homebrewn option because I felt that the ready themes didn&amp;rsquo;t match with how I envisioned the site should look.&lt;/p>
&lt;p>In this series I am going to show you how to start a theme from scratch. But if you want to go with a ready theme I still recommend that you read through these pages as they&amp;rsquo;ll help you understand how Hugo works and hopefully help you customize your site.&lt;/p>
&lt;p>I want you to have the resource that I would&amp;rsquo;ve needed when starting out.&lt;/p></description></item></channel></rss>