mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 19:26:08 +05:30
Add feed link
This commit is contained in:
parent
b0960c6871
commit
f6fe970ef4
12 changed files with 25 additions and 27 deletions
|
|
@ -1,11 +1,6 @@
|
|||
# HTMLy Theme Twenty Fifteen
|
||||
WordPress Twenty Fifteen ported to HTMLy.
|
||||
|
||||
## Installations
|
||||
- Upload and extract the zip file into themes directory.
|
||||
- Rename the extracted folder to `twentyfifteen`.
|
||||
- Change the `views.root` using `http://www.example.com/admin/config` to `themes/twentyfifteen`
|
||||
|
||||
## License
|
||||
|
||||
See the LICENSE.txt
|
||||
|
|
|
|||
|
|
@ -880,7 +880,7 @@ a:focus {
|
|||
content: "\f516";
|
||||
}
|
||||
|
||||
.social-navigation a[href$="/feed/rss"]:before {
|
||||
.social-navigation a[href*="/feed"]:before {
|
||||
content: "\f413";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -881,7 +881,7 @@ a:focus {
|
|||
content: "\f516";
|
||||
}
|
||||
|
||||
.social-navigation a[href$="/feed/rss"]:before {
|
||||
.social-navigation a[href*="/feed"]:before {
|
||||
content: "\f413";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,6 +47,11 @@
|
|||
<nav id="social-navigation" class="social-navigation" role="navigation">
|
||||
<div class="menu-social-links-container">
|
||||
<ul id="menu-social-links" class="menu">
|
||||
<li class="menu-item">
|
||||
<a href="<?php echo site_url();?>feed/rss">
|
||||
<span class="screen-reader-text">RSS</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php if(!empty(config('social.twitter'))):?>
|
||||
<li class="menu-item">
|
||||
<a href="<?php echo config('social.twitter');?>">
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
|
||||
<?php if ($is_category):?>
|
||||
<header class="page-header"><h1 class="page-title"><?php echo i18n('Category');?>: <?php echo $category->title;?></h1><div class="taxonomy-description"><?php echo $category->body;?></div></header>
|
||||
<header class="page-header"><span class="social-navigation" style="margin:0 auto;float:right;"><a style="height:100%" href="<?php echo $category->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span><h1 class="page-title"><?php echo i18n('Category');?>: <?php echo $category->title;?></h1><div class="taxonomy-description"><?php echo $category->body;?></div></header>
|
||||
<?php endif;?>
|
||||
<?php if ($is_tag):?>
|
||||
<header class="page-header"><h1 class="page-title"><?php echo i18n('Tags');?>: <?php echo $tag->title;?></h1></header>
|
||||
<header class="page-header"><span class="social-navigation" style="margin:0 auto;float:right;"><a style="height:100%" href="<?php echo $tag->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span><h1 class="page-title"><?php echo i18n('Tags');?>: <?php echo $tag->title;?></h1></header>
|
||||
<?php endif;?>
|
||||
<?php if ($is_archive):?>
|
||||
<header class="page-header"><h1 class="page-title"><?php echo i18n('Archives');?>: <?php echo $archive->title;?></h1></header>
|
||||
<header class="page-header"><span class="social-navigation" style="margin:0 auto;float:right;"><a style="height:100%" href="<?php echo $archive->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span><h1 class="page-title"><?php echo i18n('Archives');?>: <?php echo $archive->title;?></h1></header>
|
||||
<?php endif;?>
|
||||
<?php if ($is_search):?>
|
||||
<header class="page-header"><h1 class="page-title"><?php echo i18n('Search');?>: <?php echo $search->title;?></h1></header>
|
||||
<header class="page-header"><span class="social-navigation" style="margin:0 auto;float:right;"><a style="height:100%" href="<?php echo $search->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span><h1 class="page-title"><?php echo i18n('Search');?>: <?php echo $search->title;?></h1></header>
|
||||
<?php endif;?>
|
||||
<?php if ($is_type):?>
|
||||
<header class="page-header"><h1 class="page-title">Type: <?php echo ucfirst($type->title);?></h1></header>
|
||||
<header class="page-header"><span class="social-navigation" style="margin:0 auto;float:right;"><a style="height:100%" href="<?php echo $type->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span><h1 class="page-title">Type: <?php echo ucfirst($type->title);?></h1></header>
|
||||
<?php endif;?>
|
||||
<?php foreach ($posts as $p): ?>
|
||||
<article class="post type-post hentry <?php if ($p->image || $p->audio || $p->video):?>has-post-thumbnail<?php endif;?>">
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
|
||||
<article class="page type-page hentry">
|
||||
<header class="entry-header">
|
||||
<h1 class="entry-title"><?php echo $name ?></h1>
|
||||
<h1 class="entry-title"><?php echo $author->name ?></h1><span class="social-navigation" style="margin:0 auto;float:right;"><a style="height:100%" href="<?php echo $author->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span>
|
||||
</header>
|
||||
<div class="entry-content">
|
||||
<?php echo $about ?>
|
||||
<?php echo $author->about ?>
|
||||
<h2 class="post-index"><?php echo i18n('Post_by_author');?></h2>
|
||||
<?php if ($posts) { ?>
|
||||
<ul class="post-list">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue