Ver código fonte

Projects layout

codeskraps 6 meses atrás
pai
commit
d37bce8288

+ 1 - 1
content/projects/index.md

@@ -1,6 +1,6 @@
 +++
 title = 'Projects'
-type = 'about'
+type = 'projects'
 +++
 ![weekly_weather_logo](images/weekly_weather_logo.webp)
 

+ 4 - 0
layouts/about/single.html

@@ -1,3 +1,7 @@
+{{ define "title"}}
+About | {{ .Site.Params.author.name }}
+{{ end }}
+
 {{ define "main" }}
   <article>
       <header>

+ 15 - 0
layouts/projects/single.html

@@ -0,0 +1,15 @@
+{{ define "title"}}
+Projects | {{ .Site.Params.author.name }}
+{{ end }}
+
+{{ define "main" }}
+  <article>
+      <header>
+        <h1>
+          {{ .Title }}
+        </h1>
+      </header>
+      {{ .Content }}
+    </div>
+  </article>
+{{ end }}

+ 2 - 2
public/about/index.html

@@ -3,8 +3,8 @@
 
 <head>
     <title>
-        codeskraps
-        </title>
+About | codeskraps
+</title>
 
     <meta http-equiv="content-type" content="text/html; charset=utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">

+ 6 - 6
public/posts/my-first-post/index.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="en-us">
 
-<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=60185&amp;path=livereload" data-no-instant defer></script>
+<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=61938&amp;path=livereload" data-no-instant defer></script>
     <title>
 My First Post | codeskraps
 </title>
@@ -13,7 +13,7 @@ My First Post | codeskraps
 <meta name="generator" content="Hugo 0.134.3">
 
 
-<link rel="canonical" href="http://localhost:60185/posts/my-first-post/" >
+<link rel="canonical" href="http://localhost:61938/posts/my-first-post/" >
 
 
 
@@ -31,7 +31,7 @@ My First Post | codeskraps
         <header class="headerWrapper">
     <div class="header">
         <div>
-            <a class="terminal" href="http://localhost:60185/">
+            <a class="terminal" href="http://localhost:61938/">
                 <span>me@codeskraps.com ~ $</span>
             </a>
         </div>
@@ -41,17 +41,17 @@ My First Post | codeskraps
             <ul>
                 
                 <li>
-                    <a href="http://localhost:60185/projects/" title="" >
+                    <a href="http://localhost:61938/projects/" title="" >
                         ~/projects</a>
                 </li>
                 
                 <li>
-                    <a href="http://localhost:60185/about/" title="" >
+                    <a href="http://localhost:61938/about/" title="" >
                         ~/about</a>
                 </li>
                 
                 <li>
-                    <a href="http://localhost:60185/posts/" title="" >
+                    <a href="http://localhost:61938/posts/" title="" >
                         ~/posts</a>
                 </li>
                 

+ 2 - 2
public/projects/index.html

@@ -3,8 +3,8 @@
 
 <head>
     <title>
-        codeskraps
-        </title>
+Projects | codeskraps
+</title>
 
     <meta http-equiv="content-type" content="text/html; charset=utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">