mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-22 03:42:53 +00:00
Merge branch 'darkk' of https://github.com/darkk/hugo-theme-introduction into darkk-darkk
This commit is contained in:
commit
adce5a8bd5
3 changed files with 14 additions and 15 deletions
|
@ -24,6 +24,7 @@ canonifyurls = true # Turns relative urls into a
|
|||
description = "Website Description" # Max 160 characters show in search results
|
||||
faviconFile = "img/fav.ico"
|
||||
highlightjs = true # Syntax highlighting
|
||||
hljsTheme = true # Select highlight.js theme: https://highlightjs.org/static/demo/
|
||||
footerText = "" # Text to show in footer (overrides default text)
|
||||
fadeIn = true # Turn on/off the fade-in effect
|
||||
|
||||
|
|
|
@ -35,7 +35,13 @@
|
|||
|
||||
<!-- CSS -->
|
||||
{{ if .Site.Params.highlightjs }}
|
||||
{{ if .Site.Params.hljsTheme }}
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/{{ .Site.Params.hljsTheme }}.min.css">
|
||||
{{ else if eq .Site.Params.themeStyle "light" }}
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css">
|
||||
{{ else }}
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/tomorrow-night.min.css">
|
||||
{{ end }}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
{{ end }}
|
||||
|
|
|
@ -9,24 +9,16 @@
|
|||
<div class="column is-half"> {{ else if eq .Site.Params.projectColumns "3" }}
|
||||
<div class="column is-one-third"> {{ end }}
|
||||
<!-- Hey Vicky, show half column if number is even. -->
|
||||
<div class="card">
|
||||
<div {{ if not .Params.external_link }} id="project{{.Title | urlize}}" {{ end }} class="card">
|
||||
<div class="card-image">
|
||||
<figure class="image is-3by2">
|
||||
<a {{ if .Params.external_link }}
|
||||
href="{{ .Params.external_link }}"
|
||||
{{ else }}
|
||||
id="project{{.Title | urlize}}"
|
||||
{{ end }}>
|
||||
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
|
||||
<img src="{{ if .Params.image }}{{ .Params.image }}{{ else }}{{ .Site.Params.placeHolderimg }}{{ end }}">
|
||||
</a>
|
||||
</figure>
|
||||
</div>
|
||||
<div class="card-content has-text-centered top-pad">
|
||||
<a {{ if .Params.external_link }}
|
||||
href="{{ .Params.external_link }}"
|
||||
{{ else }}
|
||||
id="project{{.Title | urlize}}"
|
||||
{{ end }}>
|
||||
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</div>
|
||||
|
@ -39,7 +31,7 @@
|
|||
<!-- End Projects container -->
|
||||
|
||||
<!-- Projects modals -->
|
||||
{{ range sort .Pages }} {{ if eq .Section "projects" }}
|
||||
{{ range sort .Pages }} {{ if eq .Section "projects" }} {{ if not .Params.external_link }}
|
||||
<div class="modal" id="modal{{.Title | urlize}}">
|
||||
<div class="modal-background"></div>
|
||||
<div class="modal-card">
|
||||
|
@ -67,7 +59,7 @@
|
|||
$('#modal{{.Title | urlize}}').removeClass('is-active');
|
||||
});
|
||||
</script>
|
||||
{{ end }} {{ end }}
|
||||
{{ end }} {{ end }} {{ end }}
|
||||
|
||||
|
||||
<div class="container has-text-centered top-pad">
|
||||
|
|
Loading…
Reference in a new issue