✨ feat: format references with custom shortcode
Uses hanging indent for a References section.
This commit is contained in:
parent
c2d9107cd3
commit
4e4021da5d
@ -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.
|
||||
|
@ -149,3 +149,8 @@ table tbody tr:nth-child(even) {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
.references p {
|
||||
text-indent: -2.4rem;
|
||||
margin-left: 2.4rem;
|
||||
}
|
||||
|
3
templates/shortcodes/references.html
Normal file
3
templates/shortcodes/references.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="references">
|
||||
{{ body | markdown | safe }}
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user