Skip to content

Commit

Permalink
✨ 💩 add hacky pst template
Browse files Browse the repository at this point in the history
  • Loading branch information
t4k committed Jul 18, 2024
1 parent 503a63d commit 3a56c8b
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ The CSS for the site is written with the [SCSS syntax of Sass](https://sass-lang

## HTML

Note: Most HTML files have a comment header which includes a Last Modified date/time that can be updated automatically with the [Auto Time Stamp](https://github.com/lpubsppop01/vscode-auto-timestamp) extension for Visual Studio Code.

### Templates & `<head>` Code

The contents of any of the template files in this repository can be pasted directly into LibGuides. The GitHub Actions workflow will automatically update any existing templates within LibGuides, provided they already exist. Automatic creation of new templates has not been implemented.
Expand Down
142 changes: 142 additions & 0 deletions template-web--archives-pst.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
<!--BEGIN: template-web--archives-pst.html
Last Modified: 2024-07-18 14:28:57
INSTRUCTIONS: Select this template within the Customize Guide Templates
section under Admin ➜ Page Layout ➜ Guide and paste the contents of this file
into the Template Code box.
NOTE: This template is very hacky. It includes inline JavaScript and CSS.
GLOSSARY:
• tpl-web: Template Web; used for identifying context with javascript
• c3-asc: identifier for Archives & Special Collections; affects colors
-->

<body id="tpl-web" class="s-lg-guide-body c3-asc">
{{skip_link}}
{{obsolete_browser_alert}}
{{ADMIN_CMD_BAR}}
<!-- BEGIN: Page Header -->
{{public_header}}
<!-- END: Page Header -->
<!-- BEGIN: Guide Info Header -->
<div id="s-lg-guide-header" class="container s-lib-header s-lib-side-borders">
<nav id="s-lib-bc" aria-label="breadcrumb">
{{breadcrumbs}}
</nav>
<div class="pull-right">
<div id="s-lg-guide-header-search">
{{guide_search}} </div>
{{ADMIN_MINI_CMD_BAR}}
</div>
<div id="s-lg-guide-header-info">
<h1 id="s-lg-guide-name">{{guide_title}}: {{page_title}}</h1>
<div id="s-lg-guide-desc-container">
<span id="s-lg-guide-description">{{guide_description}}</span>
</div>
</div>
</div>
<!-- END: Guide Info Header -->
<div id="s-lg-tabs-container" class="container s-lib-side-borders pad-top-med">
<div id="s-lg-guide-tabs" class="tabs" role="navigation" aria-label="Guide Pages">
<ul class="nav nav-tabs split-button-nav">
{{guide_nav}}
</ul>
</div>
</div>
<div id="s-lg-guide-tabs-title-bar" class="container s-lib-side-borders"></div>
<!-- BEGIN: Guide Content -->
<div id="s-lg-guide-main" class="s-lib-main s-lib-side-borders" tabindex="-1">
{{empty_page_sub_page_list}}

<script>
// add "Crossing Over: " to the beginning of the document title
document.addEventListener("DOMContentLoaded", function(event) {
document.title = 'Crossing Over: ' + document.title;
});
</script>
<script>
// tighten up the wrapping first item in the sidenav
document.addEventListener("DOMContentLoaded", function(event) {
document.querySelector(".c3-asc #c3-sidenav > ul > li:first-of-type").style.lineHeight = "1.25";
document.querySelector(".c3-asc #c3-sidenav > ul > li:first-of-type").style.paddingBlockEnd = "0.5em";
});
</script>
<div style="background: linear-gradient(to right, #c75000 80%, #849895); color: white; text-align: center;">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="h1" style="margin: 0; padding: 30px 60px;">{{guide_title}}</div>
</div>
</div>
</div>
</div>

<div class="c3-page-title">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1><span class="sr-only">{{guide_title}}: </span>{{page_title}}</h1>
</div>
</div>
</div>
</div>

<div class="container">
<div class="row s-lg-row">
<div id="s-lg-col-1" class="col-md-8">
<div class="s-lg-col-boxes">
{{content_col_1}}
</div>
</div>
<div id="s-lg-col-2" class="col-md-4">
<div class="s-lg-col-boxes">
<div id="c3-sidenav">
<ul class="list-unstyled">
{{guide_nav}}
</ul>
</div>
</div>
</div>
</div>
</div>

{{page_prev_next_links}}
</div>
<!-- END: Guide Content -->
<!-- BEGIN: Page Footer -->
<div id="s-lib-footer-public" class="s-lib-footer footer container s-lib-side-borders">
<div id="s-lg-guide-header-meta" class="pad-top-sm pad-left-med clearfix">
<ul id="s-lg-guide-header-attributes" class="">
<li id="s-lg-guide-header-updated" class="s-lg-h-separator">
{{last_updated_display}} </li>
<li id="s-lg-guide-header-url" class="s-lg-h-separator">
{{guide_url_display}}
</li>
<li id="s-lg-guide-print-url">
{{print_url_display}}
</li>
</ul>
<div id="s-lib-footer-login-link" class="pull-right pad-right-med">
{{login_url_display}} </div>
</div>
<div class="pad-bottom-sm clearfix">
<div id="s-lib-footer-support-link" class="pull-right pad-right-med">
{{support_url_display}} </div>
<div id="s-lg-guide-header-subjects" class="pad-top-sm pad-left-med pad-right-med pull-left">
{{guide_subjects}}
</div>
<div id="s-lg-guide-header-tags" class="pad-top-sm pad-left-med">
{{guide_tags}}
</div>
</div>
</div>
<!-- END: Page Footer -->
<div id="s-lib-alert" title="">
<div id="s-lib-alert-content"></div>
</div>
<!-- BEGIN: Custom Footer -->
{{public_footer}}
<!-- END: Custom Footer -->
</body>
<!--END: template-web--archives-pst.html-->

0 comments on commit 3a56c8b

Please sign in to comment.