mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-10 19:05:41 +01:00
Fix untitled tites
This commit is contained in:
parent
f36eb1e6d9
commit
fbe0aec3ea
3 changed files with 9 additions and 9 deletions
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
title: Site content licence
|
||||||
type: timeless
|
type: timeless
|
||||||
_build:
|
_build:
|
||||||
list: never
|
list: never
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<li class="post-item">
|
<li class="post-item">
|
||||||
<a href="{{.Permalink}}">
|
<a href="{{.Permalink}}">
|
||||||
{{ if .Params.emoji }}<span class="post-emoji">{{ .Params.emoji }}</span>{{ end }}
|
{{ if .Params.emoji }}<span class="post-emoji">{{ .Params.emoji }}</span>{{ end }}
|
||||||
<span class="post-title">{{ if .Title }}{{.Title}}{{ else }}<i>Untitled post</i>{{ end }}</span>
|
<span class="post-title">{{ if .Title }}{{.Title}}{{ else }}<i>Untitled {{ .Type | singularize -}}</i>{{ end }}</span>
|
||||||
<span class="post-day">
|
<span class="post-day">
|
||||||
{{ if .Site.Params.dateformShort }}
|
{{ if .Site.Params.dateformShort }}
|
||||||
{{ .Date.Format .Site.Params.dateformShort }}
|
{{ .Date.Format .Site.Params.dateformShort }}
|
||||||
|
|
|
@ -11,16 +11,15 @@
|
||||||
<link rel="authorization_endpoint" href="https://indieauth.com/auth" />
|
<link rel="authorization_endpoint" href="https://indieauth.com/auth" />
|
||||||
<link rel="token_endpoint" href="https://tokens.indieauth.com/token" />
|
<link rel="token_endpoint" href="https://tokens.indieauth.com/token" />
|
||||||
<link rel="webmention" href="https://webmention.io/www.byjp.me/webmention" />
|
<link rel="webmention" href="https://webmention.io/www.byjp.me/webmention" />
|
||||||
|
{{ block "title" . -}}
|
||||||
{{ block "title" . }}
|
|
||||||
<title>
|
<title>
|
||||||
{{ if .IsHome }}
|
{{- if .IsHome -}}
|
||||||
{{ $.Site.Title }}
|
{{- $.Site.Title -}}
|
||||||
{{ else }}
|
{{- else -}}
|
||||||
{{if .Title }}{{ .Title }}{{ else }}Untitled post{{ end }}, {{ $.Site.Title }}
|
{{- if .Title -}}{{- .Title -}}{{- else -}}Untitled {{ $.Type | singularize -}}{{- end -}}, {{ $.Site.Title -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
</title>
|
</title>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
|
||||||
<!-- CSS -->
|
<!-- CSS -->
|
||||||
{{/* <link href="/css/flags.css" rel="stylesheet" type="text/css"> */}}
|
{{/* <link href="/css/flags.css" rel="stylesheet" type="text/css"> */}}
|
||||||
|
|
Loading…
Reference in a new issue