LoveIt
LoveIt copied to clipboard
[Question] How to disable author information
I created a personal website using LoveIt
theme. I would not like to have author
information on home page and individual posts as i am the only one who is going to author posts.
Could someone share how to do it? I am not able to find helpful resources.
hi @maheshvra
re u already read the documentation? if not go here https://hugoloveit.com/theme-documentation-basics/#site-configuration
under the "# Footer config" is the configuration ure looking at
hi @maheshvra
re u already read the documentation? if not go here https://hugoloveit.com/theme-documentation-basics/#site-configuration
under the "# Footer config" is the configuration ure looking at
[params.footer]
...
# LoveIt NEW | 0.2.0 whether to show the author
author = false
Only removes the author from the footer.
Is there a way to remove the author from the posts and from the list of post? Thanks
hi, do you find a solution ? Should we create a PR ? With option in the conf file ?
@thomas-louvigne I solved it manually by editing 2 files:
File 1: /themes/LoveIt/layouts/_default/summary.html comment out this part: (starts at line 27)
{{- $author := $params.author | default .Site.Author.name | default (T "author") -}} {{- $authorLink := $params.authorlink | default .Site.Author.link | default .Site.Home.RelPermalink -}} <span class="post-author"> {{- $options := dict "Class" "author" "Destination" $authorLink "Title" "Author" "Rel" "author" "Icon" (dict "Class" "fas fa-user-circle fa-fw") "Content" $author -}} {{- partial "plugin/link.html" $options -}} </span>
File 2: /themes/LoveIt/layouts/posts/single.html comment out this part: (starts at line 33:
{{- $author := $params.author | default .Site.Author.name | default (T "author") -}} {{- $authorLink := $params.authorlink | default .Site.Author.link | default .Site.Home.RelPermalink -}} <span class="post-author"> {{- $options := dict "Class" "author" "Destination" $authorLink "Title" "Author" "Rel" "author" "Icon" (dict "Class" "fas fa-user-circle fa-fw") "Content" $author -}} {{- partial "plugin/link.html" $options -}} </span>