diff --git a/README.md b/README.md index 95ea840..e9d2275 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,10 @@ You can see a real site in action [here](https://htr3n.github.io). ![hyde-hyde main screen](https://github.com/htr3n/hyde-hyde/blob/master/images/posts.png) ## Notable Changes -* Migrated to [Font-Awesome 5](https://fontawesome.com) -* The color tone is inspired by [Nate Finch's blog](https://npf.io) -* Main font [Fira-Sans](https://fonts.google.com/specimen/Fira+Sans) +* Using [highlight.js](https://highlightjs.org) for highlighting code +* Using [Font-Awesome 5](https://fontawesome.com) for icons +* Color tones are inspired by [Nate Finch's blog](https://npf.io) +* Main font [Fira-Sans](https://fonts.google.com/specimen/Fira+Sans) + fixed width font [Roboto Mono](https://fonts.google.com/specimen/Roboto+Mono) ## Installation diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7b64fd3..2afbf10 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -5,8 +5,8 @@ languageCode = "en" theme = "hyde-hyde" ## Hugo Built-in Features -# disqusShortname = "" -# googleAnalytics = "" +# disqusShortname = "your-disqus-shortname" +# googleAnalytics = "your-google-analytics-id" # enableRobotsTXT = true ## Site Settings @@ -18,6 +18,8 @@ theme = "hyde-hyde" dateformat = "Jan 2, 2006" highlightjs = true # highlightjsstyle = "github" + # please choose either GraphComment or Disqus + # GraphCommentId = "your-graph-comment-id" ## Social Accounts [params.social] diff --git a/layouts/partials/header.html b/layouts/partials/header.html index cbe4b9e..f74d593 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,10 +1,10 @@ - {{ "" | safeHTML }} + {{ "" | safeHTML }} {{ with .Site.Params.meta.description -}}{{- end }} - {{ with .Site.Params.meta.keywords -}}{{- end }} + {{ with .Site.Params.meta.keywords -}}{{- end }} {{ .Hugo.Generator }} {{ if .IsHome -}} {{ .Site.Title }} @@ -12,20 +12,20 @@ {{ .Title }} · {{ .Site.Title }} {{- end }} - - {{ "" | safeHTML }} + + {{ "" | safeHTML }} - + {{ "" | safeHTML }} {{ if .Site.Params.highlightjs -}} - {{ "" | safeHTML }} + {{ "" | safeHTML }} {{- end }} {{ if .Site.Params.PygmentsUseClasses -}} - {{ "" | safeHTML }} + {{ "" | safeHTML }} {{- end }} {{- "" | safeHTML }} @@ -39,7 +39,7 @@ {{ if .RSSLink -}} - {{ "" | safeHTML }} + {{ "" | safeHTML }} {{- end }} diff --git a/layouts/partials/post_content.html b/layouts/partials/post_content.html index 5f68be4..53905f8 100644 --- a/layouts/partials/post_content.html +++ b/layouts/partials/post_content.html @@ -30,6 +30,8 @@ {{ end }} {{ end }} {{ end }} +
+ {{ .ReadingTime }} min read {{ end }} diff --git a/layouts/partials/post_footer.html b/layouts/partials/post_footer.html index 1a5b2d6..870e307 100644 --- a/layouts/partials/post_footer.html +++ b/layouts/partials/post_footer.html @@ -14,9 +14,7 @@

Comments

{{ partial "post_disqus.html" . }} {{ end }} -{{- end }} - -{{ if .Site.Params.GraphCommentId -}} +{{ else if .Site.Params.GraphCommentId -}}