Browse Source

template index.html changed to remove moaaar and add author data to artcile summary

pull/2/head
lidia pereira 5 years ago
parent
commit
a07e14676f
  1. 15
      content/fundamentals/webserver.md
  2. 7
      themes/homebrewtheme/templates/index.html

15
content/fundamentals/webserver.md

@ -5,7 +5,7 @@ Tags: server, router, introduction, lan, wan
url: fundamentals-webserver-website.html
save_as: fundamentals-webserver-website.html
Summary: Installing a web server on your homebrew server
Author: hbsc & friends
Author: misschienaasappel
Status: published
slug: 004
@ -13,7 +13,7 @@ slug: 004
##Introduction
Ever wanted to host your own website from the comfort of your own house? Ever wondered how to achieve this? Search no further! This guide will help you with the installation and configuration of web server software, which is what allows a computer to start handling HTTP requests and serve web content in response.
Ever wanted to host your own website from the comfort of your house? Ever wondered how to achieve this? Search no further! This guide will help you with the installation and configuration of web server software, which is what allows a computer to start handling HTTP requests and serve web content in response.
Besides helping you with the installation, this guide will help you getting the right certificates, configuring your server and publishing your homebrew served website.
@ -21,9 +21,10 @@ Besides helping you with the installation, this guide will help you getting the
First off: what is the web, what is a web site and what is a web server?
The web is the single most known part of the internet. Because of that, it often happens that 'the web' and 'the internet' become conflated. Therefore, it often becomes a bit hazy to state what the difference is between the internet and the web. Generally speaking 'the web' is only the part of the internet that we interact with with a web browser. More technically speaking, the web is the part of the internet that runs on port 80 and port 443 and that uses the HTTP and HTTPS protocols.
The web is the single most known part of the internet. Because of that, it often happens that 'the web' and 'the internet' become conflated. Therefore, it often becomes a bit hazy to state what the difference is between the internet and the web.
Generally speaking 'the web' is only the part of the internet that we interact with with a web browser. More technically speaking, the web is the part of the internet that runs on port 80 and port 443 and that uses the HTTP and HTTPS protocols.
Websites are text documents that are formatted through HTML, CSS and JS. These three technologies tell the webbrowser what the structure of the page is, how it should be laid out and what kind of interactions are possible. Websites are transmitted using Hyper Text Transfer Protocol, which is why we usually type them like so `http://homebrewserver.club`.
Websites are text documents that are formatted through HTML, CSS and JS. These three technologies tell the web browser what the structure of the page is, how it should be laid out and what kind of interactions are possible. Websites are transmitted using Hyper Text Transfer Protocol, which is why we usually type them like so `http://homebrewserver.club`.
A web server is a piece of software which listens for and responds to HTTP requests.
@ -34,7 +35,7 @@ So in essence the web is a network of webservers which runs on top of the intern
- A spare computer.
- A basic understanding of the command line.
- An [ssh server and client](demystifying-ssh.html) installed
- A [registered domain name](https://www.pcworld.com/article/241722/how-to-register-your-own-domain-name.html)
- A [registered domain name](https://computer.howstuffworks.com/dns.htm)
- Have an available power socket next to your router.
- An ethernet cable to connect your server to the router.
@ -45,9 +46,9 @@ The instructions on this guide were run on a Debian Stretch distribution.
The Apache HTTP server is a free and open-source web server software and it has been around since 1995, being the most widely used server software in the world. Because of this, documentation is plentiful and the support community is very large, meaning that help is quite easy to get for any of your server issues.
For this reason, Apache has been selected for this guide.
There are, of course, other web server software available, the most popular of which being Nginx. Nginx, which is also free and open-source software, arrived on the scene circa 2004, and it has also become a favourite for its resource efficiency.
There are, of course, other web server software available, the most popular of which being Nginx. Nginx, which is also free and open-source software, arrived on the scene circa 2004, and it also became a favourite for its resource efficiency.
If you want to geek out further about the differences between Apache and Nginx, [this article](https://www.digitalocean.com/community/tutorials/apache-vs-nginx-practical-considerations) gives you an overview.
If you want to geek out further about the differences between Apache and Nginx, [this article](https://www.digitalocean.com/community/tutorials/apache-vs-nginx-practical-considerations) will give you an overview.
So, without further ado, open a terminal window and let's get started:

7
themes/homebrewtheme/templates/index.html

@ -12,11 +12,16 @@
</header>
<div class="post-info">
<time class="published" datetime="{{ article.date.isoformat() }}"> <sup>{{ article.locale_date }}</sup> </time>
<address class="vcard author">
By {% for author in article.authors %}
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %}
</address>
</div><!-- /.post-info -->
<div class="entry-content">
{{ article.summary }}</div>
<!-- /.entry-content -->
<div id="moaaar"><a href="{{SITEURL}}/{{ article.url }}">moaaar</a></div>
<!--<div id="moaaar"><a href="{{SITEURL}}/{{ article.url }}">moaaar</a></div> -->
</article></ul>
{% endfor %}
</ol><!-- /#posts-list -->

Loading…
Cancel
Save