# Franklin websites fail to being parsed by openring

**URL:** <https://discourse.julialang.org/t/franklin-websites-fail-to-being-parsed-by-openring/111610>\
**Category:** Web Stack\
**Tags:** web, website, franklin\
**Created:** [March 14, 2024, 9:32am UTC](https://discourse.julialang.org/t/franklin-websites-fail-to-being-parsed-by-openring/111610 "2024-03-14T09:32:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![indymnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/indymnv/32/212594_2.png) [@indymnv](https://discourse.julialang.org/u/indymnv)\
**Post date:** [March 14, 2024, 9:32am UTC](https://discourse.julialang.org/t/franklin-websites-fail-to-being-parsed-by-openring/111610/1 "2024-03-14T09:32:39Z")

</div>

[openring](https://git.sr.ht/~sircmpwn/openring) is a nice tool to create [webring](https://en.wikipedia.org/wiki/Webring), I added it to my [Franklin website at the end of each post](https://www.indymnv.dev/posts/2024_02_14_swaywm/). However, I noticed that Franklin websites are not able to being parsed by this tool, while the ones built with Hugo, Jekylls or Quarto don’t have any problem, here is an example for reproducibility (notice you have to install Go):

```julia
$>git clone https://git.sr.ht/~sircmpwn/openring
$>cd openring
$>go build openring.go 
$>./openring \
  -s https://bkamins.github.io/feed.xml \
  -s https://jarbus.net/index.xml \
  -s https://www.paltmeyer.com/blog/index.xml \
  < in.html \
  > out.html
2024/03/14 17:59:04 Fetching feeds...
2024/03/14 17:59:05 Fetched Blog by Bogumił Kamiński
2024/03/14 17:59:06 Fetched jarbus.net on
2024/03/14 17:59:08 Fetched Patrick Altmeyer

```

Everything works just fine with these blogs, but trying with at least one Franklin website like [Viralinstruction](https://viralinstruction.com/), [The Cedar Ledge](https://jacobzelko.com/), [huijzer](https://huijzer.xyz/feed.xml), or mine fail in the process

```julia
$>./openring \
  -s https://bkamins.github.io/feed.xml \
  -s https://jarbus.net/index.xml \
  -s https://viralinstruction.com/feed.xml \
  < in.html \
  > out.html
2024/03/14 18:11:29 Fetching feeds...
2024/03/14 18:11:30 Fetched Blog by Bogumił Kamiński
2024/03/14 18:11:30 Fetched jarbus.net on
2024/03/14 18:11:31 Fetched
        viralinstruction

2024/03/14 18:11:31 failed parsing canonical feed URL of the feed

```

Leaving the out.html empty as it was in the beginning.

Trying to see the code in openring.go and see where it fails, looks like is having a problem with parsing the links in Franklin websites

```go
feedLink, err := url.Parse(feed.Link)
		log.Println(err) //I just Added to see the err element
		if err != nil {
			log.Fatal("failed parsing canonical feed URL of the feed")
		}

```

compile and run it again give me this:

```julia
$>./openring \
  -s https://bkamins.github.io/feed.xml \
  -s https://jarbus.net/index.xml \
  -s https://viralinstruction.com/feed.xml \
  < in.html \
  > out.html
2024/03/14 18:16:13 Fetching feeds...
2024/03/14 18:16:13 Fetched Blog by Bogumił Kamiński
2024/03/14 18:16:14 Fetched jarbus.net on
2024/03/14 18:16:14 Fetched
        viralinstruction

2024/03/14 18:16:14 <nil>
2024/03/14 18:16:14 <nil>
2024/03/14 18:16:14 parse " https://viralinstruction.com/ ": first path segment in URL cannot contain colon
2024/03/14 18:16:14 failed parsing canonical feed URL of the feed

```

I am a bit lost where could be the problem.
