My Website Starts Taking Shape
So here I am doing another step towards making my personal website look at least somewhat decent.
At the pair-programming meetup of Founders & Coders in Globe Town I teamed up with a fellow programmer Kata, who asked me — after we each had solved our respective Javascript exercise on codewars.com — whether I had any problem in particular I was working on: so I said yes, figuring out the CSS and stuff for my personal website.
The thing is, I had been procrastinating this forever as I didn't really know where to start, and here Kata really got me started with the header menu, helped me with some useful advice and corrected some errors I made there and then.
So my website has started taking shape and I hope to have it soon in somewhat presentable state.
Now, having come home, I have been thinking how to do it so that I can have the header menu in just one file, which I would include in all the html files.
So I googled and found out advices how to do it in Javascript, but I'd rather not do it that way: I mean, sure I am going to add some Javascript to my website soon, otherwise what would be the point in learning it, but on the other hand, I don't want something that basic as the header menu to be dependend on Javascript...
So I found out how to do it with a web server include directive, inserted in the html file like this: <!--#include virtual="header.html" -->
To allow these includes, into the <Directory "/var/www/html"> section of /etc/httpd/conf/httpd.conf it is necessary to add the following
##added to permit SSI includes
Options +Includes
Addtype text/html .html
Addtype text/php .php
AddOutputFilter INCLUDES .html .php
(so that it works for both html and php files) then restart httpd
Now that I am thinking of it, I could have done it with php, which would also be server-side, but now that I've done it with the include directives I am leaving it the way it is.
Oh, and the design... Yeah I know it still sucks... so what I am going to do is to launch comments on my blog as soon as I can so that you can tell me what you don't like and what should be done in a better way. In particular if you don't like the colour scheme please do suggest which colours would be beter — I have slight preference for green (for reasons obvious to those who know) but otherwise I really really don't mind.
Comments
No comments.