Twenty Twelve: add a better permalink markup structure to content-image.php template, for usability when image posts have no title. Props obenland, fixes #21723.
git-svn-id: http://core.svn.wordpress.org/trunk@21674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
59d7efa87b
commit
83fd26c1a0
|
@ -14,7 +14,9 @@
|
|||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-meta">
|
||||
<h1><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
||||
<h2><?php echo get_the_date(); ?></h2>
|
||||
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
|
||||
<h1><?php the_title(); ?></h1>
|
||||
<h2><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" pubdate><?php the_date(); ?></time></h2>
|
||||
</a>
|
||||
</footer><!-- .entry-meta -->
|
||||
</article><!-- #post -->
|
||||
|
|
|
@ -975,6 +975,9 @@ article.format-image footer h2 {
|
|||
font-size: 0.785714286rem;
|
||||
line-height: 2.181818182;
|
||||
}
|
||||
article.format-image footer a h2 {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* Link posts */
|
||||
article.format-link header {
|
||||
|
|
Loading…
Reference in New Issue