blog update

This commit is contained in:
gurusabarish
2020-09-25 11:47:58 +05:30
parent 47e52a18f8
commit 337803791e
6 changed files with 48 additions and 115 deletions
+7
View File
@@ -2,5 +2,12 @@
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
subtitle: ""
github_link: "https://github.com/gurusabarish/hugo-profile"
author: ""
tags:
-
bg_image: ""
description: ""
---
-85
View File
@@ -1,85 +0,0 @@
baseURL: "https://hugo-profile.netlify.app/"
languageCode: "en-us"
title: "Hugo-profile"
Paginate: 3
taxonomies:
tag: "tags"
category: "categories"
params:
favicon: "/images/hugo.png"
description: "Portfolio and personal blog of gurusabarish"
googleanalytics: ""
disqus: ""
contact: "false"
# Navbar Menus
customMenus:
- name: "Blog"
Url: "blog"
# Home
name: "Gurusabarish"
profile: "/images/avatar-370-456322.webp"
github: "https://github.com/gurusabarish"
linkedin: "https://linkedin.com/in/gurusabarish"
twitter: "https://twitter.com/gurusabarishh"
instagram: "https://instagram.com/gurusabarishh"
# Do things { Please change the svg icons width="3em" height="3em" }
thing1: "Python"
thing2: "Machine learning"
thing3: "Things for web"
thing1_des: "I build something beautiful using Python."
thing2_des: "I train robust models for various tasks."
thing3_des: "I love to build things for web."
# About
profile_image: "/images/gurusabarish.jpg"
jop: "Web developer"
jops_about: "web developer and ML engineer"
resume: ""
projects:
- title: "Project name"
image: "https://images.unsplash.com/photo-1532781914607-2031eca2f00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjMyMDc0fQ&s=7c625ea379640da3ef2e24f20df7ce8d"
description: "This is your description"
url: "https://github.com/gurusabarish/hugo-profile"
sourceurl: "https://github.com/gurusabarish/hugo-profile"
- title: "Project name"
image: "https://images.unsplash.com/photo-1532781914607-2031eca2f00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjMyMDc0fQ&s=7c625ea379640da3ef2e24f20df7ce8d"
description: "This is your description"
url: "https://github.com/gurusabarish/hugo-profile"
sourceurl: "https://github.com/gurusabarish/hugo-profile"
- title: "Project name"
image: "https://images.unsplash.com/photo-1532781914607-2031eca2f00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjMyMDc0fQ&s=7c625ea379640da3ef2e24f20df7ce8d"
description: "This is your description"
url: "https://github.com/gurusabarish/hugo-profile"
sourceurl: "https://github.com/gurusabarish/hugo-profile"
- title: "Project name"
image: "https://images.unsplash.com/photo-1532781914607-2031eca2f00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjMyMDc0fQ&s=7c625ea379640da3ef2e24f20df7ce8d"
description: "This is your description"
url: "https://github.com/gurusabarish/hugo-profile"
sourceurl: "https://github.com/gurusabarish/hugo-profile"
- title: "Project name"
image: "https://images.unsplash.com/photo-1532781914607-2031eca2f00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjMyMDc0fQ&s=7c625ea379640da3ef2e24f20df7ce8d"
description: "This is your description"
url: "https://github.com/gurusabarish/hugo-profile"
sourceurl: "https://github.com/gurusabarish/hugo-profile"
- title: "Project name"
image: "https://images.unsplash.com/photo-1532781914607-2031eca2f00d?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjMyMDc0fQ&s=7c625ea379640da3ef2e24f20df7ce8d"
description: "This is your description"
url: "https://github.com/gurusabarish/hugo-profile"
sourceurl: "https://github.com/gurusabarish/hugo-profile"
Author:
name: "Gurusabarish"
website: "https://github.com/gurusabarish"
+2
View File
@@ -9,6 +9,8 @@
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/blog.css">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=PT+Serif&display=swap" rel="stylesheet">
</head>
<body>
+19 -19
View File
@@ -2,24 +2,6 @@
<section class="bg-light">
<div class="container-fluid">
<div class="row justify-content-center pt-3">
<div class="col-lg-7 col-md-7">
<div class=" mb-4 pt-3">
<div class="card shadow ">
<h5 class="card-header bg-warning">Tags</h5>
<div class=" card-body">
{{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }}
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
<a href="{{ .RelPermalink }}" class="btn btn-warning rounded-pill mb-2">{{$name}}</a>
{{end}}
{{end}}
</div>
</a>
</div>
</div>
</div>
</div>
<div class="row pt-3 justify-content-center">
<div class="col-lg-6 col-md-6">
{{ range .Paginator.Pages }}
@@ -61,8 +43,26 @@
</div>
{{ end }}
{{ template "_internal/pagination.html" . }}
</div>
<div class="row justify-content-center pt-3">
<div class="col-lg-7 col-md-7">
<div class=" mb-4 pt-3">
<div class="card shadow ">
<h5 class="card-header bg-warning">Tags</h5>
<div class=" card-body">
{{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }}
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
<a href="{{ .RelPermalink }}" class="btn btn-warning rounded-pill mb-2">{{$name}}</a>
{{end}}
{{end}}
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
+19 -10
View File
@@ -59,17 +59,26 @@
<div>{{.Content}}</div>
<!-- Tags -->
<div class="text-center text-muted">
<hr>
<div class="h4">Tags</div>
{{ if .Params.tags }}
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">
<button class="btn rounded-pill border border-info">{{ . }}</button>
</a>
{{ end }}
{{ end }}
<div class="row justify-content-center pt-3">
<div class="col-lg-7 col-md-7">
<div class=" mb-4 pt-3">
<div class="card shadow ">
<h5 class="card-header bg-warning">Tags</h5>
<div class=" card-body">
{{ if .Params.tags }}
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}"
class="btn btn-warning rounded-pill mb-2">{{ . }}</a>
{{end}}
{{end}}
</div>
</a>
</div>
</div>
</div>
</div>
<br>
<div id="disqus_thread"></div>
<script>
+1 -1
View File
@@ -20,7 +20,7 @@
{{ range site.Params.customMenus }}
<li class="nav-item">
<a class="nav-link text-dark" href="{{ .Site.BaseURL }}{{.url}}">{{ .name }}</a>
<a class="nav-link text-dark" href="{{.Url}}">{{ .name }}</a>
</li>
{{ end }}
</ul>