app/views/admin/communication/websites/configs/default_languages/static.html.erb
# DO NOT EDIT THIS FILE BY HAND - IT WILL BE OVERWRITTEN BY OSUNY
<%
@website.localizations.published.each do |l10n|
language = l10n.language
%>
<%= language.iso_code %>:
title: >-
<%= l10n.to_s %>
contentDir: content/<%= language.iso_code %>
languageCode: <%= language.iso_code %>
languageName: <%= language.name %>
params:
social:
<%-
[
:email,
:mastodon,
:peertube,
:x,
:github,
:linkedin,
:youtube,
:vimeo,
:instagram,
:facebook,
:tiktok
].each do |social_element|
value = l10n.public_send "social_#{social_element}"
next if value.blank?
-%>
<%= social_element %>: >-
<%= value %>
<%- end -%>
permalinks:
<% Communication::Website::Permalink.config_in_website(@website, language).each do |key, value| %>
<%= key %>: <%= value %>
<% end %>
taxonomies:
administrator: administrators
author: authors
diploma: diplomas
events_category: events_categories
location: locations
organizations_category: organizations_categories
persons_category: persons_categories
posts_category: posts_categories
projects_category: projects_categories
researcher: researchers
teacher: teachers
volume: volumes
<% end %>