static param

This commit is contained in:
sonic182
2022-03-29 23:34:46 +02:00
parent ebaf9cf5b3
commit 20580ecfce
4 changed files with 14 additions and 13 deletions
+1
View File
@@ -41,6 +41,7 @@ Menus:
params: params:
title: "Hugo Profile" title: "Hugo Profile"
description: Text about my cool site description: Text about my cool site
static: ""
favicon: "/fav.png" favicon: "/fav.png"
theme: theme:
+1 -1
View File
@@ -12,7 +12,7 @@
<body class="light" onload="loading()"> <body class="light" onload="loading()">
<!-- javascripts --> <!-- javascripts -->
<!-- <script src="/js/jquery-3.6.0.min.js"></script> --> <!-- <script src="/js/jquery-3.6.0.min.js"></script> -->
<script src="/bootstrap-5/js/bootstrap.bundle.js"></script> <script src="{{ .Site.Params.Statics }}/bootstrap-5/js/bootstrap.bundle.js"></script>
{{- partial "sections/header.html" . -}} {{- partial "sections/header.html" . -}}
<div id="content"> <div id="content">
+3 -3
View File
@@ -1,10 +1,10 @@
{{ define "head" }} {{ define "head" }}
<meta name="description" content={{ .Site.Params.description }}> <meta name="description" content={{ .Site.Params.description }}>
<link rel="stylesheet" href="/css/index.css" media="all"> <link rel="stylesheet" href="{{ .Site.Params.Statics }}/css/index.css" media="all">
<link rel="stylesheet" href="/css/projects.css" media="all"> <link rel="stylesheet" href="{{ .Site.Params.Statics }}/css/projects.css" media="all">
<!-- fontawesome --> <!-- fontawesome -->
<script defer src="/fontawesome-5/all-5.15.4.js"></script> <script defer src="{{ .Site.Params.Statics }}/fontawesome-5/all-5.15.4.js"></script>
{{ end }} {{ end }}
{{ define "title" }} {{ define "title" }}
+6 -6
View File
@@ -11,7 +11,7 @@
rel="stylesheet"> rel="stylesheet">
<!-- font configuration --> <!-- font configuration -->
<link rel="stylesheet" href="/css/font.css" media="all"> <link rel="stylesheet" href="{{ .Site.Params.Statics }}/css/font.css" media="all">
<!-- Internal templates --> <!-- Internal templates -->
{{ template "_internal/google_analytics_async.html" . }} {{ template "_internal/google_analytics_async.html" . }}
@@ -19,16 +19,16 @@
{{ template "_internal/twitter_cards.html" . }} {{ template "_internal/twitter_cards.html" . }}
<!-- stylesheets --> <!-- stylesheets -->
<link rel="stylesheet" href="/bootstrap-5/css/bootstrap.min.css" media="all"> <link rel="stylesheet" href="{{ .Site.Params.Statics }}/bootstrap-5/css/bootstrap.min.css" media="all">
<link rel="stylesheet" href="/css/header.css" media="all"> <link rel="stylesheet" href="{{ .Site.Params.Statics }}/css/header.css" media="all">
<link rel="stylesheet" href="/css/footer.css" media="all"> <link rel="stylesheet" href="{{ .Site.Params.Statics }}/css/footer.css" media="all">
<!-- theme --> <!-- theme -->
<link rel="stylesheet" href="/css/theme.css" media="all"> <link rel="stylesheet" href="{{ .Site.Params.Statics }}/css/theme.css" media="all">
<!-- Custom Styles --> <!-- Custom Styles -->
{{ if .Site.Params.customCSS }} {{ if .Site.Params.customCSS }}
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="{{ .Site.Params.Statics }}/style.css">
{{ end }} {{ end }}
<style> <style>