Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release (next gen) #391

Merged
merged 4 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# frozen_string_literal: true

source "https://rubygems.org"
gem 'jekyll'
group :jekyll_plugins do
gem "jekyll-feed"
gem "jekyll-assets"
gem "jekyll-sitemap"
gem "jekyll-paginate"
end

gem "isomer-jekyll", group: :jekyll_plugins
5 changes: 2 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ url: "https://www.tech.gov.sg" # the base hostname & protocol for your site, e.g
plugins:
- jekyll-feed
- jekyll-assets
# - jekyll-paginate
- jekyll-paginate
- jekyll-sitemap
# - jekyll-paginate-v2
# - sanitize
- jekyll-remote-theme
safe: false
exclude:
[
Expand Down
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<link rel="stylesheet" href="{{- site.baseurl -}}/assets/css/blueprint.css">
<link rel="stylesheet" href="{{- site.baseurl -}}{{- site.custom_css_path -}}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,600" crossorigin="anonymous">
<link href='https://unpkg.com/boxicons@2.0.9/css/boxicons.min.css' rel='stylesheet'>
<link href='https://cdnjs.cloudflare.com/ajax/libs/boxicons/2.0.9/css/boxicons.min.css' rel='stylesheet'>
{%- if site.vica -%}
<link
href="https://webchat.vica.gov.sg/static/css/chat.css"
Expand Down
2 changes: 1 addition & 1 deletion _includes/homepage/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1 class="display padding--bottom--lg margin--none">
section.hero.url and section.hero.button -%}
<a
href="{{- site.baseurl -}}{{- section.hero.url -}}"
class="bp-button is-secondary is-uppercase search-button"
class="bp-button is-secondary is-uppercase search-button hero-button"
>
{{- section.hero.button -}}
</a>
Expand Down
2 changes: 1 addition & 1 deletion _includes/main_scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


{%- if page.layout == 'search' -%}
<script src="https://unpkg.com/lunr@2.3.6/lunr.js" integrity="sha384-WYZhYwlpZbtVuVpKReDUDRhoKr0MubxAfgcS0k8y5lprnl0i482oHTKTBeWTbcaz" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.6/lunr.js" integrity="sha384-WYZhYwlpZbtVuVpKReDUDRhoKr0MubxAfgcS0k8y5lprnl0i482oHTKTBeWTbcaz" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/3.0.9/purify.min.js" integrity="sha384-3HPB1XT51W3gGRxAmZ+qbZwRpRlFQL632y8x+adAqCr4Wp3TaWwCLSTAJJKbyWEK" crossorigin="anonymous"></script>
<script src="{{- "/assets/posts.js" | relative_url -}}"></script>
<script src="{{- "/assets/js/worker.js" | relative_url -}}" crossorigin="anonymous"></script>
Expand Down
5 changes: 5 additions & 0 deletions assets/css/blueprint.css
Original file line number Diff line number Diff line change
Expand Up @@ -11621,4 +11621,9 @@ h6 center {
}
.social-logo:hover {
filter: brightness(1);
}
.hero-button.bp-button {
min-height: 2.4rem;
height: auto;
white-space: normal;
}
10 changes: 10 additions & 0 deletions assets/js/algolia-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ search.addWidgets([
<p class="search-content description ml-9">Publish date: ${new Date(
hit.publishTimestamp
).toLocaleDateString("fr-CA")}</p>
${hit.text
? `<p class="search-content description ml-9">Content: ${instantsearch.snippet(
{
attribute: "text",
highlightedTagName: "mark",
hit,
}
)}</p>`
: ""
}
<p>
</h5>
`;
Expand Down
1 change: 0 additions & 1 deletion assets/js/worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

let loaded = false;

async function loadcontext() {
Expand Down
7 changes: 0 additions & 7 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Referrer-Policy = "no-referrer"
X-Content-Type-Options = "nosniff"
Loading