Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the Profile picture on the home page #128

Open
SmartOwls opened this issue Sep 8, 2023 · 1 comment
Open

Remove the Profile picture on the home page #128

SmartOwls opened this issue Sep 8, 2023 · 1 comment

Comments

@SmartOwls
Copy link

Hi,

Thank you for creating this nice theme for Hugo.
I'm new to web design and Hugo, and I'm wondering if I can adjust the profile picture frame (for the preseted picture.jpg).
I would like to try adjusting the dimensions or even remove it.

Thank you very much!
Jonathan

@nakibrayan3
Copy link

to remove the profile picture in the home page

  1. go to your hugo site's root directory

  2. create the file layouts/partials/intro.html

  3. past the code bellow to the intro.html file

<section class="{{ .Site.Params.ascentColor | default "bg-pink-50" }} dark:bg-gray-900">
  <div class="container max-w-screen-lg mx-auto px-6 py-12 grid md:grid-cols-2 gap-4 lg:gap-16 items-center">
    <div>
      <h1 class="text-4xl font-bold mb-4">{{ .Site.Params.introTitle | safeHTML}}</h1>
      <p class="font-light text-lg">{{ .Site.Params.introSubtitle | safeHTML}}</p>
    </div>
    <img class="rounded-lg shadow-sm" src="{{ .Site.Params.introPhoto }}" alt="{{ .Site.Title }}" />
  </div>
</section>
  1. remove the image tag from the above source code
<img class="rounded-lg shadow-sm" src="{{ .Site.Params.introPhoto }}" alt="{{ .Site.Title }}" />

to edit the style of the profile picture

  • follow steps 1, 2, 3
  1. add and remove tailwindcss classes to the class="" option inside the image tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants