gabrielgio.me @ 31a09fcf1c0d7abf4791ca6e5bba37135d3305f7

Add log and some others small fixes
  1diff --git a/content/logs/2019-11-16-compiling-emacs.org b/content/logs/2019-11-16-compiling-emacs.org
  2new file mode 100644
  3index 0000000000000000000000000000000000000000..4e1c09f467e424efceb163cee442b6ff4269c680
  4--- /dev/null
  5+++ b/content/logs/2019-11-16-compiling-emacs.org
  6@@ -0,0 +1,35 @@
  7+---
  8+title:  "Compiling emacs from source code on Fedora"
  9+date:   2019-11-16
 10+tags: ['emacs', 'emacs27', 'linux', 'fedora']
 11+---
 12+
 13+Compiling emacs from source and installing on fedora.
 14+
 15+* Installing Packages
 16+Install the following packages:
 17+#+BEGIN_SRC
 18+sudo dnf install git autoconf make gcc texinfo \
 19+    gnutls-devel giflib-devel ncurses-devel \
 20+    libjpeg-turbo-devel giflib-devel gtk3-devel \
 21+    libXpm-devel -y
 22+#+END_SRC
 23+
 24+* Cloning Repository
 25+Clone repository [[http://savannah.gnu.org/projects/emacs/][savannah.gnu.org]]:
 26+#+BEGIN_SRC
 27+git clone -b master git://git.sv.gnu.org/emacs.git
 28+#+END_SRC
 29+
 30+* Compiling
 31+Navigate to emacs folder (~cd emacs~) and execute the following steps
 32+
 33+#+BEGIN_SRC sh
 34+./autogen.sh
 35+./configure
 36+make -j$(nproc)
 37+sudo make install
 38+#+END_SRC
 39+
 40+After verify version with ~emacs --version~, it should be equal or higher than
 41+=28.0.50=.
 42diff --git a/themes/flamingo/layouts/_default/baseof.html b/themes/flamingo/layouts/_default/baseof.html
 43index 9bf2fafc87e9f5aa127acc397258a87e82a709cb..095a2e5a367234dc9c7bd071b1b11d4050c2eeb8 100644
 44--- a/themes/flamingo/layouts/_default/baseof.html
 45+++ b/themes/flamingo/layouts/_default/baseof.html
 46@@ -29,26 +29,4 @@             {{ block "main" . }}{{ end }}
 47             {{ partial "footer" . }}
 48         </div>
 49     </body>
 50-
 51-    <script>
 52-     // TODO
 53-     // Use Hugo templating to achieve this
 54-     // Script to check active nav menu
 55-     (function() {
 56-         const links = document.querySelectorAll("nav a")
 57-         const currentUrl = location.href
 58-
 59-         for (const link of links) {
 60-             if (location.href.split("/").length === 4 && link.href.endsWith("/posts/")) {
 61-                 link.classList.add("active-link")
 62-                 break;
 63-             }
 64-
 65-             if (link.href === currentUrl) {
 66-                 link.classList.add("active-link")
 67-             }
 68-         }
 69-     }())
 70-    </script>
 71-
 72 </html>
 73diff --git a/themes/flamingo/layouts/index.html b/themes/flamingo/layouts/index.html
 74index 523eb38e67405d43c15b5a98ff5bc43008f0e07a..c1424359ba92699a7d03e19e632b8d4400a8fd97 100644
 75--- a/themes/flamingo/layouts/index.html
 76+++ b/themes/flamingo/layouts/index.html
 77@@ -3,7 +3,6 @@ <!-- Copy of list.html -->
 78 <main>
 79 	{{ partial "post-description.html" }}
 80 	<div class="blog-list">
 81-		{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
 82 		{{ range .Paginator.Pages }}
 83 		{{ .Render "summary" }}
 84 		{{ end }}
 85diff --git a/themes/flamingo/layouts/partials/footer.html b/themes/flamingo/layouts/partials/footer.html
 86index 40e51c2e2436387ea8859de4181fb069d6e8836e..e64a204144baf1345ea7ac0a5f6de8e80b965af6 100644
 87--- a/themes/flamingo/layouts/partials/footer.html
 88+++ b/themes/flamingo/layouts/partials/footer.html
 89@@ -3,7 +3,6 @@ 	<div class="bottom-nav">
 90 		<nav>
 91 			<ul>
 92 				<li><a href="/about/">about</a></li>
 93-				<li><a href="/logs/">logs</a></li>
 94 				<li><a href="/privacy/">privacy</a></li>
 95 				<li> <a
 96 						 class="brand-icon"
 97diff --git a/themes/flamingo/layouts/partials/header.html b/themes/flamingo/layouts/partials/header.html
 98index 478c6f13a41c0413a7eeb886cd68ca63154cbc56..f45fb9b0dee7d0f8efc01dde1019fe4556e92265 100644
 99--- a/themes/flamingo/layouts/partials/header.html
100+++ b/themes/flamingo/layouts/partials/header.html
101@@ -3,19 +3,14 @@
102 	<!-- title wrapper -->
103 	<div class="title-wrapper">
104 		<a href="/">
105-			<h2 class="title">{{ .Site.Title }}</h2>
106+			<h2 class="title" >{{ .Site.Title }}</h2>
107 		</a>
108 		<nav>
109 			<ul>
110-				<li><a href="/posts/">posts</a></li>
111-				<li><a href="/projects/">projects</a></li>
112-				<li><a href={{ .Site.Params.resume }} target="_blank">resume</a></li>
113-				<!-- <li><a href="/resume/" target="_blank" >resume</a></li> -->
114-			</ul>
115+				<li><a class="{{ cond (eq .Title "Posts") "active-link" ""}}" href="/posts/">posts</a></li>
116+				<li><a class="{{ cond (eq .Title "Logs") "active-link" ""}}" href="/logs/">logs</a></li>
117 		</nav>
118 	</div>
119-	<!-- title wrapper end -->
120-
121 	{{ with .Site.Menus.main }}
122 	<nav>
123 		<ul>
124diff --git a/themes/flamingo/layouts/partials/log-description.html b/themes/flamingo/layouts/partials/log-description.html
125index 1a6e21a18646bce7da6d4b72cce6fb42b6829ad0..c92119349131580cec978e11f9ee95d7d91d2f05 100644
126--- a/themes/flamingo/layouts/partials/log-description.html
127+++ b/themes/flamingo/layouts/partials/log-description.html
128@@ -1,3 +1,3 @@
129 <div class="slim-description">
130-    <p>Unimportant, blunt and raw.</p>
131+    <p>Logging stuff so I don't forget.</p>
132 </div>
133diff --git a/themes/flamingo/layouts/partials/meta.html b/themes/flamingo/layouts/partials/meta.html
134index 3f417afe407bff6d1a34bccc9ed5516133a0156d..5e8c0feb3f094aa7c846752fef0b2c6b166cfec3 100644
135--- a/themes/flamingo/layouts/partials/meta.html
136+++ b/themes/flamingo/layouts/partials/meta.html
137@@ -1,148 +1,30 @@
138 <!-- SEO !-->
139-
140-<meta property="og:title" content="{{ .Title }} | {{  .Site.Params.description  }}" />
141-<meta name="twitter:title" content="{{ .Title }} | {{  .Site.Params.description  }}" />
142 <meta itemprop="name" content="{{ .Title }} | {{  .Site.Params.description  }}" />
143-<meta name="application-name" content="{{ .Title }} | {{  .Site.Params.description  }}" />
144-<meta property="og:site_name" content="{{ .Site.Params.sitename }}" />
145-
146-<meta name="description" content="{{ .Site.Params.description }}" />
147-<meta itemprop="description" content="{{ .Site.Params.description }}" />
148-<meta property="og:description" content="{{ .Site.Params.description }}" />
149-<meta name="twitter:description" content="{{ .Site.Params.description }}" />
150 
151 <base href="{{ .Permalink }}">
152 <link rel="canonical" href="{{ .Permalink }}" itemprop="url" />
153 <meta name="url" content="{{ .Permalink }}" />
154-<meta name="twitter:url" content="{{ .Permalink }}" />
155-<meta property="og:url" content="{{ .Permalink }}" />
156-
157-<!-- mrprofessor -->
158-<meta property="og:article:author" content="mrprofessor" />
159-<meta property="article:author" content="mrprofessor" />
160-<meta name="author" content="mrprofessor" />
161-
162 
163 <meta property="og:locale" content="{{ .Language.Lang }}">
164 <meta name="language" content="{{ .Language.LanguageName }}">
165-{{ range .AllTranslations }}
166-    <link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
167- {{ end }}
168 
169 
170-<meta property="og:updated_time" content={{ .Lastmod.Format "2006-01-02T15:04:05Z0700" | safeHTML }} />
171-
172-<!-- Sitemap & RSS Feed Tags -->
173 <link rel="sitemap" type="application/xml" title="Sitemap" href="{{ .Site.BaseURL }}sitemap.xml" />
174 
175-<!-- FIXME -->
176 {{ with .OutputFormats.Get "RSS" }}
177     <link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
178     <link href="{{ .Permalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
179 {{ end }}
180 
181-
182-<!-- Pagination meta tags for list pages only -->
183-<!-- To make sure this renders only in the article page, we check the section -->
184-{{ if eq .Section "posts" }}
185-
186-<meta property="og:type" content="article" />
187-<meta property="article:publisher" content="{{ .Site.Params.github }}" />
188-<meta property="og:article:published_time" content={{ .Date.Format "2006-01-02T15:04:05Z0700" | safeHTML }} />
189-<meta property="article:published_time" content={{ .Date.Format "2006-01-02T15:04:05Z0700" | safeHTML }} />
190-
191-{{ with .Site.Params.author }}
192-    <meta property="og:article:author" content="{{humanize . }}" />
193-    <meta property="article:author" content="{{humanize . }}" />
194-    <meta name="author" content="{{humanize . }}" />
195-{{ end }}
196-
197-<!-- FIXME -->
198-{{ with .Site.Params.category }}
199-    <meta name="news_keywords" content="{{ index . 0 }}" />
200-    <meta property="article:section" content="{{ index . 0 }}" />
201-{{ end }}
202-
203-  <script defer type="application/ld+json">
204-    {
205-      "@context": "http://schema.org",
206-      "@type": "Article",
207-      "headline": {{ .Title }},
208-      "author": {
209-        "@type": "Person",
210-        "name": "{{ .Site.Params.github }}"
211-      },
212-      "datePublished": "{{ .Date.Format "2006-01-02" }}",
213-      "description": {{ .Description }},
214-      "wordCount": {{ .WordCount }},
215-      "mainEntityOfPage": "True",
216-      "dateModified": "{{ .Lastmod.Format "2006-01-02" }}",
217-      "image": {
218-        "@type": "imageObject",
219-        "url": "{{ with .Params.image }}{{ .Permalink }}{{ end }}"
220-      },
221-      "publisher": {
222-        "@type": "Organization",
223-        "name": "{{ .Site.Title }}",
224-        "logo": {
225-          "@type": "imageObject",
226-          "url": "https://rudra.dev/images/favicon.ico"
227-        }
228-      }
229-    }
230-  </script>
231-{{ end }}
232-
233- 
234-{{ if eq .Section "about" }}
235-<!-- Pagination meta tags for list pages only -->
236-<meta property="og:type" content="website" />
237-<meta name="author" content="{{ .Site.Params.author }}" />
238-<script defer type="application/ld+json">
239-  {
240-    "@context": "http://schema.org",
241-    "@type": "WebSite",
242-    "url": "{{ .Permalink }}",
243-    "sameAs": [
244-      "{{ .Site.Params.twitter }}",
245-      "{{ .Site.Params.github }}"
246-    ],
247-    "name": "{{ .Title }}",
248-    "logo": "https://rudra.dev/images/favicon.ico"
249-      // "fdf": '{{ path.Join .Site.BaseURL .Site.Params.favicon }}'
250-  }
251-</script>
252-{{ end }}
253-
254-
255 <!-- Search Engine Crawler Tags -->
256 <meta name="robots" content="index,follow" />
257 <meta name="googlebot" content="index,follow" />
258 
259-<!-- Specific Social Media Tags -->
260-<meta name="twitter:site" content="{{ .Site.Params.twitter }}">
261-<meta name="twitter:creator" content="{{ .Site.Params.twitter }}" />
262-
263-
264-<!--            -->
265-<!-- Other Tags -->
266-<!--            -->
267-
268-<!-- Manifest File -->
269-<!-- FIXME -->
270-<!--<link rel="manifest" href="{{ .Site.BaseURL }}manifest.json" />-->
271-
272 <!-- Theme Color -->
273 <meta name="theme-color" content="#141414" />
274 <meta name="msapplication-TileColor" content="#141414" />
275 
276-<meta name="keywords" content="" />
277 <meta name="imagemode" content="force" />
278 <meta name="coverage" content="Worldwide" />
279 <meta name="distribution" content="Global" />
280 <meta name="HandheldFriendly" content="True" />
281-<meta name="msapplication-tap-highlight" content="no" />
282-<meta name="apple-mobile-web-app-title" content="{{ .Site.Params.sitename }}" />
283-<meta name="apple-mobile-web-app-capable" content="yes" />
284-<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
285-<meta name="apple-touch-fullscreen" content="yes" />
286diff --git a/themes/flamingo/layouts/partials/sidebar.html b/themes/flamingo/layouts/partials/sidebar.html
287index 92bbd807edfad014bbaf2319b16c1d8aefb585c8..9070f565bca46b6e751f11c1b6b7b8d22183d2b4 100644
288--- a/themes/flamingo/layouts/partials/sidebar.html
289+++ b/themes/flamingo/layouts/partials/sidebar.html
290@@ -5,7 +5,7 @@ 			<h3>LATEST POSTS</h3>
291 		</div>
292 		<div>
293 			<ul>
294-				{{ range first 5 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
295+				{{ range first 5 .Site.RegularPages }}
296 				<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
297 				{{ end }}
298 			</ul>