Merge branch 'master' into optional-new-tab-for-tags

This commit is contained in:
Guru Sabarish
2024-06-15 20:04:14 +05:30
committed by GitHub
8 changed files with 37 additions and 25 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
A high performance and mobile first hugo template for personal portfolio and blog
- Example Site: [hugo-profile.netlify.app](https://hugo-profile.netlify.app)
- ### Example Site: [https://hugo-profile.netlify.app](https://hugo-profile.netlify.app)
# Features
- Fully Responsive
+1
View File
@@ -380,6 +380,7 @@ params:
# Single pages like blog and post
singlePages:
socialShare: true
readTime:
enable: true
content: "min read"
+7 -1
View File
@@ -4,6 +4,12 @@
<head>
{{- partial "head.html" . -}}
{{- block "head" . }} {{- end }}
<!-- Custom Styles -->
{{ if .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/style.css">
{{ end }}
<title>
{{- block "title" . }} {{- end }}
</title>
@@ -33,4 +39,4 @@
</section>
</body>
</html>
</html>
+5 -3
View File
@@ -19,8 +19,10 @@
<div class="title mb-5">
<h1 class="text-center mb-4">{{ .Title }}</h1>
<div class="text-center">
{{ .Params.author }}
<small>|</small>
{{ if .Params.author }}
{{ .Params.author }}
<small>|</small>
{{ end }}
{{ .Date.Format (.Site.Params.datesFormat.article | default "Jan 2, 2006") }}
{{ if or (.Site.Params.singlePages.readTime.enable | default true) (.Params.enableReadingTime) }}
@@ -66,7 +68,7 @@
</aside>
{{end}}
{{ if .Params.socialShare | default true }}
{{ if .Params.socialShare | default .Site.Params.singlePages.socialShare | default true }}
<aside class="social">
<h5>{{ .Site.Params.terms.social | default "Social" }}</h5>
<div class="social-content">
+3 -8
View File
@@ -40,11 +40,6 @@
<!-- theme -->
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/theme.css" media="all">
<!-- Custom Styles -->
{{ if .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/style.css">
{{ end }}
<style>
:root {
--text-color: {{ .Site.Params.color.textColor | default "#343a40" }};
@@ -78,11 +73,11 @@
width: 8px;
background-color: var(--background-color);
}
::-webkit-scrollbar-track {
border-radius: 1rem;
}
::-webkit-scrollbar-thumb {
border-radius: 1rem;
background: #b0b0b0;
@@ -96,4 +91,4 @@
}
</style>
{{ partial "head/extensions.html" . }}
{{ partial "head/extensions.html" . }}
@@ -1,12 +1,14 @@
<div class="container py-4">
<div class="row justify-content-center">
<div class="col-md-4 text-center">
<div class="pb-2">
<a href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
<img alt="Footer logo" src="{{ .Site.Params.navbar.brandLogo | default .Site.Params.favicon }}"
height="40px" width="40px">
</a>
</div>
{{ if or .Site.Params.navbar.brandLogo .Site.Params.favicon }}
<div class="pb-2">
<a href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
<img alt="Footer logo" src="{{ .Site.Params.navbar.brandLogo | default .Site.Params.favicon }}"
height="40px" width="40px">
</a>
</div>
{{ end }}
&copy; {{ now.Format "2006"}} {{ .Site.Params.copyright }} {{ .Site.Params.terms.copyright | default "All Rights Reserved" }}
<div class="text-secondary">
Made with
@@ -21,4 +23,4 @@
</div>
</div>
</div>
</div>
</div>
+2 -2
View File
@@ -40,7 +40,7 @@
if(resetHeaderStyle) {
profileHeaderElem.classList.remove("showHeaderOnTop");
}
prevScrollPos = currentScrollPos;
prevScrollPos = currentScrollPos;
});
</script>
{{ end }}
@@ -51,7 +51,7 @@
<div class="container-fluid mx-xs-2 mx-sm-5 mx-md-5 mx-lg-5">
<!-- navbar brand -->
<a class="navbar-brand primary-font text-wrap" href="{{ .Site.BaseURL | relURL }}">
{{ if and (or (.Site.Params.favicon) (.Site.Params.navbar.brandLogo)) .Site.Params.navbar.showBrandLogo | default true }}
{{ if and (or (.Site.Params.favicon) (.Site.Params.navbar.brandLogo)) (.Site.Params.navbar.showBrandLogo | default true) }}
<img src="{{ .Site.Params.navbar.brandLogo | default .Site.Params.favicon }}" width="30" height="30"
class="d-inline-block align-top">
{{ .Site.Params.navbar.brandName | default .Site.Params.title }}
+9 -3
View File
@@ -1,7 +1,10 @@
<span>
{{ range .Site.Params.hero.socialLinks.fontAwesomeIcons }}
<span class="px-1">
<a href="{{ .url }}" target="_blank" class="btn social-icon">
<a href="{{ .url }}"
{{ if not (hasPrefix .url "#") }} target="_blank" {{ end }}
class="btn social-icon"
>
<i class="{{ .icon }}"></i>
</a>
</span>
@@ -9,9 +12,12 @@
{{ range .Site.Params.hero.socialLinks.customIcons }}
<span class="px-1">
<a href="{{ .url }}" target="_blank" class="btn social-icon">
<a href="{{ .url }}"
{{ if not (hasPrefix .url "#") }} target="_blank" {{ end }}
class="btn social-icon"
>
<img src="{{ .icon }}">
</a>
</span>
{{ end }}
</span>
</span>