Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Theme
Commits
37153ad6
Unverified
Commit
37153ad6
authored
4 months ago
by
Alexis BENOIT
Committed by
GitHub
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Nettoyage du partiel de logo des formations et diplômes (#697)
parent
13a9acf4
No related branches found
Branches containing commit
Tags
v7.0.3
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config.yaml
+1
-2
1 addition, 2 deletions
config.yaml
layouts/partials/diplomas/certification-logo.html
+9
-8
9 additions, 8 deletions
layouts/partials/diplomas/certification-logo.html
layouts/partials/programs/hero-logos.html
+8
-8
8 additions, 8 deletions
layouts/partials/programs/hero-logos.html
with
18 additions
and
18 deletions
config.yaml
+
1
−
2
View file @
37153ad6
...
...
@@ -164,9 +164,8 @@ params:
truncate_description
:
200
# Set to 0 to disable truncate
single
:
options
:
logo
:
true
diploma
:
true
# option qui n'a pas de raison d'etre utilisée dans le single
diploma_certification
:
true
logo
:
true
website_link
:
true
# share_links: # Optional
# enabled: true
...
...
This diff is collapsed.
Click to expand it.
layouts/partials/diplomas/certification-logo.html
+
9
−
8
View file @
37153ad6
{{- $diploma := site.GetPage (printf "/diplomas/%s" .) -}}
{{- with $diploma -}}
{{ $diploma_id := .Params.certification }}
{{ if fileExists (printf "themes/osuny/static/assets/images/certifications/diplomas/%s.svg" $diploma_id)}}
<picture
class=
"diploma-certification"
>
<img
src=
"/assets/images/certifications/diplomas/{{$diploma_id}}.svg"
alt=
"logo {{$diploma_id}} "
>
</picture>
{{end}}
{{- with site.GetPage (printf "/diplomas/%s" .) -}}
{{ with .Params.certification }}
{{ if fileExists (printf "themes/osuny/static/assets/images/certifications/diplomas/%s.svg" .) }}
<picture
class=
"diploma-certification"
>
<img
src=
"/assets/images/certifications/diplomas/{{- . -}}.svg"
alt=
"logo {{ . }}"
>
</picture>
{{ end }}
{{ end }}
{{ end }}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
layouts/partials/programs/hero-logos.html
+
8
−
8
View file @
37153ad6
{{ if
(
or site.Params.programs.single.options.logo site.Params.programs.single.options.diploma_certification
)
}}
{{ if or site.Params.programs.single.options.logo site.Params.programs.single.options.diploma_certification
}}
<div
class=
"hero-logos"
>
{{
-
if and site.Params.programs.single.options.logo .Params.logo
-
}}
{{ if and site.Params.programs.single.options.logo .Params.logo }}
<div
class=
"logo"
>
{{ partial "commons/image.html"
(dict
"image" .Params.logo
"lazy" false
) }}
(dict
"image" .Params.logo
"lazy" false
) }}
</div>
{{ end }}
{{ end }}
{{ if site.Params.programs.single.options.diploma_certification }}
{{ partial "diplomas/certification-logo.html" .Params.diplomas }}
{{end}}
{{
end
}}
</div>
{{ end }}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment