Browse Source

Adding about page

* Fixed images for links not using absURL
master
Drew Short 6 years ago
parent
commit
4b02266038
  1. 5
      content/_index.md
  2. 12
      content/about.md
  3. 6
      themes/pure/layouts/_default/baseof.html
  4. 10
      themes/pure/layouts/partials/head.html

5
content/_index.md

@ -1 +1,4 @@
# Test
---
type: "homepage"
---
# This is an example landing page

12
content/about.md

@ -0,0 +1,12 @@
---
title: "About"
date: 2019-02-08T23:42:14-06:00
draft: true
type: "navLink"
---
[**sothr.com**](https://sothr.com) is in it's 3rd iteration, rewritten using the static site generator [Hugo](https://gohugo.io/) from the previous Refinery CMS branch. I don't update the site often enough to require a CMS style site, and I am no longer comfortable with the additional attack surface of such an application for a simple personal landing page. I've developed a custom Hugo theme based on [purecss](https://purecss.io/) which I find to be a refreshingly small css only layout library.
The second edition was built on [Refinery CMS](https://refinerycms.com/) and was birthed from my rediscovery of the ruby language while automating processes at Cargill. I was growing tired of maintaining a hand written html 5 site, and regularly updating my personal project lists wasn't doing anything good for my frustrations around the state of HTML5, CSS3 and javascript. This version did inherit the look of the original site, through my thankfully forward looking design choice of using mostly stock bootstrap as the primaryy css library.
The very first edition of the site was a custom amalgamation of burdening web technologies with javascript at the core. I spun out the core components and called it [Web-App-Seed](https://github.com/warricksothr/Web-App-Seed), though this specific set of tools never saw much use and the site built with them was overly complicated. It did however have one meaningful impact on my designs, the use of css libraries like [bootstrap](https://getbootstrap.com/docs/3.4/) to help with page layout.

6
themes/pure/layouts/_default/baseof.html

@ -3,9 +3,13 @@
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
<div id="content" class="pure-g">
<div class="pure-u-1-5"></div>
<div class="pure-u-3-5">
{{- block "main" . }}{{- end }}
</div>
<div class="pure-u-1-5"></div>
</div>
{{- partial "footer.html" . -}}
</body>
</html>

10
themes/pure/layouts/partials/head.html

@ -13,16 +13,16 @@
</head>
<nav>
<div class="pure-menu pure-menu-horizontal">
<a href="{{ .Site.BaseURL }}" class="pure-menu-heading pure-menu-link">{{ .Site.Title }}</a>
<a href="{{ .Site.BaseURL }}" class="pure-menu-heading pure-menu-link" title="Home">{{ .Site.Title }}</a>
<ul class="pure-menu-list">
{{ range where .Site.Pages "Type" "homepage" }}
<li class="pure-menu-list"><a href="{{ .URL }}" class="pure-menu-link">{{ .Title }}</a></li>
{{ range where .Site.Pages "Type" "navLink" }}
<li class="pure-menu-list"><a href="{{ .URL }}" class="pure-menu-link" title="{{ .Title }}">{{ .Title }}</a></li>
{{ end }}
{{ range .Site.Params.links }}
<li class="pure-menu-list">
<a href="{{ .Site.BaseURL }}{{ .url }}" target="_blank">
<a href="{{ .url }}" target="_blank" title="{{ .title }}">
{{ if .image }}
<img src="{{ .Site.BaseURL }}{{.image}}"/>
<img src="{{ .image | absURL }}" />
{{ else }}
{{ .title }}
{{ end }}