before implementing search

This commit is contained in:
unknown
2020-12-06 13:20:47 -03:00
commit 9be79cf76f
44 changed files with 8031 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2020 YOUR_NAME_HERE
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,2 @@
+++
+++

View File

View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
{{- partial "script.html" . -}}
</body>
</html>

View File

@@ -0,0 +1,43 @@
{{ define "main" }}
<h1>{{ .Name }}</h1>
<div class="articles">
{{ range .Pages.ByPublishDate.Reverse }}
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
<article class="article">
<a href="{{ .RelPermalink }}" class="article">
<div class="article">
<img src="{{.Params.image }}" alt="" srcset="{{.Params.image }}" class="article">
</div>
</a>
<div class="info article">
<h3 class=" article title">
<a href="{{ .RelPermalink }}" class="article title">{{ .Title }}</a>
</h3>
<div class="article metadata">
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
</div>
<div class="article summary">
<p>{{.Summary}}</p>
<a href="{{ .RelPermalink }}" class="more article">
Read more »
</a>
</div>
</div>
</article>
{{ end }}
</div>
{{ end }}

View File

@@ -0,0 +1,26 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
<div class="single summary">
{{.Summary}}
</div>
{{ partial "metadata.html" . }}
<br><br>
<div class="image single"><img src="{{.Params.image}}" alt=""></div>
<article class="single">
<div>
{{ .Content }}
</div>
</article>
{{ end }}

View File

@@ -0,0 +1,10 @@
[
{{ range $index, $value := where .Site.Pages "Type" "post" }}
{{ if $index }}, {{ end }}
{
"url": "{{ .RelPermalink }}",
"title": "{{ .Title }}",
"content": {{ .Content | plainify | jsonify }}
}
{{ end }}
]

View File

@@ -0,0 +1,6 @@
{{ define "main" }}
<br>
<div id="home-jumbotron" class="jumbotron text-center">
<h1 class="title">{{ .Site.Title }}</h1>
</div>
{{ end }}

View File

@@ -0,0 +1,38 @@
<footer>
<div class="flex-container">
<div>
<p>OFFICE</p>
<li>Adress</li>
<li>phone number</li>
<li>email</li>
<li>Other thing</li>
</div>
<div>
<p class="Site links">Office</p>
{{ range .Site.Menus.main }}
<li class="nav-link" href="{{ .URL }}">
{{ $text := print .Name | safeHTML }}
{{ $text }}
{{end}}
</div>
<div>
<p>Our Team</p>
<li>Anouschka Nabibaks, LLM, MBA</li>
<li>Brigitte Bodeutsch, LLB</li>
<li>Marge Kartopawiro</li>
<li>Vareen Kariem, LLM</li>
<li>Wandana Ganesh, LLB</li>
</div>
<div>
<p>Information</p>
<li>Wage Tax</li>
<li>Loonbelasting</li>
<li>Sales Tax</li>
<li>Withholding tax
</li>
</div>
</div>
<h2>Ⓒ 2020 - FiscLe Consultancy. All Rights Are Reserved</h2>
</footer>

View File

@@ -0,0 +1,9 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/global.css">
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>
</head>

View File

@@ -0,0 +1,17 @@
<div id="contact-info">
<a href="mailto:info@fiscleconsultancy.com"><i data-feather="mail"></i> info@fiscleconsultancy.com
</a>
<a href="tel:+597491518"><i data-feather="phone"></i>(597) 491518</a>
</div>
<nav class="topnav">
<a href="#home"><img src="/image/Fiscle_logo-185x300.jpg" alt="Fiscle Logo"></a>
{{ range .Site.Menus.main }}
<a class="nav-link" href="{{ .URL }}">
{{ $text := print .Name | safeHTML }}
{{ $text }}
</a>
{{ end }}
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i data-feather="menu" color="black"></i></a>
</nav>
<br>

View File

@@ -0,0 +1,10 @@
[
{{- range $index, $page := .Site.RegularPages -}}
{{- if gt $index 0 -}} , {{- end -}}
{{- $entry := dict "uri" $page.RelPermalink "title" $page.Title -}}
{{- $entry = merge $entry (dict "content" ($page.Plain | htmlUnescape)) -}}
{{- $entry = merge $entry (dict "description" $page.Description) -}}
{{- $entry = merge $entry (dict "categories" $page.Params.categories) -}}
{{- $entry | jsonify -}}
{{- end -}}
]

View File

@@ -0,0 +1,11 @@
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
<i data-feather="calendar"></i>
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
{{ with .Params.tags }}
<i data-feather="tag"></i>
{{ range . }}
{{ $href := print (absURL "tags/") (urlize .) }}
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
{{ end }}
{{ end }}

View File

@@ -0,0 +1,20 @@
<script src="/js/feather.min.js"></script>
<!-- feather icon replace -->
<script>
feather.replace()
</script>
<script>
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
</script>
<!-- search -->
<script src="https://unpkg.com/lunr/lunr.js"></script>

View File

@@ -0,0 +1,442 @@
/* contact info top */
div#contact-info {
overflow: hidden;
background-color: #54595f;
color: #ffffff;
}
div#contact-info a {
float: left;
display: block;
color: #ffffff;
text-align: center;
padding: 14px;
text-decoration: none;
}
.topnav {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
width: 100vw;
}
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
.topnav a:not(:first-child) {
display: none;
}
.topnav a.icon {
float: right;
display: block;
}
}
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
.topnav.responsive {
position: relative;
}
.topnav.responsive a.icon {
position: absolute;
right: 0;
top: 0;
}
.topnav.responsive a {
float: none;
display: block;
text-align: left;
}
}
/* Change the color of links on hover */
.topnav a:hover {
color: chocolate;
}
/* Add an active class to highlight the current page */
.topnav a.active {
color: rgb(195, 197, 48);
}
.topnav .icon {
display: none;
}
.topnav a {
font-family: "Montserrat", Sans-serif;
font-size: 16px;
font-weight: 400;
/* float: left;
display: block; */
color: #54595f;
text-align: center;
padding: 14px;
text-decoration: none;
}
.topnav a img {
height: 60px;
width: 40px;
}
/* Footer stuff */
footer {
background-color: #6e7277;
}
footer .flex-container {
display: flex;
}
footer .flex-container>div {
background-color: #6e7277;
color: #ffffff;
margin: 10px;
padding: 20px;
font-size: 20px;
}
footer h2 {
align-self: center;
}
/* lists of articles */
div.articles {
--page-title-display: block;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #333;
hyphens: manual;
text-align: left;
box-sizing: border-box;
flex-wrap: wrap;
grid-template-columns: repeat(3, 1fr);
display: grid;
-webkit-box-align: stretch;
align-items: stretch;
grid-column-gap: 30px;
grid-row-gap: 30px;
}
.article {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
font-size: 1rem;
font-weight: 400;
hyphens: manual;
text-align: left;
line-height: 1.5;
box-sizing: border-box;
word-break: break-word;
}
div.articles article.article {
--page-title-display: block;
color: #333;
min-width: 0;
padding: 0;
margin: 0;
display: flex;
transition-property: background, border, box-shadow, -webkit-box-shadow;
transition-duration: .25s;
overflow: hidden;
box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
box-sizing: border-box;
}
article.article > a.article {
--page-title-display: block;
background-color: transparent;
color: #c36;
transition: none;
box-shadow: none;
text-decoration: none;
position: relative;
display: block;
flex-shrink: 0;
-webkit-box-ordinal-group: 1;
order: 0;
width: 42%;
margin-right: 20px;
}
article >a.article > div.article {
--page-title-display: block;
color: #c36;
overflow: hidden;
position: relative;
top: 0;
left: 0;
right: 0;
bottom: 0;
padding-bottom: calc( 1 * 100%);
}
a.article div.article img.article {
--page-title-display: block;
color: #c36;
border: none;
border-radius: 0;
box-shadow: none;
display: block;
max-height: none;
max-width: none;
transition: filter .3s, -webkit-filter .3s;
position: absolute;
top: calc(50% + 1px);
left: calc(50% + 1px);
transform: scale(1.01) translate(-50%, -50%);
height: 100%;
width: auto;
}
div.article.title {
--page-title-display: block;
color: #333;
box-sizing: border-box;
-webkit-box-flex: 1;
flex-grow: 1;
padding: 30px 30px 0px 0px;
}
div h3.article {
box-sizing: border-box;
margin: 0;
color: #211f40;
font-family: "Merriweather", Sans-serif;
font-size: 16px;
font-weight: 300;
text-transform: none;
line-height: 1.4em;
margin-bottom: 22px;
}
div h3 a.article {
background-color: transparent;
box-sizing: border-box;
box-shadow: none;
text-decoration: none;
color: #211f40;
font-family: "Merriweather", Sans-serif;
font-size: 16px;
font-weight: 300;
text-transform: none;
line-height: 1.4em;
}
article div.article.info {
--page-title-display: block;
color: #333;
box-sizing: border-box;
-webkit-box-flex: 1;
flex-grow: 1;
padding: 30px 30px 0px 0px;
}
h3.article.title {
box-sizing: border-box;
margin: 0;
color: #211f40;
font-family: "Merriweather", Sans-serif;
font-size: 16px;
font-weight: 300;
text-transform: none;
line-height: 1.4em;
margin-bottom: 22px;
}
h3.article.title a {
background-color: transparent;
box-sizing: border-box;
box-shadow: none;
text-decoration: none;
color: #211f40;
font-family: "Merriweather", Sans-serif;
font-size: 16px;
font-weight: 300;
text-transform: none;
line-height: 1.4em;
}
div.article.text {
box-sizing: border-box;
line-height: 1.3em;
color: #211f40;
font-family: "Montserrat", Sans-serif;
font-size: 12px;
font-weight: 300;
text-transform: capitalize;
margin-bottom: 20px;
}
div.article.metadata {
box-sizing: border-box;
line-height: 1.3em;
color: #211f40;
font-family: "Montserrat", Sans-serif;
font-size: 12px;
font-weight: 300;
text-transform: capitalize;
margin-bottom: 20px;
}
div.article.summary {
--page-title-display: block;
color: #333;
box-sizing: border-box;
margin-bottom: 20px;
}
a.more {
background-color: transparent;
box-sizing: border-box;
box-shadow: none;
text-decoration: none;
font-size: 12px;
font-family: var( --e-global-typography-accent-font-family);
font-weight: var( --e-global-typography-accent-font-weight);
color: #CBAE08;
}
/* Article */
div.single.summary {
hyphens: manual;
box-sizing: border-box;
transition: background .3s, border .3s, border-radius .3s, box-shadow .3s, -webkit-border-radius .3s, -webkit-box-shadow .3s;
color: #16163f;
font-family: "Merriweather", Sans-serif;
font-weight: 300;
text-transform: none;
line-height: 1.4em;
padding: 0px 0px 0px 30px;
border-style: solid;
border-width: 0px 0px 0px 4px;
border-color: #d3b574;
font-size: 38px;
}
div.image.single {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #333;
hyphens: manual;
text-align: left;
box-sizing: border-box;
}
div.image.single img {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #333;
hyphens: manual;
text-align: left;
box-sizing: border-box;
height: auto;
max-width: 100%;
border: none;
border-radius: 0;
box-shadow: none;
vertical-align: middle;
display: inline-block;
width: 100%;
}
article.single {
line-height: 1.5;
hyphens: manual;
box-sizing: border-box;
position: relative;
width: 100%;
text-align: left;
color: #4a4a4a;
font-family: "Montserrat", Sans-serif;
font-size: 16px;
}
article.single div {
line-height: 1.5;
hyphens: manual;
text-align: left;
color: #4a4a4a;
font-family: "Montserrat", Sans-serif;
font-size: 16px;
box-sizing: border-box;
transition: background .3s, border .3s, border-radius .3s, box-shadow .3s, -webkit-border-radius .3s, -webkit-box-shadow .3s;
margin: 50px 0px 0px 0px;
}
article.single div p {
line-height: 1.5;
hyphens: manual;
text-align: left;
color: #4a4a4a;
font-family: "Montserrat", Sans-serif;
font-size: 16px;
margin-top: 0;
margin-bottom: .9rem;
box-sizing: border-box;
}
/* Search */
@keyframes spin {
100% {
transform: rotateY(360deg);
}
}
.search {
display: flex;
justify-content: center;
border: 1px solid black;
min-width: 1em;
height: 1em;
line-height: 1;
border-radius: 0.75em;
padding: 0.25em;
}
.search-icon {
color: black;
cursor: pointer;
width: 1em;
height: 1em;
margin: 0;
vertical-align: bottom;
}
.search[data-running] .search-icon {
animation: spin 1.5s linear infinite;
}
.search-input {
border-width: 0;
padding: 0;
margin: 0;
width: 0;
outline: none;
background: transparent;
transition: width 0.5s;
}
.search-input:focus {
margin-left: 0.5em;
width: 10em;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,22 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "Fiscleconsult"
license = "MIT"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
description = ""
homepage = "http://example.com/"
tags = []
features = []
min_version = "0.41.0"
[author]
name = "Sagar Ramsaransing"
homepage = ""
# If porting an existing theme
[original]
name = ""
homepage = ""
repo = ""