IMPROVEMENT: Permalink -> RelPermalink
This commit is contained in:
parent
ad503162f2
commit
bf1d1e396a
5 changed files with 24 additions and 24 deletions
|
@ -14,29 +14,29 @@
|
|||
<script src="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.js"></script>
|
||||
|
||||
<!-- favicon -->
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="{{ (resources.Get "favicon/apple-icon-57x57.png").Permalink }}">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="{{ (resources.Get "favicon/apple-icon-60x60.png").Permalink }}">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="{{ (resources.Get "favicon/apple-icon-72x72.png").Permalink }}">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="{{ (resources.Get "favicon/apple-icon-76x76.png").Permalink }}">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="{{ (resources.Get "favicon/apple-icon-114x114.png").Permalink }}">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="{{ (resources.Get "favicon/apple-icon-120x120.png").Permalink }}">
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="{{ (resources.Get "favicon/apple-icon-144x144.png").Permalink }}">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="{{ (resources.Get "favicon/apple-icon-152x152.png").Permalink }}">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ (resources.Get "favicon/apple-icon-180x180.png").Permalink }}">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="{{ (resources.Get "favicon/android-icon-192x192.png").Permalink }}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ (resources.Get "favicon/favicon-32x32.png").Permalink }}">
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="{{ (resources.Get "favicon/favicon-96x96.png").Permalink }}">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ (resources.Get "favicon/favicon-16x16.png").Permalink }}">
|
||||
<link rel="manifest" href="{{ (resources.Get "favicon/manifest.json").Permalink }}">
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="{{ (resources.Get "favicon/apple-icon-57x57.png").RelPermalink }}">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="{{ (resources.Get "favicon/apple-icon-60x60.png").RelPermalink }}">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="{{ (resources.Get "favicon/apple-icon-72x72.png").RelPermalink }}">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="{{ (resources.Get "favicon/apple-icon-76x76.png").RelPermalink }}">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="{{ (resources.Get "favicon/apple-icon-114x114.png").RelPermalink }}">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="{{ (resources.Get "favicon/apple-icon-120x120.png").RelPermalink }}">
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="{{ (resources.Get "favicon/apple-icon-144x144.png").RelPermalink }}">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="{{ (resources.Get "favicon/apple-icon-152x152.png").RelPermalink }}">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ (resources.Get "favicon/apple-icon-180x180.png").RelPermalink }}">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="{{ (resources.Get "favicon/android-icon-192x192.png").RelPermalink }}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ (resources.Get "favicon/favicon-32x32.png").RelPermalink }}">
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="{{ (resources.Get "favicon/favicon-96x96.png").RelPermalink }}">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ (resources.Get "favicon/favicon-16x16.png").RelPermalink }}">
|
||||
<link rel="manifest" href="{{ (resources.Get "favicon/manifest.json").RelPermalink }}">
|
||||
<meta name="msapplication-TileColor" content="#ffffff">
|
||||
<meta name="msapplication-TileImage" content="{{ (resources.Get "favicon/ms-icon-144x144.png").Permalink }}">
|
||||
<meta name="msapplication-TileImage" content="{{ (resources.Get "favicon/ms-icon-144x144.png").RelPermalink }}">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<!-- the Moments style css file -->
|
||||
{{ $style := resources.Get "style-refractored.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
{{ $style_2 := resources.Get "audio.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style_2.Permalink }}">
|
||||
<link rel="stylesheet" href="{{ $style_2.RelPermalink }}">
|
||||
|
||||
<!-- fancybox css (js in the end before the body closing tag) -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css"/>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{{ $background_path = . }}
|
||||
{{ end }}
|
||||
{{ if resources.Get $background_path }}
|
||||
{{ $background_path = (resources.Get $background_path).Permalink }}
|
||||
{{ $background_path = (resources.Get $background_path).RelPermalink }}
|
||||
{{ end }}
|
||||
<div class="jumbotron" style="background-image: url({{ $background_path }});">
|
||||
<div class="container">
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
{{ $logo_file = . }}
|
||||
{{ end }}
|
||||
{{ if resources.Get $logo_file }}
|
||||
{{ $logo_file = (resources.Get $logo_file).Permalink }}
|
||||
{{ $logo_file = (resources.Get $logo_file).RelPermalink }}
|
||||
{{ end }}
|
||||
<img src="{{ $logo_file }}" class="link-logo">
|
||||
</td>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<div class="pure-g">
|
||||
{{ range $num, $a := $pic_set }}
|
||||
{{ if resources.Get $a }}
|
||||
{{ $a = (resources.Get $a).Permalink }}
|
||||
{{ $a = (resources.Get $a).RelPermalink }}
|
||||
{{ end }}
|
||||
|
||||
{{ $display := "block"}}
|
||||
|
@ -22,7 +22,7 @@
|
|||
{{ if and (eq $num 8) (gt (len $pic_set) 9) }}
|
||||
<div class="img-container img-black-filter">
|
||||
<a data-src="{{ $a }}" data-fancybox="gallery" data-caption="{{ $caption }}">
|
||||
<div class="more-icon" style="background-image: url('{{ (resources.Get "more-icon.png").Permalink }}');"></div>
|
||||
<div class="more-icon" style="background-image: url('{{ (resources.Get "more-icon.png").RelPermalink }}');"></div>
|
||||
<img src="{{ $a }}" alt="pictures"/>
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
{{ $avatar_path = . }}
|
||||
{{ end }}
|
||||
{{ if resources.Get $avatar_path }}
|
||||
{{ $avatar_path = (resources.Get $avatar_path).Permalink }}
|
||||
{{ $avatar_path = (resources.Get $avatar_path).RelPermalink }}
|
||||
{{ end }}
|
||||
<img src='{{ $avatar_path }}' class="avatar">
|
||||
</div>
|
||||
|
@ -103,7 +103,7 @@
|
|||
{{ range $pictures_set }}
|
||||
{{ $src := . }}
|
||||
{{ if resources.Get $src }}
|
||||
{{ $src = (resources.Get $src).Permalink }}
|
||||
{{ $src = (resources.Get $src).RelPermalink }}
|
||||
{{ end }}
|
||||
<img src="{{ $src }}" class="single-pic" alt="Responsive image" data-fancybox="gallery" data-caption={{ $picture_caption }}></img>
|
||||
{{ end }}
|
||||
|
@ -117,7 +117,7 @@
|
|||
{{ with $page.Params.pic }}
|
||||
{{ $src := . }}
|
||||
{{ if resources.Get $src }}
|
||||
{{ $src = (resources.Get $src).Permalink }}
|
||||
{{ $src = (resources.Get $src).RelPermalink }}
|
||||
{{ end }}
|
||||
<img src="{{ . }}" class="single-pic" alt="Responsive image" data-fancybox="gallery" data-caption={{ $picture_caption }}></img>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue