diff --git a/content/shortcodes.md b/content/shortcodes.md index 3f7f2b4..0ded60f 100644 --- a/content/shortcodes.md +++ b/content/shortcodes.md @@ -30,3 +30,30 @@ Usage: ``` {{/* dimmable_image(src="img/desert_by_oskerwyld.webp", alt="Photograph of a desert, heavenly sky") */}} ``` + +## References + +This shortcode formats a reference section with a hanging indent like so: + +{% references() %} + +Alderson, E. (2015). Cybersecurity and Social Justice: A Critique of Corporate Hegemony in a Digital World. *New York Journal of Technology, 11*(2), 24-39. [https://doi.org/10.1007/s10198-022-01497-6](https://doi.org/10.1007/s10198-022-01497-6). + +Funkhouser, M. (2012). The Social Norms of Indecency: An Analysis of Deviant Behavior in Contemporary Society. *Los Angeles Journal of Sociology, 16*(3), 41-58. [https://doi.org/10.1093/jmp/jhx037](https://doi.org/10.1093/jmp/jhx037). + +Schrute, D. (2005). The Beet Farming Revolution: An Analysis of Agricultural Innovation. *Scranton Agricultural Quarterly, 38*(3), 67-81. + +Steinbrenner, G. (1997). The Cost-Benefit Analysis of George Costanza: An Examination of Risk-Taking Behavior in the Workplace. *New York Journal of Business, 12*(4), 112-125. + +Winger, J. A. (2010). The Art of Debate: An Examination of Rhetoric in Greendale Community College's Model United Nations. *Colorado Journal of Communication Studies, 19*(2), 73-86. [https://doi.org/10.1093/6seaons/1movie](https://doi.org/10.1093/6seaons/1movie). + +{% end %} + +Usage: + +``` +{%/* references() */%} + +Your references go here. + +Each in a new line. Markdown (links, italics…) will be rendered. diff --git a/sass/parts/_misc.scss b/sass/parts/_misc.scss index cbc8806..e2e01c5 100644 --- a/sass/parts/_misc.scss +++ b/sass/parts/_misc.scss @@ -149,3 +149,8 @@ table tbody tr:nth-child(even) { display: inline; } } + +.references p { + text-indent: -2.4rem; + margin-left: 2.4rem; +} diff --git a/templates/shortcodes/references.html b/templates/shortcodes/references.html new file mode 100644 index 0000000..1894479 --- /dev/null +++ b/templates/shortcodes/references.html @@ -0,0 +1,3 @@ +