瀏覽代碼

Rss Feed exposed

Steffen Cole Blake 4 年之前
父節點
當前提交
a284eeaf81
共有 6 個文件被更改,包括 51 次插入17 次删除
  1. 7 1
      config.toml
  2. 0 7
      content/homepage/about.md
  3. 0 7
      content/homepage/work.md
  4. 27 0
      layouts/partials/footer.html
  5. 15 0
      layouts/partials/head.html
  6. 2 2
      static/css/custom.css

+ 7 - 1
config.toml

@@ -5,6 +5,12 @@ DefaultContentLanguage = "en" # Change this to change the site's language
 theme = "hugo.386"
 preserveTaxonomyNames = true
 
+
+copyright = 'This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.'
+rssLimit = 20
+[author]
+    name = 'Steffen Blake'
+
 [params]
     # The name to display as main title in the home page
     mainpagetitle = "Blog | Technically.fun"
@@ -56,7 +62,7 @@ preserveTaxonomyNames = true
     prefix = "[hugo.386 theme by Max le Fou](https://gitlab.com/maxlefou/hugo.386)"
 
     # Text to go between copyright and hugo disclaimer (if enabled)
-    suffix = "Example site"
+    suffix = "Technically Fun"
 
 [menu]
   # This displays buttons in the navbar to access your contents

+ 0 - 7
content/homepage/about.md

@@ -1,7 +0,0 @@
----
-title: 'Our Difference'
-button: 'About us'
-weight: 2
----
-
-Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Ipsum dolor sit amet, et essent mediocritatem quo.

+ 0 - 7
content/homepage/work.md

@@ -1,7 +0,0 @@
----
-title: 'We Help Business Grow'
-button: 'Our Work'
-weight: 1
----
-
-Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit.

+ 27 - 0
layouts/partials/footer.html

@@ -0,0 +1,27 @@
+<footer class="container">
+    <hr class="soften">
+    <p class="text-center">
+        {{- partial "copyright.html" . -}}
+    </p>
+    <p class="text-center">
+        {{ with .Site.Params.facebook }}
+            <a href="{{ . }}">Facebook</a> |
+        {{ end }} 
+        {{ with .Site.Params.twitter }}
+            <a href="{{ . }}">Twitter</a> |
+        {{ end }} 
+        {{ with .Site.Params.linkedin }}
+            <a href="{{ . }}">Linkedin</a> |
+        {{ end }} 
+        {{ with .Site.Params.github }}
+            <a href="{{ . }}">GitHub</a> |
+        {{ end }} 
+        {{ with .Site.Params.gitlab }}
+            <a href="{{ . }}">GitLab</a> |
+        {{ end }}
+        {{ with .Site.Params.gogs }}
+            <a href="{{ . }}">Gogs</a> |
+        {{ end }}
+        <a href="/index.xml">RSS Feed</a>
+    </p>
+</footer>

+ 15 - 0
layouts/partials/head.html

@@ -0,0 +1,15 @@
+<head>
+    <title>{{ .Site.Title }}</title>
+    <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
+    <meta content="utf-8" http-equiv="encoding">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="format-detection" content="telephone=no" />
+    <meta name="theme-color" content="#000084" />
+    <link rel="icon" href="{{ .Site.BaseURL }}/favicon.ico">
+    <link rel="canonical" href="{{ .Site.BaseURL }}">
+    {{/* Don't ask why it's like this. This original theme is a mess... */}}
+    <!-- <noscript><style>body { visibility: visible }</style></noscript> -->
+    {{ range .AlternativeOutputFormats -}}
+        {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+    {{ end -}}
+</head>

+ 2 - 2
static/css/custom.css

@@ -21,8 +21,8 @@ p > a {
 }
 
 .crt::after {
-  animation: vm-flicker 1s infinite;
-  animation-delay: 1s;
+  animation: vm-flicker 10s infinite;
+  animation-delay: 5s;
 }
 
 body *, .lead, .display-3 {