Fix deprecation warning on template var names
This commit is contained in:
parent
dbb99e4565
commit
9a0270e424
@ -4,7 +4,7 @@
|
|||||||
<div class="post-meta clearfix">
|
<div class="post-meta clearfix">
|
||||||
<div class="post-date pull-left">
|
<div class="post-date pull-left">
|
||||||
Posted on
|
Posted on
|
||||||
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHtml }}">
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
||||||
{{ .Date.Format "Jan 2, 2006" }}
|
{{ .Date.Format "Jan 2, 2006" }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
{{ $baseurl := .Site.BaseUrl }}
|
{{ $baseurl := .Site.BaseURL }}
|
||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
<h1 class="text-primary">{{ .Title }}</h1>
|
<h1 class="text-primary">{{ .Title }}</h1>
|
||||||
<div class="post-meta clearfix">
|
<div class="post-meta clearfix">
|
||||||
<div class="post-date pull-left">
|
<div class="post-date pull-left">
|
||||||
Posted on
|
Posted on
|
||||||
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHtml }}">
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
||||||
{{ .Date.Format "Jan 2, 2006" }}
|
{{ .Date.Format "Jan 2, 2006" }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
{{ $baseurl := .Site.BaseUrl}}
|
{{ $baseurl := .Site.BaseURL}}
|
||||||
<section class="taxonomy-terms">
|
<section class="taxonomy-terms">
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
</main>
|
</main>
|
||||||
<footer class="container global-footer">
|
<footer class="container global-footer">
|
||||||
<div class="copyright-note pull-left">
|
<div class="copyright-note pull-left">
|
||||||
{{ .Site.Copyright | safeHtml }}
|
{{ .Site.Copyright | safeHTML }}
|
||||||
</div>
|
</div>
|
||||||
{{ partial "link.html" . }}
|
{{ partial "link.html" . }}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<script src="{{ .Site.BaseUrl }}js/highlight.pack.js"></script>
|
<script src="{{ .Site.BaseURL }}js/highlight.pack.js"></script>
|
||||||
<script>
|
<script>
|
||||||
hljs.initHighlightingOnLoad();
|
hljs.initHighlightingOnLoad();
|
||||||
</script>
|
</script>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<head prefix="og: http://ogp.me/ns#">
|
<head prefix="og: http://ogp.me/ns#">
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
|
||||||
<meta property="og:title" content="{{ if ne .Url "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }}" />
|
<meta property="og:title" content="{{ if ne .URL "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }}" />
|
||||||
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
||||||
<meta property="og:url" content="{{ .Permalink }}" />
|
<meta property="og:url" content="{{ .Permalink }}" />
|
||||||
{{ with .Params.images }}{{ range first 5 . }}
|
{{ with .Params.images }}{{ range first 5 . }}
|
||||||
@ -14,7 +14,7 @@
|
|||||||
{{ with .Site.Params.facebook }}
|
{{ with .Site.Params.facebook }}
|
||||||
<meta property="og:article:author" content="https://facebook.com/{{ . }}" />
|
<meta property="og:article:author" content="https://facebook.com/{{ . }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHtml }}" />
|
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
|
||||||
{{ range .Params.tags }}
|
{{ range .Params.tags }}
|
||||||
<meta property="og:article:tag" content="{{ . }}" />
|
<meta property="og:article:tag" content="{{ . }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@ -23,32 +23,32 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{{ if ne .Url "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }}
|
{{ if ne .URL "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }}
|
||||||
</title>
|
</title>
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseUrl }}css/bootstrap.min.css" />
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap.min.css" />
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseUrl }}css/main.css" />
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/main.css" />
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseUrl }}css/font-awesome.min.css" />
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/font-awesome.min.css" />
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseUrl }}css/github.css" />
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/github.css" />
|
||||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400" type="text/css">
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400" type="text/css">
|
||||||
<link rel="shortcut icon" href="{{ .Site.BaseUrl }}images/favicon.ico" />
|
<link rel="shortcut icon" href="{{ .Site.BaseURL }}images/favicon.ico" />
|
||||||
<link rel="apple-touch-icon" href="{{ .Site.BaseUrl }}images/apple-touch-icon.png" />
|
<link rel="apple-touch-icon" href="{{ .Site.BaseURL }}images/apple-touch-icon.png" />
|
||||||
{{ if eq .Url "/" }}
|
{{ if eq .URL "/" }}
|
||||||
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header class="global-header">
|
<header class="global-header">
|
||||||
<section class="header-text">
|
<section class="header-text">
|
||||||
<h1><a href="{{ .Site.BaseUrl }}">{{ .Site.Title }}</a></h1>
|
<h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
|
||||||
{{ with .Site.Params.subtitle }}
|
{{ with .Site.Params.subtitle }}
|
||||||
<div class="tag-line">
|
<div class="tag-line">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ partial "link.html" . }}
|
{{ partial "link.html" . }}
|
||||||
{{ if ne .Url "/" }}
|
{{ if ne .URL "/" }}
|
||||||
<a href="{{ .Site.BaseUrl }}" class="btn-header btn-back hidden-xs">
|
<a href="{{ .Site.BaseURL }}" class="btn-header btn-back hidden-xs">
|
||||||
<i class="fa fa-angle-left"></i>
|
<i class="fa fa-angle-left"></i>
|
||||||
Home
|
Home
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user