Skip to content

Commit a29c6fb

Browse files
committed
Minor changes
1 parent 73f2bf3 commit a29c6fb

File tree

5 files changed

+8
-32
lines changed

5 files changed

+8
-32
lines changed

content/blog/entries/why-lektor/contents.lr

+8-32
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ body:
1414

1515
<div style="text-align: center;">
1616
<figure>
17-
<img src="cover.jpeg"/>
17+
<img src="cover.png"/>
1818
<figcaption>
1919
<em>
20-
why?why?why?
20+
why?why?why? <a href="https://creativecommons.org/publicdomain/zero/1.0/">(CC0 1.0)</a>
2121
</em>
2222
</figcaption>
2323
</figure>
@@ -29,48 +29,24 @@ Let’s start with basic types of website -
2929

3030
Static website: Here the webpages are pre-loaded to the server and when the request is made, these pages are served to the client as it is. These webpages can use HTML, CSS, and Javascript. By static, it does not mean that these webpages are devoid of user interactivity. These pages can be highly reactive (because of course JS) but yes they are not generated on the server and are static in that manner.
3131

32-
<div style="text-align: center;">
33-
<figure>
34-
<img src="static.jpg"/>
35-
<figcaption>
36-
<em>
37-
Static Website.
38-
</em>
39-
</figcaption>
40-
</figure>
41-
</div>
42-
43-
Dynamic website: Here the webpages are generated by the server. It is connected to a database and all the data is fetched from there. It uses server-side scripting and also client-side scripting (if necessary). It is called dynamic because the webpages are supposed by the server.
44-
45-
<div style="text-align: center;">
46-
<figure>
47-
<img src="dynamic.jpg"/>
48-
<figcaption>
49-
<em>
50-
Dynamic website.
51-
</em>
52-
</figcaption>
53-
</figure>
54-
</div>
32+
Dynamic website: Here the webpages are generated by the server. It is connected to a database and all the data is fetched from there. It uses server-side scripting and also client-side scripting (if necessary). It is called dynamic because the webpages are processed by the server.
5533

5634
So why go static? — Because the vast, vast majority of websites will be read many more times than they will be updated. This is crucial because dynamic content does not come for free. It needs server resources and because program code is running there it needs to be kept up to date for to ensure there are no security problems that are left unpatched. Also when a website gets a sudden spike of traffic a static website will stay up for longer on the same server than a dynamic one that needs to execute code.
5735

58-
There are certain drawbacks of static websites we are going to focus on here and how lektor helps us to combat those.
36+
There are certain drawbacks of static websites we are going to focus on here and how Lektor helps us to combat those.
5937

6038
Drawbacks -
6139

6240
1. Multi-page websites are really hard to manage — Updating the content can be a cumbersome task here.
63-
6441
2. Lack of dynamic content.
65-
6642
3. Unavailability of the admin side of the website — This makes hard for non-technical people to edit the website.
6743

68-
Lektor helps to combat all the shortcomings listed above. It is built using node and python and is very easy to understand and use.
44+
Lektor helps to combat all the shortcomings listed above. It is built using Node.js and Python and is very easy to understand and use.
6945

7046
1. The first drawback has a very common solution that is templates. Lektor has a file structure that consists of — content, models, and templates. This structure helps us to manage multi-page websites without any cumbersome copy-pasting.
71-
2. This drawback can be overcome by using external services or in house micro-services. These services can easily be integrated into your lektor project. This will save time and give efficient results.
72-
3. This is the most amazing thing that lektor does. Combating this shortcoming makes lektor stand out. Lektor takes from content management systems like WordPress and provides a flexible browser-based admin interface from which you can edit your website’s contents. Unlike traditional CMS solutions, however, it runs entirely on your computer. This means you can give a Lektor website to people that have no understanding of programming and they can still modify the content and update the website.
47+
2. This drawback can be overcome by using external services or in house micro-services. These services can easily be integrated into your Lektor project. This will save time and give efficient results.
48+
3. This is the most amazing thing that Lektor does. Combating this shortcoming makes Lektor stand out. Lektor takes from content management systems like WordPress and provides a flexible browser-based admin interface from which you can edit your website’s contents. Unlike traditional CMS solutions, however, it runs entirely on your computer. This means you can give a Lektor website to people that have no understanding of programming and they can still modify the content and update the website.
7349

7450
Due to such capabilities, I find this framework amazing and I am excited about using it. Though there are many points untouched in this blog I would try to write a more in-depth blog when I learn about it more during my internship.
7551

76-
Credits — This blog is inspired by https://2016.ploneconf.org/talks/static-websites-with-lektor.html and also for more details you can check out https://www.getlektor.com/.
52+
Credits — This blog is inspired by [Static websites with Lektor](https://2016.ploneconf.org/talks/static-websites-with-lektor.html) and also for more details you can check out [Lektorpython](https://www.getlektor.com/).
-134 KB
Binary file not shown.
46.3 KB
Loading
-20.9 KB
Binary file not shown.
-19.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)