header logo upside down

This commit is contained in:
Marvin Steadfast 2020-03-07 13:37:26 +01:00
parent bfc926eb19
commit 7d2c46cb63
3 changed files with 47 additions and 2 deletions

39
main.go Normal file
View File

@ -0,0 +1,39 @@
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"path/filepath"
"regexp"
)
func main() {
dir := flag.String("dir", "", "directory.")
flag.Parse()
files, err := ioutil.ReadDir(*dir)
if err != nil {
log.Fatal(err)
}
articles := make([]string, 0)
for _, i := range files {
abs, err := filepath.Abs(filepath.Join(*dir, i.Name()))
if err != nil {
log.Fatal(err)
}
articles = append(articles, abs)
}
for _, a := range articles {
go func(a string) {
data, err := ioutil.ReadFile(a)
if err != nil {
log.Fatal(err)
}
reIframe := regexp.MustCompile(`(?U)(<iframe\s.+>)`)
for _, m := range reIframe.FindAllStringSubmatch(string(data), -1) {
fmt.Print(m)
}
}(a)
}
}

View File

@ -1,3 +1,3 @@
<header> <header>
<div class="row"><div class="column"><h1 id="logo"><a href="{{ .Site.BaseURL }}">X5734DF457X</a></h1></div></div> <div class="row"><div class="column"><h1 id="logo"><a href="{{ .Site.BaseURL }}">XSTE<span class="upsidedown">V</span>DF<span class="upsidedown">V</span>STX</a></h1></div></div>
</header> </header>

View File

@ -87,7 +87,6 @@ a:hover {
h1#logo, h1#logo,
h1#logo a:link { h1#logo a:link {
font-size: 5rem; font-size: 5rem;
text-decoration: line-through;
text-shadow: 4px 4px #848484; text-shadow: 4px 4px #848484;
} }
@ -175,3 +174,10 @@ figcaption {
iframe { iframe {
padding-bottom: 5px; padding-bottom: 5px;
} }
header .upsidedown {
transform: rotate(-180deg);
-webkit-transform: rotate(-180deg);
-moz-transform: rotate(-180deg);
display: inline-block;
}