Skip to content

Commit

Permalink
[minisite] Update theme
Browse files Browse the repository at this point in the history
  • Loading branch information
francois papon committed Mar 9, 2024
1 parent 0e61a45 commit 3078520
Show file tree
Hide file tree
Showing 9 changed files with 2,718 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,8 @@ public FileVisitResult visitFile(final Path file, final BasicFileAttributes attr
if (configuration.isUseDefaultAssets()) {
Stream.of(
"yupiik-tools-maven-plugin/minisite/assets/css/theme.css",
"yupiik-tools-maven-plugin/minisite/assets/js/minisite.js")
"yupiik-tools-maven-plugin/minisite/assets/js/minisite.js",
"yupiik-tools-maven-plugin/minisite/assets/images/logo.svg")
.forEach(resource -> {
final Path out = output.resolve(resource.substring("yupiik-tools-maven-plugin/minisite/assets/".length()));
try (final BufferedReader buffer = new BufferedReader(new InputStreamReader(Thread.currentThread().getContextClassLoader()
Expand Down Expand Up @@ -1184,7 +1185,7 @@ public Function<Page, String> createTemplate(final Object options,
.replace("{{logoText}}", getLogoText())
.replace("{{logoSideText}}", getLogoSideText())
.replace("{{base}}", configuration.getSiteBase())
.replace("{{logo}}", ofNullable(configuration.getLogo()).orElse("//www.yupiik.io/images/favicon.png"))
.replace("{{logo}}", ofNullable(configuration.getLogo()).orElse("{{base}}/images/logo.svg"))
.replace("{{linkedInCompany}}", ofNullable(configuration.getLinkedInCompany())
.orElse("yupiik"));
final String suffix = readTemplates(layout, configuration.getTemplateSuffixes())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void fixConfig() {
templateExtensionPoints.putIfAbsent("copyrightLine", "" +
"<small class=\"copyright\">{{copyright}}</small>" + (injectYupiikTemplateExtensionPoints ? "" +
// add terms of service and privacy policy
" | <a href=\"https://www.{{linkedInCompany}}.com/terms-of-service/\">Terms of service</a> | " +
" | <a href=\"https://www.{{linkedInCompany}}.com/terms-of-use/\">Terms of use</a> | " +
"<a href=\"https://www.{{linkedInCompany}}.com/privacy-policy/\">Privacy policy</a>" : ""));
templateExtensionPoints.putIfAbsent("socialLinksFooter", templateExtensionPoints.get("socialLinks"));
}
Expand Down

0 comments on commit 3078520

Please sign in to comment.