Skip to content
Permalink
Browse files

Upgrading hugo and using the build in highlighting

  • Loading branch information
aaronpowell committed Nov 29, 2019
1 parent f865563 commit fac2ae4c8db58f6b4b010522769fc928eb0e1983
BIN +18.1 MB (190%) hugo
Binary file not shown.
@@ -34,7 +34,7 @@ home = [ "HTML", "RSS", "JSON"]
ajaxFormspree = true

# Code highlighting with highlight.js
highlightJS = true
highlightJS = false
highlightJSStyle = "/highlightjs/styles/shades-of-purple.css" # For custom highlight.js styles, add your /path/to/styles/default.css
highlightJSScript = "/highlightjs/highlight.pack.js" # For custom highlight.js languages config, add your /path/to/highlight.pack.js

@@ -54,3 +54,14 @@ home = [ "HTML", "RSS", "JSON"]
name = "Search"
url = "/search"
weight = 4

[markup]
[markup.highlight]
codeFences = true
hl_Lines = ""
lineNoStart = 1
lineNos = true
lineNumbersInTable = true
noClasses = true
style = "monokailight"
tabWidth = 4
@@ -1,3 +1,7 @@
---
hidden: true
---

Hi, my name's Aaron Powell and I'm a [Cloud Developer Advocate (CDA) at Microsoft](https://developer.microsoft.com/en-us/advocates/index.html). My area of specialty is front-end web development, focusing on architecture around SPA and other UI-heavy web applications.

I'm also a passionate Open Source developer, with one of my main pet projects being [Chauffeur](https://github.com/aaronpowell/chauffeur) an automation tool for the [Umbraco CMS](http://umbraco.com).
@@ -1,5 +1,6 @@
---
title: Search
hidden: true
---

The following is an experiment in how to build a search index using [Blazor](https://dotnet.microsoft.com/apps/aspnet/web-apps/blazor?{{<cda>}}).
@@ -1,3 +1,6 @@
---
hidden: true
---
I currently have no speaking engagements.

Interested in any of my talks? Get in touch!
@@ -9,7 +9,7 @@
<section class="content">
<h1>{{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Title }} {{ end }}</h1>

{{ if eq (.Dir) ("posts/") }}
{{ if eq (.File.Dir) ("posts/") }}

<div class="sub-header">
{{ .Date.Format (.Site.Params.dateform | default "January 2, 2006") }} · {{ .ReadingTime }} minute read
@@ -1,6 +1,6 @@
{
"posts": [
{{ range $i, $e := where (.Data.Pages) ".Params.hidden" "!=" true }}
{{ range $i, $e := where (.Site.RegularPages) ".Params.hidden" "!=" true }}
{{- if and $i (gt $i 0) -}},{{- end }}{
"title": {{ .Title | jsonify }},
"url": "{{ .Permalink }}",
@@ -5,7 +5,7 @@
</div>
<div class="row">
<div class="col-xs-12 posts-list">
{{ range first 5 (where .Data.Pages "Section" "posts") }}
{{ range first 5 (.Site.RegularPages) }}
<article>
<h2>
<a href="{{ .Permalink }}">{{ .Title }}</a>
@@ -12,7 +12,7 @@
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range $i, $e := where (.Data.Pages) ".Params.hidden" "!=" true }}
{{ range $i, $e := where (.Site.RegularPages) ".Params.hidden" "!=" true }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
@@ -28,7 +28,7 @@
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer-when-downgrade">
<meta name="generator" content="{{ .Hugo.Generator }}">
<meta name="generator" content="{{ hugo.Generator }}">
<base href="{{ .Site.BaseURL }}">

{{ if .Description }}
@@ -72,9 +72,7 @@

<link rel="canonical" href="{{ .Permalink }}">

{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">
{{ end }}
<link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">

<link rel="stylesheet" href="{{ .Site.BaseURL }}/styles/{{ if .Site.Params.cacheBustCSS }}{{ index .Site.Data.cachedAssets "main.css" }}{{ else }}main.css{{ end }}" type="text/css">

@@ -5,7 +5,6 @@ description = "Clean, responsive one-page portfolio accompanied by a minimalist
homepage = "https://github.com/tomanistor/osprey"
tags = ["blog", "portfolio", "gallery", "minimalist", "responsive", "flexbox"]
features = ["blog", "portfolio", "google analytics"]
min_version = 0.24.1

[author]
name = "Toma Nistor"

0 comments on commit fac2ae4

Please sign in to comment.
You can’t perform that action at this time.