summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2024-09-29 18:12:59 +0200
committerSerghei Iakovlev <git@serghei.pl>2024-09-29 18:15:42 +0200
commit9620f0ff31fe3391e6d070c724d5f079c58b3746 (patch)
tree4c0b934273a5519a7d5c93b54fd8ef4485c4a7a3
parent2eb7457e427c9e5ed697564dacef09c3a7f4a071 (diff)
downloadgohugo-theme-ed-9620f0ff31fe3391e6d070c724d5f079c58b3746.tar.gz
Code cleanup and minor fixes
-rw-r--r--exampleSite/content/about.md3
-rw-r--r--exampleSite/content/credits.md4
-rw-r--r--exampleSite/hugo.toml14
-rw-r--r--layouts/_default/index.json (renamed from layouts/index.json)6
-rw-r--r--layouts/partials/post-tags.html2
5 files changed, 14 insertions, 15 deletions
diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md
index 87011f7..d63ead6 100644
--- a/exampleSite/content/about.md
+++ b/exampleSite/content/about.md
@@ -33,7 +33,6 @@ for you, Kindle!
- [Our sample site]({{< ref "/" >}}) is the first edition built with Ed.
-- {{< link src="https://serghei.blog/?utm_source=ed&utm_campaign=docs&utm_medium=smm" class="external" target="_blank" hreflang="ru" >}}Serghei Iakovlev's blog{{< /link >}}
## Current Features
@@ -56,7 +55,7 @@ for you, Kindle!
## Installing and using Ed
To learn how to install and begin using Ed, please visit our
-[documentation page]({{< relref "/documentation?utm_source=ed&utm_campaign=docs&utm_medium=smm" >}} "Visit the documentation").
+[documentation page]({{< relref "/documentation" >}} "Visit the documentation").
---
diff --git a/exampleSite/content/credits.md b/exampleSite/content/credits.md
index e81e056..aa1c440 100644
--- a/exampleSite/content/credits.md
+++ b/exampleSite/content/credits.md
@@ -4,11 +4,11 @@ title: Credits
### {{< link src="https://www.linkedin.com/in/egrep/" class="external" target="_blank" hreflang="en" rel="noopener noreferrer" >}}Serghei Iakovlev{{< /link >}} | Software Engineer
-Serghei Iakovlev is a software engineer with 20 years of experience in IT who enjoys finding elegant solutions to non-trivial problems. Serghei focused on the goal and driven by visual sophistication and laser-sharp precision, he take pride in every finished project, and never stop learning along the way. Seghei work as the Head Of Development with 20 teams of 90+ engineers to develop {{< link src="https://airslate.com" class="external" target="_blank" hreflang="en" rel="noopener noreferrer" >}}airSlate{{< /link >}} --- better nocode workflow automation platform.
+Serghei Iakovlev is a software engineer with 20 years of experience in IT who enjoys finding elegant solutions to non-trivial problems. Serghei focused on the goal and driven by visual sophistication and laser-sharp precision, he takes pride in every finished project, and never stop learning along the way. Serghei work as the Head Of Development with 20 teams of 90+ engineers to develop {{< link src="https://airslate.com" class="external" target="_blank" hreflang="en" rel="noopener noreferrer" >}}airSlate{{< /link >}} --- better nocode workflow automation platform.
### {{< link src="http://susannalles.github.io/" class="external" target="_blank" hreflang="en" rel="noopener noreferrer" >}}Susanna Allés Torrent{{< /link >}} | Hyper philologist
-Susanna teaches Digital Humanities in the Department of Latin American and Iberian Cultures. She earned her Ph.D in Romance Studies at the University of Barcelona in 2012, and completed a M.A. in «Nouvelles technologies appliquées à l’histoire» at the École Nationale des Chartes (Paris). She has taught at the University of Barcelona and she has been a postdoctoral fellow at the Spanish National Research Council (CSIC). Her research explores several aspects of digital humanities, especially, scholarly digital editions, electronic text analysis, intertextuality and text reuse, and digital lexicography. She also works with the intersection of the Iberian Peninsula and Italy in the Middle Ages and the Renaissance, reconstructing cultural and literary networks between the two.
+Susanna teaches Digital Humanities in the Department of Latin American and Iberian Cultures. She earned her Ph.D in Romance Studies at the University of Barcelona in 2012, and completed a M.A. in «Nouvelles technologies appliquées à l’histoire» at the École Nationale des Chartes (Paris). She has taught at the University of Barcelona, and she has been a postdoctoral fellow at the Spanish National Research Council (CSIC). Her research explores several aspects of digital humanities, especially, scholarly digital editions, electronic text analysis, intertextuality and text reuse, and digital lexicography. She also works with the intersection of the Iberian Peninsula and Italy in the Middle Ages and the Renaissance, reconstructing cultural and literary networks between the two.
### {{< link src="https://github.com/tcatapano" class="external" target="_blank" hreflang="en" rel="noopener noreferrer" >}}Terry Catapano{{< /link >}} | Metadata ninja
diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml
index 0932c4a..5eefe97 100644
--- a/exampleSite/hugo.toml
+++ b/exampleSite/hugo.toml
@@ -227,7 +227,7 @@ refLinksErrorLevel = 'WARNING'
[outputFormats]
# For more see: https://validator.w3.org/feed/docs/atom.html#whatIsAtom
[outputFormats.atom]
- name = 'Atom'
+ name = 'atom'
# The correct header Content-Type header for an Atom feed is
# application/atom+xml. However, Chromium does not handle it
# correctly (see https://code.google.com/p/chromium/issues/detail?id=104358).
@@ -245,7 +245,7 @@ refLinksErrorLevel = 'WARNING'
# For more see: https://www.jsonfeed.org/
[outputFormats.jsonfeed]
- name = 'JsonFeed'
+ name = 'jsonfeed'
mediaType = 'application/feed+json'
baseName = 'feed'
rel = 'alternate'
@@ -259,7 +259,7 @@ refLinksErrorLevel = 'WARNING'
# return Content-Type: application/manifest+json).
#
# For more see: https://w3c.github.io/manifest/#media-type-registration=
- name = 'Manifest'
+ name = 'manifest'
mediaType = 'application/manifest+json'
baseName = 'manifest'
rel = 'manifest'
@@ -284,10 +284,10 @@ refLinksErrorLevel = 'WARNING'
mediaType = 'application/rss+xml'
[mediaTypes]
- [mediaTypes."text/xml"]
- suffixes = ["xml"]
- [mediaTypes."application/feed+json"]
- suffixes = ["json"]
+ [mediaTypes.'text/xml']
+ suffixes = ['xml']
+ [mediaTypes.'application/feed+json']
+ suffixes = ['json']
# Sitemap config
[sitemap]
diff --git a/layouts/index.json b/layouts/_default/index.json
index de685ff..7f30c80 100644
--- a/layouts/index.json
+++ b/layouts/_default/index.json
@@ -1,7 +1,7 @@
{{- /* Generate the search index. */ -}}
{{- $pages := slice -}}
-{{- $mainSections := site.Params.mainSections | default (slice "posts") }}
+{{- $mainSections := site.Params.mainSections | default (slice "posts") -}}
{{- $pages = where site.RegularPages.ByDate.Reverse "Type" "in" $mainSections -}}
{{- $.Scratch.Add "pagesIndex" slice -}}
@@ -17,8 +17,8 @@
{{- /* Add page to index. */ -}}
{{- if not (in ($.Scratch.Get "urlsAdded") $page.Permalink) -}}
- {{/* Exclude virtual pages which aren't backed by a file */}}
- {{ if .File }}
+ {{- /* Exclude virtual pages which aren't backed by a file */ -}}
+ {{ if .File -}}
{{- $publishDate := $page.PublishDate -}}
{{- if $publishDate.IsZero -}}
diff --git a/layouts/partials/post-tags.html b/layouts/partials/post-tags.html
index 267bbab..68d29c2 100644
--- a/layouts/partials/post-tags.html
+++ b/layouts/partials/post-tags.html
@@ -4,7 +4,7 @@
<ul class="post-tags">
{{ range $index, $name := sort $tags -}}
<li>
- <a href="{{ (printf "/tags/%s/" $name) | urlize }}">
+ <a href="/tags/{{ (printf "%s" $name) | urlize }}">
{{ $name | markdownify }}
</a>
</li>