-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
3213 lines (3075 loc) · 236 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en"><head>
<script src="index_files/libs/clipboard/clipboard.min.js"></script>
<script src="index_files/libs/quarto-html/tabby.min.js"></script>
<script src="index_files/libs/quarto-html/popper.min.js"></script>
<script src="index_files/libs/quarto-html/tippy.umd.min.js"></script>
<link href="index_files/libs/quarto-html/tippy.css" rel="stylesheet">
<link href="index_files/libs/quarto-html/light-border.css" rel="stylesheet">
<link href="index_files/libs/quarto-html/quarto-html.min.css" rel="stylesheet" data-mode="light">
<link href="index_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<link href="index_files/libs/quarto-contrib/fontawesome6-0.1.0/all.css" rel="stylesheet">
<link href="index_files/libs/quarto-contrib/fontawesome6-0.1.0/latex-fontsize.css" rel="stylesheet"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="generator" content="quarto-1.3.450">
<title>index</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="index_files/libs/revealjs/dist/reset.css">
<link rel="stylesheet" href="index_files/libs/revealjs/dist/reveal.css">
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
vertical-align: middle;
}
/* CSS for syntax highlighting */
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #767676;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #767676; padding-left: 4px; }
div.sourceCode
{ color: #545454; background-color: #fefefe; }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span { color: #545454; } /* Normal */
code span.al { color: #7928a1; } /* Alert */
code span.an { color: #696969; } /* Annotation */
code span.at { color: #a55a00; } /* Attribute */
code span.bn { color: #7928a1; } /* BaseN */
code span.bu { } /* BuiltIn */
code span.cf { color: #d91e18; } /* ControlFlow */
code span.ch { color: #008000; } /* Char */
code span.cn { color: #d91e18; } /* Constant */
code span.co { color: #696969; } /* Comment */
code span.cv { color: #696969; font-style: italic; } /* CommentVar */
code span.do { color: #696969; font-style: italic; } /* Documentation */
code span.dt { color: #7928a1; } /* DataType */
code span.dv { color: #7928a1; } /* DecVal */
code span.er { color: #7928a1; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #a55a00; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { } /* Import */
code span.in { color: #696969; } /* Information */
code span.kw { color: #d91e18; } /* Keyword */
code span.op { color: #00769e; } /* Operator */
code span.ot { color: #d91e18; } /* Other */
code span.pp { color: #7928a1; } /* Preprocessor */
code span.sc { color: #00769e; } /* SpecialChar */
code span.ss { color: #008000; } /* SpecialString */
code span.st { color: #008000; } /* String */
code span.va { color: #a55a00; } /* Variable */
code span.vs { color: #008000; } /* VerbatimString */
code span.wa { color: #696969; font-style: italic; } /* Warning */
</style>
<link rel="stylesheet" href="index_files/libs/revealjs/dist/theme/quarto.css">
<link href="index_files/libs/revealjs/plugin/quarto-line-highlight/line-highlight.css" rel="stylesheet">
<link href="index_files/libs/revealjs/plugin/reveal-menu/menu.css" rel="stylesheet">
<link href="index_files/libs/revealjs/plugin/reveal-menu/quarto-menu.css" rel="stylesheet">
<link href="index_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/all.css" rel="stylesheet">
<link href="index_files/libs/revealjs/plugin/reveal-chalkboard/style.css" rel="stylesheet">
<link href="index_files/libs/revealjs/plugin/quarto-support/footer.css" rel="stylesheet">
<style type="text/css">
.callout {
margin-top: 1em;
margin-bottom: 1em;
border-radius: .25rem;
}
.callout.callout-style-simple {
padding: 0em 0.5em;
border-left: solid #acacac .3rem;
border-right: solid 1px silver;
border-top: solid 1px silver;
border-bottom: solid 1px silver;
display: flex;
}
.callout.callout-style-default {
border-left: solid #acacac .3rem;
border-right: solid 1px silver;
border-top: solid 1px silver;
border-bottom: solid 1px silver;
}
.callout .callout-body-container {
flex-grow: 1;
}
.callout.callout-style-simple .callout-body {
font-size: 1rem;
font-weight: 400;
}
.callout.callout-style-default .callout-body {
font-size: 0.9rem;
font-weight: 400;
}
.callout.callout-titled.callout-style-simple .callout-body {
margin-top: 0.2em;
}
.callout:not(.callout-titled) .callout-body {
display: flex;
}
.callout:not(.no-icon).callout-titled.callout-style-simple .callout-content {
padding-left: 1.6em;
}
.callout.callout-titled .callout-header {
padding-top: 0.2em;
margin-bottom: -0.2em;
}
.callout.callout-titled .callout-title p {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.callout.callout-titled.callout-style-simple .callout-content p {
margin-top: 0;
}
.callout.callout-titled.callout-style-default .callout-content p {
margin-top: 0.7em;
}
.callout.callout-style-simple div.callout-title {
border-bottom: none;
font-size: .9rem;
font-weight: 600;
opacity: 75%;
}
.callout.callout-style-default div.callout-title {
border-bottom: none;
font-weight: 600;
opacity: 85%;
font-size: 0.9rem;
padding-left: 0.5em;
padding-right: 0.5em;
}
.callout.callout-style-default div.callout-content {
padding-left: 0.5em;
padding-right: 0.5em;
}
.callout.callout-style-simple .callout-icon::before {
height: 1rem;
width: 1rem;
display: inline-block;
content: "";
background-repeat: no-repeat;
background-size: 1rem 1rem;
}
.callout.callout-style-default .callout-icon::before {
height: 0.9rem;
width: 0.9rem;
display: inline-block;
content: "";
background-repeat: no-repeat;
background-size: 0.9rem 0.9rem;
}
.callout-title {
display: flex
}
.callout-icon::before {
margin-top: 1rem;
padding-right: .5rem;
}
.callout.no-icon::before {
display: none !important;
}
.callout.callout-titled .callout-body > .callout-content > :last-child {
margin-bottom: 0.5rem;
}
.callout.callout-titled .callout-icon::before {
margin-top: .5rem;
padding-right: .5rem;
}
.callout:not(.callout-titled) .callout-icon::before {
margin-top: 1rem;
padding-right: .5rem;
}
/* Callout Types */
div.callout-note {
border-left-color: #4582ec !important;
}
div.callout-note .callout-icon::before {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAEU0lEQVRYCcVXTWhcVRQ+586kSUMMxkyaElstCto2SIhitS5Ek8xUKV2poatCcVHtUlFQk8mbaaziwpWgglJwVaquitBOfhQXFlqlzSJpFSpIYyXNjBNiTCck7x2/8/LeNDOZxDuEkgOXe++553zfefee+/OYLOXFk3+1LLrRdiO81yNqZ6K9cG0P3MeFaMIQjXssE8Z1JzLO9ls20MBZX7oG8w9GxB0goaPrW5aNMp1yOZIa7Wv6o2ykpLtmAPs/vrG14Z+6d4jpbSKuhdcSyq9wGMPXjonwmESXrriLzFGOdDBLB8Y6MNYBu0dRokSygMA/mrun8MGFN3behm6VVAwg4WR3i6FvYK1T7MHo9BK7ydH+1uurECoouk5MPRyVSBrBHMYwVobG2aOXM07sWrn5qgB60rc6mcwIDJtQrnrEr44kmy+UO9r0u9O5/YbkS9juQckLed3DyW2XV/qWBBB3ptvI8EUY3I9p/67OW+g967TNr3Sotn3IuVlfMLVnsBwH4fsnebJvyGm5GeIUA3jljERmrv49SizPYuq+z7c2H/jlGC+Ghhupn/hcapqmcudB9jwJ/3jvnvu6vu5lVzF1fXyZuZZ7U8nRmVzytvT+H3kilYvH09mLWrQdwFSsFEsxFVs5fK7A0g8gMZjbif4ACpKbjv7gNGaD8bUrlk8x+KRflttr22JEMRUbTUwwDQScyzPgedQHZT0xnx7ujw2jfVfExwYHwOsDTjLdJ2ebmeQIlJ7neo41s/DrsL3kl+W2lWvAga0tR3zueGr6GL78M3ifH0rGXrBC2aAR8uYcIA5gwV8zIE8onoh8u0Fca/ciF7j1uOzEnqcIm59sEXoGc0+z6+H45V1CvAvHcD7THztu669cnp+L0okAeIc6zjbM/24LgGM1gZk7jnRu1aQWoU9sfUOuhrmtaPIO3YY1KLLWZaEO5TKUbMY5zx8W9UJ6elpLwKXbsaZ4EFl7B4bMtDv0iRipKoDQT2sNQI9b1utXFdYisi+wzZ/ri/1m7QfDgEuvgUUEIJPq3DhX/5DWNqIXDOweC2wvIR90Oq3lDpdMIgD2r0dXvGdsEW5H6x6HLRJYU7C69VefO1x8Gde1ZFSJLfWS1jbCnhtOPxmpfv2LXOA2Xk2tvnwKKPFuZ/oRmwBwqRQDcKNeVQkYcOjtWVBuM/JuYw5b6isojIkYxyYAFn5K7ZBF10fea52y8QltAg6jnMqNHFBmGkQ1j+U43HMi2xMar1Nv0zGsf1s8nUsmUtPOOrbFIR8bHFDMB5zL13Gmr/kGlCkUzedTzzmzsaJXhYawnA3UmARpiYj5ooJZiUoxFRtK3X6pgNPv+IZVPcnwbOl6f+aBaO1CNvPW9n9LmCp01nuSaTRF2YxHqZ8DYQT6WsXT+RD6eUztwYLZ8rM+rcPxamv1VQzFUkzFXvkiVrySGQgJNvXHJAxiU3/NwiC03rSf05VBaPtu/Z7/B8Yn/w7eguloAAAAAElFTkSuQmCC');
}
div.callout-note.callout-style-default .callout-title {
background-color: #dae6fb
}
div.callout-important {
border-left-color: #d9534f !important;
}
div.callout-important .callout-icon::before {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAEKklEQVRYCcVXTWhcVRS+575MJym48A+hSRFr00ySRQhURRfd2HYjk2SSTokuBCkU2o0LoSKKraKIBTcuFCoidGFD08nkBzdREbpQ1EDNIv8qSGMFUboImMSZd4/f9zJv8ibJMC8xJQfO3HPPPef7zrvvvnvviIkpC9nsw0UttFunbUhpFzFtarSd6WJkStVMw5xyVqYTvkwfzuf/5FgtkVoB0729j1rjXwThS7Vio+Mo6DNnvLfahoZ+i/o32lULuJ3NNiz7q6+pyAUkJaFF6JwaM2lUJlV0MlnQn5aTRbEu0SEqHUa0A4AdiGuB1kFXRfVyg5d87+Dg4DL6m2TLAub60ilj7A1Ec4odSAc8X95sHh7+ZRPCFo6Fnp7HfU/fBng/hi10CjCnWnJjsxvDNxWw0NfV6Rv5GgP3I3jGWXumdTD/3cbEOP2ZbOZp69yniG3FQ9z1jD7bnBu9Fc2tKGC2q+uAJOQHBDRiZX1x36o7fWBs7J9ownbtO+n0/qWkvW7UPIfc37WgT6ZGR++EOJyeQDSb9UB+DZ1G6DdLDzyS+b/kBCYGsYgJbSQHuThGKRcw5xdeQf8YdNHsc6ePXrlSYMBuSIAFTGAtQo+VuALo4BX83N190NWZWbynBjhOHsmNfFWLeL6v+ynsA58zDvvAC8j5PkbOcXCMg2PZFk3q8MjI7WAG/Dp9AwP7jdGBOOQkAvlFUB+irtm16I1Zw9YBcpGTGXYmk3kQIC/Cds55l+iMI3jqhjAuaoe+am2Jw5GT3Nbz3CkE12NavmzN5+erJW7046n/CH1RO/RVa8lBLozXk9uqykkGAyRXLWlLv5jyp4RFsG5vGVzpDLnIjTWgnRy2Rr+tDKvRc7Y8AyZq10jj8DqXdnIRNtFZb+t/ZRtXcDiVnzpqx8mPcDWxgARUqx0W1QB9MeUZiNrV4qP+Ehc+BpNgATsTX8ozYKL2NtFYAHc84fG7ndxUPr+AR/iQSns7uSUufAymwDOb2+NjK27lEFocm/EE2WpyIy/Hi66MWuMKJn8RvxIcj87IM5Vh9663ziW36kR0HNenXuxmfaD8JC7tfKbrhFr7LiZCrMjrzTeGx+PmkosrkNzW94ObzwocJ7A1HokLolY+AvkTiD/q1H0cN48c5EL8Crkttsa/AXQVDmutfyku0E7jShx49XqV3MFK8IryDhYVbj7Sj2P2eBxwcXoe8T8idsKKPRcnZw1b+slFTubwUwhktrfnAt7J++jwQtLZcm3sr9LQrjRzz6cfMv9aLvgmnAGvpoaGLxM4mAEaLV7iAzQ3oU0IvD5x9ix3yF2RAAuYAOO2f7PEFWCXZ4C9Pb2UsgDeVnFSpbFK7/IWu7TPTvBqzbGdCHOJQSxiEjt6IyZmxQyEJHv6xyQsYk//moVFsN2zP6fRImjfq7/n/wFDguUQFNEwugAAAABJRU5ErkJggg==');
}
div.callout-important.callout-style-default .callout-title {
background-color: #f7dddc
}
div.callout-warning {
border-left-color: #f0ad4e !important;
}
div.callout-warning .callout-icon::before {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAETklEQVRYCeVWW2gcVRg+58yaTUnizqbipZeX4uWhBEniBaoUX1Ioze52t7sRq6APio9V9MEaoWlVsFasRq0gltaAPuxms8lu0gcviE/FFOstVbSIxgcv6SU7EZqmdc7v9+9mJtNks51NTUH84ed889/PP+cmxP+d5FIbMJmNbpREu4WUkiTtCicKny0l1pIKmBzovF2S+hIJHX8iEu3hZJ5lNZGqyRrGSIQpq15AzF28jgpeY6yk6GVdrfFqdrD6Iw+QlB8g0YS2g7dyQmXM/IDhBhT0UCiRf59lfqmmDvzRt6kByV/m4JjtzuaujMUM2c5Z2d6JdKrRb3K2q6mA+oYVz8JnDdKPmmNthzkAk/lN63sYPgevrguc72aZX/L9C6x09GYyxBgCX4NlvyGUHOKELlm5rXeR1kchuChJt4SSwyddZRXgvwMGvYo4QSlk3/zkHD8UHxwVJA6zjZZqP8v8kK8OWLnIZtLyCAJagYC4rTGW/9Pqj92N/c+LUaAj27movwbi19tk/whRCIE7Q9vyI6yvRpftAKVTdUjOW40X3h5OXsKCdmFcx0xlLJoSuQngnrJe7Kcjm4OMq9FlC7CMmScQANuNvjfP3PjGXDBaUQmbp296S5L4DrpbrHN1T87ZVEZVCzg1FF0Ft+dKrlLukI+/c9ENo+TvlTDbYFvuKPtQ9+l052rXrgKoWkDAFnvh0wTOmYn8R5f4k/jN/fZiCM1tQx9jQQ4ANhqG4hiL0qIFTGViG9DKB7GYzgubnpofgYRwO+DFjh0Zin2m4b/97EDkXkc+f6xYAPX0KK2I/7fUQuwzuwo/L3AkcjugPNixC8cHf0FyPjWlItmLxWw4Ou9YsQCr5fijMGoD/zpdRy95HRysyXA74MWOnscpO4j2y3HAVisw85hX5+AFBRSHt4ShfLFkIMXTqyKFc46xdzQM6XbAi702a7sy04J0+feReMFKp5q9esYLCqAZYw/k14E/xcLLsFElaornTuJB0svMuJINy8xkIYuL+xPAlWRceH6+HX7THJ0djLUom46zREu7tTkxwmf/FdOZ/sh6Q8qvEAiHpm4PJ4a/doJe0gH1t+aHRgCzOvBvJedEK5OFE5jpm4AGP2a8Dxe3gGJ/pAutug9Gp6he92CsSsWBaEcxGx0FHytmIpuqGkOpldqNYQK8cSoXvd+xLxXADw0kf6UkJNFtdo5MOgaLjiQOQHcn+A6h5NuL2s0qsC2LOM75PcF3yr5STuBSAcGG+meA14K/CI21HcS4LBT6tv0QAh8Dr5l93AhZzG5ZJ4VxAqdZUEl9z7WJ4aN+svMvwHHL21UKTd1mqvChH7/Za5xzXBBKrUcB0TQ+Ulgkfbi/H/YT5EptrGzsEK7tR1B7ln9BBwckYfMiuSqklSznIuoIIOM42MQO+QnduCoFCI0bpkzjCjddHPN/F+2Yu+sd9bKNpVwHhbS3LluK/0zgfwD0xYI5dXuzlQAAAABJRU5ErkJggg==');
}
div.callout-warning.callout-style-default .callout-title {
background-color: #fcefdc
}
div.callout-tip {
border-left-color: #02b875 !important;
}
div.callout-tip .callout-icon::before {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAADr0lEQVRYCe1XTWgTQRj9ZjZV8a9SPIkKgj8I1bMHsUWrqYLVg4Ue6v9BwZOxSYsIerFao7UiUryIqJcqgtpimhbBXoSCVxUFe9CTiogUrUp2Pt+3aUI2u5vdNh4dmMzOzHvvezuz8xNFM0mjnbXaNu1MvFWRXkXEyE6aYOYJpdW4IXuA4r0fo8qqSMDBU0v1HJUgVieAXxzCsdE/YJTdFcVIZQNMyhruOMJKXYFoLfIfIvVIMWdsrd+Rpd86ZmyzzjJmLStqRn0v8lzkb4rVIXvnpScOJuAn2ACC65FkPzEdEy4TPWRLJ2h7z4cArXzzaOdKlbOvKKX25Wl00jSnrwVxAg3o4dRxhO13RBSdNvH0xSARv3adTXbBdTf64IWO2vH0LT+cv4GR1DJt+DUItaQogeBX/chhbTBxEiZ6gftlDNXTrvT7co4ub5A6gp9HIcHvzTa46OS5fBeP87Qm0fQkr4FsYgVQ7Qg+ZayaDg9jhg1GkWj8RG6lkeSacrrHgDaxdoBiZPg+NXV/KifMuB6//JmYH4CntVEHy/keA6x4h4CU5oFy8GzrBS18cLJMXcljAKB6INjWsRcuZBWVaS3GDrqB7rdapVIeA+isQ57Eev9eCqzqOa81CY05VLd6SamW2wA2H3SiTbnbSxmzfp7WtKZkqy4mdyAlGx7ennghYf8voqp9cLSgKdqNfa6RdRsAAkPwRuJZNbpByn+RrJi1RXTwdi8RQF6ymDwGMAtZ6TVE+4uoKh+MYkcLsT0Hk8eAienbiGdjJHZTpmNjlbFJNKDVAp2fJlYju6IreQxQ08UJDNYdoLSl6AadO+fFuCQqVMB1NJwPm69T04Wv5WhfcWyfXQB+wXRs1pt+nCknRa0LVzSA/2B+a9+zQJadb7IyyV24YAxKp2Jqs3emZTuNnKxsah+uabKbMk7CbTgJx/zIgQYErIeTKRQ9yD9wxVof5YolPHqaWo7TD6tJlh7jQnK5z2n3+fGdggIOx2kaa2YI9QWarc5Ce1ipNWMKeSG4DysFF52KBmTNMmn5HqCFkwy34rDg05gDwgH3bBi+sgFhN/e8QvRn8kbamCOhgrZ9GJhFDgfcMHzFb6BAtjKpFhzTjwv1KCVuxHvCbsSiEz4CANnj84cwHdFXAbAOJ4LTSAawGWFn5tDhLMYz6nWeU2wJfIhmIJBefcd/A5FWQWGgrWzyORZ3Q6HuV+Jf0Bj+BTX69fm1zWgK7By1YTXchFDORywnfQ7GpzOo6S+qECrsx2ifVQAAAABJRU5ErkJggg==');
}
div.callout-tip.callout-style-default .callout-title {
background-color: #ccf1e3
}
div.callout-caution {
border-left-color: #fd7e14 !important;
}
div.callout-caution .callout-icon::before {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAACV0lEQVRYCdVWzWoUQRCuqp2ICBLJXgITZL1EfQDBW/bkzUMUD7klD+ATSHBEfAIfQO+iXsWDxJsHL96EHAwhgzlkg8nBg25XWb0zIb0zs9muYYWkoKeru+vn664fBqElyZNuyh167NXJ8Ut8McjbmEraKHkd7uAnAFku+VWdb3reSmRV8PKSLfZ0Gjn3a6Xlcq9YGb6tADjn+lUfTXtVmaZ1KwBIvFI11rRXlWlatwIAAv2asaa9mlB9wwygiDX26qaw1yYPzFXg2N1GgG0FMF8Oj+VIx7E/03lHx8UhvYyNZLN7BwSPgekXXLribw7w5/c8EF+DBK5idvDVYtEEwMeYefjjLAdEyQ3M9nfOkgnPTEkYU+sxMq0BxNR6jExrAI31H1rzvLEfRIdgcv1XEdj6QTQAS2wtstEALLG1yEZ3QhH6oDX7ExBSFEkFINXH98NTrme5IOaaA7kIfiu2L8A3qhH9zRbukdCqdsA98TdElyeMe5BI8Rs2xHRIsoTSSVFfCFCWGPn9XHb4cdobRIWABNf0add9jakDjQJpJ1bTXOJXnnRXHRf+dNL1ZV1MBRCXhMbaHqGI1JkKIL7+i8uffuP6wVQAzO7+qVEbF6NbS0LJureYcWXUUhH66nLR5rYmva+2tjRFtojkM2aD76HEGAD3tPtKM309FJg5j/K682ywcWJ3PASCcycH/22u+Bh7Aa0ehM2Fu4z0SAE81HF9RkB21c5bEn4Dzw+/qNOyXr3DCTQDMBOdhi4nAgiFDGCinIa2owCEChUwD8qzd03PG+qdW/4fDzjUMcE1ZpIAAAAASUVORK5CYII=');
}
div.callout-caution.callout-style-default .callout-title {
background-color: #ffe5d0
}
</style>
<style type="text/css">
.reveal div.sourceCode {
margin: 0;
overflow: auto;
}
.reveal div.hanging-indent {
margin-left: 1em;
text-indent: -1em;
}
.reveal .slide:not(.center) {
height: 100%;
}
.reveal .slide.scrollable {
overflow-y: auto;
}
.reveal .footnotes {
height: 100%;
overflow-y: auto;
}
.reveal .slide .absolute {
position: absolute;
display: block;
}
.reveal .footnotes ol {
counter-reset: ol;
list-style-type: none;
margin-left: 0;
}
.reveal .footnotes ol li:before {
counter-increment: ol;
content: counter(ol) ". ";
}
.reveal .footnotes ol li > p:first-child {
display: inline-block;
}
.reveal .slide ul,
.reveal .slide ol {
margin-bottom: 0.5em;
}
.reveal .slide ul li,
.reveal .slide ol li {
margin-top: 0.4em;
margin-bottom: 0.2em;
}
.reveal .slide ul[role="tablist"] li {
margin-bottom: 0;
}
.reveal .slide ul li > *:first-child,
.reveal .slide ol li > *:first-child {
margin-block-start: 0;
}
.reveal .slide ul li > *:last-child,
.reveal .slide ol li > *:last-child {
margin-block-end: 0;
}
.reveal .slide .columns:nth-child(3) {
margin-block-start: 0.8em;
}
.reveal blockquote {
box-shadow: none;
}
.reveal .tippy-content>* {
margin-top: 0.2em;
margin-bottom: 0.7em;
}
.reveal .tippy-content>*:last-child {
margin-bottom: 0.2em;
}
.reveal .slide > img.stretch.quarto-figure-center,
.reveal .slide > img.r-stretch.quarto-figure-center {
display: block;
margin-left: auto;
margin-right: auto;
}
.reveal .slide > img.stretch.quarto-figure-left,
.reveal .slide > img.r-stretch.quarto-figure-left {
display: block;
margin-left: 0;
margin-right: auto;
}
.reveal .slide > img.stretch.quarto-figure-right,
.reveal .slide > img.r-stretch.quarto-figure-right {
display: block;
margin-left: auto;
margin-right: 0;
}
</style>
</head>
<body class="quarto-light">
<div class="reveal">
<div class="slides">
<section id="title-slide" class="slide level2 center" data-menu-title="Title Slide" data-background="#053660"><h2></h2>
<p><span class="custom-title">Customizing Quarto Websites</span></p>
<p><span class="custom-subtitle"><em>Make your website stand out using <svg aria-label="Sass" role="img" viewbox="0 0 640 512" style="height:1em;width:1.25em;vertical-align:-0.125em;margin-left:auto;margin-right:auto;font-size:inherit;fill:#d2e3f3;overflow:visible;position:relative;"><title>Sass</title>
<path d="M301.84 378.92c-.3.6-.6 1.08 0 0zm249.13-87a131.16 131.16 0 0 0-58 13.5c-5.9-11.9-12-22.3-13-30.1-1.2-9.1-2.5-14.5-1.1-25.3s7.7-26.1 7.6-27.2-1.4-6.6-14.3-6.7-24 2.5-25.29 5.9a122.83 122.83 0 0 0-5.3 19.1c-2.3 11.7-25.79 53.5-39.09 75.3-4.4-8.5-8.1-16-8.9-22-1.2-9.1-2.5-14.5-1.1-25.3s7.7-26.1 7.6-27.2-1.4-6.6-14.29-6.7-24 2.5-25.3 5.9-2.7 11.4-5.3 19.1-33.89 77.3-42.08 95.4c-4.2 9.2-7.8 16.6-10.4 21.6-.4.8-.7 1.3-.9 1.7.3-.5.5-1 .5-.8-2.2 4.3-3.5 6.7-3.5 6.7v.1c-1.7 3.2-3.6 6.1-4.5 6.1-.6 0-1.9-8.4.3-19.9 4.7-24.2 15.8-61.8 15.7-63.1-.1-.7 2.1-7.2-7.3-10.7-9.1-3.3-12.4 2.2-13.2 2.2s-1.4 2-1.4 2 10.1-42.4-19.39-42.4c-18.4 0-44 20.2-56.58 38.5-7.9 4.3-25 13.6-43 23.5-6.9 3.8-14 7.7-20.7 11.4-.5-.5-.9-1-1.4-1.5-35.79-38.2-101.87-65.2-99.07-116.5 1-18.7 7.5-67.8 127.07-127.4 98-48.8 176.35-35.4 189.84-5.6 19.4 42.5-41.89 121.6-143.66 133-38.79 4.3-59.18-10.7-64.28-16.3-5.3-5.9-6.1-6.2-8.1-5.1-3.3 1.8-1.2 7 0 10.1 3 7.9 15.5 21.9 36.79 28.9 18.7 6.1 64.18 9.5 119.17-11.8 61.78-23.8 109.87-90.1 95.77-145.6C386.52 18.32 293-.18 204.57 31.22c-52.69 18.7-109.67 48.1-150.66 86.4-48.69 45.6-56.48 85.3-53.28 101.9 11.39 58.9 92.57 97.3 125.06 125.7-1.6.9-3.1 1.7-4.5 2.5-16.29 8.1-78.18 40.5-93.67 74.7-17.5 38.8 2.9 66.6 16.29 70.4 41.79 11.6 84.58-9.3 107.57-43.6s20.2-79.1 9.6-99.5c-.1-.3-.3-.5-.4-.8 4.2-2.5 8.5-5 12.8-7.5 8.29-4.9 16.39-9.4 23.49-13.3-4 10.8-6.9 23.8-8.4 42.6-1.8 22 7.3 50.5 19.1 61.7 5.2 4.9 11.49 5 15.39 5 13.8 0 20-11.4 26.89-25 8.5-16.6 16-35.9 16-35.9s-9.4 52.2 16.3 52.2c9.39 0 18.79-12.1 23-18.3v.1s.2-.4.7-1.2c1-1.5 1.5-2.4 1.5-2.4v-.3c3.8-6.5 12.1-21.4 24.59-46 16.2-31.8 31.69-71.5 31.69-71.5a201.24 201.24 0 0 0 6.2 25.8c2.8 9.5 8.7 19.9 13.4 30-3.8 5.2-6.1 8.2-6.1 8.2a.31.31 0 0 0 .1.2c-3 4-6.4 8.3-9.9 12.5-12.79 15.2-28 32.6-30 37.6-2.4 5.9-1.8 10.3 2.8 13.7 3.4 2.6 9.4 3 15.69 2.5 11.5-.8 19.6-3.6 23.5-5.4a82.2 82.2 0 0 0 20.19-10.6c12.5-9.2 20.1-22.4 19.4-39.8-.4-9.6-3.5-19.2-7.3-28.2 1.1-1.6 2.3-3.3 3.4-5C434.8 301.72 450.1 270 450.1 270a201.24 201.24 0 0 0 6.2 25.8c2.4 8.1 7.09 17 11.39 25.7-18.59 15.1-30.09 32.6-34.09 44.1-7.4 21.3-1.6 30.9 9.3 33.1 4.9 1 11.9-1.3 17.1-3.5a79.46 79.46 0 0 0 21.59-11.1c12.5-9.2 24.59-22.1 23.79-39.6-.3-7.9-2.5-15.8-5.4-23.4 15.7-6.6 36.09-10.2 62.09-7.2 55.68 6.5 66.58 41.3 64.48 55.8s-13.8 22.6-17.7 25-5.1 3.3-4.8 5.1c.5 2.6 2.3 2.5 5.6 1.9 4.6-.8 29.19-11.8 30.29-38.7 1.6-34-31.09-71.4-89-71.1zm-429.18 144.7c-18.39 20.1-44.19 27.7-55.28 21.3C54.61 451 59.31 421.42 82 400c13.8-13 31.59-25 43.39-32.4 2.7-1.6 6.6-4 11.4-6.9.8-.5 1.2-.7 1.2-.7.9-.6 1.9-1.1 2.9-1.7 8.29 30.4.3 57.2-19.1 78.3zm134.36-91.4c-6.4 15.7-19.89 55.7-28.09 53.6-7-1.8-11.3-32.3-1.4-62.3 5-15.1 15.6-33.1 21.9-40.1 10.09-11.3 21.19-14.9 23.79-10.4 3.5 5.9-12.2 49.4-16.2 59.2zm111 53c-2.7 1.4-5.2 2.3-6.4 1.6-.9-.5 1.1-2.4 1.1-2.4s13.9-14.9 19.4-21.7c3.2-4 6.9-8.7 10.89-13.9 0 .5.1 1 .1 1.6-.13 17.9-17.32 30-25.12 34.8zm85.58-19.5c-2-1.4-1.7-6.1 5-20.7 2.6-5.7 8.59-15.3 19-24.5a36.18 36.18 0 0 1 1.9 10.8c-.1 22.5-16.2 30.9-25.89 34.4z"></path></svg> & <svg aria-label="Alternate CSS3 Logo" role="img" viewbox="0 0 384 512" style="height:1em;width:0.75em;vertical-align:-0.125em;margin-left:auto;margin-right:auto;font-size:inherit;fill:#d2e3f3;overflow:visible;position:relative;"><title>Alternate CSS3 Logo</title>
<path d="M0 32l34.9 395.8L192 480l157.1-52.2L384 32H0zm313.1 80l-4.8 47.3L193 208.6l-.3.1h111.5l-12.8 146.6-98.2 28.7-98.8-29.2-6.4-73.9h48.9l3.2 38.3 52.6 13.3 54.7-15.4 3.7-61.6-166.3-.5v-.1l-.2.1-3.6-46.3L193.1 162l6.5-2.7H76.7L70.9 112h242.2z"></path></svg></em></span></p>
<div class="columns">
<div class="column" style="width:50%;">
<p><span class="body-text-s baby-blue-text"><strong>Published:</strong> Oct 10, 2022</span></p>
</div><div class="column" style="width:50%;">
<p><span class="body-text-s baby-blue-text"><strong>Last updated:</strong> Jun 19, 2024</span></p>
</div>
</div>
<hr class="hr-teal">
<div class="columns">
<div class="column" style="width:50%;">
<p><span class="custom-subtitle2">Sam Csik |</span><br><span class="custom-subtitle2">Data Training Coordinator</span><br><span class="custom-subtitle3"><em>National Center for Ecological Analysis & Synthesis</em></span></p>
</div><div class="column" style="width:50%;">
<p><span class="custom-subtitle2">Master of Environmental Data Science |</span><br><span class="custom-subtitle3"><em>Bren School of Environmental Science & Management</em></span></p>
</div>
</div>
<p><br></p>
<div class="title-footer">
<p>Slides & source code available on <a href="https://github.com/UCSB-MEDS/customizing-quarto-websites">GitHub <i class="fa-brands fa-github" title="GitHub Octocat logo" aria-hidden="true"></i></a></p>
<p><em>Beginning Fall 2024, these materials will be taught as a part of a <a href="https://bren.ucsb.edu/courses/eds-296-1f">2-unit course</a> offered at Bren. You can find these, along with other related materials, linked on the <a href="https://ucsb-meds.github.io/EDS-296-DS-portfolios/">course website</a>.</em></p>
</div>
</section><section id="prerequisites" class="slide level2" data-menu-title="Prerequisites"><h2></h2>
<p><span class="slide-title"><i class="fa-solid fa-check" title="check mark" aria-hidden="true"></i> Prerequisites</span></p>
<hr>
<div class="body-text">
<p>You should already have a Quarto website (or at least the bones of one) that:</p>
</div>
<div class="body-text">
<ul>
<li><p>is deployed using GitHub Pages <strong>and</strong></p></li>
<li><p>contains <em>some</em> content (e.g. text, headings, etc.) for us to customize</p></li>
</ul>
</div>
<img data-src="images/penguins_meteor.png" style="width:85.0%" alt="Two penguins looking happily up at a Quarto logo 'meteor' that is flying overhead." class="r-stretch quarto-figure-center"><div class="body-text-s gray-text center-text">
<p>Art by <a href="https://github.com/allisonhorst/stats-illustrations">Allison Horst</a></p>
</div>
<p><br></p>
<div class="footer">
<p><strong>If you first need to get your website up and running, follow along with these <a href="https://ucsb-meds.github.io/creating-quarto-websites/">step-by-step instructions</a> before moving forward.</strong></p>
</div>
</section><section id="tldr1" class="slide level2" data-menu-title="TL;DR"><h2></h2>
<p><span class="slide-title">TL;DR</span></p>
<hr>
<p>When we render a new Quarto site, it converts all of our markdown into HTML and applies a pre-built CSS stylesheet (the Bootswatch <a href="https://bootswatch.com/cosmo/">Cosmo theme</a>). We can modify the appearance of our website in a number of ways. We’ll learn a bit about the following:</p>
<p><br></p>
<div>
<div class="body-text-s">
<ul>
<li class="fragment"><p><span class="teal-text"><strong>Editing the <code>index.qmd</code> YAML</strong></span> – you can apply a <a href="https://quarto.org/docs/websites/website-about.html#templates">pre-built template</a> to give your landing page a sleek and professional appearance (we can further modify this later with some CSS).</p></li>
<li class="fragment"><p><span class="teal-text"><strong>Editing the <code>_quarto.yml</code> file</strong></span> – this is our website configuration file, where we can easily update our website’s navigation (e.g. add new pages), add a page footer, a <a href="https://en.wikipedia.org/wiki/Favicon">favicon</a>, and much more. We can also switch the default theme to a different pre-built <a href="https://bootswatch.com/">Bootswatch theme</a> (by replacing <code>cosmo</code> with an alternative theme name).</p></li>
<li class="fragment"><p><span class="teal-text"><strong>Defining CSS rules in the <code>styles.css</code> file</strong></span> that comes with every new Quarto site. This allows you to fine-tune the appearance of your site.</p></li>
<li class="fragment"><p><span class="teal-text"><strong>Creating a <code>.scss</code> file(s)</strong></span> that contains <a href="https://sass-lang.com/">Sass</a> variables to quickly customize your website’s theme – these take the form of <code>$var-name: value;</code> and you can find a list of them in the <a href="https://quarto.org/docs/output-formats/html-themes.html#sass-variables">Quarto documentation</a>.</p></li>
</ul>
</div>
</div>
<p><br></p>
<div class="fragment">
<div class="body-text-xl teal-text center-text">
<p>Or…</p>
</div>
</div>
</section><section id="tldr2" class="slide level2" data-menu-title="TL;DR"><h2></h2>
<p><span class="slide-title">TL;DR</span></p>
<hr>
<p><br></p>
<div class="body-text-xl teal-text center-text bottombr">
<p>Combine all of the above!</p>
</div>
<div class="body-text-l center-text">
<p>Approaching this in the following order worked best for me:</p>
</div>
<div class="fragment">
<div>
<ul>
<li class="fragment"><p><span class="teal-text"><strong>First</strong></span>, add a <a href="https://quarto.org/docs/websites/website-about.html#templates">pre-built template</a> to <code>index.qmd</code> and adjust website configurations by editing <code>_quarto.yml</code> – this is the easiest way to add some really cool features with minimal effort.</p></li>
<li class="fragment"><p><span class="teal-text"><strong>Next</strong></span>, create a <code>styles.scss</code> file, link to it in <code>_quarto.yml</code> (this applies your styles to your Quarto site), and define your Sass variables.</p></li>
<li class="fragment"><p><span class="teal-text"><strong>Finally</strong></span>, make fine-tuned adjustments by defining CSS rules directly in your <code>styles.scss</code> file (you can write CSS in <code>.scss</code> files, but not Sass in <code>.css</code> files).</p></li>
</ul>
</div>
</div>
</section><section id="branches" class="slide level2" data-menu-title="Use branches!"><h2></h2>
<p><span class="slide-title2"><i class="fa-solid fa-code-branch" aria-hidden="true"></i> Working on branches is recommended!</span></p>
<hr>
<div class="body-text-m center-text">
<p><em>I almost always work on a branch when making changes to my website – this way I can safely test changes before deploying them to my live site.</em></p>
</div>
<div class="body-text-s">
<p>To create a branch, first ensure that you’re on <code>main</code> by typing either <code>git branch</code> or <code>git status</code> into the RStudio Terminal (either will tell you which branch you’re currently on). If you’re not on <code>main</code>, you can switch by running <code>git checkout main</code>.</p>
</div>
<div class="body-text-s">
<p>Create a local git branch from <code>main</code> by running the following in your Terminal:</p>
</div>
<div class="cell">
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>Command line / RStudio Terminal</strong></pre>
</div>
<div class="sourceCode cell-code" id="cb1" data-code-line-numbers="false"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">git</span> checkout <span class="at">-b</span> my-new-branch</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
<div class="body-text-s">
<p>Push your new local branch to GitHub by running the following in your terminal:</p>
</div>
<div class="cell">
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>Command line / RStudio Terminal</strong></pre>
</div>
<div class="sourceCode cell-code" id="cb2" data-code-line-numbers="false"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="fu">git</span> push <span class="at">-u</span> origin my-new-branch</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
<div class="body-text-s topbr">
<p>You’re now ready to work as normal! Once satisfied with your changes, you can <code>git add</code>, <code>git commit -m "my commit message"</code>, and <code>git push</code> (or use the RStudio GUI buttons in the <strong>Git</strong> tab) your files. Open a <a href="https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests">pull request</a> from GitHub and <a href="https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/merging-a-pull-request">merge</a> into <code>main</code> to integrate your changes.</p>
</div>
</section><section id="quarto-preview" class="slide level2" data-menu-title="quarto preview"><h2></h2>
<p><span class="slide-title">Preview your site for fast iteration</span></p>
<hr>
<p>Run <code>quarto preview</code> in the RStudio Terminal to view changes in near real time – each time you edit and save your work, the preview will update in your browser.</p>
<p><br></p>
<img data-src="images/quarto-preview.gif" style="width:100.0%" class="r-stretch quarto-figure-center"></section><section id="lets-start-styling" class="slide level2" data-menu-title="Let's start styling" data-background="#053660"><h2></h2>
<div class="page-center">
<div class="custom-subtitle">
<i class="fa-solid fa-palette" title="a painter’s palette" aria-hidden="true"></i> Let’s start styling
</div>
</div>
</section><section id="so-youve-created-a-website" class="slide level2" data-menu-title="So you've created a Quarto website..."><h2></h2>
<p><span class="slide-title">So you’ve created your personal website using Quarto . . .</span></p>
<hr>
<div class="column" style="width:50%;">
<div class="body-text">
<p><br><br><a href="https://quarto.org/">Quarto</a> gives us an easy-to-use web publishing format to create our personal websites – we can develop in a space that is comfortable (for me, that’s RStudio) and write mostly Markdown syntax (which is rendered as HTML when we build our website). A massive benefit is that these websites already look pretty slick right out of the box.</p>
</div>
</div><div class="column" style="width:50%;">
<div class="cell" data-layout-align="center">
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure><p><img data-src="images/trestles-template.png" style="width:85.0%"></p>
</figure>
</div>
</div>
</div>
<div class="body-text-s gray-text center-text">
<p>An example Quarto website styled using the built-in <a href="https://bootswatch.com/">Bootswatch</a> theme, <a href="https://bootswatch.com/cosmo/">Cosmo</a>, <em>and</em> the <code>trestles</code> <a href="https://quarto.org/docs/websites/website-about.html">layout template</a> applied</p>
</div>
</div>
<div class="center-text">
<p><span class="teal-text"><strong>Please note:</strong> these materials assume you’ve already worked through <a href="https://ucsb-meds.github.io/creating-quarto-websites/">Creating your personal website with Quarto</a> and pick up where those instructions left off.</span></p>
</div>
</section><section id="modify-to-stand-out" class="slide level2" data-menu-title="Make your website stand stand out"><h2></h2>
<p><span class="slide-title3">But some additional modifications can make <em>your</em> website stand out from the rest</span></p>
<hr>
<img data-src="images/unique.gif" alt="Alecia Keys, a judge on the TV show, The Voice, excited slams her hands down and stands up saying, 'There is nobody like you!'" class="r-stretch quarto-figure-center"></section><section id="edit-quarto-yml" class="slide level2" data-menu-title="## Edit YAML ##" data-background="#053660"><h2></h2>
<div class="vertical-center">
<!-- <center><div class="custom-subtitle2">Add a template to your `index.qmd` and edit `_quarto.qmd`</div></center> -->
<center>
<div class="custom-subtitle2">
First, add a <a href="https://quarto.org/docs/websites/website-about.html#templates">pre-built template</a> to <code>index.qmd</code> and adjust website configurations by editing <code>_quarto.yml</code> – this is the easiest way to add some really cool features with minimal effort.
</div>
</center>
</div>
</section><section id="add-template1" class="slide level2" data-menu-title="Add a landing page template (rendered)"><h2></h2>
<p><span class="slide-title3">Arrange your landing page content using a pre-built template</span></p>
<hr>
<p>Quarto has 5 pre-built template “<a href="https://quarto.org/docs/websites/website-about.html">about pages</a>”, which can be used to nicely arrange content about a person or organization. These work especially well for personal websites! For example:</p>
<div class="columns">
<div class="column" style="width:50%;">
<div class="cell" data-layout-align="center">
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure><p><img data-src="images/no-about-page.png" style="width:90.0%"></p>
</figure>
</div>
</div>
</div>
<div class="body-text-s gray-text center-text">
<p>Without an About Page template</p>
</div>
</div><div class="column" style="width:50%;">
<div class="cell" data-layout-align="center">
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure><p><img data-src="images/trestles-template.png" style="width:92.0%"></p>
</figure>
</div>
</div>
</div>
<div class="body-text-s gray-text center-text">
<p>With the <code>trestles</code> About Page template</p>
</div>
</div>
</div>
<div class="center-text">
<p><strong>Note:</strong> You can apply a template to <em>any</em> of your website’s pages, though they are particularly awesome for creating a clean, professional-looking landing page.</p>
</div>
</section><section id="add-template2" class="slide level2" data-menu-title="Add a landing page template (code)"><h2></h2>
<p><span class="slide-title3">Arrange your landing page content using a pre-built template</span> <!-- [Apply a template in index.qmd’s YAML]{.slide-title} --></p>
<hr>
<p>Use the <code>about</code> option to apply a template to your landing page:</p>
<div class="cell">
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>index.qmd</strong></pre>
</div>
<div class="sourceCode cell-code" id="cb3" data-code-line-numbers="false"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="sc">---</span></span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a>title<span class="sc">:</span> <span class="st">"Samantha Csik"</span> <span class="co"># if using a built-in template, this title appears under your photo</span></span>
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a>image<span class="sc">:</span> file<span class="sc">/</span>path<span class="sc">/</span>to<span class="sc">/</span>headshot.jpg <span class="co"># a great spot for your professional headshot :) </span></span>
<span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a>toc<span class="sc">:</span> false <span class="co"># disable table of contents for this page</span></span>
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a>about<span class="sc">:</span> </span>
<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a> template<span class="sc">:</span> trestles </span>
<span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a> image<span class="sc">-</span>shape<span class="sc">:</span> round</span>
<span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a> image<span class="sc">-</span>width<span class="sc">:</span> 20em</span>
<span id="cb3-9"><a href="#cb3-9" aria-hidden="true" tabindex="-1"></a> links<span class="sc">:</span> <span class="co"># create buttons</span></span>
<span id="cb3-10"><a href="#cb3-10" aria-hidden="true" tabindex="-1"></a> <span class="sc">-</span> text<span class="sc">:</span> LinkedIn</span>
<span id="cb3-11"><a href="#cb3-11" aria-hidden="true" tabindex="-1"></a> href<span class="sc">:</span> https<span class="sc">:</span><span class="er">//</span>www.linkedin.com<span class="sc">/</span><span class="cf">in</span><span class="sc">/</span>samanthacsik<span class="sc">/</span></span>
<span id="cb3-12"><a href="#cb3-12" aria-hidden="true" tabindex="-1"></a> <span class="sc">-</span> text<span class="sc">:</span> GitHub</span>
<span id="cb3-13"><a href="#cb3-13" aria-hidden="true" tabindex="-1"></a> href<span class="sc">:</span> https<span class="sc">:</span><span class="er">//</span>github.com<span class="sc">/</span>samanthacsik</span>
<span id="cb3-14"><a href="#cb3-14" aria-hidden="true" tabindex="-1"></a> <span class="sc">-</span> text<span class="sc">:</span> Email</span>
<span id="cb3-15"><a href="#cb3-15" aria-hidden="true" tabindex="-1"></a> href<span class="sc">:</span> mailto<span class="sc">:</span>scsik<span class="sc">@</span>ucsb.edu</span>
<span id="cb3-16"><a href="#cb3-16" aria-hidden="true" tabindex="-1"></a><span class="sc">---</span></span>
<span id="cb3-17"><a href="#cb3-17" aria-hidden="true" tabindex="-1"></a> </span>
<span id="cb3-18"><a href="#cb3-18" aria-hidden="true" tabindex="-1"></a><span class="co"># ~ landing page content / text omitted for brevity ~ </span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
</section><section id="fa-icons" class="slide level2" data-menu-title="fontawesome icons"><h2></h2>
<p><span class="slide-title3">Optionally add FontAwesome icons to your buttons</span></p>
<hr>
<p>Add any <a href="https://fontawesome.com/search?o=r&m=free"><strong>free</strong> FontAwesome icons</a> to your buttons using the <code>icon</code> option. For example:</p>
<p><br></p>
<div class="columns">
<div class="column" style="width:50%;">
<div class="cell" data-layout-align="center">
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure><p><img data-src="images/button-icons.png" style="width:100.0%"></p>
</figure>
</div>
</div>
</div>
</div><div class="column" style="width:50%;">
<p><br><br></p>
<div class="cell">
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>_quarto.yml</strong></pre>
</div>
<div class="sourceCode cell-code" id="cb4" data-code-line-numbers="false"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="co"># ~ additional YAML excluded for brevity ~</span></span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a>links<span class="sc">:</span> </span>
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a> <span class="sc">-</span> icon<span class="sc">:</span> linkedin </span>
<span id="cb4-4"><a href="#cb4-4" aria-hidden="true" tabindex="-1"></a> text<span class="sc">:</span> LinkedIn</span>
<span id="cb4-5"><a href="#cb4-5" aria-hidden="true" tabindex="-1"></a> href<span class="sc">:</span> https<span class="sc">:</span><span class="er">//</span>www.linkedin.com<span class="sc">/</span><span class="cf">in</span><span class="sc">/</span>yourlinkedinname<span class="sc">/</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
</div>
</div>
<p>Be sure to spell the icon name exactly as it appears on FontAwesome’s website (e.g. the <a href="https://fontawesome.com/icons/linkedin?f=brands&s=solid">LinkedIn icon</a>, <i class="fa-brands fa-linkedin" aria-hidden="true"></i>, is all lowercase and spelled, <code>linkedin</code>).</p>
</section><section id="add-pages1" class="slide level2" data-menu-title="Add / arrange pages (rendered)"><h2></h2>
<p><span class="slide-title">Add / arrange pages in your navbar</span></p>
<hr>
<p>We configure website navigation in <code>_quarto.yml</code>, including the type of navigation menu (<code>navbar</code>, <code>sidebar</code>), how pages are ordered, etc.</p>
<img data-src="images/update-navigation.png" style="width:65.0%" class="r-stretch quarto-figure-center"><div class="center-text gray-text body-text-s">
<p>Here, we moved our navbar items to the right side, link to a curriculum vitae (pdf), and also add a GitHub icon which links to a GitHub profile.</p>
</div>
</section><section id="add-pages2" class="slide level2" data-menu-title="Add / arrange pages (code)"><h2></h2>
<p><span class="slide-title">Add / arrange pages in your navbar</span> <!-- [Modify website navigation in `_quarto.yml`]{.slide-title} --></p>
<hr>
<p>Make edits to a website’s navigation bar under the <code>website</code> > <code>navbar</code> option:</p>
<div class="cell">
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>_quarto.yml</strong></pre>
</div>
<div class="sourceCode cell-code" id="cb5" data-code-line-numbers="6-19"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb5-1"><a href="#cb5-1"></a>project<span class="sc">:</span></span>
<span id="cb5-2"><a href="#cb5-2"></a> type<span class="sc">:</span> website</span>
<span id="cb5-3"><a href="#cb5-3"></a> output<span class="sc">-</span>dir<span class="sc">:</span> docs</span>
<span id="cb5-4"><a href="#cb5-4"></a></span>
<span id="cb5-5"><a href="#cb5-5"></a>website<span class="sc">:</span></span>
<span id="cb5-6"><a href="#cb5-6"></a> navbar<span class="sc">:</span></span>
<span id="cb5-7"><a href="#cb5-7"></a> title<span class="sc">:</span> <span class="st">"Samantha Csik"</span></span>
<span id="cb5-8"><a href="#cb5-8"></a> right<span class="sc">:</span> <span class="co"># accepts right/left/center; you can also place items individually on the left, right, and center</span></span>
<span id="cb5-9"><a href="#cb5-9"></a> <span class="sc">-</span> href<span class="sc">:</span> index.qmd</span>
<span id="cb5-10"><a href="#cb5-10"></a> text<span class="sc">:</span> Home</span>
<span id="cb5-11"><a href="#cb5-11"></a> <span class="sc">-</span> about.qmd</span>
<span id="cb5-12"><a href="#cb5-12"></a> <span class="sc">-</span> href<span class="sc">:</span> resources.qmd</span>
<span id="cb5-13"><a href="#cb5-13"></a> text<span class="sc">:</span> Resources</span>
<span id="cb5-14"><a href="#cb5-14"></a> <span class="sc">-</span> href<span class="sc">:</span> file<span class="sc">/</span>path<span class="sc">/</span>to<span class="sc">/</span>myCV.pdf <span class="co"># providing a relative file path to a pdf will open up a browser-based pdf viewer when clicked</span></span>
<span id="cb5-15"><a href="#cb5-15"></a> text<span class="sc">:</span> CV</span>
<span id="cb5-16"><a href="#cb5-16"></a> target<span class="sc">:</span> _blank <span class="co"># opens link (or page) in a new tab</span></span>
<span id="cb5-17"><a href="#cb5-17"></a> <span class="sc">-</span> icon<span class="sc">:</span> github <span class="co"># add icons as navbar buttons</span></span>
<span id="cb5-18"><a href="#cb5-18"></a> href<span class="sc">:</span> https<span class="sc">:</span><span class="er">//</span>github.com<span class="sc">/</span>samanthacsik</span>
<span id="cb5-19"><a href="#cb5-19"></a> target<span class="sc">:</span> _blank</span>
<span id="cb5-20"><a href="#cb5-20"></a></span>
<span id="cb5-21"><a href="#cb5-21"></a>format<span class="sc">:</span></span>
<span id="cb5-22"><a href="#cb5-22"></a> html<span class="sc">:</span></span>
<span id="cb5-23"><a href="#cb5-23"></a> theme<span class="sc">:</span> cosmo</span>
<span id="cb5-24"><a href="#cb5-24"></a> css<span class="sc">:</span> styles.css</span>
<span id="cb5-25"><a href="#cb5-25"></a> toc<span class="sc">:</span> true</span>
<span id="cb5-26"><a href="#cb5-26"></a> page<span class="sc">-</span>layout<span class="sc">:</span> full</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
</section><section id="page-footer1" class="slide level2" data-menu-title="Add page footer (rendered)"><h2></h2>
<p><span class="slide-title">Add a page footer</span></p>
<hr>
<p>Footers appear on each page (you may have to scroll to the bottom to see it appear). You can include a mix of text, icons, logos, hyperlinks, etc.</p>
<img data-src="images/page-footer.png" style="width:65.0%" class="r-stretch quarto-figure-center"></section><section id="add-footer2" class="slide level2" data-menu-title="Add page footer (code)"><h2></h2>
<p><span class="slide-title">Add a page footer</span> <!-- [Configure your page footer in `_quarto.yml`]{.slide-title2} --></p>
<hr>
<p>Make edits to a website’s footer under the <code>website</code> > <code>page-footer</code> option:</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb6" data-code-line-numbers="20-23"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb6-1"><a href="#cb6-1"></a>project<span class="sc">:</span></span>
<span id="cb6-2"><a href="#cb6-2"></a> type<span class="sc">:</span> website</span>
<span id="cb6-3"><a href="#cb6-3"></a> output<span class="sc">-</span>dir<span class="sc">:</span> docs</span>
<span id="cb6-4"><a href="#cb6-4"></a></span>
<span id="cb6-5"><a href="#cb6-5"></a>website<span class="sc">:</span></span>
<span id="cb6-6"><a href="#cb6-6"></a> navbar<span class="sc">:</span></span>
<span id="cb6-7"><a href="#cb6-7"></a> title<span class="sc">:</span> <span class="st">"Samantha Csik"</span></span>
<span id="cb6-8"><a href="#cb6-8"></a> right<span class="sc">:</span></span>
<span id="cb6-9"><a href="#cb6-9"></a> <span class="sc">-</span> href<span class="sc">:</span> index.qmd</span>
<span id="cb6-10"><a href="#cb6-10"></a> text<span class="sc">:</span> Home</span>
<span id="cb6-11"><a href="#cb6-11"></a> <span class="sc">-</span> about.qmd</span>
<span id="cb6-12"><a href="#cb6-12"></a> <span class="sc">-</span> href<span class="sc">:</span> resources.qmd</span>
<span id="cb6-13"><a href="#cb6-13"></a> text<span class="sc">:</span> Resources</span>
<span id="cb6-14"><a href="#cb6-14"></a> <span class="sc">-</span> href<span class="sc">:</span> cv<span class="sc">/</span>myCV.pdf</span>
<span id="cb6-15"><a href="#cb6-15"></a> text<span class="sc">:</span> CV</span>
<span id="cb6-16"><a href="#cb6-16"></a> target<span class="sc">:</span> _blank </span>
<span id="cb6-17"><a href="#cb6-17"></a> <span class="sc">-</span> icon<span class="sc">:</span> github </span>
<span id="cb6-18"><a href="#cb6-18"></a> href<span class="sc">:</span> https<span class="sc">:</span><span class="er">//</span>github.com<span class="sc">/</span>samanthacsik</span>
<span id="cb6-19"><a href="#cb6-19"></a> target<span class="sc">:</span> _blank</span>
<span id="cb6-20"><a href="#cb6-20"></a> page<span class="sc">-</span>footer<span class="sc">:</span></span>
<span id="cb6-21"><a href="#cb6-21"></a> background<span class="sc">:</span> light <span class="co"># or `dark`</span></span>
<span id="cb6-22"><a href="#cb6-22"></a> left<span class="sc">:</span> Copyright <span class="dv">2021</span>, Samantha Csik</span>
<span id="cb6-23"><a href="#cb6-23"></a> right<span class="sc">:</span> This website is built with {{<span class="sc"><</span> fa heart title<span class="ot">=</span><span class="st">"a heart"</span> <span class="sc">></span>}}, [{{<span class="sc"><</span> fa brands github title<span class="ot">=</span><span class="st">"GitHub octocat logo"</span> <span class="sc">></span>}}](https<span class="sc">:</span><span class="er">//</span>github.com<span class="sc">/</span>samanthacsik<span class="sc">/</span>samanthacsik.github.io){target<span class="ot">=</span>_blank}, [{{<span class="sc"><</span> fa brands r<span class="sc">-</span>project title<span class="ot">=</span><span class="st">"R Project"</span> <span class="sc">></span>}}](https<span class="sc">:</span><span class="er">//</span>www.r<span class="sc">-</span>project.org<span class="sc">/</span>about.html){target<span class="ot">=</span>_blank} and [Quarto](https<span class="sc">:</span><span class="er">//</span>quarto.org<span class="sc">/</span>){target<span class="ot">=</span>_blank}</span>
<span id="cb6-24"><a href="#cb6-24"></a></span>
<span id="cb6-25"><a href="#cb6-25"></a>format<span class="sc">:</span></span>
<span id="cb6-26"><a href="#cb6-26"></a> html<span class="sc">:</span></span>
<span id="cb6-27"><a href="#cb6-27"></a> theme<span class="sc">:</span> cosmo</span>
<span id="cb6-28"><a href="#cb6-28"></a> css<span class="sc">:</span> styles.css</span>
<span id="cb6-29"><a href="#cb6-29"></a> toc<span class="sc">:</span> true</span>
<span id="cb6-30"><a href="#cb6-30"></a> page<span class="sc">-</span>layout<span class="sc">:</span> full</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<div class="footer">
<p><strong>Note:</strong> If you plan to use FontAwesome icons outside of the <code>icon</code> YAML option, you’ll need to first install the Quarto <a href="https://quarto.org/docs/websites/website-about.html">fontawesome extension</a> (more info on the next slide).</p>
</div>
</section><section id="fa-extension" class="slide level2" data-menu-title="fontawesome extension"><h2></h2>
<p><span class="slide-title">Install the Quarto <a href="https://quarto.org/docs/websites/website-about.html">fontawesome extension</a></span></p>
<hr>
<p><br></p>
<p>If you want to use FontAwesome icons anywhere else on your website (i.e. outside of the <code>icon</code> YAML option), you’ll need to first install the Quarto <a href="https://quarto.org/docs/websites/website-about.html">fontawesome extension</a>.</p>
<p><br></p>
<p>Running the following in your RStudio Terminal will download and save the extension to a folder named <code>_extensions</code> in your repo’s root directory. Be sure to push this new folder (and its contents) to GitHub:</p>
<div class="cell">
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>RStudio Terminal</strong></pre>
</div>
<div class="sourceCode cell-code" id="cb7" data-code-line-numbers="false"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a><span class="ex">quarto</span> add quarto-ext/fontawesome</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
<p><br></p>
<p><strong>Note:</strong> You’ll need to install this extension for each new project where you’d like to use icons (e.g. if you create a different website).</p>
</section><section id="fa-shortcode" class="slide level2" data-menu-title="fontawesome shortcode"><h2></h2>
<p><span class="slide-title2">Use the fontawesome shortcode to embed icons</span></p>
<hr>
<p><br></p>
<p>To embed an icon, look up the icon’s name on FontAwesome (be sure to only choose from the <a href="(https://fontawesome.com/search?o=r&m=free)">Free icons</a>), then use the fontawesome shortcode:</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb8" data-code-line-numbers="false"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a>{{< fa icon-name title="descriptive text for accessibility" >}}</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p><br></p>
<p>For example, the following shortcodes…</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb9" data-code-line-numbers="false"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>{{< fa face-smile title="A smiling face" >}}</span>
<span id="cb9-2"><a href="#cb9-2" aria-hidden="true" tabindex="-1"></a>{{< fa laptop title="An open laptop" >}}</span>
<span id="cb9-3"><a href="#cb9-3" aria-hidden="true" tabindex="-1"></a>{{< fa file-code title="A code file" >}}</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p><br></p>
<p>…will render as <i class="fa-solid fa-face-smile" title="A smiling face" aria-hidden="true"></i>, <i class="fa-solid fa-laptop" title="An open laptop" aria-hidden="true"></i>, <i class="fa-solid fa-file-code" title="A code file" aria-hidden="true"></i></p>
</section><section id="fa-brands" class="slide level2" data-menu-title="fontawesome brands"><h2></h2>
<p><span class="slide-title2">Pay attention for icons in the <code>brands</code> collection</span></p>
<hr>
<p><br></p>
<p>Some icons fall within the <code>brands</code> collection and must be prefixed with <code>brands</code> inside the shortcode. For example, the GitHub icon <i class="fa-brands fa-github" title="The GitHub octocat logo" aria-hidden="true"></i>:</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb10" data-code-line-numbers="false"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a>{{< fa brands github title="The GitHub octocat logo" >}}</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p><br></p>
<p>You can identify if an icon falls within the <code>brands</code> collection by clicking on its preview (e.g. the <a href="https://fontawesome.com/icons/github?f=brands&s=solid">github icon</a>) and checking to see if the HTML class is <code>fa-brands</code>:</p>
<img data-src="images/github-icon.png" style="width:100.0%" class="r-stretch quarto-figure-center"></section><section id="favicon-logo1" class="slide level2" data-menu-title="Favicons & logos (rendered)"><h2></h2>
<p><span class="slide-title3">Favicons & personal logos can add a nice personal touch</span></p>
<hr>
<p>You can add a personal logo in the top left corner of your navbar in place of your title. The free <a href="https://www.adobe.com/express/create/logo">Adobe Express Logo Maker</a> is a great tool for creating your own logo!</p>
<!-- -- provide a little info about yourself, and it'll return a bunch of AI-generated logos for you to choose from and customize further. -->
<p>A <a href="https://en.wikipedia.org/wiki/Favicon">favicon</a> is a small icon used on web browsers to represent a website or a web page. Get creative and use a custom favicon that complements your personal logo.</p>
<img data-src="images/logo-favicon.png" style="width:60.0%" class="r-stretch quarto-figure-center"><div class="footer">
<p><strong>Tip:</strong> Download your logo with a transparent background so that it can be placed anywhere on your site without having to deal with mismatched background colors. I also recommend making them as large as possible <em>before</em> downloading – doing so can help mitigate the need for drastic resizing using CSS.</p>
</div>
</section><section id="favicon-logo2" class="slide level2" data-menu-title="Favicons & logos (code)"><h2></h2>
<p><span class="slide-title3">Favicons & personal logos can add a nice personal touch</span> <!-- [Add a favicon & personal logo in `_quarto.yml`]{.slide-title2} --></p>
<hr>
<div class="cell">
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>_quarto.yml</strong></pre>
</div>
<div class="sourceCode cell-code" id="cb11" data-code-line-numbers="6,8-10"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb11-1"><a href="#cb11-1"></a>project<span class="sc">:</span></span>
<span id="cb11-2"><a href="#cb11-2"></a> type<span class="sc">:</span> website</span>
<span id="cb11-3"><a href="#cb11-3"></a> output<span class="sc">-</span>dir<span class="sc">:</span> docs</span>
<span id="cb11-4"><a href="#cb11-4"></a></span>
<span id="cb11-5"><a href="#cb11-5"></a>website<span class="sc">:</span></span>
<span id="cb11-6"><a href="#cb11-6"></a> favicon<span class="sc">:</span> file<span class="sc">/</span>path<span class="sc">/</span>to<span class="sc">/</span>image.png <span class="co"># </span><span class="al">NOTE</span><span class="co">: that the `favicon` is a `website` level option (not under `navbar`)</span></span>
<span id="cb11-7"><a href="#cb11-7"></a> navbar<span class="sc">:</span></span>
<span id="cb11-8"><a href="#cb11-8"></a> title<span class="sc">:</span> false <span class="co"># change this to false!</span></span>
<span id="cb11-9"><a href="#cb11-9"></a> logo<span class="sc">:</span> file<span class="sc">/</span>path<span class="sc">/</span>to<span class="sc">/</span>logo.png</span>
<span id="cb11-10"><a href="#cb11-10"></a> logo<span class="sc">-</span>alt<span class="sc">:</span> <span class="st">"Alt text for logo"</span></span>
<span id="cb11-11"><a href="#cb11-11"></a> right<span class="sc">:</span></span>
<span id="cb11-12"><a href="#cb11-12"></a> <span class="sc">-</span> href<span class="sc">:</span> index.qmd</span>
<span id="cb11-13"><a href="#cb11-13"></a> text<span class="sc">:</span> Home</span>
<span id="cb11-14"><a href="#cb11-14"></a> <span class="sc">-</span> about.qmd</span>
<span id="cb11-15"><a href="#cb11-15"></a> <span class="sc">-</span> href<span class="sc">:</span> resources.qmd</span>
<span id="cb11-16"><a href="#cb11-16"></a> text<span class="sc">:</span> Resources</span>
<span id="cb11-17"><a href="#cb11-17"></a> <span class="sc">-</span> href<span class="sc">:</span> file<span class="sc">/</span>path<span class="sc">/</span>to<span class="sc">/</span>myCV.pdf</span>
<span id="cb11-18"><a href="#cb11-18"></a> text<span class="sc">:</span> CV</span>
<span id="cb11-19"><a href="#cb11-19"></a> target<span class="sc">:</span> _blank</span>
<span id="cb11-20"><a href="#cb11-20"></a> <span class="sc">-</span> icon<span class="sc">:</span> github</span>
<span id="cb11-21"><a href="#cb11-21"></a> href<span class="sc">:</span> https<span class="sc">:</span><span class="er">//</span>github.com<span class="sc">/</span>samanthacsik</span>
<span id="cb11-22"><a href="#cb11-22"></a> target<span class="sc">:</span> _blank</span>
<span id="cb11-23"><a href="#cb11-23"></a> page<span class="sc">-</span>footer<span class="sc">:</span></span>
<span id="cb11-24"><a href="#cb11-24"></a> background<span class="sc">:</span> light</span>
<span id="cb11-25"><a href="#cb11-25"></a> left<span class="sc">:</span> Copyright <span class="dv">2021</span>, Samantha Csik</span>
<span id="cb11-26"><a href="#cb11-26"></a> right<span class="sc">:</span> This website is built with {{<span class="sc"><</span> fa heart title<span class="ot">=</span><span class="st">"a heart"</span> <span class="sc">></span>}}, [{{<span class="sc"><</span> fa brands github title<span class="ot">=</span><span class="st">"GitHub octocat logo"</span> <span class="sc">></span>}}](https<span class="sc">:</span><span class="er">//</span>github.com<span class="sc">/</span>samanthacsik<span class="sc">/</span>samanthacsik.github.io){target<span class="ot">=</span>_blank}, [{{<span class="sc"><</span> fa brands r<span class="sc">-</span>project title<span class="ot">=</span><span class="st">"R Project"</span> <span class="sc">></span>}}](https<span class="sc">:</span><span class="er">//</span>www.r<span class="sc">-</span>project.org<span class="sc">/</span>about.html){target<span class="ot">=</span>_blank} and [Quarto](https<span class="sc">:</span><span class="er">//</span>quarto.org<span class="sc">/</span>){target<span class="ot">=</span>_blank}</span>
<span id="cb11-27"><a href="#cb11-27"></a></span>
<span id="cb11-28"><a href="#cb11-28"></a></span>
<span id="cb11-29"><a href="#cb11-29"></a>format<span class="sc">:</span></span>
<span id="cb11-30"><a href="#cb11-30"></a> html<span class="sc">:</span></span>
<span id="cb11-31"><a href="#cb11-31"></a> theme<span class="sc">:</span> cosmo</span>
<span id="cb11-32"><a href="#cb11-32"></a> css<span class="sc">:</span> styles.css</span>
<span id="cb11-33"><a href="#cb11-33"></a> toc<span class="sc">:</span> true</span>
<span id="cb11-34"><a href="#cb11-34"></a> page<span class="sc">-</span>layout<span class="sc">:</span> full</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
</section><section id="website-tools" class="slide level2" data-menu-title="Website Tools"><h2></h2>
<p><span class="slide-title">Checkout other website tools</span></p>
<hr>
<div class="body-text">
<p>Explore Quarto’s <a href="https://quarto.org/docs/websites/website-tools.html">documentation</a> to learn more about enabling <a href="https://analytics.google.com/">Google Analytics</a>, <a href="https://ogp.me/">Open Graph protocol</a>, and more.</p>
</div>
<p><br></p>
<img data-src="images/web-tools.png" style="width:85.0%" class="r-stretch quarto-figure-center"></section><section id="use-sass" class="slide level2" data-menu-title="## Use Sass ##" data-background="#053660"><h2></h2>
<div class="vertical-center">
<center>
<div class="custom-subtitle2">
Next, create a <code>styles.scss</code> file, link to it in <code>_quarto.yml</code> (this applies your styles to your Quarto site), and define your Sass variables.
</div>
</center>
<!-- <center><div class="custom-subtitle2">Use a *Syntactically Awesome Stylesheet* () to define variables and quickly customize your website's appearance</div></center> -->
</div>
</section><section id="what-is-sass" class="slide level2" data-menu-title="What is Sass?"><h2></h2>
<p><span class="slide-title">What is <a href="https://sass-lang.com/">Sass</a>?</span></p>
<hr>
<div class="columns">
<div class="column" style="width:50%;">
<p><br></p>
<div class="cell" data-layout-align="center">
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure><p><img data-src="images/sass.png" style="width:50.0%"></p>
</figure>
</div>
</div>
</div>
<div class="body-text-xl teal-text center-text">
<p><strong>S</strong>yntactically <strong>A</strong>wesome <strong>S</strong>tyle<strong>s</strong>heets</p>
</div>
</div><div class="column" style="width:50%;">
<p><br><br><br><br></p>
<div class="body-text">
<ul>
<li>Sass is a <strong>CSS extension</strong> (provides additional features, like variables)</li>
<li>Sass is a <strong>CSS preprocesser</strong> (converts Sass code into standard CSS, which is a critical step because browsers can’t interpret Sass but <em>can</em> interpret CSS)</li>
</ul>
</div>
</div>
</div>
<div class="fragment">
<p><br></p>
<div class="body-text center-text">
<p>I know it might feel like we’re getting ahead of ourselves a bit here by talking about Sass <em>before</em> CSS, but bear with me!</p>
</div>
<!-- ::: {.body-text} -->
<!-- - [Sass](https://sass-lang.com/) stands for **S**yntactically **A**wesome **S**tyle**s**heets and is an extension to CSS (I know, it seems like we're talking about this in an incorrect order, but bear with me). -->
<!-- ::: -->
<!-- ::: {.body-text} -->
<!-- Sass is a CSS **preprocessor** (converts Sass code into standard CSS because browsers can’t interpret Sass) -->
<!-- this means that Sass allows web developers to use Sass syntax and features that don't currently exist in CSS (e.g. variables, which we'll be using today), then converts that Sass code into standard CSS (browsers don't understand Sass code, but *do* understand CSS). -->
<!-- ::: -->
<!-- ::: {.body-text .center-text} -->
<!-- Quarto has a [number of Sass Variables](https://quarto.org/docs/output-formats/html-themes.html#sass-variables) that you can specify within a `styles.scss` file. -->
<!-- ::: -->
</div>
</section><section id="why-use-sass1" class="slide level2" data-menu-title="Sass reduces repetition"><h2></h2>
<p><span class="slide-title">Sass helps to reduce repetition</span></p>
<hr>
<div class="body-text">
<p>Sass extends existing CSS features in a number of exciting ways, but importantly <strong>reduces repetition</strong>. For example, let’s say you’re building a website / web page that uses three colors: <!-- Stylesheets (e.g. `.css` files) are getting larger and more complex. Sass extends existing CSS features and importantly, reduces repetition. For example, let's say you're working on a website, which uses 3 main colors: --></p>
</div>
<p><br></p>
<img data-src="images/meds-colors.png" style="width:10.0%" class="r-stretch quarto-figure-center"><p><br></p>
<div class="body-text topbr">
<p>You might imagine how often you’ll need to type those HEX codes out as you developing your stylesheet…it can get annoying rather quickly.</p>
</div>
</section><section id="why-use-sass2" class="slide level2" data-menu-title="Define Sass variables"><h2></h2>
<p><span class="slide-title2">Define Sass variables to reduce repetition</span></p>
<hr>
<p>Sass allows us to <strong>define variables</strong> (in the form <code>$var-name: value;</code>) for our colors, which we can reference <em>instead</em> of writing out their HEX codes each time. This makes your stylesheet <strong>more readable and easier to update</strong> (e.g. only need to update HEX codes in one spot, not multiple!).</p>
<div class="cell">
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>Example stylesheet (.scss)</strong></pre>
</div>
<div class="sourceCode cell-code" id="cb12" data-code-line-numbers="false"><pre class="sourceCode sass code-with-copy"><code class="sourceCode sass"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="co">// define Sass vars </span></span>
<span id="cb12-2"><a href="#cb12-2" aria-hidden="true" tabindex="-1"></a><span class="va">$darkblue</span>: <span class="cn">#053660</span>;</span>
<span id="cb12-3"><a href="#cb12-3" aria-hidden="true" tabindex="-1"></a><span class="va">$teal</span>: <span class="cn">#147C91</span>;</span>
<span id="cb12-4"><a href="#cb12-4" aria-hidden="true" tabindex="-1"></a><span class="va">$darkgray</span>: <span class="cn">#333333</span>;</span>
<span id="cb12-5"><a href="#cb12-5" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb12-6"><a href="#cb12-6" aria-hidden="true" tabindex="-1"></a><span class="co">// use vars in CSS rules (we'll learn more about how to write CSS soon!) </span></span>
<span id="cb12-7"><a href="#cb12-7" aria-hidden="true" tabindex="-1"></a>h1 {</span>
<span id="cb12-8"><a href="#cb12-8" aria-hidden="true" tabindex="-1"></a> font-color: <span class="va">$darkblue</span>;</span>
<span id="cb12-9"><a href="#cb12-9" aria-hidden="true" tabindex="-1"></a>}</span>
<span id="cb12-10"><a href="#cb12-10" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb12-11"><a href="#cb12-11" aria-hidden="true" tabindex="-1"></a><span class="fu">.button-styling</span> {</span>
<span id="cb12-12"><a href="#cb12-12" aria-hidden="true" tabindex="-1"></a> <span class="kw">background</span>: <span class="va">$teal</span>;</span>
<span id="cb12-13"><a href="#cb12-13" aria-hidden="true" tabindex="-1"></a> <span class="kw">color</span>: <span class="va">$darkblue</span>; </span>
<span id="cb12-14"><a href="#cb12-14" aria-hidden="true" tabindex="-1"></a> <span class="kw">border-color</span>: <span class="va">$darkgray</span>;</span>
<span id="cb12-15"><a href="#cb12-15" aria-hidden="true" tabindex="-1"></a>}</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
<div class="footer">
<p><strong>Note:</strong> Sass has two syntaxes – SCSS syntax (<code>.scss</code>), shown above, is the most common. It stands for <strong>S</strong>assy <strong>C</strong>ascading <strong>S</strong>tyle<strong>s</strong>heets <i class="fa-solid fa-face-smile-beam" title="a squinty smiley face" aria-hidden="true"></i></p>
</div>
</section><section id="quarto-compiles" class="slide level2" data-menu-title="Quarto compiles Sass automatically"><h2></h2>
<p><span class="slide-title">Quarto automatically compiles Sass</span></p>
<hr>
<p><br></p>
<div class="center-text">
<p>Web browsers can interpret CSS (<span class="teal-text"><i class="fa-solid fa-check" aria-hidden="true"></i></span> <code>.css</code>) but <em>not</em> Sass (<span class="teal-text"><i class="fa-solid fa-xmark" aria-hidden="true"></i></span> <code>.scss</code> or <code>.sass</code>).</p>
</div>
<p><br></p>
<div class="center-text">
<p>Typically, you’d need to <strong>compile (i.e. convert) Sass to CSS</strong>, then link the resulting <code>.css</code> file in your HTML.</p>
</div>
<p><br></p>
<div class="center-text">
<p>Lucky for us, <strong>Quarto compiles the contents of a <code>.scss</code> file into CSS without any extra steps</strong> – all we need to do is link to a <code>.scss</code> file directly in our website’s <code>_quarto.yml</code>.</p>
</div>
<p><br></p>
<div class="body-text-xl teal-text center-text">
<p>Let’s create our website’s <code>.scss</code> stylesheet.</p>
</div>
<div class="center-text teal-text">
<p>(The following slides break this down into ~7 steps)</p>
</div>
</section><section id="create-scss" class="slide level2" data-menu-title="Create .scss file"><h2></h2>
<p><span class="slide-title">Create a <code>.scss</code> file for your website</span></p>
<hr>
<p><br></p>
<p><span class="teal-text"><strong>1.</strong></span> Create a <code>.scss</code> file in your repo’s root directory using the <code>touch</code> command in the RStudio Terminal (alternatively, use <strong>New Blank File</strong> > <strong>Text File</strong> in the Files pane):</p>
<div class="cell">
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>RStudio Terminal</strong></pre>
</div>
<div class="sourceCode cell-code" id="cb13" data-code-line-numbers="false"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true" tabindex="-1"></a><span class="fu">touch</span> styles.scss <span class="co"># name it whatever you want</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
<p><br></p>
<p><span class="teal-text"><strong>2.</strong></span> Add the <code>/*-- scss:defaults --*/</code> region decorator to the top of <code>styles.scss</code> (<a href="https://quarto.org/docs/output-formats/html-themes-more.html">required by Quarto</a>) – you’ll write all your Sass variables underneath this.</p>
<div class="cell">
<div class="code-with-filename">
<div class="code-with-filename-file">
<pre><strong>styles.scss</strong></pre>
</div>
<div class="sourceCode cell-code" id="cb14" data-code-line-numbers="false"><pre class="sourceCode sass code-with-copy"><code class="sourceCode sass"><span id="cb14-1"><a href="#cb14-1" aria-hidden="true" tabindex="-1"></a><span class="co">/*-- scss:defaults --*/</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
</div>
<div class="footer">
<p>Adding the region decorator as written above is <em>critical!</em> Quarto won’t recognize your <code>.scss</code> file without it.</p>
</div>
</section><section id="link-scss" class="slide level2" data-menu-title="Link .scss in _quarto.yml"><h2></h2>
<p><span class="slide-title">Link to your <code>.scss</code> file in <code>_quarto.yml</code></span></p>
<hr>
<p><span class="teal-text"><strong>3.</strong></span> Apply your <code>styles.scss</code> file to your website using the <code>theme</code> option:</p>
<div class="cell">
<div class="code-with-filename">