commit e1790cc21c9d5e8d8ebbb92ee86c67a8e7e704c1
parent f38627cb41e5eb9c76e562b200ad27e0b0b9dc54
Author: oscarbenedito <oscar@obenedito.org>
Date:   Sat, 25 Jan 2020 14:32:30 +0100
Added blog archive and new entry
Diffstat:
7 files changed, 58 insertions(+), 3 deletions(-)
diff --git a/config.toml b/config.toml
@@ -8,6 +8,7 @@ disableKinds = "taxonomyTerm"
 [params]
   blog_title = "Personal blog"
   Author = "Oscar Benedito"
+  active_years = ["2020", "2019"]
 
 [taxonomies]
   category = "categories"
@@ -17,6 +18,7 @@ disableKinds = "taxonomyTerm"
   blog = "/blog/:year/:month/:slug/"
   categories = "/blog/categories/:slug/"
   tags = "/blog/tags/:slug/"
+  blog_archive = "/blog/archive/"
 
 [frontmatter]
   date  = [":filename", ":default"]
diff --git a/content/blog/2019-11-10-deploying-website.md b/content/blog/2019-11-10-deploying-website.md
@@ -1,7 +1,7 @@
 ---
 title: "Deploying a website using the WebDAV protocol"
 categories: technology
-tags: ["WebDAV", "Scripts", "rsync", "davfs2", "Autistici/Inventati"]
+tags: ["WebDAV", "Scripts", "rsync", "File synchronization", "davfs2", "Autistici/Inventati"]
 ---
 Now that my website is [hosted by Autistici/Inventati]({{< ref "/blog/2019-11-04-new-host.md" >}}), I can no longer deploy it by just pushing my git repository's changes to GitLab, as I used to. In order to deploy my website, I need to access the server using the WebDAV protocol. To do so, I use [davfs2](https://savannah.nongnu.org/projects/davfs2)—which mounts the WebDAV resource—so I can access it like any other folder in the filesystem.
 
diff --git a/content/blog/2019-11-24-backups.md b/content/blog/2019-11-24-backups.md
@@ -1,7 +1,7 @@
 ---
 title: "Backing up my computer"
 categories: technology
-tags: ["FOSS", "Software", "Privacy", "Backup", "Offline", "Local"]
+tags: ["FOSS", "Software", "Privacy", "File synchronization", "Backup", "Offline", "Local"]
 ---
 If you have important information on your computer, you probably back it up somehow. I used to save all my important files on Google Drive, which was convenient not only because it would make backups automatically, but because I could access my files from any computer, or even my phone without much effort.
 
diff --git a/content/blog/2020-01-25-syncthing.md b/content/blog/2020-01-25-syncthing.md
@@ -0,0 +1,10 @@
+---
+title: "File synchronization software: Syncthing"
+categories: technology
+tags: ["Backup", "Decentralization", "File synchronization", "Privacy", "Software"]
+---
+[Syncthing](https://syncthing.net/) is a file synchronization program. It allows you to sync files between computers over LAN or the Internet. It is a very simple program that just gets the job done.
+
+I use it to synchronize files between two computers and my phone. When synchronizing two computers, I find it to be a much faster—and smoother—approach than doing it with a USB, while mantaining my privacy and avoiding the exposure of private document to companies on the Internet. I also use it to back up a couple of folders from my phone, including my pictures. Every once in a while I will activate syncthing on my phone, it will sync everything with my computer and then I just exit it. It is fast and simple.
+
+If you want to synchronize/back up your computer or phone privately, check it out!
diff --git a/content/blog_archive/archive.md b/content/blog_archive/archive.md
@@ -0,0 +1,5 @@
+---
+title: Personal blog
+subtitle: Archive
+type: archive
+---
diff --git a/layouts/archive/single.html b/layouts/archive/single.html
@@ -0,0 +1,38 @@
+{{ define "main" }}
+<header class="page-header">
+  <h1>{{ .Title }}</h1>
+  {{ with .Params.subtitle }}
+  <h2>{{ . }}</h2>
+  {{ end }}
+</header>
+<main>
+  <article>
+    <div class="post-content">
+      <h2>Posts</h2>
+      {{ range .Site.Params.active_years }}
+        {{ $y := . }}
+        <h4>{{ . }}</h4>
+        <ul>
+          {{ range $.Site.Pages }}
+            {{ if and (eq .Dir "blog/") (.IsPage) (eq $y (.Date.Format "2006")) }}
+              <li><a href="{{ .RelPermalink }}">{{ .Title }}</a> ({{ .Date.Format "January 2" }})</li>
+            {{ end }}
+          {{ end }}
+        </ul>
+      {{ end }}
+      <h2>Categories</h2>
+      <ul>
+        {{ range .Site.Taxonomies.categories }}
+          <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title | title }}</a> ({{ .Count }} {{ if eq .Count 1}}entry{{ else }}entries{{ end }})</li>
+        {{ end }}
+      </ul>
+      <h2>Tags</h2>
+      <ul>
+        {{ range .Site.Taxonomies.tags }}
+          <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }} {{ if eq .Count 1}}entry{{ else }}entries{{ end }})</li>
+        {{ end }}
+      </ul>
+    </div>
+  </article>
+</main>
+{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
@@ -3,7 +3,7 @@
     <div class="column left">
       <h3>Links</h3>
       <p><a href="/">Home</a></p>
-      <p><a href="/blog/">Blog</a> (<a href="/blog/index.xml">RSS feed</a>)</p>
+      <p><a href="/blog/">Blog</a> (<a href="/blog/index.xml">RSS feed</a>, <a href="/blog/archive/">archive</a>)</p>
       <p><a href="/resources/">Other resources</a></p>
       <p><a href="/about/">About</a></p>
       <p><a href="/jsweblabels/" rel="jslicense">JavaScript Web Labels</a></p>