Skip to content

Commit

Permalink
add head section
Browse files Browse the repository at this point in the history
  • Loading branch information
alyxbb committed Jun 12, 2024
1 parent f556fe5 commit 767ed63
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
5 changes: 4 additions & 1 deletion views/cin.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{{define "title"}}{{.PageContext.ShortName}} | Candidate Interview Night{{end}}

{{define "content"}}
{{define "head"}}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
{{end}}

{{define "content"}}
<div class="container-fluid bg-cin-2">
<div class="container bg-cin bg-cin-space">
<div class="container container-padded">
Expand Down
2 changes: 2 additions & 0 deletions views/contact.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<meta property="og:description" content="At URY, radio is a two-way medium. Send us a message or find us on social media.">
<meta property="og:image" content="{{.PageContext.FullURL}}{{url "/images/open_graph-general.jpg"}}">
<meta property="og:url" content="{{.PageContext.FullURL}}{{url "/contact/"}}">
{{end}}
{{define "head"}}
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
Expand Down
5 changes: 4 additions & 1 deletion views/partials/base.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<meta name="description" content="{{.PageContext.SiteDescription}}">

<title>{{block "title" .}}{{.PageContext.LongName}}{{end}}</title>

{{block "open-graph" .}}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@{{.PageContext.MainTwitter}}">
Expand All @@ -27,6 +27,9 @@
<meta property="og:url" content='{{.PageContext.FullURL}}{{url "/"}}'>
{{end}}

{{block "head" .}}
{{end}}

<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs=" crossorigin="anonymous"></script>
<!-- bootstrap -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
Expand Down
7 changes: 5 additions & 2 deletions views/podcast_player.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
<meta property="og:description" content="{{ stripHtml .PageData.Podcast.Description}}">
{{end}}

{{define "head"}}
<link rel="stylesheet" href='{{url "/css/podcast_player.css"}}'>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway:400,500">
{{end}}

{{define "content"}}

{{with .PageData}}
Expand Down Expand Up @@ -87,7 +92,5 @@
});

</script>
<link rel="stylesheet" href='{{url "/css/podcast_player.css"}}'>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway:400,500">
{{end}}
{{end}}
4 changes: 3 additions & 1 deletion views/show.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
<meta property="og:url" content='{{.PageContext.FullURL}}{{url "/schedule/shows/"}}{{.PageData.Show.ShowID}}'>
<meta property="og:description" content="{{ stripHtml .PageData.Show.Description}}">
{{end}}
{{define "head"}}
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css">
{{end}}

{{define "content"}}
<div class="container-fluid current-next">
Expand Down Expand Up @@ -241,7 +244,6 @@
{{end}}
{{end}}
{{define "footer-scripts"}}
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css">
<script src="//cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="//cdn.datatables.net/1.10.18/js/dataTables.bootstrap4.min.js"></script>
<script src="//cdn.datatables.net/plug-ins/1.10.16/api/fnFindCellRowIndexes.js"></script>
Expand Down

0 comments on commit 767ed63

Please sign in to comment.