LoveIt icon indicating copy to clipboard operation
LoveIt copied to clipboard

[Question] How to disable author information

Open maaraoffl opened this issue 4 years ago • 4 comments

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.

maaraoffl avatar Aug 09 '20 19:08 maaraoffl

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

yvza avatar Sep 02 '20 09:09 yvza

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

tomoem avatar Jul 12 '22 15:07 tomoem

hi, do you find a solution ? Should we create a PR ? With option in the conf file ?

thomas-louvigne avatar Feb 28 '23 15:02 thomas-louvigne

@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>

DuxSec avatar May 15 '23 14:05 DuxSec