Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gurusabarish/hugo-profile.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgurusabarish <gurusabarisha@gmail.com>2020-09-20 10:50:30 +0300
committergurusabarish <gurusabarisha@gmail.com>2020-09-20 10:50:30 +0300
commit083a33b29c41ba39047a4ee4bec5873b9db209c1 (patch)
tree9e18b43c9c4853c11e2cf5c6594a0d71c5bf2ca5
parent311d26eb51282e3cb922f11d99afd660d0d8a7d1 (diff)
theme update
-rw-r--r--examplesite/config.yaml15
-rw-r--r--examplesite/static/images/about-background.jpgbin114086 -> 0 bytes
-rw-r--r--examplesite/static/images/project.pngbin65493 -> 79296 bytes
-rw-r--r--examplesite/static/images/screenshot.PNGbin0 -> 590034 bytes
-rw-r--r--examplesite/static/images/tn.pngbin0 -> 250979 bytes
-rw-r--r--layouts/index.html1
-rw-r--r--layouts/partials/footer.html5
-rw-r--r--layouts/partials/sections/blog.html25
-rw-r--r--layouts/partials/sections/do_things.html2
-rw-r--r--layouts/partials/sections/home.html55
-rw-r--r--layouts/partials/sections/projects.html26
-rw-r--r--static/css/head_foot.css4
-rw-r--r--static/css/index.css23
-rw-r--r--static/images/project.pngbin65493 -> 79296 bytes
14 files changed, 111 insertions, 45 deletions
diff --git a/examplesite/config.yaml b/examplesite/config.yaml
index 936e0a7..4651553 100644
--- a/examplesite/config.yaml
+++ b/examplesite/config.yaml
@@ -1,7 +1,7 @@
-baseURL: "https://example.com"
+baseURL: "https://hugo-profile.netlify.app/"
languageCode: "en-us"
-title: "Hugo-blog"
-theme: "hugo-profile"
+title: "Hugo-profile"
+
@@ -40,7 +40,12 @@ params:
- title: "Project name"
image: "/images/project.png"
description: "This is your description"
- url: "https://github.com"
+ url: "https://github.com/gurusabarish/hugo-profile"
+
+ - title: "Project name"
+ image: "/images/project.png"
+ description: "This is your description"
+ url: "https://github.com/gurusabarish/hugo-profile"
Author:
@@ -50,4 +55,4 @@ Author:
-
+ \ No newline at end of file
diff --git a/examplesite/static/images/about-background.jpg b/examplesite/static/images/about-background.jpg
deleted file mode 100644
index eadae0d..0000000
--- a/examplesite/static/images/about-background.jpg
+++ /dev/null
Binary files differ
diff --git a/examplesite/static/images/project.png b/examplesite/static/images/project.png
index 756f73a..225edb5 100644
--- a/examplesite/static/images/project.png
+++ b/examplesite/static/images/project.png
Binary files differ
diff --git a/examplesite/static/images/screenshot.PNG b/examplesite/static/images/screenshot.PNG
new file mode 100644
index 0000000..a0acc1f
--- /dev/null
+++ b/examplesite/static/images/screenshot.PNG
Binary files differ
diff --git a/examplesite/static/images/tn.png b/examplesite/static/images/tn.png
new file mode 100644
index 0000000..cb12e2d
--- /dev/null
+++ b/examplesite/static/images/tn.png
Binary files differ
diff --git a/layouts/index.html b/layouts/index.html
index 4227689..b727517 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -20,6 +20,7 @@
<body>
{{- partial "sections/home.html" . -}}
+ {{- partial "sections/blog.html" . -}}
{{- partial "sections/about.html" . -}}
{{- partial "sections/do_things.html" . -}}
{{- partial "sections/projects.html" . -}}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index ece3e3a..5f03247 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,5 +1,10 @@
<footer class="footer py-3 text-muted text-center">
+
+
<p>
+
+ <h5 class="text-uppercase pb-2 font-weight-bold"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h5>
+
&copy; {{ .Site.LastChange.Format "2006" }} All Rights Reserved<br>
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> made with
diff --git a/layouts/partials/sections/blog.html b/layouts/partials/sections/blog.html
new file mode 100644
index 0000000..df72817
--- /dev/null
+++ b/layouts/partials/sections/blog.html
@@ -0,0 +1,25 @@
+<section>
+ <div class="p-3 blog-back">
+ <div class="container-fluid">
+ <div class="text-center pb-3">
+ <h4>Recent posts</h4>
+ </div>
+ <div class="container">
+ <div class="row">
+
+ {{ range first 4 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}}
+ <div class="col-lg-3 col-md-5 pb-3 post-card">
+ <a href="{{ .RelPermalink }}">
+ <span class="text-secondary">{{ .Date.Format "January 2, 2006" }}</span>
+ <div class="text-dark">
+ {{ .Title }}
+ </div>
+ </a>
+ </div>
+ {{ end }}
+
+ </div>
+ </div>
+ </div>
+ </div>
+</section> \ No newline at end of file
diff --git a/layouts/partials/sections/do_things.html b/layouts/partials/sections/do_things.html
index 5669744..4467cf5 100644
--- a/layouts/partials/sections/do_things.html
+++ b/layouts/partials/sections/do_things.html
@@ -1,5 +1,5 @@
<section>
- <div class="pt-3 do-things bg-light text-center" id="do-things">
+ <div class="pt-3 do-things text-center" id="do-things">
<div class="things-i-do text-primary font-weight-bold">
Things I do
</div>
diff --git a/layouts/partials/sections/home.html b/layouts/partials/sections/home.html
index ea4050f..84fd581 100644
--- a/layouts/partials/sections/home.html
+++ b/layouts/partials/sections/home.html
@@ -1,36 +1,35 @@
<section>
<div class="home">
- <div class="">
- <nav class="navbar navbar-expand-lg navbar-light bg-transperant">
- <div class="container">
- <a class="navbar-brand text-dark" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown"
- aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
+ <nav class="navbar navbar-expand-lg navbar-light bg-transperant">
+ <div class="container">
+ <a class="navbar-brand text-dark" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown"
+ aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
+ <span class="navbar-toggler-icon"></span>
+ </button>
- <div class="collapse navbar-collapse" id="navbarNavDropdown">
- <ul class="navbar-nav ml-auto">
- <li class="nav-item">
- <a class="nav-link text-dark" href="{{ .Site.BaseURL }}#home">Home</a>
- </li>
- <li class="nav-item">
- <a class="nav-link text-dark" href="{{ .Site.BaseURL }}#about">About</a>
- </li>
- <li class="nav-item">
- <a class="nav-link text-dark" href="{{ .Site.BaseURL }}#projects">Projects</a>
- </li>
+ <div class="collapse navbar-collapse" id="navbarNavDropdown">
+ <ul class="navbar-nav ml-auto">
+ <li class="nav-item navbar-text">
+ <a class="nav-link text-dark" href="{{ .Site.BaseURL }}#home">Home</a>
+ </li>
+ <li class="nav-item navbar-text">
+ <a class="nav-link text-dark" href="{{ .Site.BaseURL }}#about">About</a>
+ </li>
+ <li class="nav-item navbar-text">
+ <a class="nav-link text-dark" href="{{ .Site.BaseURL }}#projects">Projects</a>
+ </li>
- {{ range site.Params.customMenus }}
- <li class="nav-item">
- <a class="nav-link text-dark" href="{{ .Site.BaseURL }}{{.url}}">{{ .name }}</a>
- </li>
- {{ end }}
- </ul>
- </div>
+ {{ range site.Params.customMenus }}
+ <li class="nav-item navbar-text">
+ <a class="nav-link text-dark" href="{{ .Site.BaseURL }}{{.url}}">{{ .name }}</a>
+ </li>
+ {{ end }}
+ </ul>
</div>
- </nav>
- </div>
+ </div>
+ </nav>
+
<div class="container-fluid row" id="home">
<div class="text-white col-lg-8 col-sm ">
<div class="name-intro">
diff --git a/layouts/partials/sections/projects.html b/layouts/partials/sections/projects.html
index 4369f87..c4e0d25 100644
--- a/layouts/partials/sections/projects.html
+++ b/layouts/partials/sections/projects.html
@@ -1,19 +1,25 @@
<section>
<div class="projects p-3" id="projects">
- <div class="project-heading text-center container">Projects</div>
+ <div class="project-heading text-center text-white container pb-3">Projects</div>
<div class="container p-2">
- {{ range .Site.Params.projects }}
- <div class="card mb-3">
- <img class="card-img-top" src="{{ .image }}" alt="{{ .title }}">
- <div class="card-body text-center">
- <h4 class="card-title">{{ .title }}</h4>
- <p class="card-text">{{ .description }}</p>
- <p class="card-text"></p>
- <a href="{{ .url }}" target="_blank" class="btn btn-primary">Details</a>
+ <div class="row justify-content-md-center">
+ {{ range .Site.Params.projects }}
+ <div class="col-lg-5">
+
+ <div class="card mb-3">
+ <img class="card-img-top" src="{{ .image }}" alt="{{ .title }}">
+ <div class="card-body text-center project-des-back">
+ <h4 class="card-title">{{ .title }}</h4>
+ <p class="card-text">{{ .description }}</p>
+ <p class="card-text"></p>
+ <a href="{{ .url }}" target="_blank" class="btn btn-primary">Details</a>
+ </div>
+ </div>
</div>
+
+ {{ end }}
</div>
- {{ end }}
</div>
</div>
</section> \ No newline at end of file
diff --git a/static/css/head_foot.css b/static/css/head_foot.css
index 15394e8..84ed45a 100644
--- a/static/css/head_foot.css
+++ b/static/css/head_foot.css
@@ -1,4 +1,8 @@
/*footer*/
.footer {
background: #f2f2f2;
+}
+
+.navbar-text {
+ font-size: 17px;
} \ No newline at end of file
diff --git a/static/css/index.css b/static/css/index.css
index fe4cfee..408b75a 100644
--- a/static/css/index.css
+++ b/static/css/index.css
@@ -1,7 +1,7 @@
/*home*/
.home {
- height: 100vh;
+ height: 110vh;
padding: 0;
padding-bottom: 0;
margin: 0;
@@ -77,6 +77,7 @@
padding-top: 10%;
padding-left: 20%;
padding-right: 20%;
+ padding-bottom: 10%;
}
.know-more a {
@@ -118,6 +119,7 @@
.about {
height: auto;
+ background-color: #e5e9f2;
}
.jop {
@@ -160,6 +162,7 @@
/* Projects */
.projects {
height: auto;
+ background-color: #101820ff;
}
.project-heading {
@@ -172,8 +175,26 @@
height: 350px !important;
}
+.project-des-back {
+ background-color: #F2AA4CFF;
+}
+
@media only screen and (max-width: 600px) {
.card-img-top {
height: 180px !important;
}
+}
+
+
+/* recent posts */
+.blog-back {
+ background-color: #ebb951;
+}
+
+.post-card a:hover {
+ text-decoration-line: none;
+}
+
+.post-hover :hover {
+ background-color: #17a2b8;
} \ No newline at end of file
diff --git a/static/images/project.png b/static/images/project.png
index 756f73a..225edb5 100644
--- a/static/images/project.png
+++ b/static/images/project.png
Binary files differ