Commit 4b3a3154 authored by Joe Wegner's avatar Joe Wegner

Further customization of theme

parent d09127fd
---
title: "{{ replace .Name "-" " " | title }}"
description: ""
date: {{ .Date }}
draft: true
categories:
- category
tags:
- tag
---
---
title: "{{ replace .Name "-" " " | title }}"
description: ""
date: {{ .Date }}
draft: true
aliases:
- "/posts/{{ .Name }}/"
categories:
- category
tags:
- tag
---
......@@ -4,7 +4,7 @@ title = "jwegner.io"
canonifyURLs = true
SectionPagesMenu = "main"
enableGitInfo = true
description = "a sequence of observations by Joe Wegner"
enableRobotsTXT = true
[author]
name = "Joe Wegner"
......
---
title: "Introduction"
description: "Joe Wegner's initial adventures with Hugo"
date: 2018-08-01T21:51:21-05:00
draft: false
description: "Joe Wegner's initial adventures with Hugo"
aliases:
- "/posts/introduction/"
categories:
- meta
tags:
......@@ -11,10 +13,17 @@ tags:
## Hello There!
My name is Joe. I've been kicking around with various web platforms ([web2py](http://web2py.com/), [django](https://djangoproject.com/), [ghost](https://ghost.org/), etc), for a while now, trying to put up a basic website, but nothing really stuck. Coming from a systems and CS background, I kept thinking that maybe if I found the right stack, I would be interested enough in the platform that I would like writing in it. Of course, this is the classic mistake: I have a hammer, so all problems are now nails.
My name is Joe.
I've been kicking around with various web platforms ([web2py](http://web2py.com/ "web2py homepage"), [django](https://djangoproject.com/ "Django Project homepage"), [ghost](https://ghost.org/ "Ghost homepage"), etc), for a while now, trying to put up a basic website, but nothing really stuck.
Coming from a systems and CS background, I kept thinking that maybe if I found the right stack, I would be interested enough in the platform that I would like writing in it.
Of course, this is the classic mistake: I have a hammer, so all problems are now nails.
Then I started seeing other people using very basic static web pages that were simple to write, but actually looked _good_. Sure, it's really easy to slap together some HTML that will communicate what you want to, but it takes a not-insignificant amount of work to style those pages so that they are not some 90's era pages that have a background of flashing, tiled GIFs. Enter [Hugo](https://gohugo.io): a basic, cross-platform binary with an opinionated file structure that's easy to run as a local devlopment server, all content is written in Markdown, and there are a healthy amount of themes from which to choose.
Then I started seeing other people using very basic static web pages that were simple to write, but actually looked _good_.
Sure, it's really easy to slap together some HTML that will communicate what you want to, but it takes a not-insignificant amount of work to style those pages so that they are not some 90's era pages that have a background of flashing, tiled GIFs.
Enter [Hugo](https://gohugo.io "Hugo homepage"): a basic, cross-platform binary with an opinionated file structure that's easy to run as a local devlopment server, all content is written in Markdown, and there are a healthy amount of themes from which to choose.
So now I'm trying Hugo out on [Netlify](https://netlify.com/). They do make it exceptionally easy to deploy static sites from [Github](https://github.com/), so thank you to the Netlify team for all of your hard work.
So now I'm trying Hugo out on [Netlify](https://netlify.com/ "Netlify static site hosting").
They do make it exceptionally easy to deploy static sites from [Github](https://github.com/ "Github homepage"), so thank you to the Netlify team for all of your hard work.
Soon I will be chronicling my studies in operating system design and implementation, using [Rust](https://www.rust-lang.org/) on a [Raspberry Pi](https://raspberrypi.org/). If that sounds interesting, tune in next time for some more on that topic.
Soon I will be chronicling my studies in operating system design and implementation, using [Rust](https://www.rust-lang.org/ "Rust language homepage") on a [Raspberry Pi](https://raspberrypi.org/ "Raspberry Pi Foundation homepage").
If that sounds interesting, tune in next time for some more on that topic.
---
title: "NaNoWriMo 2018"
description: "Thoughts on preparing for the National Novel Writing month"
date: 2018-10-19T22:45:08-05:00
draft: false
aliases:
- "/posts/nanowrimo2018/"
categories:
- writing
tags:
......
---
title: "RHEL VMware Deployment"
date: 2018-08-20T22:38:34-05:00
description: "Details of PowerCLI script to deploy RHEL 7 VMs in VMware"
date: 2018-08-20T22:38:34-05:00
draft: true
aliases:
- "/posts/rhel-vmware-deployment/"
categories:
- automation
tags:
- rhel
- vmware
- powercli
draft: true
---
Over the last year at work, we have really stepped up our automation efforts.
......@@ -23,7 +25,7 @@ Starting out, I had a few goals in mind:
2. Specify all details in one CSV file
3. Be able to SSH into the machine immediately after deployment
The following code is available in [my git repo](https://github.com/jwegner89/scripts/blob/a871868e5d7b2934273c240ff85e980486b171ef/powershell/Deploy-LinuxVM.ps1).
The following code is available in [my git repo](https://github.com/jwegner89/scripts/blob/a871868e5d7b2934273c240ff85e980486b171ef/powershell/Deploy-LinuxVM.ps1 "Git repo for the following code").
Note that this is the commit that I was working off of while writing, so it may be that there are further updates if you are reading this a substantial amount of time later.
```powershell
......@@ -183,5 +185,5 @@ For one thing, this script proceeds serially through the CSV file, deploying eac
That's not great if you want to deploy hundreds of machines (although at that point you are most likely doing this in a more efficient manner anyway).
Another area that could be improved is the heurisitcs.
In this case, it requires you to know the portgroup name for each VLAN, which is not ideal.
I would love to tie this in with our [Netbox](https://github.com/digitalocean/netbox) DCIM/IPAM application, as that system accurately tracks all of our VLANs, IPs, and virtual machines.
I would love to tie this in with our [Netbox](https://github.com/digitalocean/netbox "Git repo for Netbox project") DCIM/IPAM application, as that system accurately tracks all of our VLANs, IPs, and virtual machines.
The big problem there is that out vCenter inventory does not always map one-to-one with what is in Netbox, so... yeah.
......@@ -13,7 +13,7 @@
<li class="title is-4 is-flex" style="justify-content:space-between">
<span>
<a href="{{ urlize "/" }}{{ $data.Plural }}/{{ $value.Name | urlize }}">
{{ $value.Name }}
{{ replace $value.Name "-" " " }}
</a>
</span>
<span>
......
......@@ -12,10 +12,8 @@
<nav class="level">
<div class="level-left has-text-centered">
<div class="level-item">
<form class="control has-icon has-icon-right" method="get"
action="https://duckduckgo.com">
<input class="input" type="text" name="q" maxlength="255"
placeholder="Search">
<form class="control has-icon has-icon-right" method="get" action="https://duckduckgo.com">
<input class="input" type="text" name="q" maxlength="255" placeholder="Search">
<input class="input" type="hidden" name="sites" value="{{ .Site.BaseURL }}">
<span class="icon is-small"><i class="fas fa-search"></i></span>
</form>
......@@ -23,7 +21,7 @@
</div>
<div class="level-right has-text-centered">
<div class="level-item">
<a class="button" href="{{ .Site.BaseURL }}">
<a class="button" title="Home" href="{{ .Site.BaseURL }}">
<span class="icon"><i class="fas fa-home"></i></span>
</a> &nbsp;
<!-- Most sites have the template https://<site>.com/<user>, so just
......@@ -31,17 +29,16 @@
follow the template will need hard-coding, though... -->
{{- range $key, $value := .Site.Social }}
{{- if eq $key "hacker-news" }}
<a class="button"
href="https://news.ycombinator.com/user?id={{ $value }}">
<a class="button" title="Hacker News" href="https://news.ycombinator.com/user?id={{ $value }}">
<span class="icon"><i class="fab fa-{{ $key }}"></i></span>
</a> &nbsp;
{{- else }}
<a class="button" href="https://{{ $key }}.com/{{ $value }}">
<a class="button" title="{{ $key | title }}" href="https://{{ $key }}.com/{{ $value }}">
<span class="icon"><i class="fab fa-{{ $key }}"></i></span>
</a> &nbsp;
{{- end }}
{{- end }}
<a class="button" href="{{ .Site.RSSLink }}">
<a class="button" title="RSS Feed" href="{{ .Site.RSSLink }}">
<span class="icon"><i class="fas fa-rss"></i></span>
</a>
</div>
......
......@@ -9,76 +9,54 @@
{{- end }}
<meta name="author" content="{{ .Site.Author.name }}" />
{{- if .IsPage }}
<meta name="description"
content="{{ with .Description }}{{ . -}}
{{ else }}{{ .Content | safeHTML | truncate 200 "..." -}}
{{ end }}"/>
<meta name="description" content="{{ with .Params.description }}{{ . -}}{{ else }}{{ .Content | safeHTML | truncate 200 "..." -}}{{ end }}"/>
{{- else }}
<meta name="description"
content="{{ with .Description }}{{ . -}}
{{ else }}{{ .Params.description -}}
{{ end }}"/>
<meta name="description" content="{{ with .Site.Params.description }}{{ . -}}{{ else }}{{ .Content | safeHTML | truncate 200 "..." -}}{{ end }}"/>
{{- end }}
{{ .Hugo.Generator }}
<link rel="canonical" href="{{ .Permalink }}"/>
<meta name="robots" content="index,follow">
<meta name="googlebot" content="index,follow">
<!-- Schema.org markup for Google+ -->
<meta itemprop="name" content="{{ .Title }}"/>
{{- if .IsPage }}
<meta itemprop="description"
content="{{ with .Description }}{{ . -}}
{{ else }}{{ .Content | safeHTML | truncate 200 "..." -}}
{{ end }}"/>
<meta itemprop="description" content="{{ with .Params.description }}{{ . -}}{{ else }}{{ .Content | safeHTML | truncate 200 "..." -}}{{ end }}"/>
{{- else }}
<meta itemprop="description"
content="{{ with .Description }}{{ . -}}
{{ else }}{{ .Params.description -}}
{{ end }}"/>
<meta itemprop="description" content="{{ with .Site.Params.description }}{{ . -}}{{ else }}{{ .Params.description -}}{{ end }}"/>
{{- end }}
<meta itemprop="image"
content="{{ with .Params.image }}{{ . -}}
<meta itemprop="image" content="{{ with .Params.image }}{{ . -}}
{{ else -}}
{{ if (fileExists (print "/static" .Site.Data.defaults.icons.logo)) -}}
{{ .Site.Data.defaults.icons.logo -}}
{{ end -}}
{{ end }}"/>
<!-- OpenGraph data -->
<meta property="og:site_name" content="{{ .Site.Title }}"/>
<meta property="og:title" content="{{ .Title }}"/>
<meta property="og:type"
content="{{ if .IsPage }}article{{ else }}website{{ end }}"/>
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}"/>
<meta property="og:url" content="{{ .Permalink }}"/>
<meta property="og:image"
content="{{ with .Params.image }}{{ . -}}
<meta property="og:image" content="{{ with .Params.image }}{{ . -}}
{{ else -}}
{{ if (fileExists (print "/static" .Site.Data.defaults.icons.logo)) -}}
{{ .Site.Data.defaults.icons.logo -}}
{{ end -}}
{{ end }}"/>
{{- if .IsPage }}
<meta property="og:description"
content="{{ with .Description }}{{ . -}}
{{ else }}{{ .Content | safeHTML | truncate 200 "..." -}}
{{ end }}"/>
<meta property="og:description" content="{{ with .Params.description }}{{ . -}}{{ else }}{{ .Content | safeHTML | truncate 200 "..." -}}{{ end }}"/>
{{- else }}
<meta property="og:description"
content="{{ with .Description }}{{ . -}}
{{ else }}{{ .Params.description -}}
{{ end }}"/>
<meta property="og:description" content="{{ with .Params.description }}{{ . -}}{{ else }}{{ .Site.Params.description -}}{{ end }}"/>
{{- end }}
<meta property="og:site_name" content="{{ .Site.Title }}"/>
{{- if .GitInfo }}
<meta property="og:updated_time"
content="{{ .GitInfo.AuthorDate.Format "2006-01-02T15:04:05-07:00" | safeHTML }}"/>
<meta property="og:updated_time" content="{{ .GitInfo.AuthorDate.Format "2006-01-02T15:04:05-07:00" | safeHTML }}"/>
{{- end }}
{{- if .IsPage }}
{{- if not .PublishDate.IsZero }}
<meta property="article:published_time"
content="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTML }}"/>
<meta property="article:published_time" content="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTML }}"/>
{{- else if not .Date.IsZero }}
<meta property="article:published_time"
content="{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}"/>
<meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}"/>
{{- end }}
{{- if .GitInfo }}
<meta property="article:modified_time"
content="{{ .GitInfo.AuthorDate.Format "2006-01-02T15:04:05-07:00" | safeHTML }}"/>
<meta property="article:modified_time" content="{{ .GitInfo.AuthorDate.Format "2006-01-02T15:04:05-07:00" | safeHTML }}"/>
{{- end }}
{{- end }}
{{- with .Site.Social.facebook }}
......@@ -92,17 +70,16 @@
<!-- Twitter card data -->
<!-- twitter:card can also be summary_large_image -->
<meta name="twitter:card" content="summary"/>
<meta name="twitter:site"
content="{{ with .Site.Social.twitter }}@{{.}}{{ end }}"/>
<meta name="twitter:site" content="{{ with .Site.Social.twitter }}@{{.}}{{ end }}"/>
<meta name="twitter:creator" content="{{ with .Site.Social.twitter }}@{{.}}{{ end }}"/>
<meta name="twitter:title" content="{{ .Title }}"/>
<meta name="twitter:description"
content="{{ with .Description }}{{ . -}}
{{ else }}{{ .Content | safeHTML | truncate 200 "..." -}}
{{ end }}"/>
<meta name="twitter:creator"
content="{{ with .Site.Social.twitter }}@{{.}}{{ end }}"/>
<meta name="twitter:image:src"
content="{{ with .Params.image }}{{. -}}
<meta name="twitter:url" content="{{ .Permalink }}">
{{- if .IsPage }}
<meta name="twitter:description" content="{{ with .Params.description }}{{ . -}}{{ else }}{{ .Content | safeHTML | truncate 200 "..." -}}{{ end }}"/>
{{- else }}
<meta name="twitter:description" content="{{ with .Params.description }}{{ . -}}{{ else }}{{ .Site.Params.description }}{{ . -}}{{ end }}"/>
{{- end }}
<meta name="twitter:image:src" content="{{ with .Params.image }}{{. -}}
{{ else -}}
{{ if (fileExists (print "/static" .Site.Data.defaults.icons.logo)) -}}
{{ .Site.Data.defaults.icons.logo -}}
......@@ -110,26 +87,21 @@
{{ end }}"/>
<!-- RSS -->
{{- if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml"
title="{{ .Site.Title }}"/>
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml"
title="{{ .Site.Title }}"/>
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}"/>
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}"/>
{{- end }}
<!-- CSS -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css" integrity="sha256-2pUeJf+y0ltRPSbKOeJh09ipQFYxUdct5nTY6GAXswA=" crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="/css/custom.min.css"/>
{{ with .Params.css }}{{ . | safeCSS | htmlUnescape | safeHTML }}{{ end -}}
<!-- JS -->
<script defer src="https://use.fontawesome.com/releases/v5.4.1/js/all.js" integrity="sha384-L469/ELG4Bg9sDQbl0hvjMq8pOcqFgkSpwhwnslzvVVGpDjYJ6wJJyYjvG3u8XW7" crossorigin="anonymous"></script>
{{ with .Params.js }}{{ . | safeJS | htmlUnescape | safeHTML }}{{ end -}}
<!-- Favicons -->
{{ if (fileExists (print "/static" .Site.Data.defaults.icons.appleicon)) -}}
<link rel="apple-touch-icon" href="{{ .Site.Data.defaults.icons.appleicon }}"/>
{{ end -}}
{{ if (fileExists (print "/static" .Site.Data.defaults.icons.favicon)) -}}
<link rel="icon" href="{{ .Site.Data.defaults.icons.favicon }}"/>
{{ end -}}
<link rel="icon" href="/img/favicon.ico"/>
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/img/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="192x192" href="/img/android-icon-192x192.png">
<link rel="apple-touch-icon" sizes="57x57" href="/img/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/img/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/img/apple-icon-72x72.png">
......@@ -139,10 +111,6 @@
<link rel="apple-touch-icon" sizes="144x144" href="/img/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/img/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/img/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/img/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
<link rel="manifest" href="/img/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/img/ms-icon-144x144.png">
......
......@@ -10,7 +10,7 @@
</a>
<!-- Using a <label /> here -->
<label class="button navbar-burger is-dark" for="navbar-burger-state">
<span></span> <!--^^^^^^^^^^^^^^^^^^^-->
<span></span>
<span></span>
<span></span>
</label>
......
<nav class="navbar has-shadow is-white"
role="navigation" aria-label="main navigation">
<nav class="navbar has-shadow is-white" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="/">
......@@ -10,7 +9,7 @@
</a>
<!-- Using a <label /> here -->
<label class="button navbar-burger is-white" for="navbar-burger-state">
<span></span> <!--^^^^^^^^^^^^^^^^^^^-->
<span></span>
<span></span>
<span></span>
</label>
......@@ -21,12 +20,7 @@
<div class="navbar-end">
{{- $node := . }}
{{- range .Site.Menus.main }}
<a href="{{ .URL }}"
class="navbar-item
{{ if or ($node.IsMenuCurrent "main" .) ($node.HasMenuCurrent "main" .) -}}
is-active
{{- end }}">{{ .Name }}
</a>
<a href="{{ .URL }}" class="navbar-item {{ if or ($node.IsMenuCurrent "main" .) ($node.HasMenuCurrent "main" .) -}}is-active{{- end }}">{{ .Name }}</a>
{{- end }}
</div>
</div>
......
<nav class="pagination">
{{- if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL}}" class="pagination-previous">Previous</a>
<a title="Previous" href="{{ .Paginator.Prev.URL}}" class="pagination-previous">Previous</a>
{{- else }}
<a class="pagination-previous" disabled>Previous</a>
<a title="Previous" class="pagination-previous" disabled>Previous</a>
{{- end }}
{{- if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL}}" class="pagination-next">Next</a>
<a title="Next" href="{{ .Paginator.Next.URL}}" class="pagination-next">Next</a>
{{- else }}
<a class="pagination-next" disabled>Next</a>
<a title="Next" class="pagination-next" disabled>Next</a>
{{- end }}
<ul class="pagination-list">
{{- if .Paginator.HasPrev }}
{{- if eq .Paginator.Prev.PageNumber 1 }}
<li><a href="{{ .Paginator.Prev.URL }}" class="pagination-link">
{{ .Paginator.Prev.PageNumber }}
</a></li>
<li><a href="{{ .Paginator.Prev.URL }}" class="pagination-link">{{ .Paginator.Prev.PageNumber }}</a></li>
{{- else }}
<li><a href="{{ .Paginator.First.URL }}" class="pagination-link">
{{ .Paginator.First.PageNumber }}
</a></li>
<li><a href="{{ .Paginator.First.URL }}" class="pagination-link">{{ .Paginator.First.PageNumber }}</a></li>
{{- if ne .Paginator.Prev.Prev.PageNumber 1 }}
<li>
<span class="pagination-ellipsis">&hellip;</span>
</li>
<li><span class="pagination-ellipsis">&hellip;</span></li>
{{- end }}
<li><a href="{{ .Paginator.Prev.URL }}" class="pagination-link">
{{ .Paginator.Prev.PageNumber }}
</a></li>
<li><a href="{{ .Paginator.Prev.URL }}" class="pagination-link">{{ .Paginator.Prev.PageNumber }}</a></li>
{{- end }}
{{- end }}
<li><a href="{{ .Paginator.URL }}" class="pagination-link is-current">
{{ .Paginator.PageNumber }}
</a></li>
<li><a href="{{ .Paginator.URL }}" class="pagination-link is-current">{{ .Paginator.PageNumber }}</a></li>
{{- if .Paginator.HasNext }}
{{- if eq .Paginator.Next.PageNumber .Paginator.Last.PageNumber }}
<li><a href="{{ .Paginator.Next.URL }}" class="pagination-link">
{{ .Paginator.Next.PageNumber }}
</a></li>
<li><a href="{{ .Paginator.Next.URL }}" class="pagination-link">{{ .Paginator.Next.PageNumber }}</a></li>
{{- else }}
<li><a href="{{ .Paginator.Next.URL }}" class="pagination-link">
{{ .Paginator.Next.PageNumber }}
</a></li>
<li><a href="{{ .Paginator.Next.URL }}" class="pagination-link">{{ .Paginator.Next.PageNumber }}</a></li>
{{- if ne .Paginator.Next.Next.PageNumber .Paginator.Last.PageNumber }}
<li>
<span class="pagination-ellipsis">&hellip;</span>
</li>
<li><span class="pagination-ellipsis">&hellip;</span></li>
{{- end }}
<li><a href="{{ .Paginator.Last.URL }}" class="pagination-link">
{{- .Paginator.Last.PageNumber }}
</a></li>
<li><a href="{{ .Paginator.Last.URL }}" class="pagination-link">{{- .Paginator.Last.PageNumber }}</a></li>
{{- end }}
{{- end }}
</ul>
......
......@@ -6,19 +6,10 @@
{{- if .Prev }}
<a class="button" href="{{ .Prev.Permalink }}">
<span class="icon is-small"><i class="fas fa-chevron-left"></i></span>
<span class="is-hidden-touch is-hidden-desktop-only">
{{ .Prev.Title | truncate 100 "..." }}
</span>
<span class="is-hidden-touch is-hidden-widescreen">
{{ .Prev.Title | truncate 75 "..." }}
</span>
<span class="is-hidden-mobile is-hidden-desktop">
{{ .Prev.Title | truncate 50 "..." }}
</span>
<span class="is-hidden-tablet">
{{ .Prev.Title | truncate 40 "..." }}
</span>
<!-- <span>&nbsp;| {{ title .Prev.Section | pluralize }}</span> -->
<span class="is-hidden-touch is-hidden-desktop-only">{{ .Prev.Title | truncate 100 "..." }}</span>
<span class="is-hidden-touch is-hidden-widescreen">{{ .Prev.Title | truncate 75 "..." }}</span>
<span class="is-hidden-mobile is-hidden-desktop">{{ .Prev.Title | truncate 50 "..." }}</span>
<span class="is-hidden-tablet">{{ .Prev.Title | truncate 40 "..." }}</span>
</a>
{{- else }}
<a class="button" href="#" disabled>
......@@ -34,19 +25,10 @@
<p class="control has-addons">
{{- if .Next }}
<a class="button" href="{{ .Next.Permalink }}">
<span class="is-hidden-touch is-hidden-desktop-only">
{{ .Next.Title | truncate 100 "..." }}
</span>
<span class="is-hidden-touch is-hidden-widescreen">
{{ .Next.Title | truncate 75 "..." }}
</span>
<span class="is-hidden-mobile is-hidden-desktop">
{{ .Next.Title | truncate 50 "..." }}
</span>
<span class="is-hidden-tablet">
{{ .Next.Title | truncate 40 "..." }}
</span>
<!-- <span>&nbsp;| {{ title .Next.Section | pluralize }}</span> -->
<span class="is-hidden-touch is-hidden-desktop-only">{{ .Next.Title | truncate 100 "..." }}</span>
<span class="is-hidden-touch is-hidden-widescreen">{{ .Next.Title | truncate 75 "..." }}</span>
<span class="is-hidden-mobile is-hidden-desktop">{{ .Next.Title | truncate 50 "..." }}</span>
<span class="is-hidden-tablet">{{ .Next.Title | truncate 40 "..." }}</span>
<span class="icon is-small"><i class="fas fa-chevron-right"></i></span>
</a>
{{- else }}
......
......@@ -6,25 +6,15 @@
{{- if .NextInSection }}
<a class="button" href="{{ .NextInSection.Permalink }}">
<span class="icon is-small"><i class="fas fa-chevron-left"></i></span>
<span class="is-hidden-touch is-hidden-desktop-only">
{{ .NextInSection.Title | truncate 100 "..." }}
</span>
<span class="is-hidden-touch is-hidden-widescreen">
{{ .NextInSection.Title | truncate 75 "..." }}
</span>
<span class="is-hidden-mobile is-hidden-desktop">
{{ .NextInSection.Title | truncate 50 "..." }}
</span>
<span class="is-hidden-tablet">
{{ .NextInSection.Title | truncate 40 "..." }}
</span>
<!-- <span>&nbsp;| {{ title .Section | pluralize }}</span> -->
<span class="is-hidden-touch is-hidden-desktop-only">{{ .NextInSection.Title | truncate 100 "..." }}</span>
<span class="is-hidden-touch is-hidden-widescreen">{{ .NextInSection.Title | truncate 75 "..." }}</span>
<span class="is-hidden-mobile is-hidden-desktop">{{ .NextInSection.Title | truncate 50 "..." }}</span>
<span class="is-hidden-tablet">{{ .NextInSection.Title | truncate 40 "..." }}</span>
</a>
{{- else }}
<a class="button" href="#" disabled>
<span class="icon is-small"><i class="fas fa-chevron-left"></i></span>
<span>Newest</span>
<!-- <span>&nbsp;| {{ title .Section | pluralize }}</span> -->
</a>
{{- end }}
</p>
......@@ -35,25 +25,15 @@
<p class="control has-addons">
{{- if .PrevInSection }}
<a class="button" href="{{ .PrevInSection.Permalink }}">
<span class="is-hidden-touch is-hidden-desktop-only">
{{ .PrevInSection.Title | truncate 100 "..." }}
</span>
<span class="is-hidden-touch is-hidden-widescreen">
{{ .PrevInSection.Title | truncate 75 "..." }}
</span>
<span class="is-hidden-mobile is-hidden-desktop">
{{ .PrevInSection.Title | truncate 50 "..." }}
</span>
<span class="is-hidden-tablet">
{{ .PrevInSection.Title | truncate 40 "..." }}
</span>
<!-- <span>&nbsp;| {{ title .Section | pluralize }}</span> -->
<span class="is-hidden-touch is-hidden-desktop-only">{{ .PrevInSection.Title | truncate 100 "..." }}</span>
<span class="is-hidden-touch is-hidden-widescreen">{{ .PrevInSection.Title | truncate 75 "..." }}</span>
<span class="is-hidden-mobile is-hidden-desktop">{{ .PrevInSection.Title | truncate 50 "..." }}</span>
<span class="is-hidden-tablet">{{ .PrevInSection.Title | truncate 40 "..." }}</span>
<span class="icon is-small"><i class="fas fa-chevron-right"></i></span>
</a>
{{- else }}
<a class="button" href="#" disabled>
<span>Oldest</span>
<!-- <span>&nbsp;| {{ title .Section | pluralize }}</span> -->
<span class="icon is-small"><i class="fas fa-chevron-right"></i></span>
</a>
{{- end }}
......
<div class="container">
<div class="is-flex">
<!--
<span>
<a class="button">Share</a>
</span>
&nbsp;
-->
<span>
<!-- Facebook -->
<a class="button"
href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}">
<a class="button" title="Facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}">
<span class="icon"><i class="fab fa-facebook"></i></span>
</a>
<!-- Twitter -->
<a class="button"
href="https://twitter.com/intent/tweet?url={{ .Permalink }}&text={{ .Title }}{{ with .Site.Social.twitter}}&via=@{{.}}{{ end }}">
<a class="button" title="Twitter" href="https://twitter.com/intent/tweet?url={{ .Permalink }}&text={{ .Title }}{{ with .Site.Social.twitter}}&via=@{{.}}{{ end }}">
<span class="icon"><i class="fab fa-twitter"></i></span>
</a>
<!-- Hacker News -->
<a class="button"
href="https://news.ycombinator.com/submitlink?u={{ .Permalink }}">
<a class="button" title="Hacker News" href="https://news.ycombinator.com/submitlink?u={{ .Permalink }}">
<span class="icon"><i class="fab fa-hacker-news"></i></span>
</a>
<!-- Reddit -->
<a class="button"
href="https://reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}">
<a class="button" title="Reddit" href="https://reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}">
<span class="icon"><i class="fab fa-reddit"></i></span>
</a>
<!-- Google+ -->
<a class="button"
href="https://plus.google.com/share?url={{ .Permalink }}">
<a class="button" title="Google Plus" href="https://plus.google.com/share?url={{ .Permalink }}">
<span class="icon"><i class="fab fa-google-plus"></i></span>
</a>
<!-- Linkedin -->
<a class="button"
href="https://www.linkedin.com/shareArticle?url={{ .Permalink }}&title={{ .Title }}">
<a class="button" title="LinkedIn" href="https://www.linkedin.com/shareArticle?url={{ .Permalink }}&title={{ .Title }}">
<span class="icon"><i class="fab fa-linkedin"></i></span>
</a>
<!-- Tumblr -->
<a class="button"
href="https://www.tumblr.com/widgets/share/tool?canonicalUrl={{ .Permalink }}&title={{ .Title }}&caption={{ with .Params.description }}{{.}}{{ end }}">
<a class="button" title="Tumblr" href="https://www.tumblr.com/widgets/share/tool?canonicalUrl={{ .Permalink }}&title={{ .Title }}&caption={{ with .Params.description }}{{.}}{{ end }}">
<span class="icon"><i class="fab fa-tumblr"></i></span>
</a>
<!-- Pinterest -->
<a class="button"
href="https://pinterest.com/pin/create/bookmarklet/?media={{ with .Params.image }}{{.}}{{ else }}{{ if (fileExists (print "/static" .Site.Data.defaults.icons.logo)) }}{{ .Site.Data.defaults.icons.logo }}{{ end }}{{ end }}&url={{ .Permalink }}&description={{ .Title }}">
<a class="button" title="Pinterest" href="https://pinterest.com/pin/create/bookmarklet/?media={{ with .Params.image }}{{.}}{{ else }}{{ if (fileExists (print "/static" .Site.Data.defaults.icons.logo)) }}{{ .Site.Data.defaults.icons.logo }}{{ end }}{{ end }}&url={{ .Permalink }}&description={{ .Title }}">
<span class="icon"><i class="fab fa-pinterest"></i></span>
</a>
<!-- Whatsapp -->
<a class="button"
href="whatsapp://send?text={{ .Permalink }}">
<a class="button" title="WhatsApp" href="whatsapp://send?text={{ .Permalink }}">
<span class="icon"><i class="fab fa-whatsapp"></i></span>
</a>
<!-- Skype -->
<a class="button"
href="https://web.skype.com/share?url={{ .Permalink }}">
<a class="button" title="Skype" href="https://web.skype.com/share?url={{ .Permalink }}">
<span class="icon"><i class="fab fa-skype"></i></span>
</a>
</span>
......
......@@ -7,7 +7,7 @@
<li>
<a href="{{ "/" | relLangURL }}{{ (printf "%s/%s" $name $key) | urlize | lower }}">
<div class="tags has-addons">
<span class="tag">{{ $key | humanize | title }}</span>
<span class="tag">{{ replace $key "-" " " }}</span>
<span class="tag is-link">{{ len $value }}</span>
</div>
</a>
......
......@@ -19,7 +19,7 @@
{{- range $item := $value }}
<div class="control">
<a href="{{ "/" | relLangURL }}{{ (printf "%s/%s" $name $item) | urlize | lower }}">
<span class="tag">{{ $item | humanize | title }}</span>
<span class="tag">{{ replace $item "-" " " }}</span>
</a>
</div>
{{- end }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment