Skip to content
Permalink
Browse files
post: option to skip @ on author
Some users may prefer to skip the @ preceeding the author's name on a
post.
  • Loading branch information
samuelkarp committed Mar 30, 2019
1 parent 19e40a0 commit 35905fa9511c0138a459e2dbe00cf2e0741d2f75
Showing 2 changed files with 2 additions and 2 deletions.
@@ -3,7 +3,7 @@
<section class="main post-detail">
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
<p class="post-meta">@{{ if isset .Params "author" }}{{ .Params.author }}{{ else }}{{ .Site.Params.author }}{{ end }} 路 {{ .Date.Format "Jan 2, 2006" }} 路 {{ .ReadingTime }} min read</p>
<p class="post-meta">{{ with .Site.Params.dontAtMe }}{{ else }}@{{ end }}{{ if isset .Params "author" }}{{ .Params.author }}{{ else }}{{ .Site.Params.author }}{{ end }} 路 {{ .Date.Format "Jan 2, 2006" }} 路 {{ .ReadingTime }} min read</p>
</header>
<article class="post-content">{{ .Content }}</article>
<footer class="post-footer">
@@ -1,7 +1,7 @@
<article class="post-entry">
<header class="post-header">
<h3 class="post-title"><a href="{{ .Permalink }}" class="post-link">{{ .Title }}</a></h3>
<p class="post-meta">@{{ if isset .Params "author" }}{{ .Params.author }}{{ else }}{{ .Site.Params.author }}{{ end }} 路 {{ .Date.Format "Jan 2, 2006" }} 路 {{ .ReadingTime }} min read</p>
<p class="post-meta">{{ with .Site.Params.dontAtMe}}{{else}}@{{end}}{{ if isset .Params "author" }}{{ .Params.author }}{{ else }}{{ .Site.Params.author }}{{ end }} 路 {{ .Date.Format "Jan 2, 2006" }} 路 {{ .ReadingTime }} min read</p>
</header>
{{ if isset .Params "cover" }}
<img class="post-cover" src="{{ .Params.cover }}" alt="{{ .Title }}" lazyload="on">

0 comments on commit 35905fa

Please sign in to comment.