Merge branch 'master' into optional-new-tab-for-tags
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
A high performance and mobile first hugo template for personal portfolio and blog
|
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
|
# Features
|
||||||
- Fully Responsive
|
- Fully Responsive
|
||||||
|
|||||||
@@ -380,6 +380,7 @@ params:
|
|||||||
|
|
||||||
# Single pages like blog and post
|
# Single pages like blog and post
|
||||||
singlePages:
|
singlePages:
|
||||||
|
socialShare: true
|
||||||
readTime:
|
readTime:
|
||||||
enable: true
|
enable: true
|
||||||
content: "min read"
|
content: "min read"
|
||||||
|
|||||||
@@ -4,6 +4,12 @@
|
|||||||
<head>
|
<head>
|
||||||
{{- partial "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
{{- block "head" . }} {{- end }}
|
{{- block "head" . }} {{- end }}
|
||||||
|
|
||||||
|
<!-- Custom Styles -->
|
||||||
|
{{ if .Site.Params.customCSS }}
|
||||||
|
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/style.css">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{{- block "title" . }} {{- end }}
|
{{- block "title" . }} {{- end }}
|
||||||
</title>
|
</title>
|
||||||
@@ -33,4 +39,4 @@
|
|||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -19,8 +19,10 @@
|
|||||||
<div class="title mb-5">
|
<div class="title mb-5">
|
||||||
<h1 class="text-center mb-4">{{ .Title }}</h1>
|
<h1 class="text-center mb-4">{{ .Title }}</h1>
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
{{ .Params.author }}
|
{{ if .Params.author }}
|
||||||
<small>|</small>
|
{{ .Params.author }}
|
||||||
|
<small>|</small>
|
||||||
|
{{ end }}
|
||||||
{{ .Date.Format (.Site.Params.datesFormat.article | default "Jan 2, 2006") }}
|
{{ .Date.Format (.Site.Params.datesFormat.article | default "Jan 2, 2006") }}
|
||||||
|
|
||||||
{{ if or (.Site.Params.singlePages.readTime.enable | default true) (.Params.enableReadingTime) }}
|
{{ if or (.Site.Params.singlePages.readTime.enable | default true) (.Params.enableReadingTime) }}
|
||||||
@@ -66,7 +68,7 @@
|
|||||||
</aside>
|
</aside>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{ if .Params.socialShare | default true }}
|
{{ if .Params.socialShare | default .Site.Params.singlePages.socialShare | default true }}
|
||||||
<aside class="social">
|
<aside class="social">
|
||||||
<h5>{{ .Site.Params.terms.social | default "Social" }}</h5>
|
<h5>{{ .Site.Params.terms.social | default "Social" }}</h5>
|
||||||
<div class="social-content">
|
<div class="social-content">
|
||||||
|
|||||||
@@ -40,11 +40,6 @@
|
|||||||
<!-- theme -->
|
<!-- theme -->
|
||||||
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/theme.css" media="all">
|
<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>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--text-color: {{ .Site.Params.color.textColor | default "#343a40" }};
|
--text-color: {{ .Site.Params.color.textColor | default "#343a40" }};
|
||||||
@@ -78,11 +73,11 @@
|
|||||||
width: 8px;
|
width: 8px;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
::-webkit-scrollbar-track {
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
background: #b0b0b0;
|
background: #b0b0b0;
|
||||||
@@ -96,4 +91,4 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{{ partial "head/extensions.html" . }}
|
{{ partial "head/extensions.html" . }}
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
<div class="container py-4">
|
<div class="container py-4">
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col-md-4 text-center">
|
<div class="col-md-4 text-center">
|
||||||
<div class="pb-2">
|
{{ if or .Site.Params.navbar.brandLogo .Site.Params.favicon }}
|
||||||
<a href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
|
<div class="pb-2">
|
||||||
<img alt="Footer logo" src="{{ .Site.Params.navbar.brandLogo | default .Site.Params.favicon }}"
|
<a href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
|
||||||
height="40px" width="40px">
|
<img alt="Footer logo" src="{{ .Site.Params.navbar.brandLogo | default .Site.Params.favicon }}"
|
||||||
</a>
|
height="40px" width="40px">
|
||||||
</div>
|
</a>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
© {{ now.Format "2006"}} {{ .Site.Params.copyright }} {{ .Site.Params.terms.copyright | default "All Rights Reserved" }}
|
© {{ now.Format "2006"}} {{ .Site.Params.copyright }} {{ .Site.Params.terms.copyright | default "All Rights Reserved" }}
|
||||||
<div class="text-secondary">
|
<div class="text-secondary">
|
||||||
Made with
|
Made with
|
||||||
@@ -21,4 +23,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
if(resetHeaderStyle) {
|
if(resetHeaderStyle) {
|
||||||
profileHeaderElem.classList.remove("showHeaderOnTop");
|
profileHeaderElem.classList.remove("showHeaderOnTop");
|
||||||
}
|
}
|
||||||
prevScrollPos = currentScrollPos;
|
prevScrollPos = currentScrollPos;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
<div class="container-fluid mx-xs-2 mx-sm-5 mx-md-5 mx-lg-5">
|
<div class="container-fluid mx-xs-2 mx-sm-5 mx-md-5 mx-lg-5">
|
||||||
<!-- navbar brand -->
|
<!-- navbar brand -->
|
||||||
<a class="navbar-brand primary-font text-wrap" href="{{ .Site.BaseURL | relURL }}">
|
<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"
|
<img src="{{ .Site.Params.navbar.brandLogo | default .Site.Params.favicon }}" width="30" height="30"
|
||||||
class="d-inline-block align-top">
|
class="d-inline-block align-top">
|
||||||
{{ .Site.Params.navbar.brandName | default .Site.Params.title }}
|
{{ .Site.Params.navbar.brandName | default .Site.Params.title }}
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
<span>
|
<span>
|
||||||
{{ range .Site.Params.hero.socialLinks.fontAwesomeIcons }}
|
{{ range .Site.Params.hero.socialLinks.fontAwesomeIcons }}
|
||||||
<span class="px-1">
|
<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>
|
<i class="{{ .icon }}"></i>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -9,9 +12,12 @@
|
|||||||
|
|
||||||
{{ range .Site.Params.hero.socialLinks.customIcons }}
|
{{ range .Site.Params.hero.socialLinks.customIcons }}
|
||||||
<span class="px-1">
|
<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 }}">
|
<img src="{{ .icon }}">
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user