wallabag/templates
Antoine Beaupré 6f53da0fc9
restore pre-Atom behavior of linking directly to the article
RFC4287 section 4.2.7.2 specifies that "rel=alternate" is effectively
the default for the link element:

   If the "rel" attribute is not present, the link
   element MUST be interpreted as if the link relation type is
   "alternate".

So having a plain `<link>` and a `<link rel="alternate">` is kind of
weird, *especially* if they point to different resources. So we just
remove the plain entry and *replace* it with the rel=alternate, which
is really the default here.

The sample Atom feeds in RFC4287 (section 1.1) do give an
example *only* with `rel="alternate"`:

     <entry>
       <title>Atom draft-07 snapshot</title>
       <link rel="alternate" type="text/html"
        href="http://example.org/2005/04/02/atom"/>
       <link rel="enclosure" type="audio/mpeg" length="1337"
        href="http://example.org/audio/ph34r_my_podcast.mp3"/>

To refer to the actual Wallabag URL, we use the "via", which is
defined in the RFC as:

   5.  The value "via" signifies that the IRI in the value of the href
       attribute identifies a resource that is the source of the
       information provided in the containing element.

I'm not sure how widely used that tag is, but I feel that the
distinction between `rel="alternate"` is weird at best, and buggy (and
certainly introducing unpleasantness in my usage) at worse.

Before:

        <link href="{{ entry.url }}"/>
        <link rel="alternate" type="text/html"
              href="{{ url('view', {'id': entry.id}) }}"/>
        <link rel="via"
              href="{{ entry.url }}"/>

That is:

        <link href="http://example.com/"/>
        <link rel="alternate" type="text/html"
              href="http://wallabag.example.com/view/1"/>
        <link rel="via"
              href="http://example.com/"/>

After:

        <link rel="alternate" href="{{ entry.url }}"/>
        <link rel="via" type="text/html"
              href="{{ url('view', {'id': entry.id}) }}"/>

That is:

        <link rel="alternate" href="http://example.com"/>
        <link rel="via" type="text/html"
              href="http://wallabag.example.com/view/1"/>

Closes: #7848
2024-11-22 12:02:05 -05:00
..
Authentication Move templates 2024-02-19 10:32:55 +01:00
bundles Move templates 2024-02-19 10:32:55 +01:00
Config Implement tagging rules reset 2024-07-16 11:24:09 +12:00
Developer Move templates 2024-02-19 10:32:55 +01:00
Entry restore pre-Atom behavior of linking directly to the article 2024-11-22 12:02:05 -05:00
IgnoreOriginInstanceRule Use IsGranted in IgnoreOriginInstanceRuleController 2024-03-22 10:27:46 +01:00
Import Merge remote-tracking branch 'origin/master' into port/2.6.10 2024-11-15 23:53:48 +01:00
Mail Move templates 2024-02-19 10:32:55 +01:00
Resetting Move templates 2024-02-19 10:32:55 +01:00
SiteCredential Use IsGranted in SiteCredentialController 2024-04-04 23:37:14 +02:00
Static Merge remote-tracking branch 'origin/2.6' into port/2.6.10 2024-11-11 20:51:41 +01:00
Tag Use IsGranted in EntryController 2024-04-04 10:25:08 +02:00
TwoFactor Move templates 2024-02-19 10:32:55 +01:00
User Use IsGranted in UserController 2024-03-21 22:33:58 +01:00
base.html.twig Move templates 2024-02-19 10:32:55 +01:00
layout.html.twig Use IsGranted in SiteCredentialController 2024-04-04 23:37:14 +02:00
README.md Move templates 2024-02-19 10:32:55 +01:00
screenshot.jpg Move templates 2024-02-19 10:32:55 +01:00

Material Theme

Theme created by Danilow (@modos189) Alexandr http://modos189.ru/

Used framework http://materializecss.com/