Skip to content

Commit

Permalink
refactor: Move citation to its own partial for easier re-use and upda…
Browse files Browse the repository at this point in the history
…ting
  • Loading branch information
hepplerj committed Aug 21, 2024
1 parent 0839097 commit 335d8f1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 2 additions & 4 deletions templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ <h1>About.</h1>

<h2 class="text-xl">Cite the Project</h2>

<p><em>The Denig Manuscript</em>, Winterthur Museum, Garden & Library and the Roy Rosenzweig Center for History
and New Media (2024--). <a href="{% url 'manuscript' %}"
class="text-winterthur-dk-blue hover:underline">https://denig.rrchnm.org/</a> </p>
{% include 'partials/citation.html' %}

<h2 class="text-xl">Technical Specifications</h2>

Expand Down Expand Up @@ -105,4 +103,4 @@ <h4 class="text-sm mb-1">Roy Rosenzweig Center for History and New Media</h4>
</div>
</div>

{% endblock content %}
{% endblock content %}
5 changes: 5 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
<img class="h-12 mx-4" src="{% static 'rrchnm-logo.png' %}"
alt="Roy Rosenzweig Center for History and New Media" />
</div>
<div class="text-white text-sm mt-8 md:mt-0 md:order-1 md:flex md:items-center md:justify-center w-1/3">

{% include 'partials/citation.html' %}

</div>
</div>
</div>
</div>
Expand Down
7 changes: 7 additions & 0 deletions templates/partials/citation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<p>
<em>The Denig Manuscript</em>, Winterthur Museum, Garden & Library and the Roy
Rosenzweig Center for History and New Media (2024).
<a href="{% url 'manuscript' %}" class="underline hover:no-underline"
>https://dev.winterthur.rrchnm.org</a
>
</p>

0 comments on commit 335d8f1

Please sign in to comment.