Skip to content

Commit

Permalink
fixing releases table
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Jul 17, 2024
1 parent e22a97f commit 4d1a4d3
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 13 deletions.
2 changes: 1 addition & 1 deletion content/consortium.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The consortium, through the Brick schema, addresses an important industry and so

The consortium is committed to ensuring the Brick specification is not encumbered with proprietary intellectual property.

The [rules of the consortium][1] are available for review, as is a [membership form][2]. We hosted a virtual open house in 2021, and the [video and slides are available.](/blog/brick-consortium-virtual-kickoff)
The [rules of the consortium][1] are available for review, as is a [membership form][2]. We hosted a virtual open house in 2021, and the [video](https://www.youtube.com/watch?v=wlkNDCRIdSw) and [slides](/docs/Consortium_Kickoff_2021.pdf) are available.

<h2 style="font-size: 2.5rem; font-weight: bold; line-height: 1.3; padding-bottom: 16px; border-bottom: 1px solid; margin-bottom: 32px;">Commerical Members</h2>
<div style="display: flex; flex-wrap: wrap;">
Expand Down
2 changes: 1 addition & 1 deletion content/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Turtle is a compact textual format that is understood by most Semantic Web tools



{{< releases "table table-striped table-bordered flex" "width: 100%" >}}
{{< releases "table table-striped table-bordered" "width: 100%; max-width: 100%;" >}}

## Brick Tools
---
Expand Down
2 changes: 2 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ disablePathToLower = true
BookSection = '*'
BookLogo = '/img/logo.png'

custom_css = ["css/site.css"]


[menu]
[[menu.after]]
Expand Down
3 changes: 3 additions & 0 deletions layouts/partials/docs/inject/head.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />

{{ range .Site.Params.custom_css -}}
<link rel="stylesheet" href="{{ . | absURL }}">
{{- end }}
22 changes: 11 additions & 11 deletions layouts/shortcodes/releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
<tr>
<th>Version</th>
<th>Release Date</th>
<th style="width: 290px;">Downloads</th>
<th>Downloads</th>
<th>Changelog</th>
</tr>
</thead>
<tbody>
{{ with .Site.Data.releases }}
{{ range . }}
<tr>
<td>{{ .version }}</td>
<td>{{ .release_date }}</td>
<td>
<ul>
{{ range $key, $value := .downloads }}
<li><a href="{{ $value }}">{{ $key }}</a></li>
{{ end }}
</ul>
<tr class="release">
<td class="release">{{ .version }}</td>
<td class="release">{{ .release_date }}</td>
<td class="release downloadbox">
<div class="download-links">
{{ range $key, $value := .downloads }}
<a href="{{ $value }}">{{ $key }}</a>
{{ end }}
</div>
</td>
<td><a href="{{ .changelog }}">Changelog</a></td>
<td class="release"><a href="{{ .changelog }}">Changelog</a></td>
</tr>
{{ end }}
{{ end }}
Expand Down
13 changes: 13 additions & 0 deletions static/css/site.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.download-links {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}

.download-links a {
margin-right: 10px; /* Optional: space between links */
}

.downloadbox {
width: 50%;
}

0 comments on commit 4d1a4d3

Please sign in to comment.