Today was a holiday in Bolivia, it is the Aymara’s new year, because our last president was backed by aymara people he modified the constitution of the country and other laws in order to insert a lot of symbols belonging to them.
That would have been great if the purpose would have been that, to insert their symbols, and their believes in our lives, specially considering that 60% of people in Bolivia identify themselves as native americans.
But the real goal was mainly political, just like Chavez in Venezuela. But anyway, I prefer to stay away from politics, but the thing is that today was a free day, a free day in which I tried to make some changes to the blog and server.
I am thinking about getting rid of Google Analytics on my other site, and I am hesitant about implementing my own analytics server, like Matomo or Plausible, because that would be another service to updated and maintain.
So, I am thinking about using GoAccess, therefore I need to have the logs, and because my site was being served by BunnyCDN the server logs were not complete.
So I configured Nginx on my server and started serving my sites directly from there, I now have the logs and will be able to analyze them with GoAccess. I have configured Nginx to only log the webpages and not CSS, JS, PNG and other files like those. Because I only want to know which pages on the other site are the most visited to focus on them and keep them updated.
I have also added three random links to some other posts at the end of each post, I think that may help visitors to keep reading If they are in the mood, it was not easy, mainly because I am not good at Ruby, well I am not a programmer, so I had to read a lot in order to realize how to do it. I am using this code to do it.
<%= random1=blog.articles.sample random2=blog.articles.sample random3=blog.articles.sample %></p> <ul> <li><a href="<%= random1.url %>"><%= random1.title %></a></li> <li><a href="<%= random2.url %>"><%= random2.title %></a></li> <li><a href="<%= random3.url %>"><%= random3.title %></a></li> </ul>
It assigns three random posts to variables, and then list them at the end of each post, this of course will be static and will only change every time I re-generate the blog, but because I am writing almost daily that should not be a problem.
##Hacker News and Lobsters Front Page