Skip to content

Commit

Permalink
Code cleanup and minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Sep 29, 2024
1 parent 2eb7457 commit 9620f0f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
3 changes: 1 addition & 2 deletions exampleSite/content/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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").

---

Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/credits.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
14 changes: 7 additions & 7 deletions exampleSite/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions layouts/index.json → layouts/_default/index.json
Original file line number Diff line number Diff line change
@@ -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 -}}
Expand All @@ -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 -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/post-tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 9620f0f

Please sign in to comment.