mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-13 00:39:45 +00:00
Made avatar optional. It will no longer render if it is commented out in the config. (#10)
Excellent. Thank you!
This commit is contained in:
parent
15c9ac3274
commit
a4cb2a5de4
1 changed files with 13 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
<!--
|
<!--
|
||||||
Hey! Thanks for looking at my code! You win a cookie. :) The nice kind with chocolate chips, not the sneaky spying kind.
|
Hey! Thanks for looking at my code! You win a cookie. :) The nice kind with chocolate chips, not the sneaky spying kind.
|
||||||
|
|
||||||
This page was originally created for the Personal Portfolio Webpage challenge on FreeCodeCamp's Front End Development Certification course. It's totally responsive, and the first web page I ever coded from scratch.
|
This page was originally created for the Personal Portfolio Webpage challenge on FreeCodeCamp's Front End Development Certification course. It's totally responsive, and the first web page I ever coded from scratch.
|
||||||
|
@ -34,14 +34,14 @@
|
||||||
<div class="hero-foot {{ if .Site.Params.fadein }}fade-in three{{ end }}">
|
<div class="hero-foot {{ if .Site.Params.fadein }}fade-in three{{ end }}">
|
||||||
<hr>
|
<hr>
|
||||||
<nav class="nav-center">
|
<nav class="nav-center">
|
||||||
<a class="nav-item" href="#about">About</a>
|
<a class="nav-item" href="#about">About</a>
|
||||||
{{ if .Site.Params.showprojects }}
|
{{ if .Site.Params.showprojects }}
|
||||||
<a class="nav-item" href="#projects">Projects</a>
|
<a class="nav-item" href="#projects">Projects</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Site.Params.showblog }}
|
{{ if .Site.Params.showblog }}
|
||||||
<a class="nav-item" href="#blog">Blog</a>
|
<a class="nav-item" href="#blog">Blog</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<a class="nav-item" href="#contact">Contact</a>
|
<a class="nav-item" href="#contact">Contact</a>
|
||||||
</nav>
|
</nav>
|
||||||
<hr>
|
<hr>
|
||||||
</div><!-- Done with nav bar -->
|
</div><!-- Done with nav bar -->
|
||||||
|
@ -57,11 +57,14 @@
|
||||||
<h2 class="title is-2 has-text-centered">About</h2>
|
<h2 class="title is-2 has-text-centered">About</h2>
|
||||||
|
|
||||||
<div class="columns"><!-- Avatar and about.md side by side except mobile -->
|
<div class="columns"><!-- Avatar and about.md side by side except mobile -->
|
||||||
<div class="column is-one-third has-text-centered"><img class="img-responsive avatar" src="/{{ .Site.Params.avatar }}" alt="My profile picture.">
|
{{ if .Site.Params.avatar }}
|
||||||
|
<div class="column is-one-third has-text-centered">
|
||||||
|
<img class="img-responsive avatar" src="/{{ .Site.Params.avatar }}" alt="My profile picture.">
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
<div class="column markdown">
|
<div class="column markdown">
|
||||||
{{ range .Data.Pages }}
|
{{ range .Data.Pages }}
|
||||||
{{if eq .Title "about" }}
|
{{if eq .Title "about" }}
|
||||||
{{.Content}}
|
{{.Content}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -82,7 +85,7 @@
|
||||||
</div><!-- End Projects section -->
|
</div><!-- End Projects section -->
|
||||||
|
|
||||||
<div class="container"><hr></div>
|
<div class="container"><hr></div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
<!-- Let's show some blog posts -->
|
<!-- Let's show some blog posts -->
|
||||||
|
@ -100,7 +103,7 @@
|
||||||
<h2 class="title is-2">Contact</h2>
|
<h2 class="title is-2">Contact</h2>
|
||||||
<div class="markdown">
|
<div class="markdown">
|
||||||
{{ range .Data.Pages }}
|
{{ range .Data.Pages }}
|
||||||
{{if eq .Title "contact" }}
|
{{if eq .Title "contact" }}
|
||||||
{{.Content}}
|
{{.Content}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -151,4 +154,4 @@ $('a[href^="#"]').click(function(e) {
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue