Skip to content

Commit

Permalink
Add relative linking to menu item template and remove base url from h…
Browse files Browse the repository at this point in the history
…eader template (#84)
  • Loading branch information
jsigee87 authored Jun 24, 2020
1 parent e04ee2c commit 2af02b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
{{ with .Site.Params.meta.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.meta.keywords }}<meta name="keywords" content="{{.}}">{{ end }}

<base href="{{ .Site.BaseURL }}">

<title>
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{ if eq $url "" }} {{ .Site.Title }} {{ else }} {{ .Site.Title }} - {{ .Title }} {{ end }}
</title>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/li.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ul >
{{ range .Data.Pages.ByPublishDate.Reverse }}
<li class="list-entry">
<a class="list-entry-link" href="{{ .Permalink }}">{{ .Title }}</a>
<a class="list-entry-link" href="{{ .RelPermalink }}">{{ .Title }}</a>
<p class="meta">
{{ if not .Date.IsZero }} {{ .Date.Format .Site.Params.dateformat | upper }} {{end}}
<span class="category">
Expand Down

0 comments on commit 2af02b2

Please sign in to comment.