Apply Prettier formatting
This commit is contained in:
parent
21897cc1c6
commit
d7657e5e63
18 changed files with 450 additions and 337 deletions
4
.github/workflows/build-site.yml
vendored
4
.github/workflows/build-site.yml
vendored
|
@ -2,7 +2,7 @@ name: Build and Deploy Site
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- master
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -20,7 +20,7 @@ jobs:
|
|||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: 'latest'
|
||||
hugo-version: "latest"
|
||||
extended: true
|
||||
- name: Configure npm
|
||||
run: |
|
||||
|
|
|
@ -1 +1 @@
|
|||
$('#phone').mask('(000) 000-0000')
|
||||
$("#phone").mask("(000) 000-0000");
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
$(window).scroll(function (e) {
|
||||
oVal = ($(window).scrollTop() / 170);
|
||||
$(".blur").css("opacity", oVal);
|
||||
|
||||
oVal = $(window).scrollTop() / 170;
|
||||
$(".blur").css("opacity", oVal);
|
||||
});
|
||||
$("#motto").fitText();
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
|
||||
var tooltipTriggerList = [].slice.call(
|
||||
document.querySelectorAll('[data-bs-toggle="tooltip"]')
|
||||
);
|
||||
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
|
||||
return new bootstrap.Tooltip(tooltipTriggerEl)
|
||||
})
|
||||
return new bootstrap.Tooltip(tooltipTriggerEl);
|
||||
});
|
||||
|
|
|
@ -1,115 +1,115 @@
|
|||
.blurred-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-height: 35vh;
|
||||
height: 350px;
|
||||
top: 0;
|
||||
left: 0;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-height: 35vh;
|
||||
height: 350px;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.blurred-container .motto {
|
||||
color: #fff;
|
||||
font-size: 76px;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
text-shadow: 0 0 10px rgba(0, 0, 0, .33);
|
||||
text-transform: uppercase;
|
||||
top: 7.5vh;
|
||||
z-index: 3;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
width: 60%;
|
||||
height: 0
|
||||
color: #fff;
|
||||
font-size: 76px;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
text-shadow: 0 0 10px rgba(0, 0, 0, 0.33);
|
||||
text-transform: uppercase;
|
||||
top: 7.5vh;
|
||||
z-index: 3;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
width: 60%;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.motto h1 {
|
||||
background: #0000007d;
|
||||
background: #0000007d;
|
||||
}
|
||||
|
||||
.blurred-container .img-src {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
min-height: 35vh;
|
||||
height: 350px;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
min-height: 35vh;
|
||||
height: 350px;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
}
|
||||
|
||||
.blur {
|
||||
opacity: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
main {
|
||||
position: relative;
|
||||
background-color: #fff;
|
||||
position: relative;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
/* Gives me greater control over fonts */
|
||||
.font-serif {
|
||||
font-family: Georgia, "Times New Roman", Times, serif;
|
||||
font-family: Georgia, "Times New Roman", Times, serif;
|
||||
}
|
||||
|
||||
.font-sans {
|
||||
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
.font-mono {
|
||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||
}
|
||||
|
||||
.font-small-caps {
|
||||
font-variant-caps: small-caps;
|
||||
font-variant-caps: small-caps;
|
||||
}
|
||||
|
||||
.strikethrough {
|
||||
text-decoration: line-through;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.sfTable {
|
||||
margin: 0 auto;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.text-align-left {
|
||||
text-align: left
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.text-align-right {
|
||||
text-align: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.float-left {
|
||||
float: left;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.float-right {
|
||||
float: right;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.media-object {
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.pull-left {
|
||||
max-width: 25%;
|
||||
}
|
||||
.pull-left {
|
||||
max-width: 25%;
|
||||
}
|
||||
}
|
||||
|
||||
h1 small {
|
||||
font-size: 60%;
|
||||
color: #9a9a9a;
|
||||
font-weight: 300;
|
||||
line-height: 1.5;
|
||||
font-size: 60%;
|
||||
color: #9a9a9a;
|
||||
font-weight: 300;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-weight: 400;
|
||||
margin: 30px 0 15px;
|
||||
font-weight: 400;
|
||||
margin: 30px 0 15px;
|
||||
}
|
||||
|
||||
.dogear {
|
||||
clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 25%, 75% 0);
|
||||
clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 25%, 75% 0);
|
||||
}
|
||||
|
|
|
@ -3,4 +3,5 @@ title: Academic Publications and Presentations
|
|||
motto: Academic Publications and Presentations
|
||||
cardImage: library
|
||||
---
|
||||
|
||||
### Academic Papers
|
||||
|
|
|
@ -13,7 +13,7 @@ keywords:
|
|||
type: thesis
|
||||
authors:
|
||||
- Thomas A. Christensen II
|
||||
link: 'https://hdl.handle.net/20.500.11919/3817'
|
||||
link: "https://hdl.handle.net/20.500.11919/3817"
|
||||
journal: "University of Wyoming Honors Program"
|
||||
location: "Laramie, Wyoming"
|
||||
---
|
||||
|
|
|
@ -10,5 +10,5 @@ authors:
|
|||
journal: "Idaho INBRE Summer Research Conference"
|
||||
location: "Moscow, Idaho"
|
||||
awards:
|
||||
- '3rd Place Fast-Pitch Science Presentation Contest'
|
||||
- "3rd Place Fast-Pitch Science Presentation Contest"
|
||||
---
|
||||
|
|
|
@ -15,11 +15,11 @@ authors:
|
|||
- Kathy J. Austin
|
||||
- Kristi M. Cammack
|
||||
- Hannah C. Cunningham-Hollinger
|
||||
link: '/academia/metagenomics/metagenomics_analysis_of_rumen_populations.pdf'
|
||||
link: "/academia/metagenomics/metagenomics_analysis_of_rumen_populations.pdf"
|
||||
journal: "Westion Section American Society of Animal Science Annual Meeting"
|
||||
location: "Boise, Idaho"
|
||||
awards:
|
||||
- '1st Place Undergraduate Poster Competition'
|
||||
- "1st Place Undergraduate Poster Competition"
|
||||
---
|
||||
|
||||
Early colonization of the rumen microbiome is critical to host health and long
|
||||
|
|
|
@ -21,7 +21,7 @@ authors:
|
|||
journal: "AIChE Annual Meeting"
|
||||
location: "Pittsburgh, Pennsylvania"
|
||||
awards:
|
||||
- '3rd Place Environmental III Division Undergraduate Poster Competition'
|
||||
- "3rd Place Environmental III Division Undergraduate Poster Competition"
|
||||
link: /academia/pva-aiche/measuring_diffusion_of_trichloroethylene.pdf
|
||||
---
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ keywords:
|
|||
type: thesis
|
||||
authors:
|
||||
- Thomas A. Christensen II
|
||||
link: 'https://www.proquest.com/dissertations-theses/polyoxometalate-incorporation-effects-on-proton/docview/2502214356/se-2'
|
||||
link: "https://www.proquest.com/dissertations-theses/polyoxometalate-incorporation-effects-on-proton/docview/2502214356/se-2"
|
||||
journal: "University of Idaho"
|
||||
location: "Moscow, Idaho"
|
||||
---
|
||||
|
|
|
@ -4,47 +4,85 @@ cardImage: venice-mailbox
|
|||
motto: Contact Me
|
||||
---
|
||||
|
||||
<form class="form-horizontal"
|
||||
action="https://usebasin.com/f/787df7bfd22e"
|
||||
method="post">
|
||||
<fieldset>
|
||||
<legend>Contact Me</legend>
|
||||
<input type="hidden" name="_gotcha">
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-lg-2 control-label">Name</label>
|
||||
<div class="col-lg-10">
|
||||
<input type="text" class="form-control" id="name" name="name" placeholder="Jay Lush" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-lg-2 control-label">Email</label>
|
||||
<div class="col-lg-10">
|
||||
<input type="email" class="form-control" id="email" name="email" placeholder="jlush@iastate.edu" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="phone" class="col-lg-2 control-label">Phone number</label>
|
||||
<div class="col-lg-10">
|
||||
<input type="tel" class="form-control" id="phone" name="phone" placeholder="(515) 294-2160">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="subject" class="col-lg-2 control-label">Subject</label>
|
||||
<div class="col-lg-10">
|
||||
<input type="text" class="form-control" id="subject" name="subject" placeholder="Beef genetics" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="message" class="col-lg-2 control-label">Message</label>
|
||||
<div class="col-lg-10">
|
||||
<textarea rows="5" class="form-control font-sans" id="message" name="body" required style="min-height: 72pt;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-lg-10 col-lg-offset-2">
|
||||
<button type="reset" class="btn btn-default">Cancel</button>
|
||||
<button type="submit" class="btn btn-primary pageclip-form__submit"><span>Submit</span></button>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<form
|
||||
class="form-horizontal"
|
||||
action="https://usebasin.com/f/787df7bfd22e"
|
||||
method="post"
|
||||
>
|
||||
<fieldset>
|
||||
<legend>Contact Me</legend>
|
||||
<input type="hidden" name="_gotcha" />
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-lg-2 control-label">Name</label>
|
||||
<div class="col-lg-10">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
id="name"
|
||||
name="name"
|
||||
placeholder="Jay Lush"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-lg-2 control-label">Email</label>
|
||||
<div class="col-lg-10">
|
||||
<input
|
||||
type="email"
|
||||
class="form-control"
|
||||
id="email"
|
||||
name="email"
|
||||
placeholder="jlush@iastate.edu"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="phone" class="col-lg-2 control-label">Phone number</label>
|
||||
<div class="col-lg-10">
|
||||
<input
|
||||
type="tel"
|
||||
class="form-control"
|
||||
id="phone"
|
||||
name="phone"
|
||||
placeholder="(515) 294-2160"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="subject" class="col-lg-2 control-label">Subject</label>
|
||||
<div class="col-lg-10">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
id="subject"
|
||||
name="subject"
|
||||
placeholder="Beef genetics"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="message" class="col-lg-2 control-label">Message</label>
|
||||
<div class="col-lg-10">
|
||||
<textarea
|
||||
rows="5"
|
||||
class="form-control font-sans"
|
||||
id="message"
|
||||
name="body"
|
||||
required
|
||||
style="min-height: 72pt;"
|
||||
></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-lg-10 col-lg-offset-2">
|
||||
<button type="reset" class="btn btn-default">Cancel</button>
|
||||
<button type="submit" class="btn btn-primary pageclip-form__submit">
|
||||
<span>Submit</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
|
@ -1,129 +1,173 @@
|
|||
<!doctype html>
|
||||
<html class="no-js" lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{{ .Title }} - {{ .Site.Title }}</title>
|
||||
|
||||
{{ $twbscss := resources.Get "node_modules/bootstrap/scss/bootstrap.scss" | resources.ToCSS }}
|
||||
{{ $mycss := resources.Get "styles/main.css" }}
|
||||
{{ $allcss := slice $twbscss $mycss | resources.Concat "css/bundle.css" }}
|
||||
{{ $allcsspure := $allcss | resources.PostCSS (dict "nomap" true) | minify | fingerprint | resources.PostProcess }}
|
||||
<link href="{{ $allcsspure.Permalink }}" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
{{ $millironx := resources.Get "graphics/millironx.svg" }}
|
||||
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
<div class="row wrapper min-vh-100 flex-column flex-sm-row">
|
||||
<aside class="col-12 col-md-3 p-0 bg-dark flex-shrink-1">
|
||||
<nav class="navbar navbar-expand-md navbar-dark bg-dark align-items-start flex-md-column flex-row">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand d-block d-md-none" href="#">
|
||||
<object class="d-inline-block align-text-top" width="80" height="24"
|
||||
style="filter: invert(100%)" data="{{ $millironx.Permalink }}">
|
||||
<img src="{{ $millironx.Permalink }}" alt="Milliron X" />
|
||||
</object>
|
||||
 
|
||||
<span class="font-small-caps font-serif">Milliron X</span>
|
||||
</a>
|
||||
<a href class="navbar-toggler" data-bs-toggle="collapse" data-bs-target=".sidebar">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</a>
|
||||
<div class="collapse navbar-collapse sidebar">
|
||||
<ul class="flex-column navbar-nav w-100 justify-content-between">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link pl-0" href="/"><i class="fad fa-home fa-fw"></i> <span
|
||||
class="">Home</span></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link pl-0" href="/contact"><i class="fad fa-file-signature fa-fw"></i>
|
||||
<span class="">Contact</span></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link pl-0" href="/academia"><i class="fad fa-university fa-fw"></i>
|
||||
<span class="">Academia</span></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link pl-0" href="/ai">
|
||||
<svg class="svg-inline--fa fa-bull-sperm fa-w-16 fa-fw" aria-hidden="true"
|
||||
focusable="false" data-prefix="fax" data-icon="bull-sperm"
|
||||
viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<g class="fa-group">
|
||||
<path class="fa-primary"
|
||||
d="M 3.5703125,2.4296875 3,3 3.027344,3.035156 c 0.6672785,0.8340906 2.1989965,2.6989965 3.0039063,3.5039062 0.2603117,0.2603118 0.7323765,0.5088896 1.3046876,0.7597657 0.572311,0.250876 1.2443878,0.5020473 1.9003908,0.7519531 0.656002,0.2499058 1.2960693,0.499573 1.8007813,0.7480469 0.504713,0.2484742 0.871301,0.5004142 0.984375,0.7265622 0.203727,0.407454 0.827125,1.4043489 1.527344,2.4921879 0.697482,1.083588 1.468428,2.251372 1.96875,3.001953 6.04e-4,9.07e-4 0.0013,0.003 0.002,0.0039 0.0014,0.002 0.0045,0.0058 0.0059,0.0078 l 0.08789,-0.04687 C 15.279548,14.150066 14.72944,12.851269 14.16211,11.658203 13.59478,10.465137 13.016294,9.3834813 12.601563,8.96875 12.083886,8.4510728 10.835937,7.9570307 9.5859377,7.4570312 8.3359397,6.9570317 7.0838844,6.4510718 6.6015626,5.9687499 5.8064739,5.1736613 4.271529,3.3052239 3.6054688,2.4726562 Z m -0.00781,0.1484375 c 0.6795628,0.848261 2.1735202,2.6657076 2.9687501,3.4609374 0.5176771,0.5176772 1.7656261,1.0117193 3.0156261,1.5117188 1.2499993,0.4999995 2.5020533,1.0059594 2.9843753,1.4882811 0.385268,0.385268 0.973068,1.4718527 1.539062,2.6621097 0.473804,0.996385 0.879487,1.969868 1.21289,2.78125 C 14.797797,13.7506 14.217753,12.873589 13.632813,11.964844 12.933033,10.877685 12.307602,9.8749683 12.111329,9.4824223 11.974403,9.2085713 11.59099,8.9605099 11.080079,8.7089843 10.569167,8.4574587 9.9279807,8.2071249 9.2714847,7.9570312 8.6149887,7.7069375 7.9433137,7.4581078 7.3749997,7.2089843 6.8066872,6.9598609 6.3412503,6.7084377 6.1015626,6.4687499 5.3141197,5.6813071 3.8108277,3.8499544 3.1347657,3.0058593 Z" />
|
||||
<path
|
||||
d="m 1.1347657,4.0058593 3,2 c 1.6,-0.4 2,-1.5 2,-2 -0.5,-0.83333 -1.6,-2.599999 -2,-2.999999 -0.4,-0.4 -0.83333,-0.166667 -1,0 l -2,1.999999 c -0.4,0.4 -0.16667,0.83333 0,1 z"
|
||||
class="fa-secondary" />
|
||||
<path class="fa-secondary"
|
||||
d="M 5.1699219 3.6699219 C 4.8273748 3.6757699 4.4699016 3.7918219 4.1953125 4.0664062 C 3.6095225 4.6521963 3.7442456 5.6153394 4.1347656 6.0058594 C 4.4723646 6.343467 4.8913189 6.1421875 5.3769531 5.703125 L 5.4394531 5.7832031 C 5.5501001 5.9212009 5.73261 6.114669 5.9101562 6.2910156 C 6.0877025 6.4673623 6.2608252 6.6259792 6.3554688 6.6914062 C 6.7810362 6.9856007 7.3620792 7.2480832 8.8789062 7.8300781 C 10.621074 8.4985346 11.180619 8.7450547 11.634766 9.0488281 C 11.910763 9.2334399 12.020961 9.3454178 12.123047 9.546875 C 12.359388 10.013272 13.240145 11.405131 14.951172 14.017578 C 15.027822 14.134605 15.097837 14.241121 15.150391 14.316406 C 15.176671 14.354046 15.199204 14.383707 15.214844 14.404297 C 15.222644 14.414587 15.227532 14.422214 15.232422 14.427734 C 15.234822 14.430534 15.237834 14.431594 15.240234 14.433594 L 15.242188 14.435547 L 15.244141 14.4375 C 15.244353 14.437593 15.251853 14.439453 15.251953 14.439453 C 15.25203 14.439453 15.255759 14.4376 15.255859 14.4375 C 15.25592 14.437477 15.261619 14.435647 15.261719 14.435547 C 15.261812 14.435454 15.263572 14.431741 15.263672 14.431641 C 15.263745 14.431501 15.265525 14.427934 15.265625 14.427734 C 15.26573 14.427361 15.265566 14.425128 15.265625 14.423828 C 15.265743 14.421228 15.265952 14.418316 15.265625 14.416016 C 15.264973 14.411416 15.263419 14.406921 15.261719 14.400391 C 15.258219 14.387401 15.253424 14.368616 15.246094 14.347656 C 15.231524 14.305736 15.210507 14.249736 15.185547 14.189453 C 14.646531 12.887809 14.133918 11.758902 13.6875 10.880859 C 13.241082 10.002816 12.86081 9.3769733 12.585938 9.0800781 C 12.203115 8.6665849 11.464949 8.2925655 9.4238281 7.4765625 C 8.0908226 6.9436517 7.4670466 6.6589029 7.0214844 6.3789062 C 6.6814573 6.1652292 6.5633438 6.0615979 6.1699219 5.6289062 L 5.828125 5.2519531 C 6.269809 4.7645445 6.4733361 4.3444212 6.1347656 4.0058594 C 5.9273019 3.7983903 5.5581419 3.6632941 5.1699219 3.6699219 z " />
|
||||
</g>
|
||||
</svg>
|
||||
<!--<i class="fax fa-bull-sperm"></i> Font Awesome-like--><span
|
||||
class="">Artificial Insemination</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link pl-0" href="/videos"><i class="fad fa-video fa-fw"></i> <span
|
||||
class="">Videos</span></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link pl-0" href="/websites"><i class="fad fa-browser fa-fw"></i> <span
|
||||
class="">Websites</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</aside>
|
||||
<div class="col bg-faded py-3 gx-0">
|
||||
<div class="container">
|
||||
<header class="d-none d-sm-none d-md-block text-center">
|
||||
<h1 class="font-serif font-small-caps"><object data="{{ $millironx.Permalink }}">
|
||||
<img src="{{ $millironx.Permalink }}" alt="Milliron X" /></object>
|
||||
 
|
||||
Milliron X
|
||||
</h1>
|
||||
</header>
|
||||
</div>
|
||||
<div class="blurred-container">
|
||||
<div class="motto">
|
||||
<h1 id="motto">
|
||||
{{ safeHTML (.Param "motto") }}
|
||||
</h1>
|
||||
</div>
|
||||
{{ $imgsrc := print "images/" (.Param "cardImage") ".jpg" }}
|
||||
{{ $mainimg := resources.Get $imgsrc }}
|
||||
{{ $blurimg := $mainimg.Filter (images.GaussianBlur 100) }}
|
||||
<div class="img-src" style="background-image: url('{{ $mainimg.RelPermalink }}');"></div>
|
||||
<div class="img-src blur" style="background-image: url('{{ $blurimg.RelPermalink }}');"></div>
|
||||
</div>
|
||||
<br />
|
||||
<main class="container-fluid">
|
||||
<div class="container px-5">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ $jqueryjs := resources.Get "node_modules/jquery/dist/jquery.js" }}
|
||||
{{ $popperjs := resources.Get "node_modules/@popperjs/core/dist/umd/popper.js" }}
|
||||
{{ $twbsjs := resources.Get "node_modules/bootstrap/dist/js/bootstrap.js" }}
|
||||
{{ $fajs := resources.Get "node_modules/@fortawesome/fontawesome-pro/js/all.js" }}
|
||||
{{ $fittextjs := resources.Get "node_modules/fittext.js/jquery.fittext.js" }}
|
||||
{{ $jqmaskjs := resources.Get "node_modules/jquery-mask-plugin/dist/jquery.mask.js" }}
|
||||
{{ $scrolljs := resources.Get "scripts/scroll-effect.js" }}
|
||||
{{ $maskjs := resources.Get "scripts/phone-masking.js" }}
|
||||
{{ $ttjs := resources.Get "scripts/tooltip-enable.js" }}
|
||||
{{ $alljs := slice $jqueryjs $popperjs $twbsjs $fajs $fittextjs $scrolljs $jqmaskjs $maskjs $ttjs | resources.Concat
|
||||
"js/bundle.js" | minify | fingerprint }}
|
||||
<script src="{{ $alljs.Permalink }}"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<html class="no-js" lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{{ .Title }} - {{ .Site.Title }}</title>
|
||||
|
||||
{{ $twbscss := resources.Get "node_modules/bootstrap/scss/bootstrap.scss" | resources.ToCSS }}
|
||||
{{ $mycss := resources.Get "styles/main.css" }}
|
||||
{{ $allcss := slice $twbscss $mycss | resources.Concat "css/bundle.css" }}
|
||||
{{ $allcsspure := $allcss | resources.PostCSS (dict "nomap" true) | minify | fingerprint | resources.PostProcess }}
|
||||
<link href="{{ $allcsspure.Permalink }}" rel="stylesheet" />
|
||||
</head>
|
||||
|
||||
{{ $millironx := resources.Get "graphics/millironx.svg" }}
|
||||
|
||||
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
<div class="row wrapper min-vh-100 flex-column flex-sm-row">
|
||||
<aside class="col-12 col-md-3 p-0 bg-dark flex-shrink-1">
|
||||
<nav
|
||||
class="navbar navbar-expand-md navbar-dark bg-dark align-items-start flex-md-column flex-row"
|
||||
>
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand d-block d-md-none" href="#">
|
||||
<object
|
||||
class="d-inline-block align-text-top"
|
||||
width="80"
|
||||
height="24"
|
||||
style="filter: invert(100%)"
|
||||
data="{{ $millironx.Permalink }}"
|
||||
>
|
||||
<img src="{{ $millironx.Permalink }}" alt="Milliron X" />
|
||||
</object>
|
||||
 
|
||||
<span class="font-small-caps font-serif">Milliron X</span>
|
||||
</a>
|
||||
<a
|
||||
href
|
||||
class="navbar-toggler"
|
||||
data-bs-toggle="collapse"
|
||||
data-bs-target=".sidebar"
|
||||
>
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</a>
|
||||
<div class="collapse navbar-collapse sidebar">
|
||||
<ul
|
||||
class="flex-column navbar-nav w-100 justify-content-between"
|
||||
>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link pl-0" href="/"
|
||||
><i class="fad fa-home fa-fw"></i>
|
||||
<span class="">Home</span></a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link pl-0" href="/contact"
|
||||
><i class="fad fa-file-signature fa-fw"></i>
|
||||
<span class="">Contact</span></a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link pl-0" href="/academia"
|
||||
><i class="fad fa-university fa-fw"></i>
|
||||
<span class="">Academia</span></a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link pl-0" href="/ai">
|
||||
<svg
|
||||
class="svg-inline--fa fa-bull-sperm fa-w-16 fa-fw"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fax"
|
||||
data-icon="bull-sperm"
|
||||
viewBox="0 0 16 16"
|
||||
version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<g class="fa-group">
|
||||
<path
|
||||
class="fa-primary"
|
||||
d="M 3.5703125,2.4296875 3,3 3.027344,3.035156 c 0.6672785,0.8340906 2.1989965,2.6989965 3.0039063,3.5039062 0.2603117,0.2603118 0.7323765,0.5088896 1.3046876,0.7597657 0.572311,0.250876 1.2443878,0.5020473 1.9003908,0.7519531 0.656002,0.2499058 1.2960693,0.499573 1.8007813,0.7480469 0.504713,0.2484742 0.871301,0.5004142 0.984375,0.7265622 0.203727,0.407454 0.827125,1.4043489 1.527344,2.4921879 0.697482,1.083588 1.468428,2.251372 1.96875,3.001953 6.04e-4,9.07e-4 0.0013,0.003 0.002,0.0039 0.0014,0.002 0.0045,0.0058 0.0059,0.0078 l 0.08789,-0.04687 C 15.279548,14.150066 14.72944,12.851269 14.16211,11.658203 13.59478,10.465137 13.016294,9.3834813 12.601563,8.96875 12.083886,8.4510728 10.835937,7.9570307 9.5859377,7.4570312 8.3359397,6.9570317 7.0838844,6.4510718 6.6015626,5.9687499 5.8064739,5.1736613 4.271529,3.3052239 3.6054688,2.4726562 Z m -0.00781,0.1484375 c 0.6795628,0.848261 2.1735202,2.6657076 2.9687501,3.4609374 0.5176771,0.5176772 1.7656261,1.0117193 3.0156261,1.5117188 1.2499993,0.4999995 2.5020533,1.0059594 2.9843753,1.4882811 0.385268,0.385268 0.973068,1.4718527 1.539062,2.6621097 0.473804,0.996385 0.879487,1.969868 1.21289,2.78125 C 14.797797,13.7506 14.217753,12.873589 13.632813,11.964844 12.933033,10.877685 12.307602,9.8749683 12.111329,9.4824223 11.974403,9.2085713 11.59099,8.9605099 11.080079,8.7089843 10.569167,8.4574587 9.9279807,8.2071249 9.2714847,7.9570312 8.6149887,7.7069375 7.9433137,7.4581078 7.3749997,7.2089843 6.8066872,6.9598609 6.3412503,6.7084377 6.1015626,6.4687499 5.3141197,5.6813071 3.8108277,3.8499544 3.1347657,3.0058593 Z"
|
||||
/>
|
||||
<path
|
||||
d="m 1.1347657,4.0058593 3,2 c 1.6,-0.4 2,-1.5 2,-2 -0.5,-0.83333 -1.6,-2.599999 -2,-2.999999 -0.4,-0.4 -0.83333,-0.166667 -1,0 l -2,1.999999 c -0.4,0.4 -0.16667,0.83333 0,1 z"
|
||||
class="fa-secondary"
|
||||
/>
|
||||
<path
|
||||
class="fa-secondary"
|
||||
d="M 5.1699219 3.6699219 C 4.8273748 3.6757699 4.4699016 3.7918219 4.1953125 4.0664062 C 3.6095225 4.6521963 3.7442456 5.6153394 4.1347656 6.0058594 C 4.4723646 6.343467 4.8913189 6.1421875 5.3769531 5.703125 L 5.4394531 5.7832031 C 5.5501001 5.9212009 5.73261 6.114669 5.9101562 6.2910156 C 6.0877025 6.4673623 6.2608252 6.6259792 6.3554688 6.6914062 C 6.7810362 6.9856007 7.3620792 7.2480832 8.8789062 7.8300781 C 10.621074 8.4985346 11.180619 8.7450547 11.634766 9.0488281 C 11.910763 9.2334399 12.020961 9.3454178 12.123047 9.546875 C 12.359388 10.013272 13.240145 11.405131 14.951172 14.017578 C 15.027822 14.134605 15.097837 14.241121 15.150391 14.316406 C 15.176671 14.354046 15.199204 14.383707 15.214844 14.404297 C 15.222644 14.414587 15.227532 14.422214 15.232422 14.427734 C 15.234822 14.430534 15.237834 14.431594 15.240234 14.433594 L 15.242188 14.435547 L 15.244141 14.4375 C 15.244353 14.437593 15.251853 14.439453 15.251953 14.439453 C 15.25203 14.439453 15.255759 14.4376 15.255859 14.4375 C 15.25592 14.437477 15.261619 14.435647 15.261719 14.435547 C 15.261812 14.435454 15.263572 14.431741 15.263672 14.431641 C 15.263745 14.431501 15.265525 14.427934 15.265625 14.427734 C 15.26573 14.427361 15.265566 14.425128 15.265625 14.423828 C 15.265743 14.421228 15.265952 14.418316 15.265625 14.416016 C 15.264973 14.411416 15.263419 14.406921 15.261719 14.400391 C 15.258219 14.387401 15.253424 14.368616 15.246094 14.347656 C 15.231524 14.305736 15.210507 14.249736 15.185547 14.189453 C 14.646531 12.887809 14.133918 11.758902 13.6875 10.880859 C 13.241082 10.002816 12.86081 9.3769733 12.585938 9.0800781 C 12.203115 8.6665849 11.464949 8.2925655 9.4238281 7.4765625 C 8.0908226 6.9436517 7.4670466 6.6589029 7.0214844 6.3789062 C 6.6814573 6.1652292 6.5633438 6.0615979 6.1699219 5.6289062 L 5.828125 5.2519531 C 6.269809 4.7645445 6.4733361 4.3444212 6.1347656 4.0058594 C 5.9273019 3.7983903 5.5581419 3.6632941 5.1699219 3.6699219 z "
|
||||
/>
|
||||
</g>
|
||||
</svg>
|
||||
<!--<i class="fax fa-bull-sperm"></i> Font Awesome-like--><span
|
||||
class=""
|
||||
>Artificial Insemination</span
|
||||
>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link pl-0" href="/videos"
|
||||
><i class="fad fa-video fa-fw"></i>
|
||||
<span class="">Videos</span></a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link pl-0" href="/websites"
|
||||
><i class="fad fa-browser fa-fw"></i>
|
||||
<span class="">Websites</span></a
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</aside>
|
||||
<div class="col bg-faded py-3 gx-0">
|
||||
<div class="container">
|
||||
<header class="d-none d-sm-none d-md-block text-center">
|
||||
<h1 class="font-serif font-small-caps">
|
||||
<object data="{{ $millironx.Permalink }}">
|
||||
<img src="{{ $millironx.Permalink }}" alt="Milliron X" />
|
||||
</object>
|
||||
  Milliron X
|
||||
</h1>
|
||||
</header>
|
||||
</div>
|
||||
<div class="blurred-container">
|
||||
<div class="motto">
|
||||
<h1 id="motto">
|
||||
{{ safeHTML (.Param "motto") }}
|
||||
</h1>
|
||||
</div>
|
||||
{{ $imgsrc := print "images/" (.Param "cardImage") ".jpg" }}
|
||||
{{ $mainimg := resources.Get $imgsrc }}
|
||||
{{ $blurimg := $mainimg.Filter (images.GaussianBlur 100) }}
|
||||
<div
|
||||
class="img-src"
|
||||
style="background-image: url('{{ $mainimg.RelPermalink }}');"
|
||||
></div>
|
||||
<div
|
||||
class="img-src blur"
|
||||
style="background-image: url('{{ $blurimg.RelPermalink }}');"
|
||||
></div>
|
||||
</div>
|
||||
<br />
|
||||
<main class="container-fluid">
|
||||
<div class="container px-5">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ $jqueryjs := resources.Get "node_modules/jquery/dist/jquery.js" }}
|
||||
{{ $popperjs := resources.Get "node_modules/@popperjs/core/dist/umd/popper.js" }}
|
||||
{{ $twbsjs := resources.Get "node_modules/bootstrap/dist/js/bootstrap.js" }}
|
||||
{{ $fajs := resources.Get "node_modules/@fortawesome/fontawesome-pro/js/all.js" }}
|
||||
{{ $fittextjs := resources.Get "node_modules/fittext.js/jquery.fittext.js" }}
|
||||
{{ $jqmaskjs := resources.Get "node_modules/jquery-mask-plugin/dist/jquery.mask.js" }}
|
||||
{{ $scrolljs := resources.Get "scripts/scroll-effect.js" }}
|
||||
{{ $maskjs := resources.Get "scripts/phone-masking.js" }}
|
||||
{{ $ttjs := resources.Get "scripts/tooltip-enable.js" }}
|
||||
{{ $alljs := slice $jqueryjs $popperjs $twbsjs $fajs $fittextjs $scrolljs $jqmaskjs $maskjs $ttjs | resources.Concat
|
||||
"js/bundle.js" | minify | fingerprint
|
||||
}} <script src="{{ $alljs.Permalink }}"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{{ define "main" }}
|
||||
<h2>Selected Presentations</h2>
|
||||
{{ $featuredpubs := where .Pages ".Params.featured" "==" true }}
|
||||
{{ range $featuredpubs }}
|
||||
{{ .Scratch.Set "showAbstract" true }}
|
||||
{{ partial "academia/list-single.html" . }}
|
||||
{{ end }}
|
||||
<hr />
|
||||
<h2>Other Presentations</h2>
|
||||
{{ $nonfeaturedpubs := where .Pages ".Params.featured" "==" false }}
|
||||
{{ range $nonfeaturedpubs }}
|
||||
{{ partial "academia/list-single.html" . }}
|
||||
{{ end }}
|
||||
<h2>Selected Presentations</h2>
|
||||
{{ $featuredpubs := where .Pages ".Params.featured" "==" true }}
|
||||
{{ range $featuredpubs }}
|
||||
{{ .Scratch.Set "showAbstract" true }}
|
||||
{{ partial "academia/list-single.html" . }}
|
||||
{{ end }}
|
||||
<hr />
|
||||
<h2>Other Presentations</h2>
|
||||
{{ $nonfeaturedpubs := where .Pages ".Params.featured" "==" false }}
|
||||
{{ range $nonfeaturedpubs }}
|
||||
{{ partial "academia/list-single.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,47 +1,72 @@
|
|||
<div class="d-flex py-2">
|
||||
<div class="px-2">
|
||||
<h3>
|
||||
{{ if eq .Params.type "poster" }}<i class="fad fa-presentation" data-bs-toggle="tooltip" title="Poster"></i>{{ end }}
|
||||
{{ if eq .Params.type "thesis" }}<i class="fad fa-graduation-cap" data-bs-toggle="tooltip" title="Thesis"></i>{{ end }}
|
||||
{{ if eq .Params.type "presentation" }}<i class="fad fa-podium" data-bs-toggle="tooltip" title="Presentation"></i>{{ end }}
|
||||
</h3>
|
||||
{{ with .Params.link }}
|
||||
<a class="btn btn-secondary dogear" href="{{ . }}" data-bs-toggle="tooltip" title="Full text"><i class="fad fa-file-alt"></i></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="flex-grow-1 px-2">
|
||||
<h3>
|
||||
{{ .Title }}
|
||||
</h3>
|
||||
{{ $authlist := .Params.authors }}
|
||||
{{ range $idx, $auth := .Params.authors }}
|
||||
{{ if and (eq $idx (sub (len $authlist) 1)) (gt 1 (len $authlist)) }}
|
||||
and
|
||||
{{ end }}
|
||||
{{- if eq $auth "Thomas A. Christensen II" }}
|
||||
<strong>{{ $auth }}</strong>
|
||||
{{- else }}
|
||||
{{ $auth }}
|
||||
{{- end }}
|
||||
{{- if lt $idx (sub (len $authlist) 1) -}}
|
||||
,
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
<br />
|
||||
{{ .Params.journal }}: {{ .Params.location }} ({{ dateFormat "02 Jan 2006" .Params.date }})
|
||||
<br />
|
||||
{{ with .Params.keywords }}
|
||||
Keywords:
|
||||
{{ range . }}
|
||||
<a href="#">{{ . }}</a>
|
||||
{{ end }}
|
||||
<br />
|
||||
{{ end }}
|
||||
{{ if eq (.Scratch.Get "showAbstract") true }}
|
||||
<details>
|
||||
<summary>Abstract</summary>
|
||||
{{ .Content }}
|
||||
</details>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<h3>
|
||||
{{ if eq .Params.type "poster" }}
|
||||
<i
|
||||
class="fad fa-presentation"
|
||||
data-bs-toggle="tooltip"
|
||||
title="Poster"
|
||||
></i>
|
||||
{{ end }}
|
||||
{{ if eq .Params.type "thesis" }}
|
||||
<i
|
||||
class="fad fa-graduation-cap"
|
||||
data-bs-toggle="tooltip"
|
||||
title="Thesis"
|
||||
></i>
|
||||
{{ end }}
|
||||
{{ if eq .Params.type "presentation" }}
|
||||
<i
|
||||
class="fad fa-podium"
|
||||
data-bs-toggle="tooltip"
|
||||
title="Presentation"
|
||||
></i>
|
||||
{{ end }}
|
||||
</h3>
|
||||
{{ with .Params.link }}
|
||||
<a
|
||||
class="btn btn-secondary dogear"
|
||||
href="{{ . }}"
|
||||
data-bs-toggle="tooltip"
|
||||
title="Full text"
|
||||
><i class="fad fa-file-alt"></i
|
||||
></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="flex-grow-1 px-2">
|
||||
<h3>
|
||||
{{ .Title }}
|
||||
</h3>
|
||||
{{ $authlist := .Params.authors }}
|
||||
{{ range $idx, $auth := .Params.authors }}
|
||||
{{ if and (eq $idx (sub (len $authlist) 1)) (gt 1 (len $authlist)) }}
|
||||
and
|
||||
{{ end }}
|
||||
{{- if eq $auth "Thomas A. Christensen II" }}
|
||||
<strong>{{ $auth }}</strong>
|
||||
{{- else }}
|
||||
{{ $auth }}
|
||||
{{- end }}
|
||||
{{- if lt $idx (sub (len $authlist) 1) -}}
|
||||
,
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
<br />
|
||||
{{ .Params.journal }}: {{ .Params.location }}
|
||||
({{ dateFormat "02 Jan 2006" .Params.date }})
|
||||
<br />
|
||||
{{ with .Params.keywords }}
|
||||
Keywords:
|
||||
{{ range . }}
|
||||
<a href="#">{{ . }}</a>
|
||||
{{ end }}
|
||||
<br />
|
||||
{{ end }}
|
||||
{{ if eq (.Scratch.Get "showAbstract") true }}
|
||||
<details>
|
||||
<summary>Abstract</summary>
|
||||
{{ .Content }}
|
||||
</details>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,14 +1,19 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ .Content }}
|
||||
|
||||
<div class="row">
|
||||
{{ range .Pages }}
|
||||
<div class="col-sm-4">
|
||||
<a href="{{ .Permalink }}">
|
||||
<img class="img-fluid img-thumbnail rounded" src="{{ .Params.thumbnail }}" alt="Thumbnail of {{ .Title }}" />
|
||||
<h4>{{ .Title }}</h4>
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
{{ range .Pages }}
|
||||
<div class="col-sm-4">
|
||||
<a href="{{ .Permalink }}">
|
||||
<img
|
||||
class="img-fluid img-thumbnail rounded"
|
||||
src="{{ .Params.thumbnail }}"
|
||||
alt="Thumbnail of {{ .Title }}"
|
||||
/>
|
||||
<h4>{{ .Title }}</h4>
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,25 +1,26 @@
|
|||
{{ define "main" }}
|
||||
|
||||
{{ if eq .Params.storage "yt" }}
|
||||
{{ .Scratch.Set "embedLink" (print "https://www.youtube-nocookie.com/embed/" .Params.storageId) }}
|
||||
{{ end }}
|
||||
{{ if eq .Params.storage "vimeo" }}
|
||||
{{ .Scratch.Set "embedLink" (print "https://player.vimeo.com/video/" .Params.storageId "?color=ffffff") }}
|
||||
{{ end }}
|
||||
{{ if eq .Params.storage "lbry" }}
|
||||
{{ .Scratch.Set "embedLink" (print "https://odysee.com/$/embed/" .Params.storageId) }}
|
||||
{{ end }}
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="ratio ratio-16x9">
|
||||
<iframe
|
||||
src="{{ .Scratch.Get "embedLink" }}"
|
||||
title="{{ .Title }}"
|
||||
allowfullscreen>
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
{{ if eq .Params.storage "yt" }}
|
||||
{{ .Scratch.Set "embedLink" (print "https://www.youtube-nocookie.com/embed/" .Params.storageId) }}
|
||||
{{ end }}
|
||||
{{ if eq .Params.storage "vimeo" }}
|
||||
{{ .Scratch.Set "embedLink" (print "https://player.vimeo.com/video/" .Params.storageId "?color=ffffff") }}
|
||||
{{ end }}
|
||||
{{ if eq .Params.storage "lbry" }}
|
||||
{{ .Scratch.Set "embedLink" (print "https://odysee.com/$/embed/" .Params.storageId) }}
|
||||
{{ end }}
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="ratio ratio-16x9">
|
||||
<iframe
|
||||
src="{{ .Scratch.Get "embedLink" }}"
|
||||
title="{{ .Title }}"
|
||||
allowfullscreen
|
||||
>
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ .Content }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
const purgecss = require('postcss-purgecss')({
|
||||
content: ['./hugo_stats.json'],
|
||||
defaultExtractor: (content) => {
|
||||
let els = JSON.parse(content).htmlElements;
|
||||
return els.tags.concat(els.classes, els.ids);
|
||||
}
|
||||
const purgecss = require("postcss-purgecss")({
|
||||
content: ["./hugo_stats.json"],
|
||||
defaultExtractor: (content) => {
|
||||
let els = JSON.parse(content).htmlElements;
|
||||
return els.tags.concat(els.classes, els.ids);
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
plugins: [
|
||||
purgecss
|
||||
]
|
||||
}
|
||||
plugins: [purgecss],
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue