1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 15:25:31 -04:00

AMP: fix date permalink

This commit is contained in:
2019-11-19 22:11:19 -05:00
parent a432512d79
commit d409636c4e
2 changed files with 4 additions and 3 deletions

View File

@@ -153,7 +153,6 @@
<link rel="icon" href="{{ "favicon-16.png" | absURL }}" sizes="16x16"> <link rel="icon" href="{{ "favicon-16.png" | absURL }}" sizes="16x16">
<link rel="shortcut icon" href="{{ "favicon.ico" | absURL }}"> <link rel="shortcut icon" href="{{ "favicon.ico" | absURL }}">
<link rel="alternate" type="application/rss+xml" href="{{ "index.xml" | absURL }}" title="{{ .Site.Title }} (RSS)"> <link rel="alternate" type="application/rss+xml" href="{{ "index.xml" | absURL }}" title="{{ .Site.Title }} (RSS)">
<link rel="manifest" href="{{ "manifest.json" | absURL }}">
{{ partial "schema.html" . }} {{ partial "schema.html" . }}
</head> </head>
<body> <body>
@@ -172,7 +171,10 @@
</header> </header>
<article> <article>
<h1 class="title">{{ .Title }}</h1> <h1 class="title">{{ .Title }}</h1>
<p class="meta">by <a class="author" href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a> on <a class="date" href="{{ .Permalink }}">{{ .Date.Format "January 2, 2006" }}</a></p> <p class="meta">
by <a class="author" href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>
on <a class="date" href="{{ (.OutputFormats.Get "html").Permalink }}">{{ .Date.Format "January 2, 2006" }}</a>
</p>
{{ .Content }} {{ .Content }}
</article> </article>
<footer> <footer>

View File

@@ -13,7 +13,6 @@
<meta name="apple-mobile-web-app-status-bar-style" content="default"> <meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="{{ .Site.Title }}"> <meta name="apple-mobile-web-app-title" content="{{ .Site.Title }}">
<meta name="theme-color" content="#0e6dc2"> <meta name="theme-color" content="#0e6dc2">
<link rel="manifest" href="{{ "manifest.json" | absURL }}">
{{- $style := resources.Get "sass/main.scss" | resources.ToCSS (dict "targetPath" "style.css" "outputStyle" "compact") }} {{- $style := resources.Get "sass/main.scss" | resources.ToCSS (dict "targetPath" "style.css" "outputStyle" "compact") }}
<link rel="stylesheet" href="{{ $style.Permalink }}"> <link rel="stylesheet" href="{{ $style.Permalink }}">
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}"> <link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}">