Skip to content

Commit 28ef920

Browse files
authored
Merge pull request #10 from PygmalionAI/fix/remove-buttons-and-change-image-2
fix: remove buttons and change image 2
2 parents a84191f + 20b96bd commit 28ef920

File tree

4 files changed

+48
-49
lines changed

4 files changed

+48
-49
lines changed

config/_default/hugo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ baseURL = 'https://blog.pygmalion.chat' # Enter your full production URL
33
languageCode = 'en-us' # Default
44
timeZone = 'America/New_York' # IANA timezone https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
55
title = 'PygmalionAI Blog' # Site title used throughout site
6-
avatar = 'chisel.webp'
6+
avatar = 'images/chisel.png'
7+
avatar_grayscale = false
78

89
### SEO, Analytics & 3rd-party
910
enableRobotsTXT = true # To overwrite the theme's robots.txt, add your own in the /layouts/ directory

src/assets/chisel.webp

-3.92 KB
Binary file not shown.

src/images/chisel.png

10.8 KB
Loading
Lines changed: 46 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,50 @@
11
{{ define "main" }}
22
<div class="container">
3-
<section class="section hero">
4-
<div class="hero-info">
5-
<h1 class="hero-title">{{ .Title }}</h1>
6-
{{ with .Params.subtitle }}
7-
<p class="hero-subtitle">{{. | markdownify}}</p>
8-
{{ end }}
9-
<div class="btn-group">
10-
{{ $p_cta := "" }}
11-
{{ with .Params.primary_cta_page }}
12-
{{ $p_cta = . }}
13-
{{ end }}
14-
{{ $s_cta := "" }}
15-
{{ with .Params.secondary_cta_page }}
16-
{{ $s_cta = . }}
17-
{{ end }}
18-
<a class="btn-primary"
19-
href="{{ with $p_cta }}{{ . | relURL }}{{ else }}{{ "about" | relURL }}{{ end }}">
20-
{{ if $p_cta }}{{ with .Site.GetPage $p_cta }}{{ .LinkTitle }}{{ end }}{{ else }}About{{ end }}
21-
</a>
22-
<a class="btn-secondary"
23-
href="{{ with $s_cta }}{{ . | relURL }}{{ else }}{{ "projects" | relURL }}{{ end }}">
24-
{{ if $s_cta }}{{ with .Site.GetPage $s_cta }}{{ .LinkTitle }}{{ end }}{{ else }}Projects{{ end }}
25-
</a>
26-
</div>
27-
</div>
28-
<div class="hero-owner">
29-
{{ $avatar := .Site.Params.avatar }}
30-
{{ $default_image := "images/default.png" }}
31-
{{ $image := "" }}
32-
{{ with $avatar }}
33-
{{ $image = resources.Get $avatar }}
34-
{{ else }}
35-
{{ $image = resources.Get $default_image }}
36-
{{ end }}
37-
{{ if eq .Site.Params.grayscale_avatar true }}
38-
{{ $image = $image | images.Filter (images.Grayscale) }}
39-
{{ end }}
40-
<img class="hero-avatar"
41-
src="{{ $image.RelPermalink }}"
42-
width="{{- $image.Width -}}" height="{{- $image.Height -}}"
43-
alt="Headshot or avatar belonging to the website owner"/>
44-
{{ if eq .Site.Params.home_hero_socials true }}
45-
{{ partial "general/social-links.html" . }}
46-
{{ end }}
47-
</div>
48-
</section>
49-
{{/* Shortcodes from page content */}}
50-
{{ .Content }}
3+
<section class="section hero">
4+
<div class="hero-info">
5+
<h1 class="hero-title">{{ .Title }}</h1>
6+
{{ with .Params.subtitle }}
7+
<p class="hero-subtitle">{{. | markdownify}}</p>
8+
{{ end }}
9+
<!-- <div class="btn-group">
10+
{{ $p_cta := "" }}
11+
{{ with .Params.primary_cta_page }}
12+
{{ $p_cta = . }}
13+
{{ end }}
14+
{{ $s_cta := "" }}
15+
{{ with .Params.secondary_cta_page }}
16+
{{ $s_cta = . }}
17+
{{ end }}
18+
<a class="btn-primary"
19+
href="{{ with $p_cta }}{{ . | relURL }}{{ else }}{{ "about" | relURL }}{{ end }}">
20+
{{ if $p_cta }}{{ with .Site.GetPage $p_cta }}{{ .LinkTitle }}{{ end }}{{ else }}About{{ end }}
21+
</a>
22+
<a class="btn-secondary"
23+
href="{{ with $s_cta }}{{ . | relURL }}{{ else }}{{ "projects" | relURL }}{{ end }}">
24+
{{ if $s_cta }}{{ with .Site.GetPage $s_cta }}{{ .LinkTitle }}{{ end }}{{ else }}Projects{{ end }}
25+
</a>
26+
</div> -->
27+
</div>
28+
<div class="hero-owner">
29+
{{ $avatar := .Site.Params.avatar }}
30+
{{ $default_image := "images/default.png" }}
31+
{{ $image := "" }}
32+
{{ with $avatar }}
33+
{{ $image = resources.Get $avatar }}
34+
{{ else }}
35+
{{ $image = resources.Get $default_image }}
36+
{{ end }}
37+
{{ if eq .Site.Params.grayscale_avatar true }}
38+
{{ $image = $image | images.Filter (images.Grayscale) }}
39+
{{ end }}
40+
<img class="hero-avatar" src="{{ $image.RelPermalink }}" width="{{- $image.Width -}}"
41+
height="{{- $image.Height -}}" alt="Headshot or avatar belonging to the website owner" />
42+
{{ if eq .Site.Params.home_hero_socials true }}
43+
{{ partial "general/social-links.html" . }}
44+
{{ end }}
45+
</div>
46+
</section>
47+
{{/* Shortcodes from page content */}}
48+
{{ .Content }}
5149
</div>
5250
{{ end }}

0 commit comments

Comments
 (0)