gabrielgio.me @ 31a09fcf1c0d7abf4791ca6e5bba37135d3305f7

Add log and some others small fixes
diff --git a/content/logs/2019-11-16-compiling-emacs.org b/content/logs/2019-11-16-compiling-emacs.org
new file mode 100644
index 0000000000000000000000000000000000000000..4e1c09f467e424efceb163cee442b6ff4269c680
--- /dev/null
+++ b/content/logs/2019-11-16-compiling-emacs.org
@@ -0,0 +1,35 @@
+---
+title:  "Compiling emacs from source code on Fedora"
+date:   2019-11-16
+tags: ['emacs', 'emacs27', 'linux', 'fedora']
+---
+
+Compiling emacs from source and installing on fedora.
+
+* Installing Packages
+Install the following packages:
+#+BEGIN_SRC
+sudo dnf install git autoconf make gcc texinfo \
+    gnutls-devel giflib-devel ncurses-devel \
+    libjpeg-turbo-devel giflib-devel gtk3-devel \
+    libXpm-devel -y
+#+END_SRC
+
+* Cloning Repository
+Clone repository [[http://savannah.gnu.org/projects/emacs/][savannah.gnu.org]]:
+#+BEGIN_SRC
+git clone -b master git://git.sv.gnu.org/emacs.git
+#+END_SRC
+
+* Compiling
+Navigate to emacs folder (~cd emacs~) and execute the following steps
+
+#+BEGIN_SRC sh
+./autogen.sh
+./configure
+make -j$(nproc)
+sudo make install
+#+END_SRC
+
+After verify version with ~emacs --version~, it should be equal or higher than
+=28.0.50=.
diff --git a/themes/flamingo/layouts/_default/baseof.html b/themes/flamingo/layouts/_default/baseof.html
index 9bf2fafc87e9f5aa127acc397258a87e82a709cb..095a2e5a367234dc9c7bd071b1b11d4050c2eeb8 100644
--- a/themes/flamingo/layouts/_default/baseof.html
+++ b/themes/flamingo/layouts/_default/baseof.html
@@ -29,26 +29,4 @@             {{ block "main" . }}{{ end }}
             {{ partial "footer" . }}
         </div>
     </body>
-
-    <script>
-     // TODO
-     // Use Hugo templating to achieve this
-     // Script to check active nav menu
-     (function() {
-         const links = document.querySelectorAll("nav a")
-         const currentUrl = location.href
-
-         for (const link of links) {
-             if (location.href.split("/").length === 4 && link.href.endsWith("/posts/")) {
-                 link.classList.add("active-link")
-                 break;
-             }
-
-             if (link.href === currentUrl) {
-                 link.classList.add("active-link")
-             }
-         }
-     }())
-    </script>
-
 </html>
diff --git a/themes/flamingo/layouts/index.html b/themes/flamingo/layouts/index.html
index 523eb38e67405d43c15b5a98ff5bc43008f0e07a..c1424359ba92699a7d03e19e632b8d4400a8fd97 100644
--- a/themes/flamingo/layouts/index.html
+++ b/themes/flamingo/layouts/index.html
@@ -3,7 +3,6 @@ <!-- Copy of list.html -->
 <main>
 	{{ partial "post-description.html" }}
 	<div class="blog-list">
-		{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
 		{{ range .Paginator.Pages }}
 		{{ .Render "summary" }}
 		{{ end }}
diff --git a/themes/flamingo/layouts/partials/footer.html b/themes/flamingo/layouts/partials/footer.html
index 40e51c2e2436387ea8859de4181fb069d6e8836e..e64a204144baf1345ea7ac0a5f6de8e80b965af6 100644
--- a/themes/flamingo/layouts/partials/footer.html
+++ b/themes/flamingo/layouts/partials/footer.html
@@ -3,7 +3,6 @@ 	<div class="bottom-nav">
 		<nav>
 			<ul>
 				<li><a href="/about/">about</a></li>
-				<li><a href="/logs/">logs</a></li>
 				<li><a href="/privacy/">privacy</a></li>
 				<li> <a
 						 class="brand-icon"
diff --git a/themes/flamingo/layouts/partials/header.html b/themes/flamingo/layouts/partials/header.html
index 478c6f13a41c0413a7eeb886cd68ca63154cbc56..f45fb9b0dee7d0f8efc01dde1019fe4556e92265 100644
--- a/themes/flamingo/layouts/partials/header.html
+++ b/themes/flamingo/layouts/partials/header.html
@@ -3,19 +3,14 @@
 	<!-- title wrapper -->
 	<div class="title-wrapper">
 		<a href="/">
-			<h2 class="title">{{ .Site.Title }}</h2>
+			<h2 class="title" >{{ .Site.Title }}</h2>
 		</a>
 		<nav>
 			<ul>
-				<li><a href="/posts/">posts</a></li>
-				<li><a href="/projects/">projects</a></li>
-				<li><a href={{ .Site.Params.resume }} target="_blank">resume</a></li>
-				<!-- <li><a href="/resume/" target="_blank" >resume</a></li> -->
-			</ul>
+				<li><a class="{{ cond (eq .Title "Posts") "active-link" ""}}" href="/posts/">posts</a></li>
+				<li><a class="{{ cond (eq .Title "Logs") "active-link" ""}}" href="/logs/">logs</a></li>
 		</nav>
 	</div>
-	<!-- title wrapper end -->
-
 	{{ with .Site.Menus.main }}
 	<nav>
 		<ul>
diff --git a/themes/flamingo/layouts/partials/log-description.html b/themes/flamingo/layouts/partials/log-description.html
index 1a6e21a18646bce7da6d4b72cce6fb42b6829ad0..c92119349131580cec978e11f9ee95d7d91d2f05 100644
--- a/themes/flamingo/layouts/partials/log-description.html
+++ b/themes/flamingo/layouts/partials/log-description.html
@@ -1,3 +1,3 @@
 <div class="slim-description">
-    <p>Unimportant, blunt and raw.</p>
+    <p>Logging stuff so I don't forget.</p>
 </div>
diff --git a/themes/flamingo/layouts/partials/meta.html b/themes/flamingo/layouts/partials/meta.html
index 3f417afe407bff6d1a34bccc9ed5516133a0156d..5e8c0feb3f094aa7c846752fef0b2c6b166cfec3 100644
--- a/themes/flamingo/layouts/partials/meta.html
+++ b/themes/flamingo/layouts/partials/meta.html
@@ -1,148 +1,30 @@
 <!-- SEO !-->
-
-<meta property="og:title" content="{{ .Title }} | {{  .Site.Params.description  }}" />
-<meta name="twitter:title" content="{{ .Title }} | {{  .Site.Params.description  }}" />
 <meta itemprop="name" content="{{ .Title }} | {{  .Site.Params.description  }}" />
-<meta name="application-name" content="{{ .Title }} | {{  .Site.Params.description  }}" />
-<meta property="og:site_name" content="{{ .Site.Params.sitename }}" />
-
-<meta name="description" content="{{ .Site.Params.description }}" />
-<meta itemprop="description" content="{{ .Site.Params.description }}" />
-<meta property="og:description" content="{{ .Site.Params.description }}" />
-<meta name="twitter:description" content="{{ .Site.Params.description }}" />
 
 <base href="{{ .Permalink }}">
 <link rel="canonical" href="{{ .Permalink }}" itemprop="url" />
 <meta name="url" content="{{ .Permalink }}" />
-<meta name="twitter:url" content="{{ .Permalink }}" />
-<meta property="og:url" content="{{ .Permalink }}" />
-
-<!-- mrprofessor -->
-<meta property="og:article:author" content="mrprofessor" />
-<meta property="article:author" content="mrprofessor" />
-<meta name="author" content="mrprofessor" />
-
 
 <meta property="og:locale" content="{{ .Language.Lang }}">
 <meta name="language" content="{{ .Language.LanguageName }}">
-{{ range .AllTranslations }}
-    <link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
- {{ end }}
 
 
-<meta property="og:updated_time" content={{ .Lastmod.Format "2006-01-02T15:04:05Z0700" | safeHTML }} />
-
-<!-- Sitemap & RSS Feed Tags -->
 <link rel="sitemap" type="application/xml" title="Sitemap" href="{{ .Site.BaseURL }}sitemap.xml" />
 
-<!-- FIXME -->
 {{ with .OutputFormats.Get "RSS" }}
     <link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
     <link href="{{ .Permalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
 {{ end }}
 
-
-<!-- Pagination meta tags for list pages only -->
-<!-- To make sure this renders only in the article page, we check the section -->
-{{ if eq .Section "posts" }}
-
-<meta property="og:type" content="article" />
-<meta property="article:publisher" content="{{ .Site.Params.github }}" />
-<meta property="og:article:published_time" content={{ .Date.Format "2006-01-02T15:04:05Z0700" | safeHTML }} />
-<meta property="article:published_time" content={{ .Date.Format "2006-01-02T15:04:05Z0700" | safeHTML }} />
-
-{{ with .Site.Params.author }}
-    <meta property="og:article:author" content="{{humanize . }}" />
-    <meta property="article:author" content="{{humanize . }}" />
-    <meta name="author" content="{{humanize . }}" />
-{{ end }}
-
-<!-- FIXME -->
-{{ with .Site.Params.category }}
-    <meta name="news_keywords" content="{{ index . 0 }}" />
-    <meta property="article:section" content="{{ index . 0 }}" />
-{{ end }}
-
-  <script defer type="application/ld+json">
-    {
-      "@context": "http://schema.org",
-      "@type": "Article",
-      "headline": {{ .Title }},
-      "author": {
-        "@type": "Person",
-        "name": "{{ .Site.Params.github }}"
-      },
-      "datePublished": "{{ .Date.Format "2006-01-02" }}",
-      "description": {{ .Description }},
-      "wordCount": {{ .WordCount }},
-      "mainEntityOfPage": "True",
-      "dateModified": "{{ .Lastmod.Format "2006-01-02" }}",
-      "image": {
-        "@type": "imageObject",
-        "url": "{{ with .Params.image }}{{ .Permalink }}{{ end }}"
-      },
-      "publisher": {
-        "@type": "Organization",
-        "name": "{{ .Site.Title }}",
-        "logo": {
-          "@type": "imageObject",
-          "url": "https://rudra.dev/images/favicon.ico"
-        }
-      }
-    }
-  </script>
-{{ end }}
-
- 
-{{ if eq .Section "about" }}
-<!-- Pagination meta tags for list pages only -->
-<meta property="og:type" content="website" />
-<meta name="author" content="{{ .Site.Params.author }}" />
-<script defer type="application/ld+json">
-  {
-    "@context": "http://schema.org",
-    "@type": "WebSite",
-    "url": "{{ .Permalink }}",
-    "sameAs": [
-      "{{ .Site.Params.twitter }}",
-      "{{ .Site.Params.github }}"
-    ],
-    "name": "{{ .Title }}",
-    "logo": "https://rudra.dev/images/favicon.ico"
-      // "fdf": '{{ path.Join .Site.BaseURL .Site.Params.favicon }}'
-  }
-</script>
-{{ end }}
-
-
 <!-- Search Engine Crawler Tags -->
 <meta name="robots" content="index,follow" />
 <meta name="googlebot" content="index,follow" />
 
-<!-- Specific Social Media Tags -->
-<meta name="twitter:site" content="{{ .Site.Params.twitter }}">
-<meta name="twitter:creator" content="{{ .Site.Params.twitter }}" />
-
-
-<!--            -->
-<!-- Other Tags -->
-<!--            -->
-
-<!-- Manifest File -->
-<!-- FIXME -->
-<!--<link rel="manifest" href="{{ .Site.BaseURL }}manifest.json" />-->
-
 <!-- Theme Color -->
 <meta name="theme-color" content="#141414" />
 <meta name="msapplication-TileColor" content="#141414" />
 
-<meta name="keywords" content="" />
 <meta name="imagemode" content="force" />
 <meta name="coverage" content="Worldwide" />
 <meta name="distribution" content="Global" />
 <meta name="HandheldFriendly" content="True" />
-<meta name="msapplication-tap-highlight" content="no" />
-<meta name="apple-mobile-web-app-title" content="{{ .Site.Params.sitename }}" />
-<meta name="apple-mobile-web-app-capable" content="yes" />
-<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
-<meta name="apple-touch-fullscreen" content="yes" />
diff --git a/themes/flamingo/layouts/partials/sidebar.html b/themes/flamingo/layouts/partials/sidebar.html
index 92bbd807edfad014bbaf2319b16c1d8aefb585c8..9070f565bca46b6e751f11c1b6b7b8d22183d2b4 100644
--- a/themes/flamingo/layouts/partials/sidebar.html
+++ b/themes/flamingo/layouts/partials/sidebar.html
@@ -5,7 +5,7 @@ 			<h3>LATEST POSTS</h3>
 		</div>
 		<div>
 			<ul>
-				{{ range first 5 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
+				{{ range first 5 .Site.RegularPages }}
 				<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
 				{{ end }}
 			</ul>