diff options
author | tdro <tdro@noreply.example.com> | 2022-05-26 16:27:32 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-26 16:27:32 -0400 |
commit | f4fc7fcc6228cb5bdf69fe7a3d2c75070a7a7fb4 (patch) | |
tree | 47a7b9a2e6df94cfd7e010ce0d0308ae53a4b515 /themes/default/layouts/partials/context-profile.html | |
parent | d233708dcf098fa80feb035f709674f9d6fbc65b (diff) | |
download | canory-f4fc7fcc6228cb5bdf69fe7a3d2c75070a7a7fb4.tar.gz canory-f4fc7fcc6228cb5bdf69fe7a3d2c75070a7a7fb4.tar.bz2 canory-f4fc7fcc6228cb5bdf69fe7a3d2c75070a7a7fb4.zip |
assets/templates/markdown-feed: Namespace feed meta
Diffstat (limited to 'themes/default/layouts/partials/context-profile.html')
-rw-r--r-- | themes/default/layouts/partials/context-profile.html | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/context-profile.html b/themes/default/layouts/partials/context-profile.html index 056009c..4124a8b 100644 --- a/themes/default/layouts/partials/context-profile.html +++ b/themes/default/layouts/partials/context-profile.html @@ -5,7 +5,11 @@ <div> <aside> <figure> + {{- with .Params.feed.name -}} + <a title="{{ . }}" href="http://{{ $.Params.feed.domain }}"> + {{- else -}} <a title="{{ $author.name }}" href="{{ .Site.BaseURL }}/{{ $author.user }}"> + {{- end -}} <picture> <img alt="{{ $author.name }}" src="{{ .Site.BaseURL }}/{{ $author.user }}/media/profile/picture.png" /> </picture> @@ -13,10 +17,19 @@ </figure> </aside> <aside> - <h2>{{ $author.name }}</h2> - <p>@{{ $author.user }}</p> + {{- with .Params.feed.name -}} + <h2>{{ . }}</h2> + <p>@{{ $.Params.feed.domain }}</p> + {{- else -}} + <h2>{{ $author.name }}</h2> + <p>@{{ $author.user }}</p> + {{- end -}} </aside> </div> + {{- with .Params.feed.description -}} + <p>{{ . }}</p> + {{- else -}} <p>{{- $author.description | markdownify -}}</p> + {{- end -}} </context-menu> </context-profile> |