Skip to content
Discussion options

You must be logged in to vote

assets/css/events.css

/* Thumbnail height when cardView is true */
.thumbnail_card {
  height: 900px;
}

/* Thumbnail height when cardView is false */
.thumbnail {
  height: 900px;
}

/* Hero image ratio */
#main-content > article > div:nth-of-type(1) {
  aspect-ratio: 1/1.4142;
  margin-inline: auto;
  width: unset;
  height: 480px;
}

layouts/partials/extend-head-uncached.html

{{ if hasPrefix .Page.Path "/events" }}
  {{ with resources.Get "css/events.css" }}
    {{ $eventsCSS := . | resources.Minify | resources.Fingerprint (site.Params.fingerprintAlgorithm | default "sha512") }}
    <link rel="stylesheet" href="{{ $eventsCSS.RelPermalink }}" integrity="{{ $eventsCSS.Data.Integrity }}">

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@nicholas-alonzo
Comment options

@ZhenShuo2021
Comment options

@nicholas-alonzo
Comment options

Comment options

You must be logged in to vote
5 replies
@nicholas-alonzo
Comment options

@ZhenShuo2021
Comment options

@nicholas-alonzo
Comment options

@ZhenShuo2021
Comment options

Answer selected by nicholas-alonzo
@nicholas-alonzo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants