Skip to content

Commit

Permalink
Merge pull request #46 from CURIOSSorg/re-position-open-news-buttons
Browse files Browse the repository at this point in the history
Re-position Open News buttons on the News page
  • Loading branch information
direnakkoc committed Sep 5, 2024
2 parents 0d2b1a1 + 4db9768 commit 7bd78ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/scss/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ button.svelte-la9dd4:disabled {
}

.event-card-text {
height: 150px;
height: 90px;
overflow: hidden;
}

Expand Down
2 changes: 2 additions & 0 deletions layouts/news/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ <h3>
{{ end }}
</ul>
<p class="card-text event-card-text">{{ .Description }}</p>
<div class="d-flex mt-auto flex-md-row flex-sm-column">
<a href="{{ default .Permalink .Params.redirect }}" {{ with .Params.target }} target="{{ . }}" {{ end }} class="btn btn-primary btn-sm">Open News</a>
{{ if .Params.youtubeLink }}
<a href="{{ .Params.youtubeLink }}" target="_blank" class="btn btn-secondary btn-sm">Watch Recording</a>
{{ end }}
</div>
</div>
</div>
</div>
{{ end }}
Expand Down

0 comments on commit 7bd78ad

Please sign in to comment.