Skip to content

Commit

Permalink
Move the content back to AsciiDoc and get the latest final major vers…
Browse files Browse the repository at this point in the history
…ion number using built-in liquid filters.
  • Loading branch information
hpehl committed Jan 30, 2024
1 parent 265b392 commit 6120ca1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
17 changes: 0 additions & 17 deletions _layouts/getstarted.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,6 @@ <h1 class="text-caps">{{page.title}} {{page.docversion}}</h1>
<div class="grid__item width-12-12 width-12-12-mobile">
<div>
{{ content }}
{% comment %}
{% This should be part of the content in geststarted.adoc %}
{% But since we want to use the variable for the latest WildFly version %}
{% to render the link to the OS guide, this is part of the layout %}
{% endcomment %}
{% assign latestRelease = site.data.releases[site.current_release_index] %}
<div class="sect1">
<h2 id="next-steps">Next Steps</h2>
<div class="sectionbody">
<div class="paragraph">
<p>
To learn more about WildFly, you can read its <a href="https://docs.wildfly.org" target="_blank" rel="noopener">documentation</a>.<br>
If you want to learn how to use WildFly on OpenShift, read the <a href="https://docs.wildfly.org/{{latestRelease.version}}/Getting_Started_on_OpenShift.html" target="_blank" rel="noopener">Getting Started with WildFly on OpenShift Guide</a>
</p>
</div>
</div>
</div>
</div>
</div>
<div class="grid__item width-12-12 width-12-12-mobile">
Expand Down
5 changes: 5 additions & 0 deletions getstarted.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,8 @@ public String hello(String name) {

Save the file and the application will be recompiled and updated in WildFly. If you access the application at http://localhost:8080,
it will now return the name in upper case.

== Next Steps

To learn more about WildFly, you can read its https://docs.wildfly.org[documentation,window=_blank]. +
If you want to learn how to use WildFly on OpenShift, read the https://docs.wildfly.org/{{ site.data.releases | where:"qualifier", "Final" | map: "version" | first | split: "." | first }}/Getting_Started_on_OpenShift.html[Getting Started with WildFly on OpenShift Guide,window=_blank]

0 comments on commit 6120ca1

Please sign in to comment.