Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Somrat37/somrat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSomrat Sorkar <37659754+somratpro@users.noreply.github.com>2021-02-13 11:38:25 +0300
committerGitHub <noreply@github.com>2021-02-13 11:38:25 +0300
commit22d8278e41b9d8a491ff7f368782446b9a0637cf (patch)
tree93e69e6e9cd43c18dc36ce76f00464ce6f76dfcc
parent5e6e5112ab12f41c265fa72fe382588b0b5a822c (diff)
parent0797b024207425d320f82c43aeb1ad46b1e0a02c (diff)
Merge pull request #21 from markdinn/masterv2.0.0
improved custom CSS
-rw-r--r--layouts/_default/list.html8
-rw-r--r--layouts/_default/single.html7
-rw-r--r--layouts/index.html24
-rw-r--r--layouts/partials/head.html2
-rw-r--r--layouts/portfolio/list.html3
-rw-r--r--layouts/portfolio/single.html3
6 files changed, 28 insertions, 19 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 0e46f70..b86a0dd 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -2,8 +2,8 @@
<!-- checking blog -->
{{ if or (eq .Section "post") (eq .Section "posts") (eq .Section "blog") (eq .Section "blogs") (eq .Section "news") (eq .Section "categories") (eq .Section "tags") }}
-<section class="portfolio {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}}
- style="{{.Params.custom_css | safeCSS}}">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section class="portfolio {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}}>
<div class="container">
<h1 class="wow fadeInUp text-center mb-5" data-wow-duration="1.5s">{{ .Title }}</h1>
<div class="row wow fadeInUp" data-wow-duration="1.5s">
@@ -29,8 +29,8 @@
<!-- regular page -->
{{ else }}
-<section class="portfolio {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}}
- style="{{.Params.custom_css | safeCSS}}">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section class="portfolio {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}}>
<div class="container wow fadeInUp" data-wow-duration="1.5s">
<h1 class="text-center mb-5">{{ .Title | markdownify }}</h1>
<div class="row">
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index d4d1172..1ce5d79 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -3,7 +3,8 @@
<!-- checking blog -->
{{ if or (eq .Section "post") (eq .Section "posts") (eq .Section "blog") (eq .Section "blogs") (eq .Section "news") (eq .Section "categories") (eq .Section "tags") }}
-<section class="section">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section class="section {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}}>
<div class="container">
<div class="row">
<div class="col-lg-8 mb-4 mb-lg-0">
@@ -72,8 +73,8 @@
<!-- regular page -->
{{ else }}
-<section class="portfolio {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}}
- style="{{.Params.custom_css | safeCSS}}">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section class="portfolio {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}}>
<div class="container wow fadeInUp" data-wow-duration="1.5s">
<h1 class="text-center mb-5">{{ .Title | markdownify }}</h1>
<div class="row">
diff --git a/layouts/index.html b/layouts/index.html
index 42e6300..b15a113 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -2,7 +2,8 @@
<!-- Start Header -->
{{ with .GetPage "banner" }}
-<section class="header {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} style="{{.Params.custom_css | safeCSS}}" id="home">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section class="header {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} id="home">
<div class="logo">
<img class="img-fluid" src="{{ site.Params.logo_light | relURL }}" alt="{{ site.Title }}">
</div>
@@ -176,7 +177,8 @@
<!-- Start About Me -->
{{ with .GetPage "about" }}
-<section class="about-me {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} style="{{.Params.custom_css | safeCSS}}" id="about">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section class="about-me {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} id="about">
<div class="container">
<div class="row about-me-holder">
<div class="col-lg-6 col-md-6 col-sm-6 about-me-text d-flex align-self-center">
@@ -244,7 +246,8 @@
<!-- Start Services -->
{{ with .GetPage "service" }}
-<section class="services {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} style="{{.Params.custom_css | safeCSS}}" id="service">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section class="services {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} id="service">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto col-sm-10">
@@ -273,7 +276,8 @@
<!-- call to action -->
{{ with .GetPage "call-to-action" }}
-<section id="cta" class="need-service overlay section-sm wow fadeInUp {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} data-wow-duration="1.5s" style="background-image: url('{{ .Params.bg_image | absURL }}'); {{.Params.custom_css | safeCSS}}">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section id="cta" class="need-service overlay section-sm wow fadeInUp {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} data-wow-duration="1.5s" style="background-image: url('{{ .Params.bg_image | absURL }}');">
<div class="container position-relative z-index-9">
<h1>{{ .Title | markdownify }}</h1>
{{ with .Content }}<div class="text-white content">{{ . | markdownify }}</div> {{ end }}
@@ -289,7 +293,8 @@
<!-- Start Portfolio -->
{{ with .GetPage "portfolio"}}
-<section class="portfolio {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} style="{{.Params.custom_css | safeCSS}}" id="portfolio">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section class="portfolio {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} id="portfolio">
<div class="container-fluid text-center">
<div class="row portfolio-holder text-left">
<div class="col-12 text-center">
@@ -347,7 +352,8 @@
<!-- Start Testimonials -->
{{ with .GetPage "testimonial"}}
-<section class="testimonials {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} style="{{.Params.custom_css | safeCSS}}" id="testimonial">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section class="testimonials {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} id="testimonial">
<div class="container">
<div class="row">
<div class="testimonials-container col-lg-8 offset-lg-2">
@@ -373,7 +379,8 @@
<!-- funfacts -->
{{ with .GetPage "funfacts"}}
-<section class="wow fadeInUp section-sm {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} data-wow-duration="1.5s" style="{{.Params.custom_css | safeCSS}}">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section class="wow fadeInUp section-sm {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} data-wow-duration="1.5s">
<div class="container position-relative z-index-9">
{{ with .Title}}
<div class="services-heading">
@@ -397,7 +404,8 @@
<!-- Start Contact -->
{{ with .GetPage "contact"}}
-<section class="contact {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} style="background-image: url('{{.Params.bg_image | absURL}}'); {{.Params.custom_css | safeCSS}}" id="contact">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section class="contact {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} style="background-image: url('{{.Params.bg_image | absURL}}');" id="contact">
<div class="container">
<div class="row">
<div class="contact-holder col-lg-8 offset-lg-2 col-sm-8 offset-sm-2">
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 52a9d7b..582a6cd 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -21,10 +21,8 @@
<link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">
<!-- Custom stylesheet -->
- {{ if fileExists "css/custom.css" }}
{{ $custom := resources.Get "css/custom.css" | minify }}
<link rel="stylesheet" href="{{ $custom.Permalink }}" media="screen">
- {{ end }}
<!--Favicon-->
<link rel="shortcut icon" href="{{ site.Params.favicon | absURL }}" type="image/x-icon">
diff --git a/layouts/portfolio/list.html b/layouts/portfolio/list.html
index 35216cd..712a080 100644
--- a/layouts/portfolio/list.html
+++ b/layouts/portfolio/list.html
@@ -1,6 +1,7 @@
{{ define "main" }}
-<section class="portfolio {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}} style="{{.Params.custom_css | safeCSS}}">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section class="portfolio {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}}>
<div class="container-fluid text-center">
<div class="row portfolio-holder text-left">
<div class="col-12 text-center">
diff --git a/layouts/portfolio/single.html b/layouts/portfolio/single.html
index 199e634..f4f909c 100644
--- a/layouts/portfolio/single.html
+++ b/layouts/portfolio/single.html
@@ -1,6 +1,7 @@
{{ define "main" }}
-<section class="section">
+<style>{{.Params.custom_css | safeCSS}}</style>
+<section class="section {{.Params.custom_class}}" {{.Params.custom_attributes | safeHTMLAttr}}>
<div class="container">
<div class="row">
<div class="col-lg-8 mb-4 mb-lg-0">