Recent Topics

1 Nov 27, 2015 00:03    

I'm used to Emacs and I love Org-Mode.
If you don't know yet that incredible editor go to :

Org-Mode can export in Markdown format, but there are some glitches with b2evolution.

The generated table of content is displayed almost correctly (lines don't have the same height), but links do not work :

the link <a href="#orgheadline7"> is transformed in $baseurl /skins/bootstrap_blog_skin/#orgheadline2

Here is the generated table of contents :

<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgheadline7">1. Liégo : tests</a>
<ul>
<li><a href="#orgheadline2">1.1. Préférence du compte</a>
<ul>
<li><a href="#orgheadline1">1.1.1. Paramètres</a></li>
</ul>
</li>
<li><a href="#orgheadline5">1.2. Posts</a>
<ul>
<li><a href="#orgheadline3">1.2.1. Création</a></li>
<li><a href="#orgheadline4">1.2.2. Aperçu</a></li>
</ul>
</li>
<li><a href="#orgheadline6">1.3. Notification</a></li>
</ul>
</li>
</ul>
</div>
</div>

2 Nov 27, 2015 16:48

So basically, what you would need is a way to automatically to turn all relative links to absolute links, right?

3 Nov 28, 2015 01:35

Short: Relative links that would point in the same post (page).

Long:
First of all I'm surprised to see the URL of posts constructed like this :
'http://<mysite>/blog/index.php/<myblog>/<mypost>'
i.e.
$baseurl . "<myblog>/<mypost>"

I'm surprise to see the "index.php" in the middle. But that's not the main point here.

I'd like to have relative links like "#orgheadline7" point into the same page.
Currently they point to "skins/bootstrap_blog_skin/" :
<a href="#orgheadline7">
is transformed in
$baseurl . "skins/bootstrap_blog_skin/#orgheadline7"

If don't have an immediate idea, please point me to the source code lines that interpret the links in markdown format.

4 Nov 28, 2015 05:20

  1. See collection Url settings for removing index.php
  2. B2evolution uses a <base> tag so that it:so easier to design skins. Remove it if you don't like the way it affects relative links.
  3. Relative links are bad in the context of a blog. Think hard about what happens to relative links in your RSS feeds.
  4. Think seo.
  5. Think scrapers.

If you're still not convinced of the value of absolute links, do point 2.


Form is loading...