Browse Source

Open Graph metadata, Discord icon

master
Kevin Mok 3 years ago
parent
commit
9abfcf4b56
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 6
      assets/sass/custom.scss
  2. 6
      config.toml
  3. 67
      layouts/partials/footer.html
  4. 37
      layouts/partials/head.html
  5. 9
      layouts/partials/head_custom.html
  6. 2
      resources/_gen/assets/scss/sass/custom.scss_48b060fe05b0a273d182ef83c0605941.content
  7. 2
      resources/_gen/assets/scss/sass/custom.scss_48b060fe05b0a273d182ef83c0605941.json
  8. 1
      static/images/discord-icon.svg
  9. BIN
      static/images/url-preview.png
  10. 2
      themes/meghna-hugo

6
assets/sass/custom.scss

@ -30,3 +30,9 @@ p, h3 {
font-size: .8em;
}
}
.social-icon {
img {
height: 75%;
}
}

6
config.toml

@ -2,7 +2,7 @@
baseURL = "http://codm.ataraxy.tk/"
languageCode = "en-us"
DefaultContentLanguage = "en"
title = "Ataraxy"
title = "Ataraxy | Call of Duty: Mobile Clan"
theme = "meghna-hugo"
summaryLength = 10
@ -39,7 +39,7 @@ home= "Home"
logo = "images/logo.png"
gmapAPI = "https://maps.googleapis.com/maps/api/js?key=AIzaSyCcABaamniA6OL5YvYSpB3pFMNrXwXnLwU&libraries=places"
# Meta data
description = "Call of Duty: Mobile Clan"
description = "Come check out our site for the clan for more information like requirements, members and the Discord server!"
author = "Themefisher"
# Google Analitycs
# googleAnalitycsID = "Your ID"
@ -92,4 +92,6 @@ custom_css = ["css/custom.css"]
# social Icons
[[params.footer.socialIcon]]
icon = "tf-ion-ios-chatboxes"
# img = "https://img.icons8.com/color/48/000000/discord-logo.png"
img = "images/discord-icon.svg"
url = "http://codm.ataraxy.tk/discord"

67
layouts/partials/footer.html

@ -0,0 +1,67 @@
{{"<!-- end Contact Area -->" | safeHTML}}
<footer id="footer" class="bg-one">
<div class="container">
<div class="row wow fadeInUp" data-wow-duration="500ms">
<div class="col-xl-12">
{{"<!-- Footer Social Links -->" | safeHTML}}
<div class="social-icon">
<ul class="list-inline">
{{ range .Site.Params.footer.socialIcon }}
<li class="list-inline-item"><a class="rounded" href="{{ .url }}"><img
class="my-2" src="{{ .img }}" alt="social-icon"/></a></li>
{{ end }}
</ul>
</div>
{{"<!-- copyright -->" | safeHTML}}
<div class="copyright text-center">
<a href="{{ .Site.BaseURL | absURL }}">
<img src="{{ .Site.Params.logo | absURL }}" alt="Meghna" />
</a>
<br>
<p>Design And Developed by <a href="{{ .Site.Params.footer.copyrightURL | absURL }}"> {{ with .Site.Params.footer.copyright }} {{ . }} {{ end }} </a>. Copyright &copy; <script>
document.write(new Date().getFullYear())
</script>. All Rights Reserved.</p>
</div>
</div>
</div>
</div>
</footer>
{{"<!-- /footer -->" | safeHTML}}
{{"<!-- Essential Scripts -->" | safeHTML}}
{{"<!-- Main jQuery -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/jquery/dist/jquery.min.js" | absURL}}"></script>
{{"<!-- Bootstrap 4.3 + Popper -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/bootstrap/dist/js/bootstrap.bundle.min.js" | absURL}}"></script>
{{"<!-- Slick Carousel -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/slick-carousel/slick/slick.min.js" | absURL}}"></script>
{{"<!-- Portfolio Filtering -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/filterzr/jquery.filterizr.min.js" | absURL}}"></script>
{{"<!-- Magnific popup -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/magnific-popup/dist/jquery.magnific-popup.min.js" | absURL}}"></script>
{{"<!-- Google Map API -->" | safeHTML}}
<script type="text/javascript" src="{{ .Site.Params.gmapAPI | absURL }}"></script>
{{"<!-- Number Counter Script -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/count-to/jquery.countTo.js" | absURL}}"></script>
{{"<!-- wow.min Script -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/wow/dist/wow.min.js" | absURL}}"></script>
{{"<!-- Scroll behavior polyfill -->" | safeHTML}}
{{ $scroll := resources.Get "js/scroll-behavior-polyfill.js" | minify}}
<script src="{{ $scroll.Permalink }}"></script>
{{"<!-- Sweet Alert -->" | safeHTML}}
<script type="text/javascript" src="{{ "plugins/sweet-alert/sweetalert.min.js" | absURL}}"></script>
{{"<!-- Custom js -->" | safeHTML}}
{{ $script := resources.Get "js/script.js" | minify}}
<script src="{{ $script.Permalink }}"></script>
{{ "<!-- google analitycs -->" | safeHTML }}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ .Site.Params.googleAnalitycsID }}', 'auto');
ga('send', 'pageview');
</script>

37
layouts/partials/head.html

@ -0,0 +1,37 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="{{ if .Description }}{{ .Description }}{{else if .IsPage}}{{ .Summary | plainify}}{{ else }}{{.Site.Params.description}}{{ end }}">
<meta name="author" content="{{ with .Params.author }}{{ . }}{{else}}{{ with .Site.Params.author}}{{ . }}{{ end }}{{end}}">
{{ "<!-- Mobile Specific Meta -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ hugo.Generator }}
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else if .IsPage}}{{ .Title }}{{" | "}}{{ .CurrentSection.Title }}{{else if eq .Section "author" }}{{if .Params.name}}{{.Params.name}} | {{ i18n "authorOfPostsOnBlog" }} „{{.Site.Title}}" {{else}}{{ i18n "authorsOfPostsOnBlog" }} „{{.Site.Title}}"{{end}}{{else if eq .Section "blog" }}{{ i18n "blogs" }} | {{ .Site.Title}}{{else}}{{ .Title }}{{with .Params.Description}}{{" | " .}}{{ end }}{{ end }}</title>
{{"<!-- Favicon -->" |safeHTML}}
<link rel="shortcut icon" type="image/x-icon" href="{{ "images/favicon.ico" | absURL }}"/>
{{"<!-- CSS -->"|safeHTML}}
{{"<!-- Fontawesome Icon font -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/themefisher-font/style.css" | absURL}}">
{{"<!-- bootstrap.min css -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/bootstrap/dist/css/bootstrap.min.css"|absURL}}">
{{"<!-- Animate.css -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/animate-css/animate.css"|absURL}}">
{{"<!-- Magnific popup css -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/magnific-popup/dist/magnific-popup.css"|absURL}}">
{{"<!-- Slick Carousel -->"|safeHTML}}
<link rel="stylesheet" href="{{"plugins/slick-carousel/slick/slick.css"|absURL}}">
<link rel="stylesheet" href="{{"plugins/slick-carousel/slick/slick-theme.css"|absURL}}">
{{"<!-- Main Stylesheet -->"|safeHTML}}
{{ $styles := resources.Get "css/style.css" | minify}}
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">
{{ "<!-- Custom CSS -->" | safeHTML }}
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ . | absURL }}">
{{ end }}
{{- partial "head_custom.html" . }}
</head>

9
layouts/partials/head_custom.html

@ -4,3 +4,12 @@ Do not put anything in this file - it's only here so that hugo won't throw an er
-->
{{ $style := resources.Get "sass/custom.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
<meta property="og:title" content="Ataraxy | Call of Duty: Mobile Clan" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://codm.ataraxy.tk/" />
<meta property="og:description" content="Come check out our site for the clan for more information like requirements, members and the Discord server!" />
<meta property="og:site_name" content="Ataraxy" />
<!-- <meta property="og:image" content="http://codm.ataraxy.tk/images/logo/c.png" /> -->
<meta property="og:image" content="images/url-preview.png" />
<meta property="og:image:width" content="300" />
<meta property="og:image:height" content="300" />

2
resources/_gen/assets/scss/sass/custom.scss_48b060fe05b0a273d182ef83c0605941.content

@ -1 +1 @@
@import "https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap";p,h3{font-family:source sans pro,sans-serif}.logo img{height:2em}.copyright img{height:2em}.bg-1{background-size:cover}.client-thumb img{border-radius:50%}.member-meta span{font-size:.8em}
@import "https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap";p,h3{font-family:source sans pro,sans-serif}.logo img{height:2em}.copyright img{height:2em}.bg-1{background-size:cover}.client-thumb img{border-radius:50%}.member-meta span{font-size:.8em}.social-icon img{height:75%}

2
resources/_gen/assets/scss/sass/custom.scss_48b060fe05b0a273d182ef83c0605941.json

@ -1 +1 @@
{"Target":"sass/custom.min.b5d5504721bb28b5741139895374cf380cdfd5e4ac8c9aae54410bf95561d234.css","MediaType":"text/css","Data":{"Integrity":"sha256-tdVQRyG7KLV0ETmJU3TPOAzf1eSsjJquVEEL+VVh0jQ="}}
{"Target":"sass/custom.min.90c8d82eff81222cc1f2d901f86211d885405f7e569e7223c70ce57d3a034c8e.css","MediaType":"text/css","Data":{"Integrity":"sha256-kMjYLv+BIizB8tkB+GIR2IVAX35WnnIjxwzlfToDTI4="}}

1
static/images/discord-icon.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="144px" height="144px"><path fill="#8c9eff" d="M40,12c0,0-4.585-3.588-10-4l-0.488,0.976C34.408,10.174,36.654,11.891,39,14c-4.045-2.065-8.039-4-15-4s-10.955,1.935-15,4c2.346-2.109,5.018-4.015,9.488-5.024L18,8c-5.681,0.537-10,4-10,4s-5.121,7.425-6,22c5.162,5.953,13,6,13,6l1.639-2.185C13.857,36.848,10.715,35.121,8,32c3.238,2.45,8.125,5,16,5s12.762-2.55,16-5c-2.715,3.121-5.857,4.848-8.639,5.815L33,40c0,0,7.838-0.047,13-6C45.121,19.425,40,12,40,12z M17.5,30c-1.933,0-3.5-1.791-3.5-4c0-2.209,1.567-4,3.5-4s3.5,1.791,3.5,4C21,28.209,19.433,30,17.5,30z M30.5,30c-1.933,0-3.5-1.791-3.5-4c0-2.209,1.567-4,3.5-4s3.5,1.791,3.5,4C34,28.209,32.433,30,30.5,30z"/></svg>

BIN
static/images/url-preview.png

After

Width: 1200  |  Height: 628  |  Size: 65 KiB

2
themes/meghna-hugo

@ -1 +1 @@
Subproject commit ad9c34135b8c22b9799760320456a170b28c1932
Subproject commit f00713bd2bfa3b361512b6460ec22c0e347b9efb
Loading…
Cancel
Save