mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 08:18:30 +00:00
Clean up relURLs and extraneous templating
This commit is contained in:
1 parent
1a0f38ad74
commit
96544d2342
2 files changed
+4
-8
No files matched your search
@@ -1,5 +1,4 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{$title := .Title}}
|
|
||||||
<span id="page-top"></span>
|
<span id="page-top"></span>
|
||||||
<main class="main">
|
<main class="main">
|
||||||
<article class="content" id="{{.Title | urlize}}">
|
<article class="content" id="{{.Title | urlize}}">
|
||||||
@@ -8,11 +7,6 @@
|
|||||||
{{- partial "page-title.html" . -}}
|
{{- partial "page-title.html" . -}}
|
||||||
{{- partial "content-header-links.html" . -}}
|
{{- partial "content-header-links.html" . -}}
|
||||||
{{- partial "tags.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>
|
</header>
|
||||||
<div class="body-copy" data-section={{.Section | urlize}}>
|
<div class="body-copy" data-section={{.Section | urlize}}>
|
||||||
{{.Content}}
|
{{.Content}}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</header>
|
</header>
|
||||||
<div class="body-copy taxonomies">
|
<div class="body-copy taxonomies">
|
||||||
{{ $data := .Data }}
|
{{ $data := .Data }}
|
||||||
{{ $dataPlural := .Title | urlize}}
|
{{ $dataPlural := add (.Title | urlize) "/"}}
|
||||||
{{ $base := $.Site.BaseURL }}
|
{{ $base := $.Site.BaseURL }}
|
||||||
<table class="terms-table">
|
<table class="terms-table">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -17,8 +17,10 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
||||||
|
{{$val := $value.Name | urlize}}
|
||||||
|
{{$valurl := add $dataPlural $val}}
|
||||||
<tr>
|
<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>
|
<td>{{ $value.Count }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in new issue
Block a user