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

github.com/athul/archie.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorathul <athul8720@gmail.com>2020-06-24 10:57:58 +0300
committerathul <athul8720@gmail.com>2020-06-24 10:57:58 +0300
commit03a155de82857e856b85a60545ea998b64cfc24e (patch)
tree80d67f906ce50b807c81ac842031edec060a4c63
parent17a1d3b6408fbb8eaaaf873f346c63fa26b4a92e (diff)
Better Seo and Images
-rw-r--r--layouts/partials/footer.html3
-rw-r--r--layouts/partials/header.html10
-rw-r--r--static/css/dark.css46
-rw-r--r--static/css/main.css67
4 files changed, 122 insertions, 4 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index a209a00..cd43722 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -13,5 +13,4 @@
<script>
feather.replace()
</script>
-{{- end }}
-
+{{- end -}}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 4e491d6..756bccb 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -4,7 +4,7 @@
{{- $title := ( .Title ) -}}
{{- $siteTitle := ( .Site.Title ) -}}
{{- if .IsHome -}}
- <title>{{ $siteTitle }} {{ if isset .Site.Params "subtitle" }}- {{ .Site.Params.Subtitle }}{{ end }} </title>
+ <title>{{ $siteTitle }} | Home </title>
{{- else -}}
<title>{{ $title }} - {{ $siteTitle }}</title>
{{- end -}}
@@ -14,10 +14,16 @@
{{- end -}}
<meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta property="og:title" content="{{ $title }} | {{ $siteTitle }}" />
+ <meta name="twitter:title" content="{{ $title }} | {{ $siteTitle }}" />
+ <meta property="og:image" content="{{ .Site.Params.og_image }}"/>
+ <meta itemprop="name" content="{{ $title }} | {{ $siteTitle }}" />
+ <meta name="application-name" content="{{ $title }} | {{ $siteTitle }}" />
+ <meta property="og:site_name" content="{{ .Site.Params.sitename }}" />
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
-
+ <meta name="description" content="{{ $.Param "description" }}">
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}
{{ if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}}
diff --git a/static/css/dark.css b/static/css/dark.css
index 2c3c02a..f93adf1 100644
--- a/static/css/dark.css
+++ b/static/css/dark.css
@@ -111,3 +111,49 @@ a:hover {
color: var(--darkMaincolor);
background-color: blue;
}
+.highlight pre code[class=language-javaScript]::before,
+.highlight pre code[class="language-js"]::before {
+ content: "js";
+ background: #f7df1e;
+ color: black;
+}
+.highlight pre code[class*='language-yml']::before,
+.highlight pre code[class*='language-yaml']::before {
+ content: 'yaml';
+ background: #f71e6a;
+ color: white;
+}
+.highlight pre code[class*='language-shell']::before,
+.highlight pre code[class*='language-bash']::before,
+.highlight pre code[class*='language-sh']::before {
+ content: 'shell';
+ background: green;
+ color:white
+}
+.highlight pre code[class*='language-json']::before{
+ content: 'json';
+ background: dodgerblue;
+ color: #000000
+}
+.highlight pre code[class*='language-python']::before,
+.highlight pre code[class*='language-py']::before {
+ content: 'py';
+ background: blue;
+ color: yellow ;
+}
+.highlight pre code[class*='language-css']::before{
+ content: 'css';
+ background: cyan;
+ color: black ;
+}
+.highlight pre code[class*='language-go']::before{
+ content: 'Go';
+ background: cyan;
+ color: royalblue ;
+}
+.highlight pre code[class*='language-md']::before,
+.highlight pre code[class*='language-md']::before{
+ content: 'Markdown';
+ background: royalblue;
+ color: whitesmoke ;
+} \ No newline at end of file
diff --git a/static/css/main.css b/static/css/main.css
index a92310b..3e6c953 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -225,4 +225,71 @@ svg{
border-radius: 4px;
margin-left: 6px;
background-color: #f9f2f4;
+}
+.highlight {
+ position: relative;
+ -webkit-overflow-scrolling: touch;
+}
+.highlight pre code[class*="language-"] {
+ -webkit-overflow-scrolling: touch;
+}
+.highlight pre code[class*="language-"]::before {
+ background: black;
+ border-radius: 0 0 0.25rem 0.25rem;
+ color: white;
+ font-size: 12px;
+ letter-spacing: 0.025rem;
+ padding: 0.1rem 0.5rem;
+ position: absolute;
+ right: 1rem;
+ text-align: right;
+ text-transform: uppercase;
+ top: 0;
+}
+
+.highlight pre code[class=language-javaScript]::before,
+.highlight pre code[class="language-js"]::before {
+content: "js";
+background: #f7df1e;
+color: black;
+}
+.highlight pre code[class*='language-yml']::before,
+.highlight pre code[class*='language-yaml']::before {
+content: 'yaml';
+background: #f71e6a;
+color: white;
+}
+.highlight pre code[class*='language-shell']::before,
+.highlight pre code[class*='language-bash']::before,
+.highlight pre code[class*='language-sh']::before {
+content: 'shell';
+background: green;
+color:white
+}
+.highlight pre code[class*='language-json']::before{
+content: 'json';
+background: dodgerblue;
+ color: #000000
+}
+.highlight pre code[class*='language-python']::before,
+.highlight pre code[class*='language-py']::before {
+content: 'py';
+background: blue;
+color: yellow ;
+}
+.highlight pre code[class*='language-css']::before{
+content: 'css';
+background: cyan;
+color: black ;
+}
+.highlight pre code[class*='language-go']::before{
+content: 'Go';
+background: cyan;
+color: royalblue ;
+}
+.highlight pre code[class*='language-md']::before,
+.highlight pre code[class*='language-md']::before{
+content: 'Markdown';
+background: royalblue;
+color: whitesmoke ;
} \ No newline at end of file