mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-12 11:40:40 +00:00
more docs + link fixing
This commit is contained in:
parent
6896cb007b
commit
92d18b1ee5
10 changed files with 125 additions and 16 deletions
layouts
|
@ -1,2 +1,7 @@
|
|||
{{$trimmed := strings.TrimSuffix ".md" (.Destination | safeURL)}}
|
||||
<a href="{{ if (hasPrefix $trimmed "/") }}{{ $trimmed }}{{ else }}{{ print "/" $trimmed }}{{ end }}" rel="noopener">{{ .Text | safeHTML }}</a>
|
||||
{{$external := strings.HasPrefix $trimmed "http" }}
|
||||
{{ if $external }}
|
||||
<a href="{{ $trimmed }}" rel="noopener">{{ .Text | safeHTML }}</a>
|
||||
{{else}}
|
||||
<a href="{{ if (hasPrefix $trimmed "/") }}{{ $trimmed }}{{ else }}{{ print "/" $trimmed }}{{ end }}" rel="noopener">{{ .Text | safeHTML }}</a>
|
||||
{{end}}
|
|
@ -1,8 +1,4 @@
|
|||
<head>
|
||||
<link rel="preconnect" href="https://www.googletagmanager.com">
|
||||
<link crossorigin rel="preconnect" href="https://www.google-analytics.com">
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
|
||||
<!-- Meta tags -->
|
||||
<meta charset="UTF-8">
|
||||
<meta name="description" content="{{$.Site.Data.config.description}}">
|
||||
|
@ -21,4 +17,5 @@
|
|||
</style>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</head>
|
||||
</head>
|
||||
{{ template "_internal/google_analytics.html" . }}
|
Loading…
Add table
Add a link
Reference in a new issue