mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 15:58:53 +00:00
Clean up relURLs and extraneous templating
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
{{ define "main" }}
|
||||
{{$title := .Title}}
|
||||
<span id="page-top"></span>
|
||||
<main class="main">
|
||||
<article class="content" id="{{.Title | urlize}}">
|
||||
@@ -8,11 +7,6 @@
|
||||
{{- partial "page-title.html" . -}}
|
||||
{{- partial "content-header-links.html" . -}}
|
||||
{{- partial "tags.html" . -}}
|
||||
<!-- temporary WIP badge; should be removed before site launch -->
|
||||
<!-- {{- if .Params.wip -}}
|
||||
<div id="beingreviewed">WIP</div>
|
||||
{{- end -}} -->
|
||||
{{ $title := .Title }}
|
||||
</header>
|
||||
<div class="body-copy" data-section={{.Section | urlize}}>
|
||||
{{.Content}}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</header>
|
||||
<div class="body-copy taxonomies">
|
||||
{{ $data := .Data }}
|
||||
{{ $dataPlural := .Title | urlize}}
|
||||
{{ $dataPlural := add (.Title | urlize) "/"}}
|
||||
{{ $base := $.Site.BaseURL }}
|
||||
<table class="terms-table">
|
||||
<thead>
|
||||
@@ -17,8 +17,10 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
||||
{{$val := $value.Name | urlize}}
|
||||
{{$valurl := add $dataPlural $val}}
|
||||
<tr>
|
||||
<td><a href="{{ $base }}{{ $dataPlural }}/{{$value.Name | urlize}}">{{ $value.Name }}</a></td>
|
||||
<td><a href="{{ $valurl | relURL}}">{{ $value.Name }}</a></td>
|
||||
<td>{{ $value.Count }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user