Skip to content

Commit

Permalink
bump to Hugo 0.124.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yktoo committed Mar 19, 2024
1 parent 5c46ea1 commit 3590b60
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 17 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated content
node_modules/
resources/_gen/
/node_modules/
/resources/_gen/
/public/
.hugo_build.lock

# IDEs
Expand Down
2 changes: 1 addition & 1 deletion config.yml → hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ params:
module:
hugoVersion:
extended: true
min: "v0.108.0"
min: "0.124.0"
mounts:
- source: node_modules
target: assets/node_modules
Expand Down
2 changes: 1 addition & 1 deletion layouts/blog/list-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="content">
<h5><a href="{{ .Permalink }}">{{ with .Params.name }}{{ . }}{{ else }}{{ .Title }}{{ end }}</a></h5>
<p class="post-details">{{ dateFormat "Monday, Jan 2, 2006" .Date }} by <a href="/author/{{ urlize .Params.author }}">{{ .Params.author }}</a></p>
<p>{{ with .Params.description }}{{ . | markdownify }}{{ else }}{{ .Summary }}{{ end }}</p>
<p>{{ with .Params.description }}{{ . | $.RenderString }}{{ else }}{{ .Summary }}{{ end }}</p>
<a class="btn btn-transparent" href="{{ .Permalink }}">{{ T "readOn" }}</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/blog/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{{- with .Resources.GetMatch .Params.image -}}
{{- printf `<img style="width: 500px; height: auto;" src=%q alt="Post image">` .Permalink | html -}}
{{- end -}}
{{- cond (isset .Params "description") (markdownify .Params.description) .Summary | html -}}
{{- cond (isset .Params "description") (.Params.description | .RenderString) .Summary | html -}}
{{- printf "<hr><p><a href=%q>Read On »</a></p>" .Permalink | html -}}
</description>
</item>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<link href="{{ (resources.Get `main.scss` | toCSS | minify).Permalink }}" rel="stylesheet">

<!-- Page title -->
<title>{{ if .IsHome }}{{ .Site.Title }}{{" | "}}{{ .Site.Params.Description }}{{ else if .IsPage}}{{ .Title }}{{" | "}}{{ .CurrentSection.Title }}{{else if eq .Section "author" }}{{if .Params.name}}{{.Params.name}} | {{ T "authorOfPostsOnBlog" }} „{{.Site.Title}}" {{else}}{{ T "authorsOfPostsOnBlog" }} „{{.Site.Title}}"{{end}}{{else if eq .Section "blog" }}{{ T "blogs" }} | {{ .Site.Title}}{{else}}{{ .Title }}{{with .Params.Description}}{{" | " .}}{{ end }}{{ end }}</title>
<title>{{ if .IsHome }}{{ .Site.Title }}{{" | "}}{{ .Site.Params.Description }}{{ else if .IsPage}}{{ .Title }}{{" | "}}{{ .CurrentSection.Title }}{{ else if eq .Section "author" }}{{if .Params.name}}{{.Params.name}} | {{ T "authorOfPostsOnBlog" }} „{{.Site.Title}}" {{else}}{{ T "authorsOfPostsOnBlog" }} „{{.Site.Title}}"{{end}}{{else if eq .Section "blog" }}{{ T "blogs" }} | {{ .Site.Title}}{{else}}{{ .Title }}{{with .Params.Description}}{{" | " .}}{{ end }}{{ end }}</title>

<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="{{ `favicon.ico` | absURL }}"/>
Expand Down
12 changes: 6 additions & 6 deletions layouts/partials/main/about.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<!-- "About" section #1 -->
{{ if .Site.Data.about.enable }}
{{- if .Site.Data.about.enable }}
<section class="about section" id="about">
<div class="container">
<!-- Heading -->
{{ with .Site.Data.about.heading }}{{ partial "main/heading" . }}{{ end }}
{{- with .Site.Data.about.heading }}{{ partial "main/heading" . }}{{ end }}

<!-- "We're ..." blocks -->
<div class="row">
{{ range .Site.Data.about.aboutItem }}
<div class="col-lg-4 text-center wow fadeInUp" data-wow-duration="500ms">
<div class="block">
<div class="icon-box">
{{with .icon}}<i class="{{ . }}"></i>{{ end }}
{{- with .icon }}<i class="{{ . }}"></i>{{ end }}
</div>
<div class="content text-center">
{{ with .title }}<h3 class="ddd">{{ . }}</h3>{{ end }}
<p>{{ .content | markdownify }}</p>
{{- with .title }}<h3 class="ddd">{{ . }}</h3>{{ end }}
<p>{{ .content | $.RenderString }}</p>
</div>
</div>
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}
{{- end }}

<!-- "About" section #2 -->
{{ if .Site.Data.about2.enable }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/main/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{ range .Site.Data.contact.contactDetails }}
<div class="con-info clearfix">
<i class="{{ .icon }}"></i>
<span>{{ .info | markdownify }}</span>
<span>{{ .info | $.RenderString }}</span>
</div>
{{ end }}
</div>
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/main/service.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{{ if .Site.Data.service.enable}}
{{ if .Site.Data.service.enable }}
<section id="services" class="section">
<div class="container">
<!-- Heading -->
{{ with .Site.Data.service.heading }}{{ partial "main/heading" . }}{{ end }}

<!-- Service blocks -->
<div class="row">
{{ range .Site.Data.service.serviceItem}}
{{ range .Site.Data.service.serviceItem }}
<article class="col-lg-4 col-md-6 col-12 wow fadeInUp" data-wow-duration="500ms">
<div class="service-block text-center">
<div class="service-icon text-center">
<i class="{{ .icon }}"></i>
</div>
<h3>{{ .title }}</h3>
<p>{{ .content | markdownify }}</p>
<p>{{ .content | $.RenderString }}</p>
</div>
</article>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/main/testimonial.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h3>{{ .name }}</h3>
<span>{{ .client }}</span>
</div>
<div class="client-comment">
<p>{{ .content | markdownify }}</p>
<p>{{ .content | $.RenderString }}</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 3590b60

Please sign in to comment.