Skip to content

Commit

Permalink
rename to places
Browse files Browse the repository at this point in the history
  • Loading branch information
sebousan committed Sep 7, 2023
1 parent f3ac924 commit fbc4036
Show file tree
Hide file tree
Showing 32 changed files with 57 additions and 57 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# hugolify-themes-persons-offices
# hugolify-themes-persons-places

## Install
Edit `config/_default/module.yaml` to install the `hugolify-theme-persons-offices` module:
Edit `config/_default/module.yaml` to install the `hugolify-theme-persons-places` module:
```yml
imports:
- path: github.com/hugolify/hugolify-theme-persons-offices
- path: github.com/hugolify/hugolify-theme-persons-places
```
## Documentation
Expand Down
4 changes: 2 additions & 2 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ module:

# Default
permalinks:
persons_offices: /team/offices/:slug/
persons_places: /team/places/:slug/
taxonomies:
persons_office: persons_offices
persons_place: persons_places
4 changes: 0 additions & 4 deletions content/persons_offices/_index.md

This file was deleted.

4 changes: 4 additions & 0 deletions content/persons_places/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: places
url: /team/places
---
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/hugolify/hugolify-theme-persons-offices
module github.com/hugolify/hugolify-theme-persons-places

go 1.19
6 changes: 3 additions & 3 deletions i18n/en.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
persons_offices:
persons_places:
title:
one: Office
other: Offices
one: place
other: places
6 changes: 3 additions & 3 deletions i18n/fr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
persons_offices:
persons_places:
title:
one: Bureau
other: Bureaux
one: Lieu
other: Lieux
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{ partial "commons/filters/taxonomy.html" (dict "tax" "persons_offices" "current" .) }}
{{ partial "commons/filters/taxonomy.html" (dict "tax" "persons_places" "current" .) }}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{{ with .GetTerms "persons_offices" }}
{{ with .GetTerms "persons_places" }}
{{ $count := . | len }}
{{ $desktop := site.Params.image.xsmall | default false }}
{{ $mobile := site.Params.image.xsmall | default false }}
<aside class="list list-offices">
<p>{{ i18n "offices.title" $count }}</p>
<aside class="list list-places">
<p>{{ i18n "places.title" $count }}</p>
<ul>
{{ range . }}
{{ $expertise := partial "func/GetRealOffice" . }}
{{ $expertise := partial "func/GetRealplace" . }}
{{ with $expertise }}
<li>
{{- with .Params.image}}
Expand Down
5 changes: 0 additions & 5 deletions layouts/partials/persons_offices/container-single.html

This file was deleted.

4 changes: 0 additions & 4 deletions layouts/partials/persons_offices/container.html

This file was deleted.

3 changes: 0 additions & 3 deletions layouts/partials/persons_offices/item.html

This file was deleted.

5 changes: 5 additions & 0 deletions layouts/partials/persons_places/container-single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="container">
{{ partial "persons_places/heading-single" . }}
{{ partial "persons_places/filters" . }}
{{ partial "persons_places/persons" . }}
</div>
4 changes: 4 additions & 0 deletions layouts/partials/persons_places/container.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div class="container">
{{ partial "persons_places/heading" . }}
{{ partial "persons_places/paginator" . }}
</div>
File renamed without changes.
3 changes: 3 additions & 0 deletions layouts/partials/persons_places/item.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<article class="place" itemscope itemtype="http://schema.org/Organization"{{ partial "func/SetAnim" (dict "element" "item") }}>
{{ partial "persons_places/item/content" . }}
</article>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
{{ if partial "func/HasImageHero" . }}
{{ $atf = false }}
{{ end }}
{{ partial "persons_offices/items" (dict "pages" $paginator "abovethefold" $atf) }}
{{ partial "persons_places/items" (dict "pages" $paginator "abovethefold" $atf) }}
{{ partial "nav/pagination.html" . }}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{{ $section := "persons" }}
{{ $pages := partial "func/GetTaxonomyPageBySlug" (dict
"section" $section
"taxonomy" "persons_offices"
"taxonomy" "persons_places"
"slug" .File.BaseFileName) }}
{{ $pages = sort ($pages) "Params.persons_statutes" }}
{{ if $pages }}
<section class="offices-persons">
<h2>{{ i18n "offices.discover_persons" (dict "Title" (.Title | lower)) }}</h2>
<section class="places-persons">
<h2>{{ i18n "places.discover_persons" (dict "Title" (.Title | lower)) }}</h2>
{{ partial (printf "%s/items" $section) $pages }}
</section>
{{ end }}
8 changes: 0 additions & 8 deletions layouts/persons_offices/list.html

This file was deleted.

8 changes: 0 additions & 8 deletions layouts/persons_offices/term.html

This file was deleted.

8 changes: 8 additions & 0 deletions layouts/persons_places/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{ define "hero"}}
{{- partial "persons_places/hero" . -}}
{{ end }}

{{ define "main" }}
{{ partial "persons_places/schema" . }}
{{ partial "persons_places/container" . }}
{{ end }}
8 changes: 8 additions & 0 deletions layouts/persons_places/term.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{ define "hero"}}
{{- partial "persons_places/hero-single" . -}}
{{ end }}

{{ define "main" }}
{{ partial "persons_places/schema-single" . }}
{{ partial "persons_places/container-single" . }}
{{ end }}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "hugolify-theme-persons-offices",
"version": "1.0.1",
"name": "hugolify-theme-persons-places",
"version": "1.1.0",
"homepage": "https://www.hugolify.io",
"repository": "https://github.com/hugolify/hugolify-theme-persons-offices",
"repository": "https://github.com/hugolify/hugolify-theme-persons-places",
"bugs": {
"url": "https://github.com/hugolify/hugolify-theme-persons-offices/issues"
"url": "https://github.com/hugolify/hugolify-theme-persons-places/issues"
},
"author": {
"email": "[email protected]",
Expand Down

0 comments on commit fbc4036

Please sign in to comment.