Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zetxek committed Nov 23, 2024
2 parents b2e0527 + 891175a commit ddd64f8
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Some of the best applications for the theme are for minimalistic websites, singl
- some (basic) i18n features
- added more pages/templates (experience, blog)
- upgrade loading performance (100 score in [Google Page Speed Insights](https://pagespeed.web.dev))
- dark theme support (based on system/browser settings)
- support for [Vercel Speed Insights](https://vercel.com/docs/speed-insights/quickstart) (via the parameter `vercelPageInsights` in `hugo.toml`, disabled by default)
- support for [Vercel Analytics](https://vercel.com/docs/analytics/quickstart) (via the parameter `vercelAnalytics` in `hugo.toml`, disabled by default)

<img width="1536" alt="SCR-20240814-ihfs" src="https://github.com/user-attachments/assets/38553a02-48d0-48f4-a69a-ed4f7e32e092">

Expand Down
13 changes: 8 additions & 5 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -10838,11 +10838,14 @@ aside.content-browser{
.header.collapse.show::before, .header.collapsing::before{
background-color: #181818;
}
.header .navbar .nav-item:first-child{
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.header .navbar .nav-item{
border-bottom: 1px solid rgba(255, 255, 255, 0.1);

@media only screen and (max-width : 990px) {
.header .navbar .nav-item:first-child{
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.header .navbar .nav-item{
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
}
.header--sticky-triggered{
background: #181818;
Expand Down
4 changes: 4 additions & 0 deletions exampleSite/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ theme = "adritian-free-hugo-theme"

homepageExperienceCount = 6

# controls vercel page insights - disabled by default
vercelPageInsights = false
vercelAnalytics = false

[params.google_analytics]
code = "UA-XXXXX-Y"
enabled = false
Expand Down
2 changes: 2 additions & 0 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- id: read_more
translation: "Read more"
2 changes: 2 additions & 0 deletions i18n/fr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- id: read_more
translation: "Lire la suite"
2 changes: 1 addition & 1 deletion layouts/blog/summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<div class="row">
<div class="col-12 col-lg-4">
<a class="btn btn-outline-secondary btn-sm" href="{{ .RelPermalink }}"
>Read&nbsp;more&nbsp;&raquo;</a
>{{ i18n "read_more" }}&nbsp;&raquo;</a
>
</div>
</div>
Expand Down
14 changes: 14 additions & 0 deletions layouts/partials/base-foot.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,17 @@
<script defer src='{{ "js/sticky-header.js" | absURL }}'></script>
<script defer src='{{ "js/smooth-scroll-init.js" | absURL }}'></script>
<script defer src='{{ "js/library/bootstrap.min.js" | absURL }}'></script>

<!-- vercel insights -->
{{ $vercelPageInsights := .Site.Params.vercelPageInsights }}
{{ $vercelAnalytics := .Site.Params.vercelAnalytics }}

<script>
window.si = window.si || function () { (window.siq = window.siq || []).push(arguments); };
</script>
{{ if $vercelPageInsights }}
<script defer src="/_vercel/speed-insights/script.js"></script>
{{ end }}
{{ if $vercelAnalytics }}
<script defer src="/_vercel/insights/script.js"></script>
{{ end }}

0 comments on commit ddd64f8

Please sign in to comment.