From 1835f31febfc68b4c52c67ac6cbd7613f0ae3b80 Mon Sep 17 00:00:00 2001 From: gws Date: Thu, 14 Nov 2024 11:40:32 +0100 Subject: [PATCH] wrote out blog1 --- content/blog/entry1.md | 80 +++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 48 deletions(-) diff --git a/content/blog/entry1.md b/content/blog/entry1.md index 8b5f290..b886a9e 100644 --- a/content/blog/entry1.md +++ b/content/blog/entry1.md @@ -4,71 +4,55 @@ description = "A new Landing page for consulting services" date = 2024-11-05 +++ -I made landing page. Read on if your curius about how i did it. - - - -# Why - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor -incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud -exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - -Duis aute irure -dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. - - -# How - - -## SSG - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor -incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud -exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure... - -### zola - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor -incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud -exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure... +We made a landing page. Read on if your curius about how it is made. -## Markdown is Awsome +# Static Sites -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor -incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis -nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. +This website is a static site, mening the related webservers role is simply to serve some files as is to the visitors. +The webservers do not need any state related to visitors, it is static from the servers prespective. + +That said a static can exibit dynamic behavior in the browser through scripting, so `static` does not describe the user experince. +But it does mean that the servers jobb is very easy and that is why some providers like [cloudflare](cloudflare.com) or [github](github.com) if willing to offer static websites hosting for free. -```rust -fn main() { - println!("Hello World!") -} -``` +Statics websites are a great for serving information becouse of the low cost and that you can serve almost limitless amount of visitors. + +# Static Site Generator Zola + +When building a static web site you essenstially bundle some html, css and javascript files to gather. Simple... + +But handrolling can be quite time consuming. This where static site generators(ssg) come in handy. +They speed up the process by enable html templates and layout and theme reuse. + +Github and Cloudflare offer preconfigured automatic deployment pipelines for some the more popular ssg tools. -## Hosting +For this website I opted for using [Zola](getzola.org) and so for the developer experiance has been great. But dont take my word for it, try it your self. +It is quite newbie friendly and the docs are great. -Cloudflare, ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod -tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis -nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis -aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla -pariatur. + +# Hosting + +Cloudflare offers free hosting of static websites and what is even better is that is super easy integrate with github so that whenever you push autmaticly publish either to production or a preview address. +The source code for this webpage can be found here: [github](https://github.com/GlennWSo/buildsomething) + + + +# Whats next? + +I plan to make more blog entries but im not sure which topic will be the next one. ## Nix -Dev environment... - -# Whats next? +I use nix to declare reprudicble development enverionment and build processes. Including the one i used for this website. +I might cover nix in future entries. ## E-commerce I plan to setup some kind of e-commerce to sell merchindise. -While fully intend this to a real store where you can buy stuff, the purpuse is mainly -to drink my own wine so I dont poisen my clients. I.E test in production on myself, becouse maximum validity. ## Showroom