Merge pull request #52 from sonic182/master

Statics param, and optional GPA by @sonic182
This commit is contained in:
Guru Sabarish
2022-04-04 10:06:42 +05:30
committed by GitHub
9 changed files with 42 additions and 43 deletions
+2 -4
View File
@@ -41,6 +41,7 @@ Menus:
params:
title: "Hugo Profile"
description: Text about my cool site
# staticPath: "" # The path to serve the static files from
favicon: "/fav.png"
theme:
@@ -106,12 +107,11 @@ params:
- icon: /fav.png
url: "https://example.com"
# About
about:
enable: true
title: "About Me"
image: '/images/me.png'
image: "/images/me.png"
content: |-
I am a software developer with a passion for web development. I have a background in computer science and mathematics, and I have a strong interest in the intersection of technology and art. I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA.
@@ -315,5 +315,3 @@ params:
twitter: https://twitter.com
instagram: https://instagram.com
facebook: https://facebook.com
+1 -1
View File
@@ -8,7 +8,7 @@
{{ define "main" }}
<div class="container py-5 text-center">
<img src="/404.png" alt="404 page not found" class="img-fluid" width="40%">
<img src="{{ .Site.Params.staticPath }}/404.png" alt="404 page not found" class="img-fluid" width="40%">
<h1>404 Page Not Found</h1>
</div>
{{ end }}
+1 -1
View File
@@ -12,7 +12,7 @@
<body class="light" onload="loading()">
<!-- javascripts -->
<!-- <script src="/js/jquery-3.6.0.min.js"></script> -->
<script src="/bootstrap-5/js/bootstrap.bundle.js"></script>
<script src="{{ .Site.Params.staticPath }}/bootstrap-5/js/bootstrap.bundle.js"></script>
{{- partial "sections/header.html" . -}}
<div id="content">
+1 -1
View File
@@ -1,6 +1,6 @@
{{ define "head" }}
<meta name="description" content="{{ .Title }} of {{ .Site.Title }}">
<link rel="stylesheet" href="/css/list.css" media="all">
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/list.css" media="all">
{{ end }}
{{ define "title" }}
+2 -3
View File
@@ -1,9 +1,9 @@
{{ define "head" }}
<meta name="description" content="{{ .Params.description }}">
<link rel="stylesheet" href="/css/single.css">
<link rel="stylesheet" href="{{.Site.Params.staticPath}}/css/single.css">
<!-- fontawesome -->
<script defer src="/fontawesome-5/all-5.15.4.js"></script>
<script defer src="{{.Site.Params.staticPath}}/fontawesome-5/all-5.15.4.js"></script>
{{ end }}
{{ define "title" }}
@@ -100,7 +100,6 @@
var topScroll = document.getElementById("topScroll");
window.onscroll = function() {scrollFunction()};
console.log(topScroll);
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
topScroll.style.display = "block";
+3 -3
View File
@@ -1,10 +1,10 @@
{{ define "head" }}
<meta name="description" content={{ .Site.Params.description }}>
<link rel="stylesheet" href="/css/index.css" media="all">
<link rel="stylesheet" href="/css/projects.css" media="all">
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/index.css" media="all">
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/projects.css" media="all">
<!-- fontawesome -->
<script defer src="/fontawesome-5/all-5.15.4.js"></script>
<script defer src="{{ .Site.Params.staticPath }}/fontawesome-5/all-5.15.4.js"></script>
{{ end }}
{{ define "title" }}
+6 -6
View File
@@ -11,7 +11,7 @@
rel="stylesheet">
<!-- font configuration -->
<link rel="stylesheet" href="/css/font.css" media="all">
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/font.css" media="all">
<!-- Internal templates -->
{{ template "_internal/google_analytics_async.html" . }}
@@ -19,16 +19,16 @@
{{ template "_internal/twitter_cards.html" . }}
<!-- stylesheets -->
<link rel="stylesheet" href="/bootstrap-5/css/bootstrap.min.css" media="all">
<link rel="stylesheet" href="/css/header.css" media="all">
<link rel="stylesheet" href="/css/footer.css" media="all">
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/bootstrap-5/css/bootstrap.min.css" media="all">
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/header.css" media="all">
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/footer.css" media="all">
<!-- theme -->
<link rel="stylesheet" href="/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="/style.css">
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/style.css">
{{ end }}
<style>
+2
View File
@@ -35,12 +35,14 @@
{{ .school.name }}
{{ end }}
{{ if .GPA }}
<div class="py-1">
GPA:
<i>
<small>{{ .GPA }}</small>
</i>
</div>
{{ end }}
<div class="py-1 education-content">
{{ .content | markdownify}}
</div>
+2 -2
View File
@@ -1,9 +1,9 @@
{{ define "head" }}
<meta name="description" content="{{ .Title }} of {{ .Site.Title }}">
<link rel="stylesheet" href="/css/projects.css" media="all">
<link rel="stylesheet" href="{{ .Site.Params.staticPath }}/css/projects.css" media="all">
<!-- fontawesome -->
<script defer src="/fontawesome-5/all-5.15.4.js"></script>
<script defer src="{{ .Site.Params.staticPath }}/fontawesome-5/all-5.15.4.js"></script>
{{ end }}
{{ define "title" }}