Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds i18n support to the theme #49

Merged
merged 11 commits into from
Jun 2, 2019
Prev Previous commit
Next Next commit
Fixed highlightjs condition in header
  • Loading branch information
tomanistor committed May 3, 2018
commit 0186d105ea228f10ed865bc4ab956a2eb237bfa2
8 changes: 4 additions & 4 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
<title>
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{- if .IsHome -}}
{{ .Site.Title }}
{{ .Site.Title }}
{{- else if .Params.heading -}}
{{ .Params.heading }}
{{ .Params.heading }}
{{- else -}}
{{ .Title }} | {{ .Site.Title }}
{{ .Title }} | {{ .Site.Title }}
{{- end -}}
</title>

Expand Down Expand Up @@ -83,7 +83,7 @@
{{ end }}

{{ if .Site.Params.highlightJS }}
{{ if }}
{{ if .Site.Params.highlightJSStyle }}
<link rel="stylesheet" href="{{ .Site.Params.highlightJSStyle }}">
{{ else }}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">
Expand Down